I have nginx installed with the RTMP module with 2 applications configured: "lang" and "live". When I try to use "-map_channel" to separate audio channels to broadcast several languages, the stream in the "live" application does not start.
nginx.conf, application "lang":
when I remove the "-map_channel" entries from the code I get 2 streams in the "live" applicationCode:exec_push ffmpeg -i rtmp://localhost/lang/$name -map_channel 0.0.0 -vcodec copy -acodec copy -f flv rtmp://localhost/live/$name_ch1 -map_channel 0.0.1 -vcodec copy -acodec copy -f flv rtmp://localhost/live/$name_ch2;
None of the options that I found work:
ffmpeg -i stereo.wav -filter_complex "[0:a]channelsplit=channel_layout=stereo[left][right]" -map "[left]" left.wav -map "[right]" right.wav
ffmpeg -i stereo.wav -map_channel 0.0.0 left.wav -map_channel 0.0.1 right.wav
ffmpeg -i stereo.wav -filter_complex "[0:a]pan=1c|c0=c0[left];[0:a]pan=1c|c0=c1[right]" -map "[left]" left.wav -map "[right]" right.wav
Please help
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 2 of 2
Thread
-
-
-map_channel does not work with -acodec copy.
if you have separate audio tracks in your video, use e.g. -map 0:a:1
Read also https://trac.ffmpeg.org/wiki/Map
Similar Threads
-
How to get ffmpeg deinterlace to work like handbrake decomb
By ptr727 in forum Video ConversionReplies: 7Last Post: 17th Mar 2019, 20:03 -
generate silence with ffmpeg doesn't work
By lenberg in forum AudioReplies: 2Last Post: 29th Oct 2018, 11:31 -
Create m3u8 on linux nginx doing HLS
By aj-stream in forum Newbie / General discussionsReplies: 0Last Post: 22nd Aug 2018, 20:08 -
ffmpeg not work on two command vignete and blur in one line , why ?
By dedekov in forum EditingReplies: 7Last Post: 20th Mar 2018, 09:09 -
[SOLVED] FFMPEG Slideshow (Tried looking online and can't get it to work).
By Tolwyn in forum Newbie / General discussionsReplies: 21Last Post: 15th Aug 2017, 22:18