Page 1 of 1

Problems with some MKV files

PostPosted: Wed Dec 25, 2013 6:58 pm
by kimvonklvsgrd
Hey.

I got this Samsung model: UE55F6805.

Most MKV files play flawlessly, and some dont.

I have selected the right profile in both 1.3.1 and 1.4. Using the E/F Profile.

When I browse my movies, I can see that on all the functioning ones the format says MKV or x-mkv. The ones that are not working says simply mpeg, and I cant see any filesize either.
What happens when I start playing a file that is functioning properly, I get the error message "This file may not play properly", and I am only allowed to see 1:03:07 of the whole movie. This is common on everyone that is wrong.
Sometimes I get the error message "This file format is not supported."

With mediainfo I have compared movies that I know are working to the ones that are not. They work on my computer using a regular rendering program.

Someone say that when the movies are encoded they need profile 4-4.1 and not 5-5.1 because of the rendering. But some movies work with the 5.1 profile, some dont. Same with 4.1.
The codec on all the movies are H264.

Does anyone have any clue on how to bypass this? More or less annoying, and I love Serviio. I want to continue using it.

Re: Problems with some MKV files

PostPosted: Wed Dec 25, 2013 11:29 pm
by DenyAll
The MKV's that are working are being streamed natively by Serviio to your TV. The ones that are not working are being transcoded. Serviio will transcode MKV's for your TV if the MKV file uses high level h264 profiles (high and main profiles 5.0 and above, and all high_10 profiles). You can try and tell Serviio to not transcode these by commenting out (or removing the lines):
  Code:
<Matches container="*" vCodec="h264" profile="high" levelGreaterThan="4.2" />
<Matches container="*" vCodec="h264" profile="main" levelGreaterThan="4.2" />
from the Samsung E/F profile (edit profiles.xml, and after editing restart your PC). I suspect however this may cause some MKVs not to play at all, or if they do play, to stutter badly as the TV may not have the grunt to decode them.

If that is the case then we need to work out why the transcoded file is not playing. What happens if you start playing the movie, stop it (and do nothing else with Serviio), allow Serviio to fully transcode the video (monitor processes from all users on your PC until ffmpeg finishes) and then restart the movie. Does this then play.

Someone say that when the movies are encoded they need profile 4-4.1 and not 5-5.1 because of the rendering. But some movies work with the 5.1 profile, some dont. Same with 4.1.
Very likely the h264 profile level in your MKV file headers are wrong (this is what you see when viewing the profile level using MediaInfo). In the case of the Samsung, Serviio will calculate the h264 profile level rather than use the file header information - see http://wiki.serviio.org/doku.php?id=get_h264_level.

Re: Problems with some MKV files

PostPosted: Thu Dec 26, 2013 3:08 pm
by kimvonklvsgrd
DenyAll wrote:The MKV's that are working are being streamed natively by Serviio to your TV. The ones that are not working are being transcoded. Serviio will transcode MKV's for your TV if the MKV file uses high level h264 profiles (high and main profiles 5.0 and above, and all high_10 profiles). You can try and tell Serviio to not transcode these by commenting out (or removing the lines):
  Code:
<Matches container="*" vCodec="h264" profile="high" levelGreaterThan="4.2" />
<Matches container="*" vCodec="h264" profile="main" levelGreaterThan="4.2" />
from the Samsung E/F profile (edit profiles.xml, and after editing restart your PC). I suspect however this may cause some MKVs not to play at all, or if they do play, to stutter badly as the TV may not have the grunt to decode them.

If that is the case then we need to work out why the transcoded file is not playing. What happens if you start playing the movie, stop it (and do nothing else with Serviio), allow Serviio to fully transcode the video (monitor processes from all users on your PC until ffmpeg finishes) and then restart the movie. Does this then play.

Someone say that when the movies are encoded they need profile 4-4.1 and not 5-5.1 because of the rendering. But some movies work with the 5.1 profile, some dont. Same with 4.1.
Very likely the h264 profile level in your MKV file headers are wrong (this is what you see when viewing the profile level using MediaInfo). In the case of the Samsung, Serviio will calculate the h264 profile level rather than use the file header information - see http://wiki.serviio.org/doku.php?id=get_h264_level.



I will try this during the weekend and give a feedback. Thanks for the pointers, I hope they solve the problem.

Re: Problems with some MKV files

PostPosted: Mon Dec 30, 2013 8:39 am
by kimvonklvsgrd
I tried like you said, putting the codes in the profiles.xml. All it did was making all movies stutter.

I also tried to turn off all my computers, and only have the one with Serviio running. It doesnt help to let it transcode, as the error message pops ut just as soon as I start playing the file.

Re: Problems with some MKV files

PostPosted: Mon Dec 30, 2013 9:35 am
by Iveky
can you upload that movie somwhere, so i can download and
try playing with profile settings?

Sent from my LG-E440 using Tapatalk 2

Re: Problems with some MKV files

PostPosted: Mon Dec 30, 2013 12:31 pm
by kimvonklvsgrd
Iveky wrote:can you upload that movie somwhere, so i can download and
try playing with profile settings?

Sent from my LG-E440 using Tapatalk 2


Im sorry, but the file is too big. Besides, its not a problem with just 1 movie, its a problem with movies that are encoded with a profile higher than 4.1. 5.0 movies stutter like hell, and 5.1 movies doesnt show more than 1h,3min and 7 sec.

Only solution I got is to re-encode the movies to 4.1.

Re: Problems with some MKV files

PostPosted: Mon Dec 30, 2013 12:34 pm
by Iveky
point me to torrent of one of such files?

Sent from my LG-E440 using Tapatalk 2

Re: Problems with some MKV files

PostPosted: Sun Jan 05, 2014 7:46 am
by DenyAll
All it did was making all movies stutter.
Suspected this may be the case - this confirms that you do need to transcode this level of h264 profile.

the next step is to work out why the transcoded file doesn't work. You need to play with the line:
<Video targetContainer="mpegts" targetVCodec="mpeg2video" targetACodec="ac3" aBitrate="192" forceInheritance="true">

Remember after changing anything in profiles.xml, save your file and restart your PC. For starters try removing the aBitrate="192" bit (I note that other transcode instruction in the profile dont have this).

Re: Problems with some MKV files

PostPosted: Wed Jan 15, 2014 9:40 am
by kimvonklvsgrd
DenyAll wrote:
All it did was making all movies stutter.
Suspected this may be the case - this confirms that you do need to transcode this level of h264 profile.

the next step is to work out why the transcoded file doesn't work. You need to play with the line:
<Video targetContainer="mpegts" targetVCodec="mpeg2video" targetACodec="ac3" aBitrate="192" forceInheritance="true">

Remember after changing anything in profiles.xml, save your file and restart your PC. For starters try removing the aBitrate="192" bit (I note that other transcode instruction in the profile dont have this).



This did not work either :/ Guess I just have to re encode all the not working movies.