avconv issue: cannot stream track different than 1st (5 tracks in original video)

0

I am trying to restream - transcode using avconv, the code below is working fine, the only issue is that I cannot use a different track. I tried -ac 2 or -ac 5 but these doesn't seem to work. Any idea?

Please find my sample code below:

avconv -i http://udpproxy.stream.tk:8070/udp/239.254.1.111:1234 \
 -vcodec libx264 \
 -profile:v baseline \
 -preset veryfast \
 -filter:v yadif \
 -trellis 2 \
 -async 1 \
 -pix_fmt yuv420p \
 -s 1280x720 \
 -r 25 \
 -g 25 \
 -bf 2 \
 -b_strategy 1 \
 -keyint_min 25 \
 -crf 20 \
 -b:v 1200k \
 -minrate 2000k \
 -maxrate 4096k \
 -bufsize 2048k \
 -threads 4 \
 -acodec libvo_aacenc \
 -ar 48000 \
 -ab 128k \
 -ac 2 \
 -f flv \
 -metadata service_name=streamtv \
 rtmp://192.168.207.11/locked/streamtv \
> /home/streamer/logs/streamtv-"$DATE".log 2>&1 & echo streamtv transcoding initiated

Nikolas

Posted 2019-05-29T19:30:16.317

Reputation: 1

Question was closed 2019-05-29T20:32:37.287

Note: it seems your mistake is about -ac, it specifies number of audio channels in the track. I believe flv only supports a single audio stream, no wonder the tool kept giving you the first one. – Kamil Maciorowski – 2019-05-29T20:41:00.387

i don't care if its only one track i really only need the 5th track – Nikolas – 2019-05-29T20:52:50.947

Use -map 0:v -map 0:a:4 as described in the duplicate links. – llogan – 2019-05-29T21:20:42.613

Great Thanks i didn't know this parameter – Nikolas – 2019-05-30T07:44:33.333

No answers