FAQ  •  Register  •  Login

Possible PS3 mkv issues?

<<

lselinger

Serviio newbie

Posts: 7

Joined: Tue Oct 25, 2011 2:10 am

Post Tue Oct 25, 2011 2:20 am

Possible PS3 mkv issues?

So far I've tried playing about 10 files and I always get the same type of output. When trying to transcode mkv's I see this in the logging:

  Code:
2011-10-24 20:07:53,293 DEBUG [FFMPEGWrapper] Invoking FFmpeg to transcode video file: /mt/Videos/TV/American Dad/Season 5/American Dad - S05E09 - Raptures Delight 720p WEB DL DD5 1 h 264-TjHD.mkv
2011-10-24 20:07:53,294 DEBUG [ProcessExecutor] Starting ffmpeg -i /mt/Videos/TV/American Dad/Season 5/American Dad - S05E09 - Raptures Delight 720p WEB DL DD5 1 h 264-TjHD.mkv -y -vcodec copy -vbsf h264_mp4toannexb -copyts -acodec copy -map 0:0 -map 0:1 -sn -f mpegts /tmp/Serviio/transcoding-temp-589-MPEG2TS.stf
2011-10-24 20:07:53,438 WARN  [ProcessExecutor] Process ffmpeg has a return code of 1! This is a possible error.
2011-10-24 20:07:53,439 DEBUG [TranscodingJobListener] Transcoding finished; successful: false
2011-10-24 20:07:53,794 ERROR [ResourceTransportRequestHandler] Error while processing resource, sending back 500 error. Message: FFmpeg execution failed
java.io.IOException: FFmpeg execution failed
   at org.serviio.delivery.resource.AbstractTranscodingDeliveryEngine.retrieveTranscodedResource(AbstractTranscodingDeliveryEngine.java:117)
   at org.serviio.delivery.resource.AbstractDeliveryEngine.deliver(AbstractDeliveryEngine.java:93)
   at org.serviio.delivery.MediaResourceRetrievalStrategy.retrieveResource(MediaResourceRetrievalStrategy.java:121)
   at org.serviio.upnp.webserver.ResourceTransportRequestHandler.handleRequest(ResourceTransportRequestHandler.java:116)
   at org.serviio.upnp.webserver.AbstractRequestHandler.handle(AbstractRequestHandler.java:54)
   at org.apache.http.protocol.HttpService.doService(HttpService.java:293)
   at org.serviio.upnp.webserver.ServiioHttpService.doService(ServiioHttpService.java:58)
   at org.apache.http.protocol.HttpService.handleRequest(HttpService.java:212)
   at org.serviio.upnp.webserver.WebServer$WorkerThread.run(WebServer.java:187)
2011-10-24 20:07:53,799 DEBUG [WebServer] Incoming connection from /192.168.69.7:49446
2011-10-24 20:07:53,800 DEBUG [ResourceTransportRequestHandler] GET /resource/589/MEDIA_ITEM/AVC_TS_MP_HD_AC3_ISO$0 HTTP/1.1, headers = [Host: 192.168.69.169:8895,User-Agent: PLAYSTATION 3,Connection: Keep-Alive,Accept-Encoding: identity,transferMode.dlna.org: Streaming,TimeSeekRange.dlna.org: npt=0.000-]]
2011-10-24 20:07:53,800 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.69.7
2011-10-24 20:07:53,801 DEBUG [ResourceTransportRequestHandler] Resource request accepted. Using client 'IPAddress=/192.168.69.7, Profile=Playstation 3'
2011-10-24 20:07:53,801 DEBUG [ResourceTransportRequestHandler] Request for resource 589 and type 'MEDIA_ITEM' received
2011-10-24 20:07:53,801 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 589 (local)
2011-10-24 20:07:53,802 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 589)
2011-10-24 20:07:53,802 DEBUG [VideoDAOImpl] Reading a Video (id = 589)
2011-10-24 20:07:53,802 DEBUG [VideoDeliveryEngine] Delivering item '589' for client 'IPAddress=/192.168.69.7, Profile=Playstation 3'
2011-10-24 20:07:53,803 DEBUG [VideoDeliveryEngine] Delivering file 'American Dad - S05E09 - Raptures Delight 720p WEB DL DD5 1 h 264-TjHD.mkv' using transcoding
2011-10-24 20:07:53,803 DEBUG [AbstractTranscodingDeliveryEngine] A suitable transcoding job already exists, re-use it for client 'IPAddress=/192.168.69.7, Profile=Playstation 3'
2011-10-24 20:07:53,803 ERROR [ResourceTransportRequestHandler] Error while processing resource, sending back 500 error. Message: FFmpeg execution failed
java.io.IOException: FFmpeg execution failed
   at org.serviio.delivery.resource.AbstractTranscodingDeliveryEngine.retrieveTranscodedResource(AbstractTranscodingDeliveryEngine.java:117)
   at org.serviio.delivery.resource.AbstractDeliveryEngine.deliver(AbstractDeliveryEngine.java:93)
   at org.serviio.delivery.MediaResourceRetrievalStrategy.retrieveResource(MediaResourceRetrievalStrategy.java:121)
   at org.serviio.upnp.webserver.ResourceTransportRequestHandler.handleRequest(ResourceTransportRequestHandler.java:116)
   at org.serviio.upnp.webserver.AbstractRequestHandler.handle(AbstractRequestHandler.java:54)
   at org.apache.http.protocol.HttpService.doService(HttpService.java:293)
   at org.serviio.upnp.webserver.ServiioHttpService.doService(ServiioHttpService.java:58)
   at org.apache.http.protocol.HttpService.handleRequest(HttpService.java:212)
   at org.serviio.upnp.webserver.WebServer$WorkerThread.run(WebServer.java:187


So I tried manually running the ffmpeg command:
  Code:
ffmpeg -i "/mt/Videos/TV/American Dad/Season 5/American Dad - S05E09 - Raptures Delight 720p WEB DL DD5 1 h 264-TjHD.mkv" -y -vcodec copy -vbsf h264_mp4toannexb -copyts -acodec copy -map 0:0 -map 0:1 -sn -f mpegts /tmp/Serviio/transcoding-temp-589-MPEG2TS.stf
FFmpeg version SVN-r0.5.1-4:0.5.1-1ubuntu1.2, Copyright (c) 2000-2009 Fabrice Bellard, et al.
  configuration: --extra-version=4:0.5.1-1ubuntu1.2 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --disable-stripping --disable-vhook --enable-runtime-cpudetect --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --enable-shared --disable-static
  libavutil     49.15. 0 / 49.15. 0
  libavcodec    52.20. 1 / 52.20. 1
  libavformat   52.31. 0 / 52.31. 0
  libavdevice   52. 1. 0 / 52. 1. 0
  libavfilter    0. 4. 0 /  0. 4. 0
  libswscale     0. 7. 1 /  0. 7. 1
  libpostproc   51. 2. 0 / 51. 2. 0
  built on Sep 16 2011 17:08:44, gcc: 4.4.3

Seems stream 0 codec frame rate differs from container frame rate: 47.95 (48000/1001) -> 24.00 (24/1)
Input #0, matroska, from '/mt/Videos/TV/American Dad/Season 5/American Dad - S05E09 - Raptures Delight 720p WEB DL DD5 1 h 264-TjHD.mkv':
  Duration: 00:21:54.20, start: 0.000000, bitrate: N/A
    Stream #0.0: Video: h264, yuv420p, 960x720, PAR 1:1 DAR 4:3, 24 tbr, 1k tbn, 47.95 tbc
    Stream #0.1(eng): Audio: ac3, 48000 Hz, 5.1, s16
Output #0, mpegts, to '/tmp/Serviio/transcoding-temp-589-MPEG2TS.stf':
    Stream #0.0: Video: libx264, yuv420p, 960x720 [PAR 1:1 DAR 4:3], q=2-31, 90k tbn, 1k tbc
    Stream #0.1(eng): Audio: ac3, 48000 Hz, 5.1, s16
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
Press [q] to stop encoding
[NULL @ 0xf76d70]error, non monotone timestamps 7470 >= 3780
av_interleaved_write_frame(): Error while opening file


99% of my files are mkv and from just some quick searches it may be related but I can't seem to nail down a fix. Any suggestions? Would a new build of ffmpeg help? I thought I had a pretty similar set up to a few people who have had no issues at all so I'm not sure what all is b0rked on my side or if I'm missing something. Any help is greatly appreciated!!
Last edited by lselinger on Tue Oct 25, 2011 12:28 pm, edited 1 time in total.
<<

moltra

DLNA master

Posts: 1871

Joined: Thu Mar 24, 2011 11:00 pm

Location: Ohio USA

Post Tue Oct 25, 2011 2:21 am

Re: Possible PS3 mkv issues?

Mark
Beta Tester Group
http://www.serviidb.com Online media resource repository

Netgear EVA2000 | Samsung BD-D5300 | XBOX 360 | Windows 7 | Mint Debian 12 | Raxz Maxx
HowTo: Provide supported formats of a device HowTo: Record a new ticket on Bitbucket
HowTo: Provide details of a video file that doesn't play HowTo: Turn on detailed logging
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Tue Oct 25, 2011 8:17 am

Re: Possible PS3 mkv issues?

you FFmpeg is pretty old, you should upgrade. If it doesn't help you might have to apply path for FFmpeg issue 807.
<<

lselinger

Serviio newbie

Posts: 7

Joined: Tue Oct 25, 2011 2:10 am

Post Tue Oct 25, 2011 12:23 pm

Re: Possible PS3 mkv issues?

Ok (thanks for the pointers guys) ... I built the latest snapshot of ffmpeg/x264 etc (could not for the life of me get librtmp linked in ... I grabbed the git and built it but couldn't link it but I still got ffmpeg built :D Now I get this:

  Code:
ffmpeg -i "/mt/Videos/TV/American Dad/Season 5/American Dad - S05E09 - Raptures Delight 720p WEB DL DD5 1 h 264-TjHD.mkv" -y -vcodec copy -vbsf h264_mp4toannexb -copyts -acodec copy -map 0:0 -map 0:1 -sn -f mpegts /tmp/Serviio/transcoding-temp-589-MPEG2TS.stf
ffmpeg version 0.8.5.git, Copyright (c) 2000-2011 the FFmpeg developers
  built on Oct 25 2011 06:14:33 with gcc 4.4.3
  configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-libfaac --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-x11grab --enable-static --disable-shared --disable-ffplay --disable-ffserver --enable-memalign-hack --enable-libmp3lame --enable-runtime-cpudetect --enable-pthreads --enable-libvpx
  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
Input #0, matroska,webm, from '/mt/Videos/TV/American Dad/Season 5/American Dad - S05E09 - Raptures Delight 720p WEB DL DD5 1 h 264-TjHD.mkv':
  Duration: 00:21:54.20, start: 0.000000, bitrate: 3106 kb/s
    Stream #0:0: Video: h264 (Main), yuv420p, 960x720 [SAR 1:1 DAR 4:3], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
    Stream #0:1(eng): Audio: ac3, 48000 Hz, 5.1(side), s16, 384 kb/s (default)
    Metadata:
      title           : DD 5.1 384Kbps
[mpegts @ 0x2798020] muxrate VBR, pcr every 2 pkts, sdt every 200, pat/pmt every 40 pkts
Output #0, mpegts, to '/tmp/Serviio/transcoding-temp-589-MPEG2TS.stf':
  Metadata:
    encoder         : Lavf53.17.0
    Stream #0:0: Video: h264, yuv420p, 960x720 [SAR 1:1 DAR 4:3], q=2-31, 90k tbn, 23.98 tbc (default)
    Stream #0:1(eng): Audio: ac3, 48000 Hz, 5.1(side), 384 kb/s (default)
    Metadata:
      title           : DD 5.1 384Kbps
Stream mapping:
  Stream #0.0 -> #0.0 (copy)
  Stream #0.1 -> #0.1 (copy)
Press [q] to stop, [?] for help
[mpegts @ 0x2798020] pts < dts in stream 0
av_interleaved_write_frame(): Invalid argument


I'm guessing/hoping the Invalid argument is just a result of me not actually connecting to or trying the stream? Basically I'm doing this all remotely right now so I just tested the original ffmpeg string I had fail before to see if the new version fixed my issues but I can't actually play the files where I am so I'll have to wait until I get home. I DID confirm that it created the file in tmp:

  Code:
# ls /tmp/Serviio/
transcoding-temp-589-MPEG2TS.stf


Which it never did before so I think I'm getting somewhere (if not solved already). Should I be seeing the av_interleaved_write_frame(): Invalid argument error becasue I'm just trying to run the ffmpeg command from cli?

Thanks again!!! :mrgreen:
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Tue Oct 25, 2011 1:18 pm

Re: Possible PS3 mkv issues?

That's the issue 807. Try applying some of these patches: http://roundup.libav.org/issue807
<<

lselinger

Serviio newbie

Posts: 7

Joined: Tue Oct 25, 2011 2:10 am

Post Tue Oct 25, 2011 1:39 pm

Re: Possible PS3 mkv issues?

I'm not seeing the same error really ... I tried patching (although they were from February and I grabbed the last snapshot) but they all failed except like 1 chunk. I think the patches were against an older code rev but I'll try recompiling and see if it changes anything

EDIT: the chunk that was successful mangled my build lol ... I'm rebuilding again against the latest snapshot. If that still doesn't work I'll try a different version? Does anyone know of a stable release that works properly? I assumed the latest snap would have a lot of fixes in it :shock:
Last edited by lselinger on Tue Oct 25, 2011 1:43 pm, edited 1 time in total.
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Tue Oct 25, 2011 1:42 pm

Re: Possible PS3 mkv issues?

lselinger wrote:I'm not seeing the same error really ...

It is, they just updated the error message.
I'll try to apply this patch for 0.6.1, probably manually, as you said the patches are old.
<<

lselinger

Serviio newbie

Posts: 7

Joined: Tue Oct 25, 2011 2:10 am

Post Tue Oct 25, 2011 1:45 pm

Re: Possible PS3 mkv issues?

zip wrote:
lselinger wrote:I'm not seeing the same error really ...

It is, they just updated the error message.
I'll try to apply this patch for 0.6.1, probably manually, as you said the patches are old.


well ... crappy :D I'll keep hammering away at it ... I really want this to work!! lol ... I use ps3mediaserver right now but this feels a lot 'cleaner'
EDIT: I'm upgrading kubuntu to a non LTS version (11.04 I think) ... I have a couple friends that say theirs is working fine with ffmpeg 0.6.1 so here's hoping
<<

moltra

DLNA master

Posts: 1871

Joined: Thu Mar 24, 2011 11:00 pm

Location: Ohio USA

Post Tue Oct 25, 2011 5:55 pm

Re: Possible PS3 mkv issues?

if you are updating ubuntu watch for Logical Volume manager (LVM) it is a raid type setup. You need to disable the lvm drive and export it so you can import it on the new system. It took me 3 days to figure out how to recover my storage drive.
Mark
Beta Tester Group
http://www.serviidb.com Online media resource repository

Netgear EVA2000 | Samsung BD-D5300 | XBOX 360 | Windows 7 | Mint Debian 12 | Raxz Maxx
HowTo: Provide supported formats of a device HowTo: Record a new ticket on Bitbucket
HowTo: Provide details of a video file that doesn't play HowTo: Turn on detailed logging
<<

lselinger

Serviio newbie

Posts: 7

Joined: Tue Oct 25, 2011 2:10 am

Post Tue Oct 25, 2011 8:27 pm

Re: Possible PS3 mkv issues?

well I didn't have any issues with my drives but this ffmpeg thing is really p155ing me off!! I upgraded for nothing, it's still not working all is bad. I need to step back for a bit and see if I can install the specific version I know is working on another ubuntu system :evil: :evil:
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Tue Oct 25, 2011 10:39 pm

Re: Possible PS3 mkv issues?

you should be able to apply the 2 patches (util.c and matroskadec2) manually, it's just a few lines.
<<

lselinger

Serviio newbie

Posts: 7

Joined: Tue Oct 25, 2011 2:10 am

Post Wed Oct 26, 2011 12:32 pm

Re: Possible PS3 mkv issues?

zip wrote:you should be able to apply the 2 patches (util.c and matroskadec2) manually, it's just a few lines.


The code structs don't even exist so I can't patch anything. In the newest version of the ffmpeg code it looks like all of this has been either rewritten to fix the issues, or just rewritten in general. I can't apply those patches because the objects/stanzas they patch, no longer exist :(

EDIT: tried patching the sources on the Serviio download page manually however the lines of code that were changed no longer exist ... there has to be someone on this list that has gotten it working in Linux?? and if they have I need the package they are using lol ... I'm at a loss again

EDIT2: It's only some mkv files ... others work fine:

  Code:
# ffmpeg -i /mt/Videos/TV/The\ Walking\ Dead/Season\ 1/The\ Walking\ Dead\ -\ S01E03\ -\ 720p\ BluRay\ x264-SiNNERS.mkv -y -vcodec copy -vbsf h264_mp4toannexb -copyts -acodec copy -map 0:0 -map 0:1 -sn -f mpegts /tmp/Serviio/transcoding-temp-589-MPEG2TS.stf
ffmpeg version 0.8.git, Copyright (c) 2000-2011 the FFmpeg developers
  built on Oct 26 2011 07:24:19 with gcc 4.5.2
  configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-libfaac --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-x11grab --enable-static --disable-shared --disable-ffplay --disable-ffserver --enable-memalign-hack --enable-libmp3lame --enable-librtmp --enable-runtime-cpudetect --enable-pthreads --enable-libvpx
  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
  libpostproc  51.  2. 0 / 51.  2. 0
[matroska,webm @ 0x2ac5440] Estimating duration from bitrate, this may be inaccurate
Input #0, matroska,webm, from '/mt/Videos/TV/The Walking Dead/Season 1/The Walking Dead - S01E03 - 720p BluRay x264-SiNNERS.mkv':                                                                                                           
  Duration: 00:45:11.10, start: 0.000000, bitrate: 640 kb/s
    Stream #0.0(eng): Video: h264 (High), yuv420p, 1280x720, PAR 1:1 DAR 16:9, 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
    Stream #0.1(eng): Audio: ac3, 48000 Hz, 5.1, s16, 640 kb/s (default)
    Stream #0.2(eng): Subtitle: [0][0][0][0] / 0x0000
[mpegts @ 0x2ac8da0] muxrate VBR, pcr every 2 pkts, sdt every 200, pat/pmt every 40 pkts
Output #0, mpegts, to '/tmp/Serviio/transcoding-temp-589-MPEG2TS.stf':
  Metadata:
    encoder         : Lavf53.6.0
    Stream #0.0(eng): Video: libx264, yuv420p, 1280x720 [PAR 1:1 DAR 16:9], q=2-31, 90k tbn, 23.98 tbc (default)
    Stream #0.1(eng): Audio: ac3, 48000 Hz, 5.1, 640 kb/s (default)
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
Press [q] to stop, [?] for help
frame= 7228 fps=2165 q=-1.0 Lsize=  274380kB time=00:05:01.38 bitrate=7458.0kbits/s   
video:230002kB audio:23552kB global headers:0kB muxing overhead 8.213401%
<<

lselinger

Serviio newbie

Posts: 7

Joined: Tue Oct 25, 2011 2:10 am

Post Wed Oct 26, 2011 1:51 pm

Re: Possible PS3 mkv issues?

Keeping this thread as a log ... just another thing I've noticed is it affects almost every sample file as well. mencoder doesn't seem to have any kind of problem with is but ffmpeg still chokes. Hopefully a future release of ffmpeg will address all of these issues. That being said the ONLY version I've been able to get working is the one posted for download on the Serviio download site :D

Return to Sony

Who is online

Users browsing this forum: No registered users and 41 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.