Convert mkv(h264/ac3) to apple tv format

Discussion in 'Other video questions' started by spanner79, Feb 19, 2010.

  1. spanner79

    spanner79 Member

    Joined:
    Oct 8, 2008
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    11
    Just read the post on the ame subject however did not address this issue that I have discovered recently. Now testing the software listed in that thread however has anyone ever come across this one before?

    Got an h.264 mkv file I wish to convert to mp4 to play on apple tv. Simple enough?

    Used xilisoft mp4 converter and using profiles:

    Apple TV H.264 HD Video
    Apple TV MPEG4 Video
    Apple TV H.264 Video

    All start to encode merrily however when getting to 11 minutes on the dot of the playback time of the video file it stops and says complete. The reulting file is 256,292k each and every time.

    Tried another piece of randomly chosen software, in this case, Jesterware Apple TV Converter and exactly the same happens, resulting clip is 11 minds long on the dot.

    Any clues?

    Many thanks,

    Spanner
     
  2. cyprusrom

    cyprusrom Active member

    Joined:
    Jan 5, 2006
    Messages:
    5,439
    Likes Received:
    1
    Trophy Points:
    96
    First of all, those two application are probably crap(not getting much love around here;I personally never heard of the second one).

    Download MediaInfo and post the info about your file, what video/audio codec you have.

    What are the video/audio codecs requirements for apple TV(I think H.264 with AAC/AC3 audio?;most likely you already have that in the MKV)? You might be able to just use Yamb and repack everything in an mp4 container, without any conversion and loss of video quality(or maybe get away with converting audio only;that's why use MediaInfo and display the info).

    If you need to do any conversion, use HandBrake and the Apple TV profile.
     
  3. spanner79

    spanner79 Member

    Joined:
    Oct 8, 2008
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    11
    Ok, Media info as requested:

    Format : Matroska
    File size : 1.09 GiB
    Duration : 41mn 24s
    Overall bit rate : 3 778 Kbps
    Encoded date : UTC 2009-09-09 01:48:55
    Writing application : mkvmerge v2.3.0 ('Freak U') built on Oct 7 2008 20:39:59
    Writing library : libebml v0.7.7 + libmatroska v0.8.1

    Video
    ID : 2
    Format : AVC
    Format/Info : Advanced Video Codec
    Format profile : High@L3.1
    Format settings, CABAC : Yes
    Format settings, ReFrames : 3 frames
    Muxing mode : Container profile=Unknown@3.1
    Codec ID : V_MPEG4/ISO/AVC
    Duration : 41mn 21s
    Bit rate : 3 319 Kbps
    Nominal bit rate : 3 391 Kbps
    Width : 1 280 pixels
    Height : 720 pixels
    Display aspect ratio : 16:9
    Frame rate : 23.976 fps
    Resolution : 8 bits
    Colorimetry : 4:2:0
    Scan type : Progressive
    Bits/(Pixel*Frame) : 0.150
    Stream size : 982 MiB (88%)
    Writing library : x264 core 68 r1184tw
    Encoding settings : cabac=1 / ref=3 / deblock=1:0:0 / analyse=0x3:0x133 / me=hex / subme=6 / psy_rd=1.0:0.0 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / chroma_qp_offset=-2 / threads=6 / nr=0 / decimate=1 / mbaff=0 / bframes=3 / b_pyramid=1 / b_adapt=2 / b_bias=0 / direct=3 / wpredb=1 / keyint=240 / keyint_min=24 / scenecut=40 / rc=2pass / bitrate=3391 / ratetol=1.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / pb_ratio=1.30 / aq=1:1.00
    Language : English

    Audio
    ID : 1
    Format : AC-3
    Format/Info : Audio Coding 3
    Codec ID : A_AC3
    Duration : 41mn 24s
    Bit rate mode : Constant
    Bit rate : 384 Kbps
    Channel(s) : 6 channels
    Channel positions : Front: L C R, Surround: L R, LFE
    Sampling rate : 48.0 KHz
    Stream size : 114 MiB (10%)

    Apple TV formats are:

    H.264 and protected H.264 (from iTunes Store): Up to 5 Mbps, Progressive Main Profile (CAVLC) with AAC-LC audio up to 160 Kbps (maximum resolution: 1280 by 720 pixels at 24 fps, 960 by 540 pixels at 30 fps) in .m4v, .mp4 and .mov file formats
    iTunes Store purchased video: 320 by 240 pixels, 640 by 480 pixels, 720 by 480 pixels (anamorphic) or high-definition 720p
    MPEG-4: Up to 3 Mbps, Simple Profile with AAC-LC audio up to 160 Kbps (maximum resolution: 720 by 432 pixels at 30 fps) in .m4v, .mp4 and .mov file formats
    Audio formats supported
    AAC (16 to 320 Kbps); protected AAC (from iTunes Store); MP3 (16 to 320 Kbps); MP3 VBR; Apple Lossless; AIFF; WAV; Dolby Digital 5.1 surround sound pass-through

    Will now try as suggested!
     
  4. cyprusrom

    cyprusrom Active member

    Joined:
    Jan 5, 2006
    Messages:
    5,439
    Likes Received:
    1
    Trophy Points:
    96
    Give Yamb a try. The only thing that jumps out is the CABAC in your video, and the CAVLC supported by Apple TV.
     
    Last edited: Feb 19, 2010
  5. spanner79

    spanner79 Member

    Joined:
    Oct 8, 2008
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    11
    Have just downloaded it and tried it. The resulting file will not import in to iTunes in order to stream unless I am missing some setting contraints here? Does not seem to have too many options available!
     
  6. cyprusrom

    cyprusrom Active member

    Joined:
    Jan 5, 2006
    Messages:
    5,439
    Likes Received:
    1
    Trophy Points:
    96
    I don't think it'll work, you might need to re-encode, your video is encoded high profile with CABAC. Try HandBrake and the Apple TV profile.Just encode the video and the audio pass-through.
     
    Last edited: Feb 19, 2010
  7. spanner79

    spanner79 Member

    Joined:
    Oct 8, 2008
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    11
    Ok thanks, Am trying Handbrake now. Seem to remember this before and it did not work so lets see!
     

Share This Page