Project

General

Profile

IPTV secondary language stream using pipe http

Added by Pila RPi over 7 years ago

I may be completely wrong, but I am using pipe to view http IPTV streams. All is perfect. Almost.

I am unable to select or change input language stream. I always get only the first language stream. Kodi correctly identifes and shows this primary stream, but in no way I can select or even notice or recognize existance of a secondary stream.

I am using Raspberry Pi, HTS Tvheadend 4.0.9 ~ LibreELEC Tvh-addon v7.0.101. and watch using Kodi.

I defined a mux as:

pipe:///usr/bin/ffmpeg -loglevel fatal -i http://185.53.163.85:8888/play/a023 -vcodec copy -acodec copy -f mpegts pipe:1

but I am always getting only language stream 1 which is Bulgarian in my example, and can never get to the Language 2 which is English in this example.

I tried Configuration, Stream, Audio Stream filters adding English for services (streams) where I need it, but that did not change anything.

I can not find documentation regarding -acodes argument as I hope it could somehow help.


Replies (2)

RE: IPTV secondary language stream using pipe http - Added by Robert Cameron over 7 years ago

If you're using ffmpeg, you need to use -map, otherwise only the first of each stream type is used in the output. So, give:

ffmpeg -i "${URL}" -c copy -map 0 -f mpegts pipe:1

a try.

RE: IPTV secondary language stream using pipe http - Added by Pila RPi over 7 years ago

Yes! Many thanks, works perfect and is shorter than before :)

Now I see both languages in Kodi and it can select preferred one according to my config.

    (1-2/2)