I tried the DLNA feature: it works fine but the load is very very long (I have large mkv files, about 8G).
First I tried to add a new transcoding configuration to convert from mkv to raw, without success.
After, I tried to enable transcoding in the SubsonicContentDirectory class by modifying the createResourceForSong() method, to add suffix and remove the raw format:
protected Res createResourceForSong(MediaFile song) {
Player player = playerService.getGuestPlayer(null);
String suffix = FilenameUtils.getExtension(song.getPath());
String url = getBaseUrl() + "stream?id=" + song.getId() + "&player=" + player.getId() + "&suffix=" + suffix;
String mimeTypeString = StringUtil.getMimeType(suffix);
MimeType mimeType = mimeTypeString == null ? null : MimeType.valueOf(mimeTypeString);
Res res = new Res(mimeType, null, url);
res.setDuration(formatDuration(song.getDurationSeconds()));
return res;
}
Now, the transcoding is performed (I can see ffmpeg process), but nothing is played on the DLNA device.
Any idea ?
Thanks,
Regards
JB
Anonymous