Log in

View Full Version : avc+aac+ac3+sub remux = impossible for apple_tv?


john blox
17th May 2012, 08:04
1) I can create a playable 1)avc_video+2)aac+3)ac3 without subs fine in xmedia-recode.
Plays fine on apple-tv3 and correctly selects 2nd ac3 audio track, but no way to add subs in xmedia-recode as + is grayed out on subs tab

2) I can create a playable 1)avc_video+2)aac+3)subs fine in YAMB/MEGUI (required text->sbtl edit)
Single audio track works fine on Apple-TV3

3) I cannot create a 'playable' 1)avc_video+2)aac+3)ac3+4)subs in anything.
ANY mp4 with dual aac(stereo)+ac3(5.1) created using YAMB will NOT play on Apple-TV3! (hit play it just goes into pause mode!)
ANY mp4 with dual aac(stereo)+ac3(5.1) created using MEGUI will play on Apple-TV3 BUT it plays the 1st stereo AAC track when it should play the 2nd 5.1 one as it does with video created in 1) (so marginally better than YAMB, but still no cigar)


Here are the mediainfo results for tests 1)xmedia-recode and 3) MeGUI (I notice that the AAC in 3) looks different i.e. constant vs variable?)


----MediaInfo for playable video+aac+ac3(but no subs) - (Created using xmedia-recode) - plays ac3 audio track
General
Complete name : \\tv0\e$\video\mp4\Kahaani.mp4
Format : MPEG-4
Format profile : Base Media
Codec ID : isom
File size : 2.61 GiB
Duration : 2h 2mn
Overall bit rate mode : Variable
Overall bit rate : 3 042 Kbps
Encoded date : UTC 2012-05-16 23:06:55
Tagged date : UTC 2012-05-16 23:06:55

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.1
Format settings, CABAC : Yes
Format settings, ReFrames : 9 frames
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 2h 2mn
Bit rate : 2 462 Kbps
Maximum bit rate : 11.2 Mbps
Width : 1 280 pixels
Height : 544 pixels
Display aspect ratio : 2.35: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.147
Stream size : 2.11 GiB (81%)
Writing library : x264 core 98 r1649 20cbe10
Encoding settings : cabac=1 / ref=9 / deblock=1:-3:1 / analyse=0x3:0x113 / me=hex / subme=6 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=8 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=2 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=12 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / constrained_intra=0 / bframes=3 / b_pyramid=0 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / weightp=2 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=2pass / mbtree=1 / bitrate=2462 / ratetol=1.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / aq=1:1.00
Encoded date : UTC 2012-05-16 23:06:55
Tagged date : UTC 2012-05-16 23:19:10

Audio #1
ID : 2
Format : AAC
Format/Info : Advanced Audio Codec
Format profile : LC
Codec ID : 40
Duration : 2h 2mn
Bit rate mode : Variable
Bit rate : 128 Kbps
Maximum bit rate : 248 Kbps
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 48.0 KHz
Compression mode : Lossy
Stream size : 112 MiB (4%)
Encoded date : UTC 2012-05-16 23:18:26
Tagged date : UTC 2012-05-16 23:19:10

Audio #2
ID : 3
Format : AC-3
Format/Info : Audio Coding 3
Mode extension : CM (complete main)
Codec ID : ac-3
Duration : 2h 2mn
Bit rate mode : Constant
Bit rate : 448 Kbps
Channel(s) : 6 channels
Channel positions : Front: L C R, Side: L R, LFE
Sampling rate : 48.0 KHz
Bit depth : 16 bits
Compression mode : Lossy
Stream size : 394 MiB (15%)
Language : English
Encoded date : UTC 2012-05-16 23:18:43
Tagged date : UTC 2012-05-16 23:19:10

Text
ID : 4
Format : Timed text
Codec ID : tx3g
Duration : 1h 58mn
Bit rate mode : Variable
Bit rate : 57 bps
Stream size : 49.0 KiB (0%)
Language : English
Encoded date : UTC 2012-05-16 23:19:10
Tagged date : UTC 2012-05-16 23:19:10



----MediaInfo for unplayable video+aac+ac3+subs (created using MeGUI) - - plays aac stereo audio track :(
General
Complete name : \\tv0\e$\video\mp4\Kahaani.mp4
Format : MPEG-4
Format profile : Base Media
Codec ID : isom
File size : 2.61 GiB
Duration : 2h 2mn
Overall bit rate mode : Variable
Overall bit rate : 3 042 Kbps
Encoded date : UTC 2012-05-16 23:06:55
Tagged date : UTC 2012-05-16 23:06:55

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.1
Format settings, CABAC : Yes
Format settings, ReFrames : 9 frames
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 2h 2mn
Bit rate : 2 462 Kbps
Maximum bit rate : 11.2 Mbps
Width : 1 280 pixels
Height : 544 pixels
Display aspect ratio : 2.35: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.147
Stream size : 2.11 GiB (81%)
Writing library : x264 core 98 r1649 20cbe10
Encoding settings : cabac=1 / ref=9 / deblock=1:-3:1 / analyse=0x3:0x113 / me=hex / subme=6 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=8 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=2 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=12 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / constrained_intra=0 / bframes=3 / b_pyramid=0 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / weightp=2 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=2pass / mbtree=1 / bitrate=2462 / ratetol=1.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / aq=1:1.00
Encoded date : UTC 2012-05-16 23:06:55
Tagged date : UTC 2012-05-16 23:19:10

Audio #1
ID : 2
Format : AAC
Format/Info : Advanced Audio Codec
Format profile : LC
Codec ID : 40
Duration : 2h 2mn
Bit rate mode : Variable
Bit rate : 128 Kbps
Maximum bit rate : 248 Kbps
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 48.0 KHz
Compression mode : Lossy
Stream size : 112 MiB (4%)
Encoded date : UTC 2012-05-16 23:18:26
Tagged date : UTC 2012-05-16 23:19:10

Audio #2
ID : 3
Format : AC-3
Format/Info : Audio Coding 3
Mode extension : CM (complete main)
Codec ID : ac-3
Duration : 2h 2mn
Bit rate mode : Constant
Bit rate : 448 Kbps
Channel(s) : 6 channels
Channel positions : Front: L C R, Side: L R, LFE
Sampling rate : 48.0 KHz
Bit depth : 16 bits
Compression mode : Lossy
Stream size : 394 MiB (15%)
Language : English
Encoded date : UTC 2012-05-16 23:18:43
Tagged date : UTC 2012-05-16 23:19:10

Text
ID : 4
Format : Timed text
Muxing mode : sbtl
Codec ID : tx3g
Duration : 1h 58mn
Bit rate mode : Variable
Bit rate : 57 bps
Stream size : 49.0 KiB (0%)
Language : English
Encoded date : UTC 2012-05-16 23:19:10
Tagged date : UTC 2012-05-16 23:19:10

john blox
17th May 2012, 12:19
I have now tried MkvToMp4and it has successfully created an avc+aac_2+ac3_6_subs mp4 that plays correctly on apple-tv!!! It correctly chooses the ac3_6 audio (unlike MeGui), it also doesn't pause and not play like YAMB, it also adds the subs, unlike xmedia-recode AND sets to sbtl so no need for an editor. I thought I'd got there but...

However when trying the file on an ipad (served via itunes-pc)it plays for 3 secs then stops for 10 then plays again. I though it might be the wifi, BUT the original file created by xmedia-recode (without subs plays fine)

----mediainfo for the MkvToMp4 file
General
Complete name : \\tv0\e$\video\mp4\kahanni.m4v
Format : MPEG-4
Codec ID : M4V
File size : 2.61 GiB
Duration : 2h 2mn
Overall bit rate mode : Variable
Overall bit rate : 3 042 Kbps
Encoded date : UTC 2012-05-17 10:58:18
Tagged date : UTC 2012-05-17 10:58:18
Writing application : MkvToMp4 [www.mkvtomp4.ru] version 0.220a

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.1
Format settings, CABAC : Yes
Format settings, ReFrames : 9 frames
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 2h 2mn
Bit rate : 2 462 Kbps
Maximum bit rate : 11.2 Mbps
Width : 1 280 pixels
Height : 544 pixels
Display aspect ratio : 2.35: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.147
Stream size : 2.11 GiB (81%)
Writing library : x264 core 98 r1649 20cbe10
Encoding settings : cabac=1 / ref=9 / deblock=1:-3:1 / analyse=0x3:0x113 / me=hex / subme=6 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=8 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=2 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=12 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / constrained_intra=0 / bframes=3 / b_pyramid=0 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / weightp=2 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=2pass / mbtree=1 / bitrate=2462 / ratetol=1.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / aq=1:1.00
Language : Hindi
Encoded date : UTC 2012-05-17 10:58:18
Tagged date : UTC 2012-05-17 11:00:32

Audio #1
ID : 2
Format : AAC
Format/Info : Advanced Audio Codec
Format profile : LC
Codec ID : 40
Duration : 2h 2mn
Bit rate mode : Variable
Bit rate : 128 Kbps
Maximum bit rate : 248 Kbps
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 48.0 KHz
Compression mode : Lossy
Stream size : 112 MiB (4%)
Language : Hindi
Encoded date : UTC 2012-05-17 10:59:42
Tagged date : UTC 2012-05-17 11:00:32

Audio #2
ID : 3
Format : AC-3
Format/Info : Audio Coding 3
Mode extension : CM (complete main)
Codec ID : ac-3
Duration : 2h 2mn
Bit rate mode : Constant
Bit rate : 448 Kbps
Channel(s) : 6 channels
Channel positions : Front: L C R, Side: L R, LFE
Sampling rate : 48.0 KHz
Bit depth : 16 bits
Compression mode : Lossy
Stream size : 394 MiB (15%)
Language : English
Encoded date : UTC 2012-05-17 10:59:56
Tagged date : UTC 2012-05-17 11:00:32

Text
ID : 4
Format : Timed text
Muxing mode : sbtl
Codec ID : tx3g
Duration : 1h 58mn
Bit rate mode : Variable
Bit rate : 57 bps
Stream size : 49.0 KiB (0%)
Language : English
Encoded date : UTC 2012-05-17 11:00:32
Tagged date : UTC 2012-05-17 11:00:32