Project

General

Profile

dual audio select

Added by azam jvad almost 11 years ago

i am running tvheadend with tbs6985
i can tune and run channel ,work great

i have one issue
sky uk movies chanenls broadcasting 2 audio
1 is nat AND 1 IS ENGLISH

http://tveadendip:9981/stream/channelis/2

when i play or transcode channel it get audio which is not good means, no voice clearly may be its dolby or some thing

how can i select audio form 2 audios like other settopbox/receivers

thanks


Replies (9)

RE: dual audio select - Added by Andy Furniss almost 11 years ago

I don't really know what you mean here by SKY ie. really sky or normal unencrypted channels like BBC etc.

Is this just on HD?

I don't know what "nat" is in this context.

I only have UK DVB-T2 so get AAC rather than AC3 - but the issue could be more to do with the player than TVH.

If free DVB-S2 HD is like the T2 then the second channel is not a stereo mix anyway. Do you have a sample raw transport stream you could cut down in size and upload to somewhere like http://www.datafilehost.com ?

There are situations for players to mishandle 5.1 sound eg. not properly handling 2ch -> 5.1 switch so you loose center dialogue, dynamic range control issues/settings.

RE: dual audio select - Added by Prof Yaffle almost 11 years ago

Guessing that it's NAR, not NAT - so the audio described channel. And if Sky Movies sends this as stream 1, with the English soundtrack as stream 2, and transcoding defaults to the first track then I can see where the issue would arise.

@OP - playing, that's a matter for your client - it should either detect the default track, or use your preferred language, or allow you to switch between them if all else fails. What are you playing it on? VLC, XBMC, something else?

Transcoding, ah, that's a black art to me... I've never looked at it, so can't comment on how one would select a particular track.

EDIT

Just looked it up since it puzzled me... I've seen it a thousand times, but never followed it up...

NAR... as in NARration. Simples.

RE: dual audio select - Added by azam jvad almost 11 years ago

Prof Yaffle wrote:

Guessing that it's NAR, not NAT - so the audio described channel. And if Sky Movies sends this as stream 1, with the English soundtrack as stream 2, and transcoding defaults to the first track then I can see where the issue would arise.

@OP - playing, that's a matter for your client - it should either detect the default track, or use your preferred language, or allow you to switch between them if all else fails. What are you playing it on? VLC, XBMC, something else?

Transcoding, ah, that's a black art to me... I've never looked at it, so can't comment on how one would select a particular track.

EDIT

Just looked it up since it puzzled me... I've seen it a thousand times, but never followed it up...

NAR... as in NARration. Simples.

your are right
i am talking about SKY MOVIES ,SKY ACTION,SKY SELECT
because stream default track on same channels NAR and some is dolby

while when we select channel to watch in tvheadend it get first audio while there are 2 differnt audio more availbale on stream

my question is how to select other audio form same stream/channel, because it is playing dfault audio stream which is 1, while no option to select audio 2 or 3
thanks

RE: dual audio select - Added by Prof Yaffle almost 11 years ago

What are you watching the stream on?

RE: dual audio select - Added by azam jvad almost 11 years ago

i am watching sky action and it have 1st audio dolby digital which do not serve me, i want to use 3rd audio on smae stream which is english

thanks

RE: dual audio select - Added by Prof Yaffle almost 11 years ago

Third time lucky :-)

What are you using to watch the TV streams? Is it VLC, XBMC, or something else? Have you looked there to select a different audio stream (XBMC: M to bring up the on-screen menu, select audio from the icons at the bottom, select the stream; VLC is Audio -> Audio Track -> select the one you want).

And if it's transcoding and simply selecting the wrong stream, I can't comment, as I said.

RE: dual audio select - Added by azam jvad almost 11 years ago

i am using directly tvheadend
on tvheadend configuration > channelepg and there i have channels whihc i maped
so i click on one channel and it opne in same page with vlc run , on that vlc windows only volum channel stop button or play atached screenshot

there is no audio option

cvlc http://192.168.1.19:9981/stream/channelid/1 --deinterlace=blend --sout-keep --sout '#transcode{venc=x264{subme=2,ref=3,bframes=16,me=umh,b-adapt=1,bpyramid=none,weightp=0,level=41,keyint=50},vcodec=h264,vb=550,acodec=aac,ab=64,threads=2,deinterlace}:std{access=http, mux=ts, dst=0.0.0.0:15021,deinterlace}' > /dev/null 2>&1 &

so its get 1st audio whihc is dolby and play it.

RE: dual audio select - Added by Prof Yaffle almost 11 years ago

Okay, I understand now - thanks.

The web plugin does support audio track selection (https://wiki.videolan.org/Documentation:WebPlugin/ - vlc.audio.track), so it depends on how tvheadend calls the plugin. There's nothing I can see to manually set it as you want to... maybe raise a feature request for that.

I had a root around and the closest I've found is in /usr/share/tvheadend/src/webui/static/app/tvheadend.js; most of the VLC stuff seems to be here, so maybe it's possible to add that vlc.audio.track object parameter somewhere in there. The wiki above describes how to pass parameters to the plugin, so it's simply a matter of working out how the tvheadend devs have implemented it (variable names, function calls, etc.).

For your cvlc command line, again, I've never done any transcoding. However, the cvlc --help page does offer the option to select a language:

  Track settings:
      --audio-language <string>  Audio language

... so maybe you can override the default if the tracks are tagged separately. You could also look at the -H option to get a more comprehensive view, as the plugin might have more granular control of this particular stream type (however tvheadend hands it over to VLC - there's probably a way of finding out as VLC is playing).

You'll have to do some digging unless someone more experienced comes along, I'm afraid.

RE: dual audio select - Added by azam jvad almost 11 years ago

thank you very much
problem solved by adding --audio-track=1 in cvlc
now i can select any audio from stream by using --audio-track=1 or --audio-track=0 etc...
thanks again to all

    (1-9/9)