Opened 12 years ago
Last modified 9 years ago
#2423 open enhancement
creating PS3 compatible VOB/MP4 files with DTS sound
Reported by: | julian | Owned by: | |
---|---|---|---|
Priority: | wish | Component: | avformat |
Version: | git-master | Keywords: | dca mpegts |
Cc: | Blocked By: | ||
Blocking: | Reproduced by developer: | yes | |
Analyzed by developer: | no |
Description
this is a request for a new feature in ffmpeg. i searched the whole documentation and came to the conclusion that this isn't currently supported. if it already *is* supported, the documentation should be extended to make this obvious.
the Sony PS3 isn't able to play VOB/MP4 files with DTS sound. however, if the DTS soundtrack is "disguised" as PCM with a fake PCM 2.0 header, the sounds is forwarded to the optical output, effectively enabling playback of the DTS surround sound.
PS3MediaServer and MKV2VOB employ this hack to enable surround sound playback on the PS3. i'd like to be able to achieve this with only ffmpeg too, i.e. transcode a file to MP4, specify some command line flag to enable this hack, and have it play with sound on the PS3.
some more information about the DTS/PCM2.0 header hack:
http://www.ps3mediaserver.org/forum/viewtopic.php?f=11&t=7673
http://www.avforums.com/forums/ps3-media-streaming/1163141-verifying-ps3-sending-dts-vs-linear-pcm.html
http://www.avforums.com/forums/ps3-media-streaming/1087192-mkv2vob-can-patch-dts-stream-m2ts-why-cant-tsmuxer-do-same-thing.html
Change History (6)
comment:1 by , 12 years ago
Component: | FFmpeg → undetermined |
---|---|
Priority: | normal → wish |
Version: | unspecified → git-master |
comment:2 by , 12 years ago
ok here is a file generated by MKV2VOB with the hack:
https://dl.dropbox.com/u/7221986/dtshack.mpg
sadly i can't provide the same file with plain DTS without the hack because there is no option to turn this off within MKV2VOB
i'll be looking into getting a MP4 file with and without this from PS3MediaServer, still having trouble storing/fetching the file thats only provided through UPnP
comment:3 by , 12 years ago
Where you able to produce a mp4 file with DTS-in-pcm?
I don't know how the transport stream you provided can be decoded and FFmpeg is currently unable to write such (broken) streams.
comment:4 by , 12 years ago
i wasn't able to generate a MP4 file because it seems both PS3MediaServer and MKV2VOB both generate only .TS and .M2TS files.
however i've generated the following
DTS_normal.dts a normal DTS audio stream
DTS_inpcm.pcm a DTS audio stream that has been processed by MKV2VOB's dtsinpcm.exe to be disguised as PCM
nohack.m2ts a normal m2ts video with DTS audio
hack.m2ts a m2ts video with its DTS audio disguised as PCM for the PS3
nohack.ts a normal ts video with DTS audio
hack.ts a ts video with its DTS audio disguised as PCM for the PS3
https://dl.dropboxusercontent.com/u/7221986/ps3hack.zip
also it seems PS3MediaServer's code do perform the hack is here:
https://github.com/ps3mediaserver/ps3mediaserver/blob/master/src/main/java/net/pms/util/PCMAudioOutputStream.java
comment:5 by , 9 years ago
i had to change the location of the uploaded file to reproduce the issue:
http://www.filehosting.org/file/details/501425/ffmpeg_2423_ps3.zip
comment:6 by , 9 years ago
Component: | undetermined → avformat |
---|---|
Keywords: | dca mpegts added |
Reproduced by developer: | set |
Status: | new → open |
Please provide such samples (a mp4 and a mpegps file if I understand correctly).