Anyone have figure out how to use ffmpeg to send 2 audio track to twitch?
I have a 2 PC setup, sending from OBS 2 Audio track to nginx (second PC). ffmpeg pick up the stream and encode it for twitch. My goal is to be able to send 2 audio track which one will be use for VOD track for twitch…
ffmpeg -i rtmp://192.168.2.10:1935/live/test -map 0:0 -map 0:1 -b:v 8000k -minrate 8000k -maxrate 8000k -bufsize 8000k -vcodec libx264 -preset medium -profile:v high -sws_flags spline -level 4.2 -vf “scale=1664x936” -pix_fmt yuv420p -r 60 -x264-params nal-hrd=cbr:keyint=120 -acodec aac -ab 192k -ar 48000 -strict -2 -f flv rtmp://jfk.contribute.live-video.net/app/streamkey
Please i hope anyone can enlight me if it’s possible with ffmpeg to split audio track for twitch
I would like to add that if i use a custom twitch ingest server and activate the audio VOD track, ffmpeg gets the 2 audio track but one without codec
Stream #0:0: Video: h264 (Main), yuv420p(progressive), 2560x1440, 51200 kb/s, 60 fps, 60 tbr, 1k tbn
Stream #0:1: Audio: aac (LC), 48000 Hz, stereo, fltp, 327 kb/s
Stream #0:2: Audio: none ([9][0][0][0] / 0x0009), 11025 Hz, stereo, 327 kb/s