FAQ  •  Register  •  Login

Matroska to MPEG2-PS for PS3

<<

THSA

Serviio newbie

Posts: 14

Joined: Sat Mar 30, 2013 9:19 pm

Post Sat Mar 30, 2013 10:12 pm

Matroska to MPEG2-PS for PS3

Hi everyone!

I'm looking for help to tweak Serviio Playstation 3 profile. My goal is to be able to transcode Matroska files containing H264 video, Dolby or DTS lossless Audio and PGS/SUP subtitles to MPEG2-PS keeping H264 untouched and transcoding Dolby/DTS lossless audio to LPCM (no solution for subtitles as SUP subtitles overlay is not possible for now with Serviio if I'm correct).

So far, the only thing I'm able to do is to transcode from an MPEG2-TS file to MPEG2-PS. Transcoding to LPCM is then OK and the PS3 shows both video and audio successfully.
Playing a Matroska file containing the same H264 and DTS-HD streams using Serviio default Playstation 3 profile gives MPEG2-TS output with (DTS-HD transcoded to) Dolby Digital (AC-3) audio playing successfully. But, if I modify this profile to output MPEG2-PS with (DTS-HD transcoded to) LPCM, PS3 shows "The data type is not supported".

Does anyone know why
MPEG2-TS/H264/DTS-HD ----> MPEG2-PS/H264/LPCM works fine on PS3
while
MKV/H264/DTS-HD ----> MPEG2-PS/H264/LPCM does not work (output should be the same...)
?

Thanks for your help!

Config: Ubuntu 12.04, ffmpeg version N-42368-gbf53863, Serviio 1.2.1
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Sun Mar 31, 2013 10:44 am

Re: Matroska to MPEG2-PS for PS3

I dont think Mpeg2 PS can hold anything else than Mpeg2 video.
<<

THSA

Serviio newbie

Posts: 14

Joined: Sat Mar 30, 2013 9:19 pm

Post Sun Mar 31, 2013 3:43 pm

Re: Matroska to MPEG2-PS for PS3

Hi Zip,

First congrats and thanks for Serviio!

You're right H264 in MPEG2-PS seems to be non standard (although lots of PVR can create such files). But it works on PS3 (funny when you know how it can be picky...) when I "transcode" it from MPEG2-TS so I'm surprised the same H264 stream does not work when I try to transcode it from Matroska to MPEG2-PS. Bad... I'm stuck here. It means there is no way I can have H264 and LPCM playing on the PS3 using a Matroska file. Right?
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Sun Mar 31, 2013 9:41 pm

Re: Matroska to MPEG2-PS for PS3

I may have missed it, but why do you need to transcode to PS? You can wrap to TS.
<<

THSA

Serviio newbie

Posts: 14

Joined: Sat Mar 30, 2013 9:19 pm

Post Sun Mar 31, 2013 9:57 pm

Re: Matroska to MPEG2-PS for PS3

Cause PS is the only format which allows me to have LPCM working on the PS3 and I'd also like to store all my A/V streams in MKV containers which I would transcode depending on each of my devices capabilities.
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Sun Mar 31, 2013 11:47 pm

Re: Matroska to MPEG2-PS for PS3

But then you'll lose any multichannel (Serviio only supports stereo LPCM).
<<

THSA

Serviio newbie

Posts: 14

Joined: Sat Mar 30, 2013 9:19 pm

Post Mon Apr 01, 2013 12:21 am

Re: Matroska to MPEG2-PS for PS3

;) I'm a stereo guy, no multichannel here. Most important for me is to stay lossless whenever it's possible. Unfortunately it seems I will have to stay with TS/H264/DTS-HD container transcoded to PS/H264/LPCM (working) as MKV/H264/DTS-HD transcoded to PS/H264/LPCM does not work. Seems so strange as the output format and the streams inside the containers are stricly the same in both cases (just chapters added to the MKV).
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Mon Apr 01, 2013 10:32 pm

Re: Matroska to MPEG2-PS for PS3

when you set up transcoding to PS, do you see any errors in the log or does it just fail on the PS3?
<<

THSA

Serviio newbie

Posts: 14

Joined: Sat Mar 30, 2013 9:19 pm

Post Wed Apr 03, 2013 6:17 am

Re: Matroska to MPEG2-PS for PS3

As requested, here is the log content:

Playing M2TS/H264/DTS-HD (muxed with latest tsmuxer) transcoded to M2PS/H264/LPCM -> Works OK on PS3:

  Code:
2013-04-03 07:59:30,590 DEBUG [ServiioHttpService] Incoming request from /1.2.3.4:49659: GET /resource/8563/MEDIA_ITEM/MPEG_PS_PAL-0/ORIGINAL HTTP/1.1, headers = [Host: 1.2.3.1:8895,User-Agent: PLAYSTATION 3,Connection: Keep-Alive,Accept-Encoding: identity,transferMode.dlna.org: Streaming,X-AV-Client-Info: av=5.0; cn="Sony Computer Entertainment"; mn="PLAYSTATION 3"; mv="1.0";,TimeSeekRange.dlna.org: npt=0.000-]]
2013-04-03 07:59:30,591 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 1.2.3.4
2013-04-03 07:59:30,592 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 1.2.3.4
2013-04-03 07:59:30,595 DEBUG [ResourceDeliveryProcessor] Resource request accepted. Using client 'Identifier=1.2.3.4, Profile=Playstation 3'
2013-04-03 07:59:30,596 DEBUG [ResourceDeliveryProcessor] Request for resource 8563 and type 'MEDIA_ITEM' received
2013-04-03 07:59:30,596 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 8563 (local)
2013-04-03 07:59:30,596 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 8563)
2013-04-03 07:59:30,607 DEBUG [VideoDAOImpl] Reading a Video (id = 8563)
2013-04-03 07:59:30,608 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 8563, format MPEG_PS_PAL and profile Playstation 3
2013-04-03 07:59:30,608 DEBUG [AbstractTranscodingDeliveryEngine] Getting media info for transcoded version of file MyFile.m2ts
2013-04-03 07:59:30,608 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file MyFile.m2ts: MPEG_PS_PAL
2013-04-03 07:59:30,608 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file MyFile.m2ts: MPEG_PS_NTSC
2013-04-03 07:59:30,608 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 8563 (local)
2013-04-03 07:59:30,608 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 8563)
2013-04-03 07:59:30,608 DEBUG [VideoDAOImpl] Reading a Video (id = 8563)
2013-04-03 07:59:30,608 DEBUG [VideoDeliveryEngine] Delivering item '8563' for client 'Identifier=1.2.3.4, Profile=Playstation 3'
2013-04-03 07:59:30,609 DEBUG [VideoDeliveryEngine] Delivering file 'MyFile.m2ts' using transcoding
2013-04-03 07:59:30,609 DEBUG [AbstractTranscodingDeliveryEngine] No suitable transcoding job exists yet, start one for client 'Identifier=1.2.3.4, Profile=Playstation 3'
2013-04-03 07:59:30,609 DEBUG [MediaItemDAOImpl] Getting file of media item 8563
2013-04-03 07:59:30,609 DEBUG [FFMPEGWrapper] Invoking FFmpeg to transcode video file: /PathTo/MyFile.m2ts
2013-04-03 07:59:30,609 DEBUG [ProcessExecutor] Starting ffmpeg -fflags +genpts -threads auto -i /PathTo/MyFile.m2ts -y -c:v copy -c:a pcm_s16be -ar 48000 -ac 2 -map 0:0 -map 0:1 -sn -f vob /media/md0/.tmp/Serviio/transcoding-temp-8563-4-ORIGINAL.stf
2013-04-03 07:59:31,110 DEBUG [FileBasedTranscodingDeliveryStrategy] Sending transcoding stream
2013-04-03 07:59:31,111 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file MyFile.m2ts: MPEG_PS_PAL
2013-04-03 07:59:31,111 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file MyFile.m2ts: MPEG_PS_NTSC
2013-04-03 07:59:31,111 DEBUG [MediaItemDAOImpl] Marking MediaItem (id = 8563) as read
2013-04-03 07:59:31,135 DEBUG [LocalContentCacheDecorator] Cleared cache (local_resetafterplay)
2013-04-03 07:59:31,135 DEBUG [GETMethodProcessor] Stream entity has length: 50000000000
2013-04-03 07:59:31,136 DEBUG [ResourceTransportRequestHandler] Creating entity with chunked transfer
2013-04-03 07:59:31,136 DEBUG [ResourceTransportRequestHandler] HTTP/1.1 200 OK, headers = [[Content-Type: video/mpeg,Date: Wed, 03 Apr 2013 05:59:31 GMT,Server: Linux, UPnP/1.0 DLNADOC/1.50, Serviio/1.2.1,Cache-control: no-cache,TimeSeekRange.dlna.org: npt=0-6722/6722,transferMode.dlna.org: Streaming,realTimeInfo.dlna.org: DLNA.ORG_TLAG=*]]
2013-04-03 07:59:33,341 DEBUG [WebServer] I/O error: Broken pipe
2013-04-03 07:59:33,342 DEBUG [ServiioHttpService] Incoming request from /1.2.3.4:49658: GET /resource/8563/MEDIA_ITEM/MPEG_PS_PAL-0/ORIGINAL HTTP/1.1, headers = [Host: 1.2.3.1:8895,User-Agent: PLAYSTATION 3,Connection: Keep-Alive,Accept-Encoding: identity,TimeSeekRange.dlna.org: npt=0.000-,transferMode.dlna.org: Streaming,X-AV-Client-Info: av=5.0; cn="Sony Computer Entertainment"; mn="PLAYSTATION 3"; mv="1.0";]]
2013-04-03 07:59:33,342 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 1.2.3.4
2013-04-03 07:59:33,343 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 1.2.3.4
2013-04-03 07:59:33,343 DEBUG [ResourceDeliveryProcessor] Resource request accepted. Using client 'Identifier=1.2.3.4, Profile=Playstation 3'
2013-04-03 07:59:33,343 DEBUG [ResourceDeliveryProcessor] Request for resource 8563 and type 'MEDIA_ITEM' received
2013-04-03 07:59:33,343 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 8563 (local)
2013-04-03 07:59:33,343 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 8563)
2013-04-03 07:59:33,343 DEBUG [VideoDAOImpl] Reading a Video (id = 8563)
2013-04-03 07:59:33,343 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 8563, format MPEG_PS_PAL and profile Playstation 3
2013-04-03 07:59:33,344 DEBUG [AbstractTranscodingDeliveryEngine] Getting media info for transcoded version of file MyFile.m2ts
2013-04-03 07:59:33,344 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file MyFile.m2ts: MPEG_PS_PAL
2013-04-03 07:59:33,344 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file MyFile.m2ts: MPEG_PS_NTSC
2013-04-03 07:59:33,344 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 8563 (local)
2013-04-03 07:59:33,344 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 8563)
2013-04-03 07:59:33,344 DEBUG [VideoDAOImpl] Reading a Video (id = 8563)
2013-04-03 07:59:33,344 DEBUG [VideoDeliveryEngine] Delivering item '8563' for client 'Identifier=1.2.3.4, Profile=Playstation 3'
2013-04-03 07:59:33,344 DEBUG [VideoDeliveryEngine] Delivering file 'MyFile.m2ts' using transcoding
2013-04-03 07:59:33,344 DEBUG [AbstractTranscodingDeliveryEngine] A suitable transcoding job already exists, re-use it for client 'Identifier=1.2.3.4, Profile=Playstation 3'
2013-04-03 07:59:33,344 DEBUG [FileBasedTranscodingDeliveryStrategy] Sending transcoding stream
2013-04-03 07:59:33,344 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file MyFile.m2ts: MPEG_PS_PAL
2013-04-03 07:59:33,344 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file MyFile.m2ts: MPEG_PS_NTSC
2013-04-03 07:59:33,344 DEBUG [MediaItemDAOImpl] Marking MediaItem (id = 8563) as read
2013-04-03 07:59:33,380 DEBUG [LocalContentCacheDecorator] Cleared cache (local_resetafterplay)
2013-04-03 07:59:33,380 DEBUG [GETMethodProcessor] Stream entity has length: 50000000000
2013-04-03 07:59:33,380 DEBUG [ResourceTransportRequestHandler] Creating entity with chunked transfer
2013-04-03 07:59:33,380 DEBUG [ResourceTransportRequestHandler] HTTP/1.1 200 OK, headers = [[Content-Type: video/mpeg,Date: Wed, 03 Apr 2013 05:59:33 GMT,Server: Linux, UPnP/1.0 DLNADOC/1.50, Serviio/1.2.1,Cache-control: no-cache,TimeSeekRange.dlna.org: npt=0-6722/6722,transferMode.dlna.org: Streaming,realTimeInfo.dlna.org: DLNA.ORG_TLAG=*]]
2013-04-03 07:59:45,901 DEBUG [WebServer] I/O error: Broken pipe



Playing MKV/H264/DTS-HD (muxed with latest mkvtoolnix) transcoded to M2PS/H264/LPCM -> Does not work on PS3 ("The data type is not supported (800288BD)"):

  Code:
2013-04-02 23:54:04,649 DEBUG [ServiioHttpService] Incoming request from /1.2.3.4:60917: GET /resource/8558/MEDIA_ITEM/MPEG_PS_PAL-0/ORIGINAL HTTP/1.1, headers = [Host: 1.2.3.1:8895,User-Agent: PLAYSTATION 3,Connection: Keep-Alive,Accept-Encoding: identity,transferMode.dlna.org: Streaming,X-AV-Client-Info: av=5.0; cn="Sony Computer Entertainment"; mn="PLAYSTATION 3"; mv="1.0";,TimeSeekRange.dlna.org: npt=0.000-]]
2013-04-02 23:54:04,651 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 1.2.3.4
2013-04-02 23:54:04,652 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 1.2.3.4
2013-04-02 23:54:04,656 DEBUG [ResourceDeliveryProcessor] Resource request accepted. Using client 'Identifier=1.2.3.4, Profile=Playstation 3'
2013-04-02 23:54:04,657 DEBUG [ResourceDeliveryProcessor] Request for resource 8558 and type 'MEDIA_ITEM' received
2013-04-02 23:54:04,657 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 8558 (local)
2013-04-02 23:54:04,658 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 8558)
2013-04-02 23:54:04,667 DEBUG [VideoDAOImpl] Reading a Video (id = 8558)
2013-04-02 23:54:04,668 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 8558, format MPEG_PS_PAL and profile Playstation 3
2013-04-02 23:54:04,668 DEBUG [AbstractTranscodingDeliveryEngine] Getting media info for transcoded version of file MyFile.mkv
2013-04-02 23:54:04,668 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file MyFile.mkv: MPEG_PS_PAL
2013-04-02 23:54:04,668 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file MyFile.mkv: MPEG_PS_NTSC
2013-04-02 23:54:04,669 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 8558 (local)
2013-04-02 23:54:04,669 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 8558)
2013-04-02 23:54:04,669 DEBUG [VideoDAOImpl] Reading a Video (id = 8558)
2013-04-02 23:54:04,670 DEBUG [VideoDeliveryEngine] Delivering item '8558' for client 'Identifier=1.2.3.4, Profile=Playstation 3'
2013-04-02 23:54:04,670 DEBUG [VideoDeliveryEngine] Delivering file 'MyFile.mkv' using transcoding
2013-04-02 23:54:04,670 DEBUG [AbstractTranscodingDeliveryEngine] No suitable transcoding job exists yet, start one for client 'Identifier=1.2.3.4, Profile=Playstation 3'
2013-04-02 23:54:04,671 DEBUG [MediaItemDAOImpl] Getting file of media item 8558
2013-04-02 23:54:04,671 DEBUG [FFMPEGWrapper] Invoking FFmpeg to transcode video file: /PathTo/Myfile.mkv
2013-04-02 23:54:04,671 DEBUG [ProcessExecutor] Starting ffmpeg -fflags +genpts -threads auto -i /PathTo/Myfile.mkv -y -c:v copy -c:a pcm_s16be -ar 48000 -ac 2 -map 0:0 -map 0:1 -sn -f vob /media/md0/.tmp/Serviio/transcoding-temp-8558-4-ORIGINAL.stf
2013-04-02 23:54:05,172 DEBUG [FileBasedTranscodingDeliveryStrategy] Sending transcoding stream
2013-04-02 23:54:05,173 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file MyFile.mkv: MPEG_PS_PAL
2013-04-02 23:54:05,173 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file MyFile.mkv: MPEG_PS_NTSC
2013-04-02 23:54:05,173 DEBUG [MediaItemDAOImpl] Marking MediaItem (id = 8558) as read
2013-04-02 23:54:05,263 DEBUG [LocalContentCacheDecorator] Cleared cache (local_resetafterplay)
2013-04-02 23:54:05,263 DEBUG [GETMethodProcessor] Stream entity has length: 50000000000
2013-04-02 23:54:05,263 DEBUG [ResourceTransportRequestHandler] Creating entity with chunked transfer
2013-04-02 23:54:05,263 DEBUG [ResourceTransportRequestHandler] HTTP/1.1 200 OK, headers = [[Content-Type: video/mpeg,Date: Tue, 02 Apr 2013 21:54:05 GMT,Server: Linux, UPnP/1.0 DLNADOC/1.50, Serviio/1.2.1,Cache-control: no-cache,TimeSeekRange.dlna.org: npt=0-6722/6722,transferMode.dlna.org: Streaming,realTimeInfo.dlna.org: DLNA.ORG_TLAG=*]]
2013-04-02 23:54:05,361 DEBUG [WebServer] I/O error: Broken pipe
2013-04-02 23:54:08,422 DEBUG [DiscoveryAdvertisementNotifier] Multicasting SSDP alive using interface eth0 (eth0) and address 1.2.3.1, timeout = 0
2013-04-02 23:54:08,422 DEBUG [DiscoveryAdvertisementNotifier] Sending 6 'alive' messages describing device 084f1302-5c3d-368f-840b-c7a0a8f62ba1
2013-04-02 23:54:09,838 DEBUG [ServiioHttpService] Incoming request from /1.2.3.4:60916: GET /deviceDescription/084f1302-5c3d-368f-840b-c7a0a8f62ba1 HTTP/1.1, headers = [Host: 1.2.3.1:8895,Date: Tue, 02 Apr 2013 21:54:09 GMT,User-Agent: UPnP/1.0,X-AV-Client-Info: av=5.0; cn="Sony Computer Entertainment Inc."; mn="PLAYSTATION 3"; mv="1.0";]]
2013-04-02 23:54:09,838 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 1.2.3.4
2013-04-02 23:54:09,840 DEBUG [DeviceDescriptionRequestHandler] DeviceDescription request received for device 084f1302-5c3d-368f-840b-c7a0a8f62ba1 from 1.2.3.4 (headers = [Host: 1.2.3.1:8895,Date: Tue, 02 Apr 2013 21:54:09 GMT,User-Agent: UPnP/1.0,X-AV-Client-Info: av=5.0; cn="Sony Computer Entertainment Inc."; mn="PLAYSTATION 3"; mv="1.0";])
2013-04-02 23:54:09,840 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 1.2.3.4
2013-04-02 23:54:09,840 DEBUG [RendererManager] Looking for a renderer profile for Http headers: [Host: 1.2.3.1:8895,Date: Tue, 02 Apr 2013 21:54:09 GMT,User-Agent: UPnP/1.0,X-AV-Client-Info: av=5.0; cn="Sony Computer Entertainment Inc."; mn="PLAYSTATION 3"; mv="1.0";]
2013-04-02 23:54:09,841 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 1.2.3.4
2013-04-02 23:54:09,842 DEBUG [DeviceDescriptionRequestHandler] Sending DeviceDescription XML back using profile 'Playstation 3'
2013-04-02 23:54:10,226 DEBUG [DiscoveryAdvertisementNotifier] Will advertise again in 00:04:06 (advertisement duration is 1800 sec.)



Section added by myself in profiles.xml (in both cases) to have LPCM transcoding is:

  Code:
<Video targetContainer="mpeg" targetACodec="lpcm">
     <Matches container="*" aCodec="truehd" />
     <Matches container="*" aCodec="dca" />
</Video>


Hope it'll help.

Return to Transcoding

Who is online

Users browsing this forum: No registered users and 48 guests

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