[FFmpeg-user] How to download and transcode video stream to mp4 and save the TS stream to file at the same time?

Bo Berglund bo.berglund at gmail.com
Mon Sep 30 15:16:48 EEST 2024


On Mon, 30 Sep 2024 13:40:44 +0530, Gyan Doshi <ffmpeg at gyani.pro> wrote:

>
>
>On 2024-09-30 01:34 pm, Bo Berglund wrote:
>> I checked with CharGPT and got the following:
>>
>> [quote]
>> The hybrid_fragmented flag was added to FFmpeg in version 6.0, released on June
>> 5, 2024. This feature allows for the creation of hybrid
>> fragmented/non-fragmented MP4 files, which can be useful for ensuring file
>> readability even if writing is interrupted
>> [/quote]
>
>This is wrong. The flag is not in any existing build. It will be in 7.1 
>due to be released within a day or so.
>
>Regards,
>Gyan

Strange, when I go to the official website:

https://www.ffmpeg.org/ffmpeg-all.html#Options-56

then I find a section about this flag in "21.4.2 Options"...

movflags -> hybrid_fragmented

Text:
    For recoverability - write the output file as a fragmented file. This allows
the intermediate file to be read while being written (in particular, if the
writing process is aborted uncleanly). When writing is finished, the file is
converted to a regular, non-fragmented file, which is more compatible and allows
easier and quicker seeking.

    If writing is aborted, the intermediate file can manually be remuxed to get
a regular, non-fragmented file of what had been written into the unfinished
file. 


What gives here?
Only a future wish-list or what?

What I cannot get working is to make an install of the latest version of ffmpeg
on my Ubuntu Server 20.04.6 LTS, or for that matter my 22.04.4 LTS laptop or my
LinuxMint....
I always get older versions or none at all. :(


-- 
Bo Berglund
Developer in Sweden



More information about the ffmpeg-user mailing list