Closed wnpllrzodiac closed 3 months ago
You can try using custom LIVE PIPE MUX commands to invoke ffmpeg for this purpose
EnvironmentVariable RE_LIVE_PIPE_OPTIONS
@nilaoda thanks.
RE_LIVE_PIPE_OPTIONS="-c copy /mnt/mmc/tv/cctv5/out.mp4" /opt/N_m3u8DL-RE/N_m3u8DL-RE "http://source.com/index.m3u8" --save-dir /mnt/mmc/tv/cctv5 --tmp-dir /mnt/mmc/tmp --live-record-limit 00:03:00 --live-pipe-mux
It works.
But output filename should be hard-code(/mnt/mmc/tv/cctv5/out.mp4) and I cannot use origin output name generated automatically. Is there some placeholder can be used?
e.g. CCTV5_HHmmss.mp4
RE_LIVE_PIPEOPTIONS="-c copy /mnt/mmc/tv/cctv5/`date "+%Y%m%d%H%M%S"`.mp4"
I set it to some time string of start-up time. Should work now.
/opt/N_m3u8DL-RE/N_m3u8DL-RE "http://hello.com/sample.m3u8" --save-dir /mnt/mmc/tv/cctv5 --tmp-dir /mnt/mmc/tmp --live-record-limit 02:40:00 --live-pipe-mux --task-start-at 20240707025800
current file was a single ts file: index_2024-07-27_01-30-00.ts