Transcoding and streaming two streams at once

About encoding, codec settings, muxers and filter usage
Manzzon
New Cone
New Cone
Posts: 3
Joined: 16 Aug 2017 18:28

Transcoding and streaming two streams at once

Postby Manzzon » 16 Aug 2017 19:06

Im trying to figure out how to stream via the command line in Windows 10 using VLC 2.2.6 64bit, I succesfully made one stream work but when I try another one at the same time I get a error message.

Its from my enigma2 box (1080i channel), feel free to comment if you see any possibles tweaks because Im just learning. I want ok HD quality on a large screen TV but dont want to waste too much bandwith.

I use this lines:

Stream 1:
vlc -I dummy "http://192.168.0.121:8001/1:0:19:1B94:3 ... 0000:0:0:0:" --sout=#transcode{vcodec=h264,vb=2400,scale=Auto,width=1280,acodec=mp4a,ab=96,channels=2,samplerate=44100}:http{mux=ffmpeg{mux=flv},dst=:11121/}

Stream 2:
vlc -I dummy "http://192.168.0.122:8001/1:0:19:1BE8:4 ... 0000:0:0:0:" --sout=#transcode{vcodec=h264,vb=2400,scale=Auto,width=1280,acodec=mp4a,ab=96,channels=2,samplerate=44100}:http{mux=ffmpeg{mux=flv},dst=:11122/}

When trying to start stream 2 I get this error message:

[flv @ 0000000002ab3bc0] at most one audio stream is supported in flv
[0000000002b17e00] avcodec mux error: could not write header: Invalid argument
[0000000002b4bc00] core decoder error: cannot continue streaming due to errors
[0000000002b51970] core decoder error: cannot continue streaming due to errors
[0000000002b17150] core decoder error: cannot continue streaming due to errors


I hope I can get some help, thank you. :)

Rémi Denis-Courmont
Developer
Developer
Posts: 15268
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Transcoding and streaming two streams at once

Postby Rémi Denis-Courmont » 16 Aug 2017 21:10

The input contains more than one audio track. This is not possible in the output format. You need to select one.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

Manzzon
New Cone
New Cone
Posts: 3
Joined: 16 Aug 2017 18:28

Re: Transcoding and streaming two streams at once

Postby Manzzon » 17 Aug 2017 07:58

Thank you for fast reply, how do I choose one audiotrack in the command line? There are two different language mpeg audiotracks in Stream 2.

Everything else looks ok?

Rémi Denis-Courmont
Developer
Developer
Posts: 15268
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Transcoding and streaming two streams at once

Postby Rémi Denis-Courmont » 17 Aug 2017 19:01

Check the streaming howto.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

Manzzon
New Cone
New Cone
Posts: 3
Joined: 16 Aug 2017 18:28

Re: Transcoding and streaming two streams at once

Postby Manzzon » 17 Aug 2017 19:07

Ive tried but cant figure out how to put the settings for choosing audiostream in my lines. Doesnt seem to do anything, same error so Im doing something wrong obviously. :)


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 36 guests