[Ffmpeg-devel] changes to asf demuxer

Jonathon Elwood jelwood
Fri Feb 23 23:17:08 CET 2007


I have been trying to improve the dvr-ms (asf demuxer) support in ffmpeg.
However, it seems that a week ago someone made some changes to the asf
demuxer that caused a few problems.

 

First, the fps isn't being detected correctly on the MPEG-2 video stream (on
some it works, but others it detects the MPEG-2 stream at 0.08 fps).  It
should have been 29.97, but as you can see below it was detected as 0.08
fps.  Also, there is a big problem with the AV sync.  The audio starts
playing right away, but the video stays on the first frame for roughly 1
second.  Of course, this means that the audio is roughly 1 second ahead of
the video.  I've been trying to fix the problems, but I'm not having any
luck (so please ignore my debug statements below).  Does anyone know who
worked on this and do they have any idea what is wrong now?  I've uploaded
this sample file to ftp://upload.mplayerhq.hu/MPlayer/incoming/Survivor-
<ftp://upload.mplayerhq.hu/MPlayer/incoming/Survivor-
Fiji_KPIX-DT_08_02_2007_19_58_07.001.dvr-ms>
Fiji_KPIX-DT_08_02_2007_19_58_07.001.dvr-ms if anyone would like to look at
it.

 

Below is the command line I used:

"ffmpeg" -benchmark -y -i "Survivor-
Fiji_KPIX-DT_08_02_2007_19_58_07.001.dvr-ms" -vcodec xvid -s 320x240 -qscale
4 -acodec mp3 -ac 2 -ar 44100 -ab 128 -f avi "Survivor-
Fiji_KPIX-DT_08_02_2007_19_58_07.001.avi"

 

And here is the output I received:

FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2006 Fabrice Bellard, et al.

  configuration:  --enable-static --enable-memalign-hack --enable-mp3lame
--enab

le-xvid --enable-gpl --enable-faad --enable-faac --enable-x264
--enable-w32threa

ds --enable-a52

  libavutil version: 49.2.0

  libavcodec version: 51.29.0

  libavformat version: 51.8.0

  built on Feb 20 2007 13:49:09, gcc: 3.4.5 (mingw special)

Jon's debug nb_packets:103926 hdr.play_time:0

jon debug first duration:2983190

jon debug first duration:2983190

jon debug first duration:2983190

 

Seems stream 2 codec frame rate differs from container frame rate: 29.97
(30000/

1001) -> 0.08 (1/12)

Input #0, asf, from 'Survivor- Fiji_KPIX-DT_08_02_2007_19_58_07.001.dvr-ms':

  Duration: 00:49:43.1, start: 0.000000, bitrate: 140 kb/s

  Stream #0.0: Invalid Codec type -1

  Stream #0.1: Audio: ac3, 48000 Hz, stereo, 384 kb/s

  Stream #0.2: Video: mpeg2video, yuv420p, 1920x1080, 18800 kb/s,  0.08
fps(r)

Output #0, avi, to 'Survivor- Fiji_KPIX-DT_08_02_2007_19_58_07.001.avi':

  Stream #0.0: Video: xvid, yuv420p, 320x240, q=2-31, 200 kb/s,  0.08 fps(c)

  Stream #0.1: Audio: mp3, 44100 Hz, stereo, 128 kb/s

Stream mapping:

  Stream #0.2 -> #0.0

  Stream #0.1 -> #0.1

Press [q] to stop encoding

frame=    3 q=4.0 Lsize=     386kB time=22.1 bitrate= 143.0kbits/s

 

Does anyone have any ideas?





More information about the ffmpeg-devel mailing list