[FFmpeg-trac] #2307(undetermined:new): Stream segmenter bug if total recorded length > 12 hours

FFmpeg trac at avcodec.org
Thu Mar 28 13:11:27 CET 2013


#2307: Stream segmenter bug if total recorded length > 12 hours
-------------------------------------+-------------------------------------
             Reporter:  dgillier     |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:
              Version:  1.1.3        |  undetermined
             Keywords:  segment,     |               Resolution:
  duration                           |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------

Comment (by dgillier):

 The problem with $ ffmpeg -f lavfi -i testsrc -f s16le -i /dev/zero
 -vcodec mpeg4 -vb 400000 -strict -2 -acodec aac -f segment -segment_time
 1800 -map 0 -map 1 outsegment-%03d.mp4 is that it is supposed to create a
 segment every 1800 seconds (30min) and in fact it creates one every 60
 seconds. And the result files are declared of having 30min lenght (but
 actually recorded 1min of content)...

 Anyway my point is not on using testsrc...

 I tested with no audio as you requested.
 Result is a bit different but still not ok.

 As with audio, segmented .mp4 files are not readable after the first
 segment.
 You need to do a ffmpeg -i xxxt.mp4 -c copy xxx.mp4 pass to get headers.
 VLC read the file (30 minutes of video) but with no time line..

 And here is the result off ffmpeg (a 0s duration file):
 ffmpeg -i /mnt/video/tests/recopie.mp4
 ffmpeg version 1.2 Copyright (c) 2000-2013 the FFmpeg developers
   built on Mar 19 2013 15:08:09 with gcc 4.4.6 (GCC) 20120305 (Red Hat
 4.4.6-4)
   configuration: --enable-gpl --enable-libmp3lame --enable-libtheora
 --enable-libvo-aacenc --enable-libvorbis --enable-libvpx --enable-libx264
 --enable-version3
   libavutil      52. 18.100 / 52. 18.100
   libavcodec     54. 92.100 / 54. 92.100
   libavformat    54. 63.104 / 54. 63.104
   libavdevice    54.  3.103 / 54.  3.103
   libavfilter     3. 42.103 /  3. 42.103
   libswscale      2.  2.100 /  2.  2.100
   libswresample   0. 17.102 /  0. 17.102
   libpostproc    52.  2.100 / 52.  2.100
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x3188a20] Invalid SampleDelta in STTS
 -599050752
 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/mnt/video/tests/recopie.mp4':
   Metadata:
     major_brand     : isom
     minor_version   : 512
     compatible_brands: isomiso2mp41
     encoder         : Lavf54.63.104
   Duration: 00:00:00.00, start: 0.000000, bitrate: N/A
     Stream #0:0(und): Video: mpeg4 (Simple Profile) (mp4v / 0x7634706D),
 yuv420p, 640x360 [SAR 1:1 DAR 16:9], 400 kb/s, 25 fps, 25 tbr, 12800 tbn,
 25 tbc
     Metadata:
       handler_name    : VideoHandler
 At least one output file must be specified

 Tks.
 Denis

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/2307#comment:16>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list