nilaoda / N_m3u8DL-RE

Cross-Platform, modern and powerful stream downloader for MPD/M3U8/ISM. English/简体中文/繁體中文.
MIT License
4.63k stars 487 forks source link

pipe options #243

Open danny83x1 opened 1 year ago

danny83x1 commented 1 year ago

How can I specify some options like those added in ffmpeg for example:

-vcodec libx264 -s 640x360 -vb k -maxrate k -bufsize k -preset -acodec aac -b:a *k -ac -ar ****

RikaCelery commented 1 year ago

set RE_LIVE_PIPE_OPTIONS environment variable

162

RikaCelery commented 1 year ago

the command generated is ffmpeg -y -fflags +genpts -loglevel quiet -re {INPUT_PIPES} -strict unofficial -c copy -metadata date="{DATE}" -ignore_unknown -copy_unknown {YOUR_CUSTOM_OPTIONS}

danny83x1 commented 1 year ago

Great thanks!

danny83x1 commented 1 year ago

in windows it is possible to specify the options for a single command?

RikaCelery commented 1 year ago

maybe you want this?

powershell: $env:RE_LIVE_PIPE_OPTIONS="YOUR_OPTIONS";N_m3u8DL-RE ...