[FFmpeg-trac] #2043(avformat:closed): unexpected behaviour when segmenting x264 encoded rawvideo sources
FFmpeg
trac at avcodec.org
Wed Dec 19 11:05:18 CET 2012
#2043: unexpected behaviour when segmenting x264 encoded rawvideo sources
-------------------------------------+-------------------------------------
Reporter: elkq | Owner:
Type: defect | Status: closed
Priority: normal | Component: avformat
Version: git-master | Resolution: invalid
Keywords: h264 | Blocked By:
segment mpegts | Reproduced by developer: 1
Blocking: |
Analyzed by developer: 1 |
-------------------------------------+-------------------------------------
Changes (by saste):
* analyzed: 0 => 1
* keywords: h264 segment => h264 segment mpegts
* component: undetermined => avformat
* reproduced: 0 => 1
Comment:
Replying to [ticket:2043 elkq]:
> ffmpeg fails to segment rawvideo sources that have been encoded with
libx264.
>
> The following command line fails:
> {{{
> ffmpeg -report -v 9 -loglevel 99 -s 352x288 -i /tmp/container_cif.yuv
-c:v libx264 -an -sn -map 0 -f segment -segment_time 4 -segment_list
hls.m3u8 -segment_format mpegts hls%03d.ts
> }}}
This works if you specify {{{-f ssegment}}}, see commit
a9a7e215e5207e674338b7ca9eb74e96ae5faf99.
The riddle is due to the fact that libavformat needs to know if the output
is stream-based or file-based when opening the segment muxer, and this
can't be known in advance with the segment muxer, when the internal muxer
has not been selected yet.
Error feedback can be improved, on the other hand this behavior cannot be
easily fixed.
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/2043#comment:2>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list