logoalt Hacker News

sgctoday at 3:10 AM2 repliesview on HN

I have a problem that it constantly tries to re-encode video that could be played perfectly fine in their player or the mpv shim. I wound up just mounting my remote drives and playing in my local mpv. I don't really use it because of that. Unfortunate because otherwise I love a lot of things about it.


Replies

andwurtoday at 1:26 PM

I too have run into this problem on a number of devices. The client's supported codec/media format detection logic appears to be extremely pessimistic. To the point that the mere existence of certain audio track formats and subtitles can trigger transcoding, even when said tracks/subtitles aren't actively used. The same files played via MPV on a file share, i.e. no transcoding possible, play without issue.

I've tried tweaking both the clients and server to be less pessimistic, i.e. see if the active media elements are supported, but even then it really fights it. I think the best approach would be rewrite the clients to adopt a (try || transcode) strategy rather than (guess || transcode), but that looked to be a major piece of work.

port11today at 3:05 PM

You can check why it’s re-encoding, there’s some guides out there. In my case it was the subtitles! Turns out Safari can’t handle all types of subtitles. Might be worth looking into it.