Page 1 of 1

MKV Files Not Playable with New Version

PostPosted: Fri Sep 30, 2011 12:15 am
by cultan
I am streaming to a Sony BDP S370 Blu-Ray player. When I upgraded to V 06.0 most of my MKV files would not play - message something like format not supported. Had to resort back to version 5.2 in order to play these files again. Not sure why or how to correct.

Re: MKV Files Not Playable with New Version

PostPosted: Fri Sep 30, 2011 7:19 am
by Illico
Could you provide some information about your mkv files ("ffmpeg -i" or MediaInfo result) ?

Re: MKV Files Not Playable with New Version

PostPosted: Sat Oct 01, 2011 12:06 am
by cultan
Two examples of files that will not play with the new version:

Re: MKV Files Not Playable with New Version

PostPosted: Sat Oct 15, 2011 2:13 am
by gali
Hi, yes I confirm, same issue since the upgrade. Would you have an ETA on a fix for this please, Serviio is our only hope thanks to SONY...

Re: MKV Files Not Playable with New Version

PostPosted: Sat Oct 22, 2011 8:45 pm
by patters
I think there's another thread about this. It's a bug in FFmpeg I believe. You ought to be able to fix things by swapping the FFmpeg.exe in your serviio/bin folder with the one from 0.5.2, however it won't have librtmp compiled in so you won't be able to use online feeds.

Zip was going to see about compiling FFmpeg with an old patch that used to be necessary to fix this, but which in theory should have been comitted to the source for FFmpeg 0.8. What OS are you running on?

@Zip - if you send me the patch I ought to be able to compile...

Re: MKV Files Not Playable with New Version

PostPosted: Tue Oct 25, 2011 1:36 am
by gali
Hi, I use Win7 64 bit. I will try swapping the FFmpeg.exe and see what that does for me. I have also noticed that .mkv over 9GB only plays few seconds and then stop. So will let you know once I have swapped it out what the findings are.

Thanks again.

Re: MKV Files Not Playable with New Version

PostPosted: Tue Oct 25, 2011 8:52 pm
by diesel
Hi,

Think I might also have the FFMPEG issue. Running 0.6.01 Windows 7 64 Bit. Don't have an old Serviio, anyone help me out with a good FFMPEG.

Here's the output when running from cmd line. (See final 2 ines)

  Code:
C:\Program Files (x86)\Serviio\lib>ffmpeg.exe -i H:\Temp\GREEN_ZONE_DTS.mkv -y -vcodec copy -copyts -acodec ac3 -ab 320k -ac 2 -map 0:0 -map 0:1 -sn -f mpegts C:\Serviio\Serviio\transcoding-temp-587-MPEG2TS.stf
ffmpeg version N-31480-g8bc3a48, Copyright (c) 2000-2011 the FFmpeg developers
  built on Jul 14 2011 23:37:53 with gcc 4.4.2
  configuration: --enable-static --disable-shared --disable-ffplay --disable-ffserver --enable-memalign-hack --enable-libmp3lame --enable-librtmp --extra-libs='-lrtmp -lpolarssl -lws2_32 -lwinmm' --arch=x86 --enable-runtime-cpudetect --enable-pthreads --target-os=mingw32 --cross-prefix=i686-mingw32- --pkg-config=pkg-config
  libavutil    51. 11. 0 / 51. 11. 0
  libavcodec   53.  8. 0 / 53.  8. 0
  libavformat  53.  6. 0 / 53.  6. 0
  libavdevice  53.  2. 0 / 53.  2. 0
  libavfilter   2. 25. 0 /  2. 25. 0
  libswscale    2.  0. 0 /  2.  0. 0
[matroska,webm @ 003dbfe0] Estimating duration from bitrate, this may be inaccurate
Input #0, matroska,webm, from 'H:\Temp\GREEN_ZONE_DTS.mkv':
  Duration: 01:54:46.42, start: 0.000000, bitrate: 1536 kb/s
    Stream #0.0: Video: vc1 (Advanced), yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 23.98 tbc (default)
    Stream #0.1: Audio: dca (DTS-HD MA), 48000 Hz, 5.1, s16, 1536 kb/s (default)

[ac3 @ 0139bfa0] channel_layout not specified
[ac3 @ 0139bfa0] No channel layout specified. The encoder will guess the layout, but it might be incorrect.
[mpegts @ 003db6e0] muxrate VBR, pcr every 2 pkts, sdt every 200, pat/pmt every40 pkts
Output #0, mpegts, to 'C:\Serviio\Serviio\transcoding-temp-587-MPEG2TS.stf':
  Metadata:
    encoder         : Lavf53.6.0
    Stream #0.0: Video: WVC1 / 0x31435657, yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], q=2-31, 90k tbn, 23.98 tbc (default)
    Stream #0.1: Audio: ac3, 48000 Hz, stereo, s16, 320 kb/s (default)
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
Press [q] to stop, [?] for help
Input stream #0.1 frame changed from rate:48000 fmt:s16 ch:6 to rate:48000 fmt:s16 ch:2
[mpegts @ 003db6e0] first pts value must set
av_interleaved_write_frame(): Operation not permitted

Re: MKV Files Not Playable with New Version

PostPosted: Wed Oct 26, 2011 7:01 am
by Illico
yes probably the ffmpeg issue, look at this: viewtopic.php?f=11&t=3778&start=10#p25208

Re: MKV Files Not Playable with New Version

PostPosted: Wed Oct 26, 2011 8:17 pm
by diesel
thx, checking it out now.

Re: MKV Files Not Playable with New Version

PostPosted: Thu Oct 27, 2011 11:50 am
by zip
try not to select Downmix to stereo.

Re: MKV Files Not Playable with New Version

PostPosted: Thu Oct 27, 2011 5:59 pm
by diesel
Tried that zip but no luck.

I did try the new windows FFMPEG build 25/10/2011 and got the same result.
libavutil 51. 22. 0 / 51. 22. 0
libavcodec 53. 23. 0 / 53. 23. 0
libavformat 53. 17. 0 / 53. 17. 0
libavdevice 53. 4. 0 / 53. 4. 0
libavfilter 2. 45. 0 / 2. 45. 0
libswscale 2. 1. 0 / 2. 1. 0
libpostproc 51. 2. 0 / 51. 2. 0

BTW - Am I OK to do this - or is your FFMPEG a custom build?

My workflow for this file is >AVCHD >tsmuxer demux>mkvmerge the H264 and dts - tried with and without header compression. Looks like Serviio is picking up VC1_TS_AP_L2_AC3_ISO. Using your Sony BD profile on a BD S570 but FFMPEG (old and new) failing with:
[mpegts @ 0003F420] first pts value must set
av_interleaved_write_frame(): Operation not permitted

Full log.
C:\Program Files (x86)\Serviio\lib>ffmpeg.exe -i H:\Temp\GREEN_ZONE_DTS.mkv -y -
vcodec copy -copyts -acodec ac3 -ab 320k -ac 6 -map 0:0 -map 0:1 -sn -f mpegts C
:\Serviio\Serviio\transcoding-temp-595-MPEG2TS.stf
ffmpeg version N-31480-g8bc3a48, Copyright (c) 2000-2011 the FFmpeg developers
built on Jul 14 2011 23:37:53 with gcc 4.4.2
configuration: --enable-static --disable-shared --disable-ffplay --disable-ffs
erver --enable-memalign-hack --enable-libmp3lame --enable-librtmp --extra-libs='
-lrtmp -lpolarssl -lws2_32 -lwinmm' --arch=x86 --enable-runtime-cpudetect --enab
le-pthreads --target-os=mingw32 --cross-prefix=i686-mingw32- --pkg-config=pkg-co
nfig
libavutil 51. 11. 0 / 51. 11. 0
libavcodec 53. 8. 0 / 53. 8. 0
libavformat 53. 6. 0 / 53. 6. 0
libavdevice 53. 2. 0 / 53. 2. 0
libavfilter 2. 25. 0 / 2. 25. 0
libswscale 2. 0. 0 / 2. 0. 0
[matroska,webm @ 013bbfe0] Estimating duration from bitrate, this may be inaccur
ate
Input #0, matroska,webm, from 'H:\Temp\GREEN_ZONE_DTS.mkv':
Duration: 01:54:46.42, start: 0.000000, bitrate: 1536 kb/s
Stream #0.0: Video: vc1 (Advanced), yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], 2
3.98 fps, 23.98 tbr, 1k tbn, 23.98 tbc (default)
Stream #0.1: Audio: dca (DTS-HD MA), 48000 Hz, 5.1, s16, 1536 kb/s (default)

[ac3 @ 013be7a0] channel_layout not specified
[ac3 @ 013be7a0] No channel layout specified. The encoder will guess the layout,
but it might be incorrect.
[mpegts @ 013bb6c0] muxrate VBR, pcr every 2 pkts, sdt every 200, pat/pmt every
40 pkts
Output #0, mpegts, to 'C:\Serviio\Serviio\transcoding-temp-595-MPEG2TS.stf':
Metadata:
encoder : Lavf53.6.0
Stream #0.0: Video: WVC1 / 0x31435657, yuv420p, 1920x1080 [PAR 1:1 DAR 16:9]
, q=2-31, 90k tbn, 23.98 tbc (default)
Stream #0.1: Audio: ac3, 48000 Hz, 5.1, s16, 320 kb/s (default)
Stream mapping:
Stream #0.0 -> #0.0
Stream #0.1 -> #0.1
Press [q] to stop, [?] for help
[mpegts @ 013bb6c0] first pts value must set
av_interleaved_write_frame(): Operation not permitted

Re: MKV Files Not Playable with New Version

PostPosted: Fri Oct 28, 2011 1:53 pm
by zip
actually I think I remember FFmpeg having issues with muxing VC1 to mpegts. You might either use TSmuxer to do that manually (ie convert your mkv VC1/DTS to mpegts) to keep quality or try to create your files with AC3 audio track instead of DTS so that you don't have to transcode anything.

Re: MKV Files Not Playable with New Version

PostPosted: Sun Oct 30, 2011 8:47 pm
by gali
Thanks, for now I re installed the 0.5.2 again and my mkv's are playing again, as long as it works, no new features will benefit me as long as I have a Sony anyway :) Next time round I am buying a Panasonic or Samsung!

Re: MKV Files Not Playable with New Version

PostPosted: Mon Oct 31, 2011 6:20 pm
by patters
So does VC1 remuxing actually work with a Sony using 0.5.2? I don't have a sample in mkv, but I have VC1 in m2ts from some kind of HD-DVD demo. On the Sony BDP it plays with muted audio.
What happens if you take the ffmpeg from 0.5.2 and use it with 0.6.0.1 (obviously online feeds won't work, but it would be useful to know whether it fixes stuff)? I seem to remember that I couldn't find anything that would remux VC1 properly.

Re: MKV Files Not Playable with New Version

PostPosted: Mon Oct 31, 2011 8:25 pm
by gali
All I can say is that my .mkv's now play again that did not under 0.6.0.1. I still find at times that it will come up saying 'File type not recognised', but then I just try it again and it plays fine. I am still to find a DLNA player taht will play mkv's over 8GB

Re: MKV Files Not Playable with New Version

PostPosted: Mon Oct 31, 2011 10:23 pm
by patters
I have recently watched a 10GB mkv on my Sony BDP so I'm not sure why you would have problems. It was h264 - are all yours VC1?