minidlna cannot play some mkv files on roku ultimate

I have tried converting the files with ffmpeg. That does not work. I checked the codec with ffprob, it seems the codecs are supported by roku, but the file does not work, I am not getting any sound.

Here is the command I used:
ffmpeg -i input.mkv -c:v libx264 -preset slow -crf 22 -pix_fmt yuv420p -c:a ac3 output.mp4

The conversion process takes too long anyway. I think I am going to go back to jellyfin, but I would like to stay with minidlna.

Does anybody have any ideas?
 
media file support is always hit or miss with commercial play devices.

start with a short, simple, mkv with low quality a/v rates first. Also might try aac instead of ac3 and limit the bitrates.
 
I think you're starting in the wrong end trying to solve this issue...

First of all, what are "the files"?
mediainfo will generate useful information, you probably don't need to re-encode video.

Transcoding takes quite a bit of processing power, hardware acceleration helps a lot in that regard but I'm not sure what "slow" implies and using -preset slow will not improve overall performance. It's recommended to use fast or even veryfast presets for real time transcoding but at the expense of efficiency.
 
some transcodes i use, no idea what it does for minidlna,

Code:
ffmpeg -i input.mkv  -c:v libxvid -q:v 5 -q:a 5 -c:a aac output.mkv

Code:
    ffmpeg -i "$input" \
           -map 0:v:0 \
           -map 0:a:1 \
           -vf "format=yuv420p" \
           -c:v libx264 \
           -profile:v high \
           -level 4.1 \
           -crf 22 \
           -c:a aac \
           -b:a 512k \
           "$output"
 
media file support is always hit or miss with commercial play devices.

start with a short, simple, mkv with low quality a/v rates first. Also might try aac instead of ac3 and limit the bitrates.
Yep, it's part of why I went to the effort of switching to jellyfin for that.

However, https://support.roku.com/article/share-media-over-usb-or-network , does have a list of a bunch of he supported settings, although I personally don't bother with transcoding, I just choose whatever setting works for me and stick to that. If I ever do start trying to stream over the net, I might change though.
 
Back
Top