Open mawekuwe opened 9 years ago
Why remuxing as FLV Container? MP4 Container is the better choice and does not need a special stream splitter for WMP and is widely supported on consumer electronics like TVs, Receivers and DVD/BD players.
Note on first example (Download only, with FFmpeg):
It is always better to set the global_header flag instead of removing it:
set transcode="%ffmpeg% -re -i - -c:v copy -c:a copy -bsf:a aac_adtstoasc -flags +global_header %chan%-%ldt%.mp4"
This circumvents errors/warnings of newer FFmpeg releases when doing stream copy, as FFmpeg will always make sure that the headers for MP4 containers are correct and will fix them if needed, especially when remuxing from a MPEG-TS (Twitch's and CR's default output container format).
Thank you for the correction about "global_header" For "mux=flv" it is only in the third example. This was given by the VLC assistant for broadcasting.
Examples of scripts to watch, transcode and broadcast the stream on mswindows:
Download only, with ffmpeg
Watch and download (transcode) with VLC in the same time.
Watch and broadcast on local network with VLC (optionnal: save to file)
(remove '--sout-keep' if you don't want to watch on local machine)
But there are some limitations: The first one are with VLC, the transcoded file cannot be played with some device/players (TV, WMP,...) Seems some parameters are missing. The second, are with ffmpeg, I didn't find how I can watch and transcode the stream with ffmpeg on the fly. Any idea?