Opened 7 years ago

Last modified 5 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


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:

Change History (6)

comment:1 Changed 7 years ago by cehoyos

  • Component changed from FFmpeg to undetermined
  • Priority changed from normal to wish
  • Version changed from unspecified to git-master

Please provide such samples (a mp4 and a mpegps file if I understand correctly).

comment:2 Changed 7 years ago by julian

ok here is a file generated by MKV2VOB with the hack:

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 Changed 7 years ago by cehoyos

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 Changed 7 years ago by julian

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
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
a m2ts video with its DTS audio disguised as PCM for the PS3
nohack.ts a normal ts video with DTS audio
a ts video with its DTS audio disguised as PCM for the PS3

also it seems PS3MediaServer's code do perform the hack is here:

comment:5 Changed 5 years ago by julian

i had to change the location of the uploaded file to reproduce the issue:

comment:6 Changed 5 years ago by cehoyos

  • Component changed from undetermined to avformat
  • Keywords dca mpegts added
  • Reproduced by developer set
  • Status changed from new to open
Note: See TracTickets for help on using tickets.