[FFmpeg-trac] #493(FFmpeg:new): flash h.264 recorded files on FMS - bad duration and timing after ffmpeg conversion

FFmpeg trac at avcodec.org
Wed Sep 21 11:13:03 CEST 2011


#493: flash h.264 recorded files on FMS - bad duration and timing after ffmpeg
conversion
-------------------------------------+-------------------------------------
               Reporter:  kruzel     |                  Owner:  michael
                   Type:  defect     |                 Status:  new
               Priority:  important  |              Component:  FFmpeg
                Version:  git-       |               Keywords:  h.264,
  master                             |  conversion, duration, time
             Blocked By:             |               Blocking:
Reproduced by developer:  0          |  Analyzed by developer:  0
-------------------------------------+-------------------------------------
 Hi,
 I'm using ffmpeg to convert flash player 11 created h.264 file to ffmpeg
 format.
 Its part of a larger functionality.

 problem
 -------
 I'm running the following command:
 ffmpeg -i 'host.mp4' -y -an -vcodec libx264 -b 1200k -r 25 -threads 0 -y
 'singlevideoconvert.ts'

 the original file is ~6 sec long.

 after conversion, when playing, for example with ffplay, video playback is
 freezes for about 6 sec, then start playing, and after another 6 sec video
 freezes again, but ffplay seems to keep going endlessly.

 another thing I see is that ffmpeg wrongly reports duration of 20 sec.
 Mp4Box says it ~6 sec, which is correct.

 I can provide files and logs.

 ffmpeg dump info
 -----------------
 ofer at ofer-VirtualBox:~/Development/ffmpegtest/bug-example/test$ ffmpeg -v
 9 -loglevel 99 -i host.mp4
 ffmpeg version N-32097-gee0ff05, Copyright (c) 2000-2011 the FFmpeg
 developers
   built on Sep 17 2011 21:16:19 with gcc 4.5.2
   configuration: --enable-gpl --enable-libfaac --enable-libmp3lame
 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora
 --enable-libvorbis --enable-libx264 --enable-libxvid --enable-nonfree
 --enable-postproc --enable-version3 --enable-x11grab --enable-avfilter
 --enable-filter=movie --enable-librtmp --enable-libspeex
   libavutil    51. 13. 0 / 51. 13. 0
   libavcodec   53. 12. 0 / 53. 12. 0
   libavformat  53.  9. 0 / 53.  9. 0
   libavdevice  53.  3. 0 / 53.  3. 0
   libavfilter   2. 34. 2 /  2. 34. 2
   libswscale    2.  0. 0 /  2.  0. 0
   libpostproc  51.  2. 0 / 51.  2. 0
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x234e460] Format mov,mp4,m4a,3gp,3g2,mj2
 probed with size=2048 and score=100
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x234e460] ISO: File Type Major Brand: f4v
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x234e460] multiple edit list entries, a/v
 desync might occur, patch welcome
     Last message repeated 2 times
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x234e460] avformat_open_input() succeeded
 [h264 @ 0x2351020] Unsupported bit depth: 0
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x234e460] flash hack - setting audion codec to
 speex
 [libspeex @ 0x2353780] Missing Speex header, assuming defaults.
 [h264 @ 0x2351020] Frame num gap 3 1
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x234e460] max_analyze_duration 5000000 reached
 at 5000000

 Seems stream 0 codec frame rate differs from container frame rate: 48.00
 (48/1) -> 24.00 (48/2)
 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'host.mp4':
   Metadata:
     major_brand     : f4v
     minor_version   : 0
     compatible_brands: isommp42m4v
     creation_time   : 2017-01-08 23:56:30
   Duration: 00:00:20.40, start: 0.000000, bitrate: 172 kb/s
     Stream #0.0(eng), 97, 1/1000: Video: h264 (Baseline) (avc1 /
 0x31637661), yuv420p, 320x240 [SAR 1:1 DAR 4:3], 1/48, 24 tbr, 1k tbn, 48
 tbc
     Metadata:
       creation_time   : 2017-01-08 23:56:30
     Stream #0.1(eng), 252, 1/1000: Audio: speex (spex / 0x78657073), 16000
 Hz, 1 channels, s16
     Metadata:
       creation_time   : 2017-01-08 23:56:30
     Stream #0.2(eng), 1, 1/1000: Data: none (amf0 / 0x30666D61)
     Metadata:
       creation_time   : 2017-01-08 23:56:30
 At least one output file must be specified

 Ofer

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/493>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list