Jump to content

NowTV/Roku issue with multiple audio tracks


Ricimer

Recommended Posts

I'm finalising my format for DVD conversion with handbrake, however I have hit an issue with the Roku client with multiple audio tracks:

 

 

Issue: When I create an mp4 or mkv in handbrake (0.10 RC) with multiple audio tracks, then the Roku client will display nothing under audio/subtitles.

 

The files have AAC and AC3 audio tracks, and the Roku client plays the AC3 file as I want (no matter the order of the tracks). Using just one audio track, subtitles and the audio track show as expected.

Mediabrowser server is Debian beta (also used Windows stable to test)

 

I can see the multiple audio tracks in the web player and the Android client, along with subtitles and I can pick and use them as I like (transcoded obviously).

 

 

 

 

Does anyone else have this issue with the latest client? (As it's nowtv I can only use the latest from the repository, so can't test earlier versions)

Link to comment
Share on other sites

No one else using multiple tracks with the current roku client?

 

One of the ffmpeg probes, multi audio with only aac and no subtitles, there is nothing under audio when you select it,

ffmpeg version N-66618-ge079d43 Copyright (c) 2000-2014 the FFmpeg developers
  built on Oct  4 2014 22:10:14 with gcc 4.9.1 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-zlib
  libavutil      54.  9.100 / 54.  9.100
  libavcodec     56.  2.101 / 56.  2.101
  libavformat    56.  7.104 / 56.  7.104
  libavdevice    56.  1.100 / 56.  1.100
  libavfilter     5.  1.102 /  5.  1.102
  libswscale      3.  1.100 /  3.  1.100
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  1.100 / 53.  1.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'file:F:\DVD\DS9 Multi.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : HandBrake 6468svn 2014102501
  Duration: 00:43:30.72, start: 0.058000, bitrate: 1677 kb/s
    Chapter #0.0: start 0.000000, end 240.520000
    Metadata:
      title           : Chapter 1
    Chapter #0.1: start 240.520000, end 641.480000
    Metadata:
      title           : Chapter 2
    Chapter #0.2: start 641.480000, end 1008.040000
    Metadata:
      title           : Chapter 3
    Chapter #0.3: start 1008.040000, end 1338.240000
    Metadata:
      title           : Chapter 4
    Chapter #0.4: start 1338.240000, end 1769.600000
    Metadata:
      title           : Chapter 5
    Chapter #0.5: start 1769.600000, end 1950.160000
    Metadata:
      title           : Chapter 6
    Chapter #0.6: start 1950.160000, end 2363.480000
    Metadata:
      title           : Chapter 7
    Chapter #0.7: start 2363.480000, end 2610.720000
    Metadata:
      title           : Chapter 8
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, smpte170m), 702x574 [SAR 16:15 DAR 1872:1435], 1184 kb/s, 24.93 fps, 25 tbr, 90k tbn, 180k tbc (default)
    Metadata:
      handler_name    : VideoHandler
    Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 160 kb/s (default)
    Metadata:
      handler_name    : Stereo
    Stream #0:2(deu): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 160 kb/s
    Metadata:
      handler_name    : Stereo
    Stream #0:3(fra): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 160 kb/s
    Metadata:
      handler_name    : Stereo
    Stream #0:4(eng): Subtitle: mov_text (text / 0x74786574)
    Metadata:
      handler_name    : SubtitleHandler
Output #0, srt, to 'F:\MB\ProgramData-Server\cache\subtitles\b\bbca9fae-5499-b953-7c67-6d7905c63a23.srt':
  Metadata:
    major_brand     : mp42
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf56.7.104
    Chapter #0.0: start 0.000000, end 240.462000
    Metadata:
      title           : Chapter 1
    Chapter #0.1: start 240.462000, end 641.422000
    Metadata:
      title           : Chapter 2
    Chapter #0.2: start 641.422000, end 1007.982000
    Metadata:
      title           : Chapter 3
    Chapter #0.3: start 1007.982000, end 1338.182000
    Metadata:
      title           : Chapter 4
    Chapter #0.4: start 1338.182000, end 1769.542000
    Metadata:
      title           : Chapter 5
    Chapter #0.5: start 1769.542000, end 1950.102000
    Metadata:
      title           : Chapter 6
    Chapter #0.6: start 1950.102000, end 2363.422000
    Metadata:
      title           : Chapter 7
    Chapter #0.7: start 2363.422000, end 2610.662000
    Metadata:
      title           : Chapter 8
    Stream #0:0(eng): Subtitle: subrip (srt)
    Metadata:
      handler_name    : SubtitleHandler
      encoder         : Lavc56.2.101 srt
Stream mapping:
  Stream #0:4 -> #0:0 (mov_text (native) -> subrip (srt))
Press [q] to stop, [?] for help
size=       0kB time=00:39:23.42 bitrate=   0.0kbits/s    

video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 377.777771%
Link to comment
Share on other sites

The good news is I can select audio tracks now for everything :)

 

A little of what doesn't work however. I will try and get some logs tomorrow of selections that play the wrong track, or transcode it instead of copying it. A little table with some testing so far.

 

 

I'm not sure what the Roku client is supposed to do when it finds Stereo and surround tracks? It always picks the English 5.1 no matter the order or default, eng is right, because that is my default, but I can't play any other eng track, even if I select it! Is there any documentation about the rules for track selection?

 

 

Error Y for if the wrong language was played compared to the selection, error Y(T) for if the language was correct but the audio was transcoded when it shouldn't be (I could understand transcoding with video and audio as copy, but not why a playable audio file is transcoded from AC3 to AAC and AAC to AC3!)

Error	Languages
	1		2		3			Selected		Result			Direct		Transcoded	Transcoded (a)	Transcoded (v)

Multi audio - Eng AC3 51 - Deu AC3 51.mp4
N	Eng AC3 5.1	Deu AC3 5.1			->	Eng AC3 5.1 	->	Eng AC3 5.1		Y		-				
Y(T)	Eng AC3 5.1	Deu AC3 5.1			->	Deu AC3 5.1 	->	Deu AAC 2.0		N		Y		AAC		Copy

Multi audio - Eng AC3 51 - Deu AC3 51 - Fra AC3 20.mp4
N	Eng AC3 5.1	Deu AC3 5.1	Fra AC3 2.0	->	Eng AC3 5.1 	->	Eng AC3 5.1		Y		-				
Y(T)	Eng AC3 5.1	Deu AC3 5.1	Fra AC3 2.0	->	Deu AC3 5.1 	->	Deu AAC 2.0		N		Y		AAC		Copy
Y	Eng AC3 5.1	Deu AC3 5.1	Fra AC3 2.0	->	Fra AC3 2.0 	->	Eng AC3 5.1		Y		-					

Multi audio - Eng AC3 51 - Fra AC3 20 - Ita AC3 20.mp4
N	Eng AC3 5.1	Fra AC3 2.0	Ita AC3 2.0	->	Eng AC3 5.1 	->	Eng AC3 5.1		Y		-				
Y	Eng AC3 5.1	Fra AC3 2.0	Ita AC3 2.0	->	Fra AC3 2.0 	->	Eng AC3 5.1		Y		-				
N	Eng AC3 5.1	Fra AC3 2.0	Ita AC3 2.0	->	Ita AC3 2.0 	->	Ita AC3 2.0		N		Y		Copy		Copy		

Multi audio - Eng AC3 51 - Eng AAC 20.mp4
N	Eng AC3 5.1	Eng AAC	2.0			->	Eng AC3 5.1 	->	Eng AC3 5.1		Y		-				
Y	Eng AC3 5.1	Eng AAC	2.0			->	Eng AAC 2.0 	->	Eng AC3 5.1		Y		-				

Multi audio - Eng AAC 20 - Eng AC3 51.mp4
Y	Eng AC3 5.1	Eng AAC	2.0			->	Eng AAC 2.0 	->	Eng AC3 5.1		Y		-				
N	Eng AC3 5.1	Eng AAC	2.0			->	Eng AC3 5.1 	->	Eng AC3 5.1		Y		-				

Multi audio - Deu AC3 51 - Eng AC3 51.mp4
Y	Deu AC3 5.1	Eng AC3 5.1			->	Deu AC3 5.1 	->	Eng AC3 5.1		Y		-				
Y(T)	Deu AC3 5.1	Eng AC3 5.1			->	Eng AC3 5.1 	->	Eng AAC 2.0		N		Y		AAC		Copy

Multi audio - Eng - AAC - Fra AAC.mp4
N	Eng AAC 2.0	Fra AAC	2.0			->	Eng AAC 2.0 	->	Eng AAC 2.0		Y		-				
Y(T)	Eng AAC 2.0	Fra AAC	2.0			->	Fra AAC	2.0 	->	Fra AC3 2.0		N		Y		AC3!		Copy	
Link to comment
Share on other sites

Thanks Luke,

 

With the update I can select audio and subtitles and see them listed in each section now :) However in some combinations my audio choice is ignored, unless I pick the vobsub subtitles and it is transcoded

 

Currently creating some test files to work out which combination of tracks/languages upsets the client. I will try to get some debug logs from nowtv and server to go with it.

Link to comment
Share on other sites

Server and Roku logs from this scenario

Multi audio - Eng AC3 51 - Deu AC3 51 - Fra AC3 20.mp4
N	Eng AC3 5.1	Deu AC3 5.1	Fra AC3 2.0	->	Eng AC3 5.1 	->	Eng AC3 5.1		Y		-				
Y(T)	Eng AC3 5.1	Deu AC3 5.1	Fra AC3 2.0	->	Deu AC3 5.1 	->	Deu AAC 2.0		N		Y		AAC		Copy
Y	Eng AC3 5.1	Deu AC3 5.1	Fra AC3 2.0	->	Fra AC3 2.0 	->	Eng AC3 5.1		Y		-					

1) Play episode without selecting anything -> result English AC3 5.1 as expected

2) Play episode selecting audio track 2, German 5.1 AC3, I get the correct language track, but it is transcoded to AAC

3) Play episode selecting audio track 3, -> result unexpected English AC3 5.1 track

 

Roku only supports primary and secondary audio tracks?

 

putty.log

server-63550389446.txt

transcode-f6070f03-97ff-4055-a4b6-5d4cb2e1e8f7.txt

Link to comment
Share on other sites

Just been having a play with plex in case it's the Now TV box. However with plex I can get direct play working with language selection with all but one scenario, which is AAC/AC3 with the same language where AC3 is always selected (which is fine).

 

I'm not really sure which side is losing the track selection with MB, the client or  the server. I might poke around at the source but it's been far too long since I had to code anything :P

Link to comment
Share on other sites

  • 2 weeks later...
gertgerman

I've just checked this forum out as I am setting up a server and deciding on whether to go with Plex or MB. At present I'm using Plex and all my files also have English and German audio tracks in aac 2.0 and ac3 5.1. The other of my tracks is eng aac, ac3 ger aac, ac3. The English ac3 track plays fine but if I select either of the German audio tracks Plex will transcode and I'll only get aac 2.0 sound. I wanted to see if MB has the same issue and I see it does. Not sure how you're getting Plex to play a secondary audio track in ac3. I raised the issue on their forum and was advised secondary tracks will always transcode.

Link to comment
Share on other sites

  • 1 year later...
Jambercob

I realize that it has been 2 years since this thread was first posted and I have went through the motions of trying to fix audio on my Roku however none of these solutions have resolved the problem, is there a new trick that I can try to fix the issue?

Link to comment
Share on other sites

I realize that it has been 2 years since this thread was first posted and I have went through the motions of trying to fix audio on my Roku however none of these solutions have resolved the problem, is there a new trick that I can try to fix the issue?

 

Hi, welcome. Can you please describe your exact issue? thanks !

Link to comment
Share on other sites

I realize that it has been 2 years since this thread was first posted and I have went through the motions of trying to fix audio on my Roku however none of these solutions have resolved the problem, is there a new trick that I can try to fix the issue?

Which roku app are you using?

 

The blue neon roku app may be able to help if you are not already using it. This has special handling of audio that the standard app does not.

 

https://emby.media/community/index.php?/topic/24151-theme-blue-neon-night/

Edited by speechles
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...