Stream in one language
Posted: 09 Feb 2023 17:14
Hello,
Sorry to bother but I am trying to stream a UDP stream from vlc using a text file with the load command.
This is the code block of my text file:
new STREAM broadcast
setup STREAM input udp://@224.120.120.106:4000
setup STREAM output #transcode{acodec=mpga,ab=128,channels=2,samplerate=44100}:std{access=udp,mux=ts,dst=224.120.0.20:1234}
setup STREAM enabled
It works, but it transmits in more than one language, Spanish and English, and I only want it to transmit the English language.
The output that I get with ffprobe is the following:
---------------------------------------------------------
Input #0, mpegts, from 'udp://224.120.0.20:1234':
Duration: N/A, start: 17.711589, bitrate: N/A
Program 1
Metadata:
service_name :
service_provider:
Stream #0:0[0x64]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(top first), 1920x1080 [SAR 1:1 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
Stream #0:1[0xc8](eng): Audio: mp2 ([3][0][0][0] / 0x0003), 44100 Hz, stereo, s16p, 128 kb/s
Stream #0:2[0xc9](spa): Audio: mp2 ([3][0][0][0] / 0x0003), 44100 Hz, stereo, s16p, 128 kb/s
Stream #0:3[0xca](spa): Audio: mp2 ([3][0][0][0] / 0x0003), 44100 Hz, stereo, s16p, 128 kb/s
Stream #0:4[0x12c](spa): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006)
Stream #0:5[0x12d](spa): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006)
---------------------------------------------------------
I have tried with the following blocks but it has not worked for me to only transmit in a single language:
First attempt:
new STREAM broadcast
setup STREAM input udp://@224.120.120.106:4000
setup STREAM output #transcode{acodec=mpga,ab=128,channels=2,samplerate=44100,alang=eng}:std{access=udp,mux=ts,dst=224.120.0.20:1234}
setup STREAM enabled
Second try:
new STREAM broadcast
setup STREAM input udp://@224.120.120.106:4000
setup STREAM output #transcode{acodec=mpga,ab=128,channels=2,samplerate=44100}:no-sout-all:std{access=udp,mux=ts,dst=224.120.0.20:1234}
setup STREAM enabled
Third try:
new STREAM broadcast
setup STREAM input udp://@224.120.120.106:4000
setup STREAM output #transcode{acodec=mpga,ab=128,channels=2,samplerate=44100}:std{access=udp,mux=ts,dst=224.120.0.20:1234}
setup STREAM sout-audio-language=eng
setup STREAM enabled
Fourth attempt:
new STREAM broadcast
setup STREAM input udp://@224.120.120.106:4000
setup STREAM output #transcode{acodec=mpga,ab=128,channels=2,samplerate=44100}:std{access=udp,mux=ts,dst=224.120.0.20:1234}
setup STREAM sout-audio-track=0
setup STREAM enabled
Fifth attempt:
new STREAM broadcast
setup STREAM input udp://@224.120.120.106:4000
setup STREAM output #transcode{acodec=mpga,ab=128,channels=2,samplerate=44100,language=eng}:std{access=udp,mux=ts,dst=224.120.0.20:1234}
setup STREAM enabled
I hope you can support me
Cordial greetings.
Sorry to bother but I am trying to stream a UDP stream from vlc using a text file with the load command.
This is the code block of my text file:
new STREAM broadcast
setup STREAM input udp://@224.120.120.106:4000
setup STREAM output #transcode{acodec=mpga,ab=128,channels=2,samplerate=44100}:std{access=udp,mux=ts,dst=224.120.0.20:1234}
setup STREAM enabled
It works, but it transmits in more than one language, Spanish and English, and I only want it to transmit the English language.
The output that I get with ffprobe is the following:
---------------------------------------------------------
Input #0, mpegts, from 'udp://224.120.0.20:1234':
Duration: N/A, start: 17.711589, bitrate: N/A
Program 1
Metadata:
service_name :
service_provider:
Stream #0:0[0x64]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(top first), 1920x1080 [SAR 1:1 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
Stream #0:1[0xc8](eng): Audio: mp2 ([3][0][0][0] / 0x0003), 44100 Hz, stereo, s16p, 128 kb/s
Stream #0:2[0xc9](spa): Audio: mp2 ([3][0][0][0] / 0x0003), 44100 Hz, stereo, s16p, 128 kb/s
Stream #0:3[0xca](spa): Audio: mp2 ([3][0][0][0] / 0x0003), 44100 Hz, stereo, s16p, 128 kb/s
Stream #0:4[0x12c](spa): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006)
Stream #0:5[0x12d](spa): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006)
---------------------------------------------------------
I have tried with the following blocks but it has not worked for me to only transmit in a single language:
First attempt:
new STREAM broadcast
setup STREAM input udp://@224.120.120.106:4000
setup STREAM output #transcode{acodec=mpga,ab=128,channels=2,samplerate=44100,alang=eng}:std{access=udp,mux=ts,dst=224.120.0.20:1234}
setup STREAM enabled
Second try:
new STREAM broadcast
setup STREAM input udp://@224.120.120.106:4000
setup STREAM output #transcode{acodec=mpga,ab=128,channels=2,samplerate=44100}:no-sout-all:std{access=udp,mux=ts,dst=224.120.0.20:1234}
setup STREAM enabled
Third try:
new STREAM broadcast
setup STREAM input udp://@224.120.120.106:4000
setup STREAM output #transcode{acodec=mpga,ab=128,channels=2,samplerate=44100}:std{access=udp,mux=ts,dst=224.120.0.20:1234}
setup STREAM sout-audio-language=eng
setup STREAM enabled
Fourth attempt:
new STREAM broadcast
setup STREAM input udp://@224.120.120.106:4000
setup STREAM output #transcode{acodec=mpga,ab=128,channels=2,samplerate=44100}:std{access=udp,mux=ts,dst=224.120.0.20:1234}
setup STREAM sout-audio-track=0
setup STREAM enabled
Fifth attempt:
new STREAM broadcast
setup STREAM input udp://@224.120.120.106:4000
setup STREAM output #transcode{acodec=mpga,ab=128,channels=2,samplerate=44100,language=eng}:std{access=udp,mux=ts,dst=224.120.0.20:1234}
setup STREAM enabled
I hope you can support me
Cordial greetings.