boardsllka.blogg.se

Ffmpeg extract frames from vob
Ffmpeg extract frames from vob








Output file is empty, nothing was encoded (check -ss / -t / -frames parameters if used)Īnd I thinking that solution it's not the best, because, if I have 10000 timestamps, this will generate a huge command.Īfter reply, I made the following changes:Īccording with the Mulvya answer, a "concat demuxed input" don't have a "fast seek", so, first I created a gopro.txt file with the following content: file 'GOPR0940.MP4' It's possible to pass a list of timestamps to ffmpeg?įfmpeg -f concat -i gopro.txt -vf select='eq(t,332)+eq(t,769)+eq(t,1270)+eq(t,1943)' -vsync 0 -vframes 4 frames%d.jpg, ( ) but got no results.Īfter several minutes, ffmpeg return a warning message with the following content: This will work, but take a really long time, because I think that ffmpeg, at each line of my batch file, will seek from beggining of the file until at desired time.Įdit: after changes proposed by the extract worked very fast, and I can use the batch file without any problem. My list will have more than 10.000 timestamps, so, if I make a batch file with: ffmpeg -f concat -i gopro.txt -ss 00:05:32 -vframes 1 frame00001.jpgįfmpeg -f concat -i gopro.txt -ss 00:12:49 -vframes 1 frame00002.jpgįfmpeg -f concat -i gopro.txt -ss 00:21:10 -vframes 1 frame00003.jpgįfmpeg -f concat -i gopro.txt -ss 01:38:42 -vframes 1 frame10000.jpg Now, suppose I have a list of times I want to extract (I don't have the frame number, only the time), like:Īnd so on. So, I merged all videos on a single file with the following command:įfmpeg -f concat -safe 0 -i gopro.txt -c copy full_movie.mp4 So, to extract a image from a movie, I used this command:įfmpeg -ss 00:19:00 -f concat -i gopro.txt -qscale:v 2 -vframes 1 frame%d.jpg (where 00:19:00 is the time I want).Įdit: as said, on a demuxed input, the "fast seek" don't work (works, but is very slow).

ffmpeg extract frames from vob ffmpeg extract frames from vob

To do this, I created a file called gopro.txt with the following content: file 'GOPR0940.MP4' I don't need all frames, but I need a list of framesīecause all files is from same movie, I "merged" all files. What I'm trying to do is extract some specific frames of the FULL MOVIE. The GoPRO split the movie in several files (I believe because of FAT32 size limitation).










Ffmpeg extract frames from vob