MOV files with 5.1 AAC - channel placement is wrong

For help and support with PS3 Media Server in general
Forum rules
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply.

MOV files with 5.1 AAC - channel placement is wrong

Postby rodhull » Thu Apr 16, 2009 10:06 am

Hello.

Been using this wonderful bit of code for the last few days since getting my shiny new PS3. Have managed to iron out most probs I had with the packaged release by using the latest (r325) SVN code. I'm running it on Ubuntu 8.10.

However, I've encountered a problem that I hope can be solved but I'm not sure of the options to use to fix it.

Basically I have some HD movie trailers encoded inside MOV containers - they are 720p or 1080p AVC with AAC 5.1 audio. I have a 5.1 system, so like to preserve any surround audio in all my videos.

Now, by looking at debug.log the media server seems to demux then use mencoder to do the actual transcoding of these MOVs, but it's transcoding the AAC audio to AC3, which seems to result in the channel placement being wrong. Basically it sounds like the centre becomes the left and the left becomes centre - the channels are moved round and are no longer correct.

When I play .m2ts or mkv files encoded with AVC and AC3 or DTS, it works fine - all channels are correct and the sound in full 5.1.

Is there a way to fix this?

Here's the relevant excerpt of my debug.log:

Code: Select all
[Thread-42] DEBUG 18:10:26.571 Opened handler on socket Socket[addr=/192.168.1.103,port=55289,localport=5001]
[Thread-42] DEBUG 18:10:26.571 Received on socket: GET /get/0$2$3$5/thumbnail0000publicenemies-tlr1_h1080p.mov HTTP/1.1
[Thread-42] DEBUG 18:10:26.571 Received on socket: Host: 192.168.1.100:5001
[Thread-42] DEBUG 18:10:26.571 Received on socket: User-Agent: PLAYSTATION 3
[Thread-42] DEBUG 18:10:26.571 Received on socket: Connection: Keep-Alive
[Thread-42] DEBUG 18:10:26.571 Received on socket: Accept-Encoding: identity
[Thread-42] DEBUG 18:10:26.571 Received on socket: transferMode.dlna.org: Interactive
[Thread-42] INFO  18:10:26.571 HTTP: get/0$2$3$5/thumbnail0000publicenemies-tlr1_h1080p.mov / 0-0
[Thread-42] DEBUG 18:10:26.571 Wrote on socket: HTTP/1.1 200 OK
[Thread-42] DEBUG 18:10:26.574 Searching for objectId: 0$2$3$5 with children option: false
[Thread-42] DEBUG 18:10:26.575 Wrote on socket: Content-Type: image/png
[Thread-42] DEBUG 18:10:26.575 Wrote on socket: Accept-Ranges: bytes
[Thread-42] DEBUG 18:10:26.575 Wrote on socket: Expires: Sun, 09 Aug 2009 10:57:06 GMT
[Thread-42] DEBUG 18:10:26.575 Wrote on socket: Connection: keep-alive
[Thread-42] DEBUG 18:10:26.575 Wrote on socket: Server: Linux-i386-2.6.27-11-generic, UPnP/1.0, PMS/1.11
[Thread-42] DEBUG 18:10:26.576 Available Content-Length: 7673
[Thread-42] DEBUG 18:10:26.576 Wrote on socket: Content-Length: 7673
[Thread-42] DEBUG 18:10:26.576 Wrote on socket:
[Thread-42] DEBUG 18:10:26.576 Sending stream: 7673 bytes of get/0$2$3$5/thumbnail0000publicenemies-tlr1_h1080p.mov
[Thread-42] DEBUG 18:10:26.576 Close Connection
[Thread-43] DEBUG 18:10:29.291 Opened handler on socket Socket[addr=/192.168.1.103,port=55266,localport=5001]
[Thread-43] DEBUG 18:10:29.292 Received on socket: POST /upnp/control/content_directory HTTP/1.1
[Thread-43] DEBUG 18:10:29.292 Received on socket: X-AV-Client-Info: av=5.0; cn="Sony Computer Entertainment Inc."; mn="PLAYSTATION 3"; mv="1.0";
[Thread-43] DEBUG 18:10:29.292 Received on socket: Host: 192.168.1.100:5001
[Thread-43] DEBUG 18:10:29.292 Received on socket: User-Agent: UPnP/1.0 DLNADOC/1.50
[Thread-43] DEBUG 18:10:29.292 Received on socket: Content-Length: 276
[Thread-43] DEBUG 18:10:29.292 Received on socket: Content-Type: text/xml; charset="utf-8"
[Thread-43] DEBUG 18:10:29.292 Received on socket: SOAPACTION: "urn:schemas-upnp-org:service:ContentDirectory:1#GetSystemUpdateID"
[Thread-44] DEBUG 18:10:29.306 Opened handler on socket Socket[addr=/192.168.1.103,port=55265,localport=5001]
[Thread-44] DEBUG 18:10:29.306 Received on socket: HEAD /get/0$2$3$5/publicenemies-tlr1_h1080p.mov HTTP/1.0
[Thread-44] DEBUG 18:10:29.306 Received on socket: Host: 192.168.1.100:5001
[Thread-44] DEBUG 18:10:29.306 Received on socket: User-Agent: PLAYSTATION 3
[Thread-44] DEBUG 18:10:29.306 Received on socket: Connection: close
[Thread-44] DEBUG 18:10:29.306 Received on socket: Accept-Encoding: identity
[Thread-44] DEBUG 18:10:29.306 Received on socket: Cache-Control: no-cache
[Thread-44] INFO  18:10:29.307 HTTP: get/0$2$3$5/publicenemies-tlr1_h1080p.mov / 0-0
[Thread-44] DEBUG 18:10:29.307 Wrote on socket: HTTP/1.0 200 OK
[Thread-44] DEBUG 18:10:29.307 Searching for objectId: 0$2$3$5 with children option: false
[Thread-44] DEBUG 18:10:29.307 Asked stream chunk [0-0] timeseek: 0.0 of publicenemies-tlr1_h1080p.mov and player MEncoder
[Thread-44] TRACE 18:10:29.309 Starting transcode/remux of publicenemies-tlr1_h1080p.mov
[Thread-44] DEBUG 18:10:29.309 Searching an audio track with lang: eng
[Thread-44] DEBUG 18:10:29.321 Matched audio track: Audio: mpeg4aac / lang: eng / ID: 1
[Thread-44] DEBUG 18:10:29.322 Searching a subtitle track with lang: eng
[Thread-44] DEBUG 18:10:29.322 Searching a subtitle track with lang: fre
[Thread-44] INFO  18:10:29.329 Starting ffmpeg -vframes 1 -i /media/disk-1/TV Shows/publicenemies-tlr1_h1080p.mov -vcodec copy -f h264 -vbsf h264_mp4toannexb -an -y pipe:
[Thread-44] INFO  18:10:29.360 Attaching thread: ffmpeg
[Thread-46] DEBUG 18:10:29.361 FFmpeg version r11872+debian_3:0.svn20080206-12ubuntu3.1, Copyright (c) 2000-2008 Fabrice Bellard, et al.
[Thread-46] DEBUG 18:10:29.361   configuration: --enable-gpl --enable-pp --enable-swscaler --enable-x11grab --prefix=/usr --enable-libgsm --enable-libtheora --enable-libvorbis --enable-pthreads --disable-strip --enable-libfaad --enable-libfaadbin --enable-liba52 --enable-liba52bin --enable-libdc1394 --disable-armv5te --disable-armv6 --disable-altivec --disable-vis --enable-shared --disable-static
[Thread-46] DEBUG 18:10:29.361   libavutil version: 49.6.0
[Thread-46] DEBUG 18:10:29.361   libavcodec version: 51.50.0
[Thread-46] DEBUG 18:10:29.361   libavformat version: 52.7.0
[Thread-46] DEBUG 18:10:29.361   libavdevice version: 52.0.0
[Thread-46] DEBUG 18:10:29.361   built on Mar 13 2009 17:48:10, gcc: 4.3.2
[Thread-46] DEBUG 18:10:29.361 [mov,mp4,m4a,3gp,3g2,mj2 @ 0xb7f904c8]negative ctts, ignoring
[Thread-46] DEBUG 18:10:29.382 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/media/disk-1/TV Shows/publicenemies-tlr1_h1080p.mov':
[Thread-46] DEBUG 18:10:29.382   Duration: 00:02:29.2, start: 0.000000, bitrate: 9544 kb/s
[Thread-46] DEBUG 18:10:29.382     Stream #0.0(eng): Video: h264, yuv420p, 1920x800 [PAR 0:1 DAR 0:1], 23.98 tb(r)
[Thread-46] DEBUG 18:10:29.382     Stream #0.1(eng): Audio: mpeg4aac, 48000 Hz, 5:1
[Thread-46] DEBUG 18:10:29.382     Stream #0.2(eng): Data: tmcd / 0x64636D74
[Thread-46] DEBUG 18:10:29.382 Output #0, h264, to 'pipe:':
[Thread-46] DEBUG 18:10:29.382     Stream #0.0(eng): Video: libx264, yuv420p, 1920x800 [PAR 0:1 DAR 0:1], q=2-31, 23.98 tb(c)
[Thread-46] DEBUG 18:10:29.383 Stream mapping:
[Thread-46] DEBUG 18:10:29.383   Stream #0.0 -> #0.0
[Thread-46] DEBUG 18:10:29.383 Press [q] to stop encoding
[Thread-46] DEBUG 18:10:29.384 video:145kB audio:0kB global headers:0kB muxing overhead 0.015497%
[Thread-44] DEBUG 18:10:29.387 EOF
[Thread-44] DEBUG 18:10:29.391 Ready to Stop: true
[Thread-44] DEBUG 18:10:29.394 H264 file: /media/disk-1/TV Shows/publicenemies-tlr1_h1080p.mov: Profile: 77 / level: 41 / ref frames: 0
[Thread-44] DEBUG 18:10:29.485 Searching a subtitle track with lang: eng
[Thread-44] DEBUG 18:10:29.485 Searching a subtitle track with lang: fre
[mkfifo] INFO  18:10:29.494 Starting mkfifo --mode=777 /tmp/javaps3media/1239815429493tsmuxerout.ts
[mkfifo] INFO  18:10:29.545 Starting mkfifo --mode=777 /tmp/javaps3media/1239815429489ffmpegvideo
[mkfifo] INFO  18:10:29.545 Starting mkfifo --mode=777 /tmp/javaps3media/1239815429489videoout
[Thread-50] DEBUG 18:10:29.703 Opening file /tmp/javaps3media/1239815429489ffmpegvideo for reading...
[mencoder] INFO  18:10:29.746 Starting mencoder -ss 0 /media/disk-1/TV Shows/publicenemies-tlr1_h1080p.mov -quiet -quiet -really-quiet -msglevel statusline=-1:mencoder=-1 -ovc copy -nosound -mc 0 -noskip -of rawvideo -o /tmp/javaps3media/1239815429489ffmpegvideo
[Thread-50] DEBUG 18:10:29.922 Opening file /tmp/javaps3media/1239815429489videoout for writing...
[mkfifo] INFO  18:10:29.925 Starting mkfifo --mode=777 /tmp/javaps3media/1239815429491ffmpegaudio01
[mkfifo] INFO  18:10:29.938 Starting mkfifo --mode=777 /tmp/javaps3media/1239815429491audioout
[mencoder] INFO  18:10:29.952 Attaching thread: mencoder
[Thread-51] DEBUG 18:10:30.106 Opening file /tmp/javaps3media/1239815429491ffmpegaudio01 for reading...
[mencoder] INFO  18:10:30.152 Starting mencoder -ss 0 /media/disk-1/TV Shows/publicenemies-tlr1_h1080p.mov -quiet -quiet -really-quiet -msglevel statusline=-1:mencoder=-1 -channels 6 -ovc copy -of rawaudio -mc 0 -noskip -oac lavc -quiet -quiet -lavcopts acodec=ac3:abitrate=448 -af lavcresample=48000 -srate 48000 -quiet -quiet -o /tmp/javaps3media/1239815429491ffmpegaudio01
[mencoder] INFO  18:10:30.166 Attaching thread: mencoder
[Thread-51] DEBUG 18:10:30.189 Opening file /tmp/javaps3media/1239815429491audioout for writing...
[linux/tsMuxeR] INFO  18:10:30.252 Starting /usr/local/ps3mediaserver/linux/tsMuxeR /tmp/javaps3media/pms-tsmuxer.meta /tmp/javaps3media/1239815429493tsmuxerout.ts
[Thread-43] INFO  18:10:30.288 HTTP: upnp/control/content_directory / 0-0
[Thread-43] DEBUG 18:10:30.288 Wrote on socket: HTTP/1.1 200 OK
[linux/tsMuxeR] INFO  18:10:30.288 Reading pipe: /tmp/javaps3media/1239815429493tsmuxerout.ts
[linux/tsMuxeR] DEBUG 18:10:30.288 Opening file /tmp/javaps3media/1239815429493tsmuxerout.ts for reading...
[Thread-43] DEBUG 18:10:30.289 Wrote on socket: CONTENT-TYPE: text/xml; charset="utf-8"
[Thread-43] DEBUG 18:10:30.291 Wrote on socket: Server: Linux-i386-2.6.27-11-generic, UPnP/1.0, PMS/1.11
[Thread-43] DEBUG 18:10:30.291 Wrote on socket: Content-Length: 335
[Thread-43] DEBUG 18:10:30.291 Wrote on socket:
[Thread-43] DEBUG 18:10:30.291 Close Connection
[Thread-69] DEBUG 18:10:30.335 Opened handler on socket Socket[addr=/192.168.1.103,port=55258,localport=5001]
[Thread-69] DEBUG 18:10:30.335 Received on socket: POST /upnp/control/content_directory HTTP/1.1
[Thread-69] DEBUG 18:10:30.542 Received on socket: X-AV-Client-Info: av=5.0; cn="Sony Computer Entertainment Inc."; mn="PLAYSTATION 3"; mv="1.0";
[Thread-69] DEBUG 18:10:30.543 Received on socket: Host: 192.168.1.100:5001
[Thread-69] DEBUG 18:10:30.543 Received on socket: User-Agent: UPnP/1.0 DLNADOC/1.50
[Thread-69] DEBUG 18:10:30.543 Received on socket: Content-Length: 905
[Thread-69] DEBUG 18:10:30.543 Received on socket: Content-Type: text/xml; charset="utf-8"
[Thread-69] DEBUG 18:10:30.543 Received on socket: SOAPACTION: "urn:schemas-upnp-org:service:ContentDirectory:1#Browse"
[Thread-69] INFO  18:10:30.543 HTTP: upnp/control/content_directory / 0-0
[Thread-69] DEBUG 18:10:30.543 Wrote on socket: HTTP/1.1 200 OK
[Thread-69] DEBUG 18:10:30.544 Wrote on socket: CONTENT-TYPE: text/xml; charset="utf-8"
[Thread-69] DEBUG 18:10:30.544 Searching for objectId: 0$2$3 with children option: false
[Thread-69] DEBUG 18:10:30.545 Wrote on socket: Server: Linux-i386-2.6.27-11-generic, UPnP/1.0, PMS/1.11
[Thread-69] DEBUG 18:10:30.545 Wrote on socket: Content-Length: 850
[Thread-69] DEBUG 18:10:30.546 Wrote on socket:
[Thread-69] DEBUG 18:10:30.546 Close Connection
[linux/tsMuxeR] INFO  18:10:30.672 Attaching thread: linux/tsMuxeR
[Timer-3] DEBUG 18:10:30.673 Buffered Space: 0 bytes / inputs: 0
[Thread-72] DEBUG 18:10:30.699 SmartLabs tsMuxeR.  Version 1.8.35(b) http://www.smlabs.net
[Thread-72] DEBUG 18:10:30.699 Decoding H264 stream (track 1): Profile: Main@4.1  Resolution: 1920:800p  Frame rate: not found
[Thread-72] DEBUG 18:10:30.699 Change H264 level from 4.1 to 4
[Thread-72] DEBUG 18:10:30.699 H264 bitstream changed: insert nal unit delimiters
[Thread-72] DEBUG 18:10:30.699 Decoding AC3 stream (track 2): Bitrate: 448Kbps Sample Rate: 48KHz Channels: 6
[Thread-72] DEBUG 18:10:30.829 M100.0% complete
[Thread-72] DEBUG 18:10:31.079 M100.0% complete
[Thread-72] DEBUG 18:10:31.329 M100.0% complete
[Thread-72] DEBUG 18:10:31.579 M100.0% complete
[Thread-72] DEBUG 18:10:31.830 M100.0% complete
[Thread-49] INFO  18:10:31.893 Stopping process: ffmpeg
[Thread-49] DEBUG 18:10:31.894 Killing the Unix process: 21785
[Thread-73] DEBUG 18:10:31.916 kill: No such process
[Thread-49] INFO  18:10:32.020 Destroying buffer
[Thread-49] INFO  18:10:32.458 Destroying buffer
[Thread-45] INFO  18:10:32.664 Stopping process: ffmpeg
[Thread-45] DEBUG 18:10:32.664 Killing the Unix process: 21785
[Thread-72] DEBUG 18:10:32.665 M100.0% complete
[Timer-3] DEBUG 18:10:32.673 Buffered Space: 15728640 bytes / inputs: 0
[Thread-72] DEBUG 18:10:33.078 M100.0% complete
[Thread-75] DEBUG 18:10:33.082 kill: No such process
[Thread-45] INFO  18:10:33.148 Destroying buffer
[Thread-72] DEBUG 18:10:33.328 M100.0% complete
[Thread-72] DEBUG 18:10:33.652 M100.0% complete
[Thread-72] DEBUG 18:10:33.903 M100.0% complete
[Thread-72] DEBUG 18:10:34.155 M100.0% complete
[Thread-72] DEBUG 18:10:34.405 M100.0% complete
[Thread-72] DEBUG 18:10:34.655 M100.0% complete
[Timer-3] DEBUG 18:10:34.673 Buffered Space: 31457280 bytes / inputs: 0
[Thread-72] DEBUG 18:10:34.911 M100.0% complete
[Thread-72] DEBUG 18:10:35.167 M100.0% complete
[Thread-44] DEBUG 18:10:35.253 Wrote on socket: Content-Type: video/mpeg
[Thread-44] DEBUG 18:10:35.254 Wrote on socket: Connection: keep-alive
[Thread-44] DEBUG 18:10:35.255 Wrote on socket: Server: Linux-i386-2.6.27-11-generic, UPnP/1.0, PMS/1.11
[Thread-44] DEBUG 18:10:35.255 Wrote on socket:
[Thread-44] DEBUG 18:10:35.255 Sending stream: 0 bytes of get/0$2$3$5/publicenemies-tlr1_h1080p.mov
[Thread-44] DEBUG 18:10:35.255 Ready to Stop: true
[Thread-44] DEBUG 18:10:35.255 Close Connection


EDIT:

After a bit of further looking, I found this issue:
http://code.google.com/p/ps3mediaserver ... ail?id=134

This looks like a very similar problem to mine, but not affecting LPCM.
rodhull
 
Posts: 7
Joined: Thu Apr 16, 2009 9:45 am

Re: MOV files with 5.1 AAC - channel placement is wrong

Postby meskibob » Thu Apr 16, 2009 6:58 pm

I provide NO application support via PM or email, so please post your question to the forum per the Forum Rules.
meskibob
Moderator
 
Posts: 4788
Joined: Mon Jan 19, 2009 4:11 pm

Re: MOV files with 5.1 AAC - channel placement is wrong

Postby rodhull » Thu Apr 16, 2009 7:36 pm

I had already figured it out, and was about to post that I'd found that PPA elsewhere which fixed things completely for me.

Thanks, though!
rodhull
 
Posts: 7
Joined: Thu Apr 16, 2009 9:45 am


Return to General Help and Support

Who is online

Users browsing this forum: No registered users and 17 guests