FAQ  •  Register  •  Login

No Audio on Roku

<<

AndrewW

Serviio lover

Posts: 81

Joined: Sat Mar 19, 2011 8:15 am

Post Wed Nov 16, 2016 7:49 am

No Audio on Roku

I have some videos which have been processed by ffmpeg and play fine on Samsung TVs but have no audio on Roku devices. ffmpeg -i shows
Stream #0:1(eng): Audio: ac3 (ac-3 / 0x332D6361), 48000 Hz, stereo, fltp, 192 kb/s (default)
on the following on the files which dont work

if I run the following
ffmpeg -i "infile.mp4" -c:v copy -c:a aac -strict -2 "outfile.mp4"

ffmpeg -i shows

Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 132 kb/s (default)

and it works though serviio but the audio appears to get clipped in some instances

i have tried to chnagethe bit rate but nothing works,


Looking at the Roku profile in RServiio and the forums AC3 look to be the best encoder , so why is it not working.
I have also tried changing the servio profile from Roku to generic and no difference, i.e the original vidoes still have no audio.

Any ideas

Thanks
Andrew
<<

AndrewW

Serviio lover

Posts: 81

Joined: Sat Mar 19, 2011 8:15 am

Post Wed Nov 16, 2016 9:11 am

Re: No Audio on Roku

Update I tried to convert the file with Handbrake, and the sound was a lot better thing the tranformation is to do with ffmpeg, any ideas of the ideal command, also why does serviio not try to transcode
<<

paul33

Serviio newbie

Posts: 9

Joined: Tue Nov 08, 2016 7:23 pm

Post Wed Nov 16, 2016 9:42 am

Re: No Audio on Roku

Hi,
I have similar with mpeg2 .ts files and mp2 audio
I havent looked into it much as the latest Roku firmware (7.5) seems to be having streaming issues so not using mine much at the moment

However
Try using the Chaneru profile for your Roku, not sure what type of device this is, but if i use it for my Roku it plays everything fine
<<

AndrewW

Serviio lover

Posts: 81

Joined: Sat Mar 19, 2011 8:15 am

Post Wed Nov 16, 2016 9:56 am

Re: No Audio on Roku

thanks Its a Roku 3 4200x with v 7.5 build 4096-04

In my case the suggested profile did not work

What is the cause if this issue, Roku, Serviio profile, or transcoded files ? just want to make sure i fix the root cause
<<

paul33

Serviio newbie

Posts: 9

Joined: Tue Nov 08, 2016 7:23 pm

Post Wed Nov 16, 2016 10:46 am

Re: No Audio on Roku

DLNA profile is not something i usually touch

Is the file ok if you play it directly on the computer (not using Serviio)?

If its ok on the computer, check the Roku Profile section for an identical match for Video/Audio Codec, see if both are mentioned

It might need a slight adjustment if the Audio Codec for this file is slightly different
<<

paul33

Serviio newbie

Posts: 9

Joined: Tue Nov 08, 2016 7:23 pm

Post Wed Nov 16, 2016 11:01 am

Re: No Audio on Roku

Have a look here

https://forums.roku.com/viewtopic.php?p=544088#p544088

Before you spend too much time on this, could very likely be Roku issues
<<

AndrewW

Serviio lover

Posts: 81

Joined: Sat Mar 19, 2011 8:15 am

Post Wed Nov 16, 2016 3:53 pm

Re: No Audio on Roku

Paul33,
The full metadata for the file is

Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf56.40.101
Duration: 00:41:50.80, start: 0.005333, bitrate: 1679 kb/s
Chapter #0:0: start 0.000000, end 132.560000
Metadata:
title : Chapter 01
Chapter #0:1: start 132.560000, end 701.880000
Metadata:
title : Chapter 02
Chapter #0:2: start 701.880000, end 1119.160000
Metadata:
title : Chapter 03
Chapter #0:3: start 1119.160000, end 1348.000000
Metadata:
title : Chapter 04
Chapter #0:4: start 1348.000000, end 1880.320000
Metadata:
title : Chapter 05
Chapter #0:5: start 1880.320000, end 2483.320000
Metadata:
title : Chapter 06
Chapter #0:6: start 2483.320000, end 2510.800000
Metadata:
title : Chapter 07
Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 720x576 [SAR 64:45 DAR 16:9], 1482 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)
Metadata:
handler_name : VideoHandler
Stream #0:1(eng): Audio: ac3 (ac-3 / 0x332D6361), 48000 Hz, stereo, fltp, 192 kb/s (default)
Metadata:
handler_name : SoundHandler
Side data:
audio service type: main
Stream #0:2(eng): Subtitle: mov_text (text / 0x74786574)
Metadata:
handler_name : SubtitleHandler

and this files work both on the PC and Samsung tvs

It was created with the following ffmpeg commend

ffmpeg -loglevel quiet -i "IPFile" -y -vcodec libx264 -acodec ac3 -ac 2 -crf 18 "OPFile"

Happy to be corrected but the below is the matching profile line from Serviio which shoudl match the above file

<MediaFormatProfile mime-type="video/mp4">AVC_MP4_MP_SD_AC3</MediaFormatProfile>
<<

AndrewW

Serviio lover

Posts: 81

Joined: Sat Mar 19, 2011 8:15 am

Post Wed Nov 16, 2016 6:39 pm

Re: No Audio on Roku

Things are getting stranger
i have changed the transcode section of the ROKU profile to
<Video targetContainer="mpegts" targetVCodec="h264" maxVBitrate="12000" targetACodec="aac" aBitrate="128" forceStereo="true">
<Matches container="*" />
</Video>

if i have it rignt this will force transcoding for all files in the profile
sure enough an ffmpeg task is running

ffmpeg -threads 0 -i filename.mp4 -y -c:v libx264 -pix_fmt yuv420p -b:v 12000k -maxrate:v 12000k -bufsize:v 12000k -profile:v baseline -level 3 -preset:v veryfast -crf 10 -r 25 -g 15 -bsf:v h264_mp4toannexb -flags -global_header -an -map 0:0 -sn -f mpegts /tmp/Serviio/transcoding-temp-bff89cbd00d02d80544409c84842d926.stf

strangly i cant see any configuration for aac audio?

ALso now no videos work with my roku, all are silent. I guess because they are all being transcoded. I choose aac as this is the format of the file which worked in the first place
<<

paul33

Serviio newbie

Posts: 9

Joined: Tue Nov 08, 2016 7:23 pm

Post Thu Nov 17, 2016 11:12 am

Re: No Audio on Roku

Hi,
I am getting a bit over my head now
Been trying to fix the same issue myself but getting confused in the profiles

Hope someone with a bit more knowledge can come and help you soon
<<

AndrewW

Serviio lover

Posts: 81

Joined: Sat Mar 19, 2011 8:15 am

Post Fri Nov 18, 2016 4:01 pm

Re: No Audio on Roku

I have a work around
after compiling ffmpeg to enable libfdlk_aac
the following command adds an aac audio stream based on the ac3 stream and sets the default audio stream to the aac one.
The ac3 and video are not re encoded.

ffmpeg -i input.mp4 -map 0:v -map 0:a -map 0:a -c:v copy -c:a:0 libfdk_aac -b:a:0 384k -c:a:1 copy -disposition:a:1 0 -disposition:a:0 default output.mp4

I think this Roku issue is to do with the forwarding or failure to forward AC3 to the display device.

I still think there is an issue with serviio not transcoding to aac, although, the default aac codec for ffmpeg in my opinion is poor compared the the libfdlk one

Return to Serviio Support & Help

Who is online

Users browsing this forum: No registered users and 20 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.