[FFmpeg-user] last frame missing from mpeg2 and mpeg1 encodes

Chris Vincze chris-v at moving-picture.com
Wed Feb 27 12:17:58 CET 2013


On 25 Feb 2013, at 21:32, Carl Eugen Hoyos wrote:

 please upload a file that shows
the last frame.

Hi, I've uploaded three files here: ftp://ftp6.moving-picture.com/private/ffmpeg/

One is created with ContentAgent, one with Episode and one with ffmpeg.

The ContentAgent and Episode versions both show the last frame in quicktime on mac and mplayer on linux whereas the ffmpeg one does not. mplayer actually shows it as missing one frame:

Playing 100_frame_Episode.mpg.[...]
V:   5.8 100/100  0%  0%  0.0% 0 0

Playing 100_frame_ContentAgent.mpg. [...]
V:   4.2 100/100  0%  0%  0.0% 0 0

Playing 100_frame_ffmpeg.mpg.[...]
V:   4.4  99/ 99  0%  0%  0.0% 0 0


Here is the output from ffmpeg -i for all three. Interesting that only the Episode version shows the correct duration of 4.00 seconds. I'm not really sure what the difference between the 'start' value denotes though.

Input #0, mpeg, from '100_frame_ContentAgent.mpg':
  Duration: 00:00:03.96, start: 0.320000, bitrate: 1034 kb/s
    Stream #0:0[0x1e0]: Video: mpeg1video, yuv420p, 320x176 [SAR 1:1 DAR 20:11], 1024 kb/s, 25 fps, 25 tbr, 90k tbn, 25 tbc


Input #0, mpeg, from '100_frame_Episode.mpg':
  Duration: 00:00:04.00, start: 1.875000, bitrate: 983 kb/s
    Stream #0:0[0x1e0]: Video: mpeg1video, yuv420p, 320x176 [SAR 1:1 DAR 20:11], 1000 kb/s, 25 fps, 25 tbr, 90k tbn, 25 tbc


Input #0, mpeg, from '100_frame_ffmpeg.mpg':
  Duration: 00:00:03.96, start: 0.540000, bitrate: 492 kb/s
    Stream #0:0[0x1e0]: Video: mpeg1video, yuv420p, 320x176 [SAR 1:1 DAR 20:11], 104857 kb/s, 25 fps, 25 tbr, 90k tbn, 25 tbc



When I convert all three sequences back to png files I get 100 frames from all of them.


Really strange. Any ideas what's happening to this missing frame?


Many thanks

Chris



More information about the ffmpeg-user mailing list