[FFmpeg-trac] #7681(undetermined:new): Ffmpeg segment produces corrupted segments after segment #0 when encoding h264 stream to mp4

FFmpeg trac at avcodec.org
Thu Jan 17 00:26:58 EET 2019


#7681: Ffmpeg segment produces corrupted segments after segment #0 when encoding
h264 stream to mp4
-------------------------------------+-------------------------------------
             Reporter:  pikwas       |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:
              Version:  unspecified  |  undetermined
             Keywords:               |               Resolution:
             Blocking:               |               Blocked By:
Analyzed by developer:  0            |  Reproduced by developer:  0
-------------------------------------+-------------------------------------

Comment (by pikwas):

 I tried with -f ssegment but results are the same.


 {{{
 C:\ffmpeg-4.1-win64-static\bin>ffmpeg.exe -f lavfi -i testsrc2 -c copy
 -flags +
 lobal_header -f ssegment -segment_time 100 -segment_format_options
 movflags=+fa
 tstart -reset_timestamps 1 C:\test%d22.mp4
 ffmpeg version 4.1 Copyright (c) 2000-2018 the FFmpeg developers
   built with gcc 8.2.1 (GCC) 20181017
   configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-
 fontconf
 g --enable-gnutls --enable-iconv --enable-libass --enable-libbluray
 --enable-li
 freetype --enable-libmp3lame --enable-libopencore-amrnb --enable-
 libopencore-am
 wb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-
 libsnappy -
 enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx
 --enable-
 ibwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-
 libxml2 -
 enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-
 libvidstab --e
 able-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-
 libspeex --e
 able-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-
 ffnvcodec --
 nable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2
 --ena
 le-avisynth
   libavutil      56. 22.100 / 56. 22.100
   libavcodec     58. 35.100 / 58. 35.100
   libavformat    58. 20.100 / 58. 20.100
   libavdevice    58.  5.100 / 58.  5.100
   libavfilter     7. 40.101 /  7. 40.101
   libswscale      5.  3.100 /  5.  3.100
   libswresample   3.  3.100 /  3.  3.100
   libpostproc    55.  3.100 / 55.  3.100
 Input #0, lavfi, from 'testsrc2':
   Duration: N/A, start: 0.000000, bitrate: N/A
     Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 320x240
 [SAR 1:1
 DAR 4:3], 25 tbr, 25 tbn, 25 tbc
 [stream_segment,ssegment @ 0000000000385d80] Opening 'C:\test022.mp4' for
 writi
 g
 [mp4 @ 0000000000342d40] Could not find tag for codec rawvideo in stream
 #0, co
 ec not currently supported in container
 Could not write header for output file #0 (incorrect codec parameters ?):
 Inval
 d argument
 Stream mapping:
   Stream #0:0 -> #0:0 (copy)
     Last message repeated 1 times

 C:\ffmpeg-4.1-win64-static\bin>
 }}}

--
Ticket URL: <https://trac.ffmpeg.org/ticket/7681#comment:6>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list