On 2024-09-29 21:59, Bo Berglund wrote:
I have created a script that downloads Internet video streams (basically news
programs) and transcodes to mp4 format with a fixed windows size.
As soon as the video stream recording ends the mp4 file can be played.

I wonder if there is a way to let ffmpeg do two things at the same time:
- download as now but save the stream to a TS formatted file and:
- transcode to the mp4 format into a different output file

This would make it possible to start viewing the downloaded file in TS format
while the real output file remains unplayable until the download finishes and
the moov atom gets written.

Perhaps something of this kind:

wget url | tee file.ts | ffmpeg whatever

Of course, you have to figure out the options to make wget write the file to stdout, and ffmpeg take the input from stdin. If that is not possible, I would try named pipes.

--
Cheers / Saludos,

                Carlos E. R.
                (from 15.5 x86_64 at Telcontar)

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

_______________________________________________
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to