[FFmpeg-user] fault-tolerant streaming and local saving at the same time

Carl Eugen Hoyos ceffmpeg at gmail.com
Fri Dec 2 15:39:20 EET 2016


2016-12-02 14:13 GMT+01:00 Daniel Tisch <tisch.daniel at gmail.com>:
>>
>> > ffmpeg -i some_source -acodec pcm_u16le -vcodec yuv4 -f mpegts
>>
>> This command line cannot work:
>> You cannot put random data into mpegts.
>>
> Ok, now I see that mpegts container does not support these raw codecs

> (however ffmpeg does not print a warning about that).

Yes, but you are generally responsible for your command line.
(That requests codec and format)

> Then I have 2 options to achieve my goal, right?
> 1) Choose some (preferably lossless) codec to use in mpegts
> instead of raw data.

FFmpeg contains its own lossless codec, ffv1.

> 2) Choose some other muxer instead of mpegts.

mkv does have a live option but it is not really suitable
for rawvideo either.

Carl Eugen


More information about the ffmpeg-user mailing list