Profile For Roku Express & a little help needed
<Matches container="*" vCodec="h264" aCodec="dts-hd" />
<Matches container="*" vCodec="h264" aCodec="dca" />
Felt a little dumb, when I figured out that it was literally commented in the profile. But the dca wasn't there, I think that matches for non-HD DTS as well. Anyway after adding both those lines, I now have 0 audio playback issues. YAY! From what I understand, the roku can PASS DTS. But not directly decode it. Might be nice if the dev was to add a Roku 1080 Media Player (2016+) No DTS profile or something similar to make this more accessible. But if not, at least it's here and some other poor soul will find this post instead of taking hours to figure it out like I did.
- Code:
<Profile id="RokuNo4kApp" name="Roku 1080 Media Player (2016+)" extendsProfileId="RokuMPApp">
<!-- NOTE:
This profile does not restrict the audio to 2 channel stereo. If you are encountering audio issues, add forceStereo="true" to the targetContainer line after the targetACodec setting.
The player should be able to play videos without requiring the maxVBitrate setting. You can experiment if desired.
Roku players do not support mepg2 video.
Every effort has been made to capture videos correctly. If you discover a file being transcoded unnecessarily, please report it in the Serviio forum in the Transcoding section.
-->
<Transcoding>
<Video targetContainer="mpegts" targetVCodec="h264" targetACodec="ac3" aBitrate="512" maxWidth="1920" maxHeight="1080">
<Matches container="*" widthGreaterThan="1920" />
</Video>
<!-- transcode HD video unsupported by device, transcode audio regardless of codec -->
<Video targetContainer="mpegts" targetVCodec="h264" targetACodec="ac3" aBitrate="512">
<Matches container="*" vCodec="vc1" />
<Matches container="*" vCodec="h265" />
</Video>
<!-- Remux h264 video stream, transcode audio only -->
<Video targetContainer="mpegts" targetACodec="ac3" aBitrate="512">
<Matches container="*" vCodec="h264" aCodec="truehd" />
<Matches container="*" vCodec="h264" aCodec="aac" aMultichannel="true" />
<!-- if you have audio issues with DTS HD Audio, uncomment the following line to transcode DTS-HD to DD -->
<Matches container="*" vCodec="h264" aCodec="dts-hd" />
<Matches container="*" vCodec="h264" aCodec="dca" />
</Video>
<!-- Transcode non-H.264 video or FLAC audio -->
<Video targetContainer="mpegts" targetVCodec="h264" targetACodec="ac3" >
<Matches container="*" vCodec="wmv2"/>
<Matches container="*" aCodec="flac"/>
<Matches container="*" vCodec="mpeg1video"/>
<Matches container="*" vCodec="mpeg2video" />
<!-- transcode non-supported containers regardless of codec -->
<Matches container="wtv"/>
<Matches container="avi" />
<Matches container="mpegvideo"/>
<Matches container="mpeg"/>
</Video>
<!-- Remux audio and video streams - for DivX/Xvid in AVI/Matroska -->
<Video targetContainer="mpegts">
<Matches container="avi" vCodec="mpeg4" />
<Matches container="avi" vCodec="msmpeg4" />
</Video>
<!-- if you have issues playing audio files, uncomment the following section to transcode MP3 -->
<!-- <Audio targetContainer="mp3">
<Matches container="*" />
</Audio> -->
</Transcoding>
<OnlineTranscoding>
<Video targetContainer="applehttp"> <!-- dont transcode to ac3 -->
<Matches container="mp4" />
<Matches container="flv" vCodec="h264" />
<Matches container="applehttp" vCodec="h264" />
</Video>
</OnlineTranscoding>
<GenericTranscoding>
<Video targetContainer="mpegts" targetVCodec="h264" targetACodec="ac3"/>
</GenericTranscoding>
<AutomaticImageRotation>true</AutomaticImageRotation>
<LimitImageResolution>false</LimitImageResolution>
</Profile>
Anyhow, onto where I need help. I've got a few videos that won't fast forward/rewind even after selecting the above profile and modifying it. I used ffmpeg to transcode the video stream to another codec and copy the audio stream, but to my surprise, this didn't fix it. I still couldn't FF/REW. But, then I transcoded the audio stream and copied the video stream instead and BOOM, I could RR/FF again. I've included ffprobe results for the problematic file. Could someone help me tailor this profile a bit more to get these types of files to FF/REW?
- Code:
Input #0, matroska,webm, from 'file.mkv':
Metadata:
encoder : libebml v1.3.6 + libmatroska v1.4.9
creation_time : 2018-05-09T00:24:07.000000Z
Duration: 02:20:13.25, start: 0.000000, bitrate: 11154 kb/s
Stream #0:0(eng): Video: h264 (High), yuv420p(progressive), 1920x800, SAR 1:1 DAR 12:5, 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
Metadata:
BPS-eng : 9642618
DURATION-eng : 02:20:13.238000000
NUMBER_OF_FRAMES-eng: 201716
NUMBER_OF_BYTES-eng: 10140705526
_STATISTICS_WRITING_APP-eng: mkvmerge v23.0.0 ('The Bride Said No') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2018-05-09 00:24:07
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:1(eng): Audio: dts (DTS), 48000 Hz, 5.1(side), fltp, 1536 kb/s (default)
Metadata:
BPS-eng : 1509000
DURATION-eng : 02:20:13.248000000
NUMBER_OF_FRAMES-eng: 788742
NUMBER_OF_BYTES-eng: 1586948904
_STATISTICS_WRITING_APP-eng: mkvmerge v23.0.0 ('The Bride Said No') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2018-05-09 00:24:07
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:2(eng): Subtitle: subrip (default) (forced)
Metadata:
title : English Forced
BPS-eng : 130
DURATION-eng : 00:00:06.173000000
NUMBER_OF_FRAMES-eng: 2
NUMBER_OF_BYTES-eng: 101
_STATISTICS_WRITING_APP-eng: mkvmerge v23.0.0 ('The Bride Said No') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2018-05-09 00:24:07
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES