By default, ffmpeg exports jpgs at a very low quality. Add -qscale 1 to the string of commands for the highest quality:
or export to png instead:Code:ffmpeg -i src.m2v -vf showinfo -f image2 -qscale 1 img%05d.jpg 2>list.txt
Code:ffmpeg -i src.m2v -vf showinfo -f image2 img%05d.png 2>list.txt
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 31 to 45 of 45
Thread
-
-
Yes, and you can easily change the output to PNG or BMP by changing the output filename spec.
-
i treid it and finally i get an output, but the numebr of frames in the text file(n=) not equal the number of jpg files?
-
Are you getting twice the number of images that n: reports?
I got this behaviour last week when I was using ffmpeg to export images - but I completely forgot about it.
Specifying the framerate of your source video with the '-r' option should fix this. The position of '-r' is important - it should go at the end of the list of parameters:
Code:ffmpeg -i src.m2v -vf showinfo -f image2 img%05d.png -r 25 2>list.txt
Code:ffmpeg -i src.m2v -vf showinfo -f image2 img%05d.png -r 30000/1001 2>list.txt
-
For files with 3:2 pulldown (or other patterns) ffmpeg produces a frame for every field in the pulldown. So a 23.976 fps MPG file with pulldown flags will produce 59.94 image per second. And yes, you can use the -r parameter to specify the frame rate, -r 24000/1001 for 23.976 fps sources.
-
still the same, my file is 32.31 sec, 25fps, the images count 1-920, but the frames in the text is 0-811
-
I'm testing ffmpeg/showinfo with .MTS files taken with my Canon HFS21. Although I'm getting the right number of images to match the showinfo 'n:' value, for some reason showinfo isn't listing I-frames for (only B, P frames).
But it works fine for other files on my system. -
Use ffmbc instead of ffmpeg, it will produce 1-811 images on your sample, starting at 00001
You can find some pre-built windows binaries here
http://www.mediafire.com/?8xynxe10rxb88 -
thank you very much, i will try to extract the type information from the text file by matlab and i hope to get them.
thanx alt -
Dear all
I have a same problem to find a way in order to extract I, P & B frames from a MPEG file.
whould you please help me? How can I do that?
Similar Threads
-
What do people do with mpeg-1/2 video mpgv at 59.94 frames per second?
By johnharlin in forum Video ConversionReplies: 6Last Post: 23rd Aug 2012, 19:30 -
Virtualdub VCR capture no dropped frames but 5400 inserted frames in 1 hour
By suloku in forum CapturingReplies: 12Last Post: 17th Aug 2011, 22:33 -
need help unblending previously blended frames rather than dropping frames
By BilboFett in forum Video ConversionReplies: 15Last Post: 12th May 2011, 21:15 -
mencoder: seeking to frames (or cropping start frames)
By manchurian_candidate in forum LinuxReplies: 3Last Post: 13th Dec 2010, 08:53 -
inserted frames without dropped frames in VirtualDub capturing VHS
By whschlebaum in forum CapturingReplies: 0Last Post: 23rd Aug 2007, 20:59