octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #57020] [octave-forge] (video): missing VideoW


From: Avinoam Kalma
Subject: [Octave-bug-tracker] [bug #57020] [octave-forge] (video): missing VideoWriter
Date: Wed, 23 Oct 2019 00:22:56 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36

Follow-up Comment #5, bug #57020 (project octave):

After last additions to Video pakage
(http://hg.code.sf.net/p/octave/video/rev/c4746720f185,
http://hg.code.sf.net/p/octave/video/rev/22ede10d0776),
things looks much better (Thanks Andy!)

The commands:


 demo VideoWriter 


and

 demo Videoreader



work 
(need a change in VideoReader.m: change the line
fn = "/tmp/sombrero.mp4";
to
fn = fullfile (tempdir(), "sombrero.mp4");
as in VideoWriter).

My own demos also work:


vid = VideoReader('vid.mp4');
cnt = 0;
while (hasFrame(vid))
  cnt = cnt + 1;
  I = readFrame(vid);
  imwrite (I, sprintf ('%05d.png', cnt));
end



folder = 'C:\Octave\Video';
vid = VideoWriter('demo.avi');
open(vid);

Images = dir (fullfile (folder, '*.png'));
for i=1:numel(Images)
  file = fullfile (folder, Images(i).name);
  I = imread (file);
  writeVideo(vid, I);
end

close(vid)




    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?57020>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]