sample bug755.sample.m2v
issue 755, https://roundup.ffmpeg.org/roundup/ffmpeg/issue755

ffmpeg shows incorrect nominal bitrate and incorrect duration.
this occurs frequently with demuxed mpeg2 streams from DVD-Video.

original file and sample info:
- read from a dvd through AnyDVD, demuxed with pgcdemux
- 127138 frames at 25 fps
- duration 5085.52 s = 1:24:45.52 h:m:s
- file size 3503050724 bytes
- sample includes first 10000 KiB
 

there is a difference in output between 3:0.cvs20070307-5ubuntu7.1+medibuntu1
and recent builds (SVN-r16202, SVN-r16322):

$ # this is 3:0.cvs20070307-5ubuntu7.1+medibuntu1
$ /usr/bin/ffmpeg -i VideoFile.m2v 
FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2007 Fabrice Bellard, et al.
  configuration: --enable-gpl --enable-pp --enable-swscaler --enable-pthreads --enable-libvorbis --enable-libtheora --enable-libogg --enable-libgsm --enable-dc1394 --disable-debug --enable-libmp3lame --enable-libfaadbin --enable-libfaad --enable-libfaac --enable-xvid --enable-x264 --enable-liba52 --enable-amr_nb --enable-amr_wb --enable-shared --prefix=/usr
  libavutil version: 1d.49.3.0
  libavcodec version: 1d.51.38.0
  libavformat version: 1d.51.10.0
  built on Jul 29 2008 18:28:49, gcc: 4.2.3 (Ubuntu 4.2.3-2ubuntu7)
Input #0, mpegvideo, from 'VideoFile.m2v':
  Duration: 01:17:50.7, start: 0.000000, bitrate: 6000 kb/s
  Stream #0.0: Video: mpeg2video, yuv420p, 720x576, 6000 kb/s, 25.00 fps(r)
Must supply at least one output file


$ /usr/local/bin/ffmpeg -i VideoFile.m2v
FFmpeg version SVN-r16202, Copyright (c) 2000-2008 Fabrice Bellard, et al.
  configuration: --prefix=/usr/local
  libavutil     49.12. 0 / 49.12. 0
  libavcodec    52. 7. 0 / 52. 7. 0
  libavformat   52.23. 1 / 52.23. 1
  libavdevice   52. 1. 0 / 52. 1. 0
  built on Dec 18 2008 02:16:05, gcc: 4.2.4 (Ubuntu 4.2.4-1ubuntu3)
Input #0, mpegvideo, from 'VideoFile.m2v':
  Duration: 00:47:39.63 (2859633244.000000 / 1000000), bitrate: 9800 kb/s
    Stream #0.0: Video: mpeg2video, yuv420p, 720x576 [PAR 16:15 DAR 4:3], 9800 kb/s, 25.00 tb(r)
At least one output file must be specified


$ /usr/src/ffmpeg/ffmpeg -i VideoFile.m2v -vcodec copy -f mpeg2video - >/dev/null
FFmpeg version SVN-r16322, Copyright (c) 2000-2008 Fabrice Bellard, et al.
  configuration: --prefix=/usr/local
  libavutil     49.12. 0 / 49.12. 0
  libavcodec    52. 8. 0 / 52. 8. 0
  libavformat   52.23. 1 / 52.23. 1
  libavdevice   52. 1. 0 / 52. 1. 0
  built on Dec 26 2008 14:31:44, gcc: 4.2.4 (Ubuntu 4.2.4-1ubuntu3)
Input #0, mpegvideo, from 'VideoFile.m2v':
  Duration: 00:47:39.63, bitrate: 9800 kb/s
    Stream #0.0: Video: mpeg2video, yuv420p, 720x576 [PAR 16:15 DAR 4:3], 9800 kb/s, 25.00 tb(r)
Output #0, mpeg2video, to 'pipe:':
    Stream #0.0: Video: mpeg2video, yuv420p, 720x576 [PAR 16:15 DAR 4:3], q=2-31, 9800 kb/s, 25.00 tb(c)
Stream mapping:
  Stream #0.0 -> #0.0
Press [q] to stop encoding
frame=127138 fps=2947 q=-1.0 Lsize= 3420948kB time=5085.52 bitrate=5510.6kbits/s    
video:3420948kB audio:0kB global headers:0kB muxing overhead 0.000000%

---end---