[FFmpeg-devel] [PATCH] avformat/mux: skip parameter and pts checks for data muxer

Paul B Mahol onemda at gmail.com
Sun Apr 28 13:54:00 EEST 2019


On 4/28/19, Gyan <ffmpeg at gyani.pro> wrote:
>
>
> On 28-04-2019 03:52 PM, Nicolas George wrote:
>> Gyan (12019-04-26):
>>>  From 5ec154870d9c559037598b41736bf5b216a756e0 Mon Sep 17 00:00:00 2001
>>> From: Gyan Doshi <ffmpeg at gyani.pro>
>>> Date: Fri, 26 Apr 2019 18:31:33 +0530
>>> Subject: [PATCH] avformat/mux: skip parameter and pts checks for data
>>> muxer
>>>
>>> Allows to dump a malformed stream for external inspection or repair.
>> What is your exact use case? I think there are much simpler and much
>> more robust solutions.
> Corrupt streams in sufficiently intact containers (MP4, TS) so they can
> be demuxed but decoder context fields are incomplete/invalid, so ffmpeg
> won't streamcopy-mux them.
>
> Depending on the exact situation, I would use a repair or analysis tool
> to check them or supply an alternate esds..etc
>

If this just dumps demuxed packets use:

ffmpeg -i input -c:v copy -f rawvideo outv.raw
ffmpeg -i input -c:a copy -f u8 outa.raw


More information about the ffmpeg-devel mailing list