PDA

View Full Version : Trouble with AVC/AAC files on PlayStation 3


darkedgex
26th January 2011, 20:28
I typically download trailers and such from various online sources in Quicktime MOV format, then use MP4Box to remux them for playback on the PlayStation 3 without much trouble. Until lately. I started having issues with doing this back in October/November of 2010, but lately just about every trailer released won't play (and is displayed as corrupted). I was wondering if anyone had any advice for how to deal with this (short of re-encoding them). Here's two sample files. The first one plays back fine when remuxed, the second one doesn't. The only thing that jumps out at me is the frame rates being different. Everything else seems acceptable.


Complete name : C:\Trailers\Kung.Fu.Panda.2-kungfupanda2trailer1(HD).117342766.mov
Format : MPEG-4
Format profile : QuickTime
Codec ID : qt
File size : 73.7 MiB
Duration : 1mn 1s
Overall bit rate : 10.1 Mbps
Movie name : "Kung Fu Panda 2" Trailer #1
Performer : Yahoo! Movies
Encoded date : UTC 2010-11-06 03:06:31
Tagged date : UTC 2010-11-06 03:06:33
Writing library : Apple QuickTime 7.6.6
Copyright : © 2010, DreamWorks Animation / Paramount Pictures.
com.apple.quicktime.author : Yahoo! Movies
com.apple.quicktime.player.movie : (Binary)

Video
ID : 2
Format : AVC
Format/Info : Advanced Video Codec
Format profile : Main@L4.0
Format settings, CABAC : No
Format settings, ReFrames : 2 frames
Format settings, GOP : M=2, N=32
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 1mn 1s
Bit rate mode : Variable
Bit rate : 9 948 Kbps
Width : 1 920 pixels
Height : 816 pixels
Display aspect ratio : 2.35:1
Frame rate mode : Constant
Frame rate : 24.000 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.265
Stream size : 72.3 MiB (98%)
Language : English
Encoded date : UTC 2010-11-06 02:19:57
Tagged date : UTC 2010-11-06 03:06:33
Color primaries : BT.709-5, BT.1361, IEC 61966-2-4, SMPTE RP177
Transfer characteristics : BT.709-5, BT.1361
Matrix coefficients : BT.709-5, BT.1361, IEC 61966-2-4 709, SMPTE RP177

Audio
ID : 1
Format : AAC
Format/Info : Advanced Audio Codec
Format profile : LC
Codec ID : 40
Duration : 1mn 1s
Bit rate mode : Constant
Bit rate : 183 Kbps
Nominal bit rate : 192 Kbps
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 48.0 KHz
Compression mode : Lossy
Stream size : 1.33 MiB (2%)
Language : English
Encoded date : UTC 2010-11-06 02:19:57
Tagged date : UTC 2010-11-06 03:06:33

General
Complete name : C:\Trailers\Pirates.of.the.Caribbean.4-pirates4trailer1(HD).119115444.mov
Format : MPEG-4
Format profile : QuickTime
Codec ID : qt
File size : 179 MiB
Duration : 2mn 28s
Overall bit rate : 10.1 Mbps
Movie name : "Pirates of the Caribbean: On Stranger Tides" Trailer #1
Performer : Yahoo! Movies
Encoded date : UTC 2010-12-10 05:28:35
Tagged date : UTC 2010-12-10 05:28:40
Writing library : Apple QuickTime 7.6.6
Copyright : ©*2010, Walt Disney Pictures.
com.apple.quicktime.author : Yahoo! Movies
com.apple.quicktime.player.movie : (Binary)

Video
ID : 2
Format : AVC
Format/Info : Advanced Video Codec
Format profile : Main@L4.0
Format settings, CABAC : No
Format settings, ReFrames : 2 frames
Format settings, GOP : M=2, N=32
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 2mn 28s
Bit rate mode : Variable
Bit rate : 9 909 Kbps
Width : 1 920 pixels
Height : 800 pixels
Display aspect ratio : 2.40:1
Frame rate mode : Constant
Frame rate : 23.976 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.269
Stream size : 175 MiB (98%)
Language : English
Encoded date : UTC 2010-12-10 04:35:59
Tagged date : UTC 2010-12-10 05:28:40
Color primaries : BT.709-5, BT.1361, IEC 61966-2-4, SMPTE RP177
Transfer characteristics : BT.709-5, BT.1361
Matrix coefficients : BT.709-5, BT.1361, IEC 61966-2-4 709, SMPTE RP177

Audio
ID : 1
Format : AAC
Format/Info : Advanced Audio Codec
Format profile : LC
Codec ID : 40
Duration : 2mn 28s
Bit rate mode : Constant
Bit rate : 192 Kbps
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 48.0 KHz
Compression mode : Lossy
Stream size : 3.40 MiB (2%)
Language : English
Encoded date : UTC 2010-12-10 04:35:59
Tagged date : UTC 2010-12-10 05:28:40

b66pak
26th January 2011, 21:02
use roozhou's ffmpeg remuxer (http://forum.doom9.org/showthread.php?t=152419):

ffmpeg -i mytrailer.mov -vcodec copy -acodec copy myPS3trailer.m4v

don't forget to post the results!!!
_

sneaker_ger
26th January 2011, 23:40
Yes, I've had the same problems. Funny thing is that the trailers work if you extract the streams and then mux them back together - using the same mp4box version that produces unplayable files when remuxing in a single step.

darkedgex
27th January 2011, 07:25
use roozhou's ffmpeg remuxer (http://forum.doom9.org/showthread.php?t=152419):

ffmpeg -i mytrailer.mov -vcodec copy -acodec copy myPS3trailer.m4v

don't forget to post the results!!!
_

Tested this solution with one of the troublesome files and it seems to work. Remuxed file plays back on the PlayStation 3 without incident (audio in sync, no stuttering or other anomalies). Just for reference, here's what was output when I ran the command.

C:\Trailers>"\Program Files (x86)\ffmpeg\bin\ffmpeg.exe" -i "Pirates.of.the.Cari
bbean.4-pirates4trailer1(HD).119115444.mov" -vcodec copy -acodec copy "Pirates.o
f.the.Caribbean.4-pirates4trailer1(HD).119115444.m4v"
FFmpeg version SVN-r26400, Copyright (c) 2000-2011 the FFmpeg developers
built on Jan 18 2011 04:07:05 with gcc 4.4.2
configuration: --enable-gpl --enable-version3 --enable-libgsm --enable-libvorb
is --enable-libtheora --enable-libspeex --enable-libmp3lame --enable-libopenjpeg
--enable-libschroedinger --enable-libopencore_amrwb --enable-libopencore_amrnb
--enable-libvpx --disable-decoder=libvpx --arch=x86 --enable-runtime-cpudetect -
-enable-libxvid --enable-libx264 --enable-librtmp --extra-libs='-lrtmp -lpolarss
l -lws2_32 -lwinmm' --target-os=mingw32 --enable-avisynth --enable-w32threads --
cross-prefix=i686-mingw32- --cc='ccache i686-mingw32-gcc' --enable-memalign-hack

libavutil 50.36. 0 / 50.36. 0
libavcore 0.16. 1 / 0.16. 1
libavcodec 52.108. 0 / 52.108. 0
libavformat 52.93. 0 / 52.93. 0
libavdevice 52. 2. 3 / 52. 2. 3
libavfilter 1.74. 0 / 1.74. 0
libswscale 0.12. 0 / 0.12. 0

Seems stream 1 codec frame rate differs from container frame rate: 5994.00 (5994
/1) -> 23.98 (2997/125)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Pirates.of.the.Caribbean.4-pirates4trai
ler1(HD).119115444.mov':
Metadata:
major_brand : qt
minor_version : 537199360
compatible_brands: qt
creation_time : 2010-12-10 05:28:35
title : "Pirates of the Caribbean: On Stranger Tides" Trailer #1
title-eng : "Pirates of the Caribbean: On Stranger Tides" Trailer #1
artist : Yahoo! Movies
artist-eng : Yahoo! Movies
copyright : © 2010, Walt Disney Pictures.
copyright-eng : © 2010, Walt Disney Pictures.
Duration: 00:02:28.24, start: 0.000000, bitrate: 10105 kb/s
Stream #0.0(eng): Audio: aac, 48000 Hz, stereo, s16, 192 kb/s
Metadata:
creation_time : 2010-12-10 05:28:35
Stream #0.1(eng): Video: h264, yuv420p, 1920x800, 9908 kb/s, 23.98 fps, 23.9
8 tbr, 2997 tbn, 5994 tbc
Metadata:
creation_time : 2010-12-10 05:28:35
Output #0, ipod, to 'Pirates.of.the.Caribbean.4-pirates4trailer1(HD).119115444.m
4v':
Metadata:
major_brand : qt
minor_version : 537199360
compatible_brands: qt
creation_time : 2010-12-10 05:28:35
title : "Pirates of the Caribbean: On Stranger Tides" Trailer #1
title-eng : "Pirates of the Caribbean: On Stranger Tides" Trailer #1
artist : Yahoo! Movies
artist-eng : Yahoo! Movies
copyright : © 2010, Walt Disney Pictures.
copyright-eng : © 2010, Walt Disney Pictures.
encoder : Lavf52.93.0
Stream #0.0(eng): Video: libx264, yuv420p, 1920x800, q=2-31, 9908 kb/s, 2997
tbn, 2997 tbc
Metadata:
creation_time : 2010-12-10 05:28:35
Stream #0.1(eng): Audio: aac, 48000 Hz, stereo, 192 kb/s
Metadata:
creation_time : 2010-12-10 05:28:35
Stream mapping:
Stream #0.1 -> #0.0
Stream #0.0 -> #0.1
Press [q] to stop encoding
frame= 2458 fps=287 q=-1.0 size= 123498kB time=102.44 bitrate=9876.4kbits/s
frame= 2739 fps=302 q=-1.0 size= 136330kB time=114.16 bitrate=9783.3kbits/s
frame= 2896 fps=302 q=-1.0 size= 148466kB time=120.70 bitrate=10076.1kbits/s
frame= 3034 fps=301 q=-1.0 size= 158749kB time=126.46 bitrate=10283.6kbits/s
frame= 3317 fps=313 q=-1.0 size= 176296kB time=138.26 bitrate=10445.4kbits/s
frame= 3554 fps=323 q=-1.0 Lsize= 182892kB time=148.15 bitrate=10113.2kbits/s

video:179297kB audio:3484kB global headers:0kB muxing overhead 0.060757%

C:\Trailers>

Now to try it on the rest of the trailers which weren't working. Thanks for the help!

Follow-up
So far everything I've thrown at ffmpeg seems to work fine. Wish mp4box worked for this stuff. :(