Benches Apple TV

8

Apple TV - h264 MP4 AAC.

apple Verified

Imported from the Apple Support Forums via the Wayback Machine 🔗

I recently purchased an Apple TV and am now taking the opportunity to convert all my videos to mp4, just so I can have a universal format across the board.

I have been using ffmpegX to convert them. For video I pick the mp4 codec (the H264 [.MP4] (mencoder) one). I set the video size to be the same as the source (and this also dictates which frame rate is chosen) - just click on best which normally uses something very close to the source frame rate. (There's probably not a lot of point in changing the frame rate and aspect ratios, since the information isn't there to begin with, so it's not going to look any better (ie: for most files are going from xvid to h264). I suppose that also depends on the aspect ratio and whatever TV you have, but whatever...). For the audio codec I use AAC (MOV/MP4/3GP) at 192kbit/s.

At the end of the day I want all my videos to be the same frame rate and aspect ratio, but in h264 video format and aac video format.

It's all working fine. The thing is, it's going to take about 2 months I reckon, to do all my videos on my mac; so I'd like to speed the process up a bit by using my Gentoo box.

Can someone give me a command I can use which will do all the above options? I've spent hours looking at threads citing ffmpeg, transcode, mediafork and handbrake as solutions for iPod and DVD conversion... but no one seems to have a good answer for high quality mp4 h264/aac encoding which can be used for the Apple TV (and will of course also look good on the computer).

Obviously, by the command above, I'm using mencoder to do this, and am getting good results, so lets stick with that shall we?

MacBook Pro 15.4" - Intel Core Duo 2.0 Mac OS X (10.4.9) 1GB RAM

8 replies

Sign in or join Beachball Help to reply.

  1. 0

    Winston Churchill

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    I can't give you any help using mencoder, I don't use the application. However it is an application with a basket full of options, so I have to assume you are reasonably familiar with encoding digital video. However I noted couple of things in your post that I thought I'd mention.

    For the audio codec I use AAC (MOV/MP4/3GP) at 192kbit/s.

    I'm assuming you mean audio only files and not the audio track of a video since 192 kbps is to high a bitrate for video files and won't play on the tv.

    At the end of the day I want all my videos to be the same frame rate.

    This isn't a good idea. I'm not sure where you are from, is that Townsville in Oz, if so your likely to have a mix of 25 and 30 fps videos and maybe some 24 fps ones, despite mencoder apparently having good filters for changing framerate, I doubt the change will be unnoticeable.

    Mencoder seems to have a number of filters which if used properly will help produce better quality video, even so bitrate and the number of passes the encoding process takes should still be your major settings when it comes to quality.

    User uploaded file

  2. 0

    jcataldo

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    I'm assuming you mean audio only files and not the

    audio track of a video since 192 kbps is to high a

    bitrate for video files and won't play on the tv.

    Yes, 192kbps as an audio track of a video. It plays fine. Which is weird... since the Apple TV specs say only up to 160kbps...

    This isn't a good idea. I'm not sure where you are

    from, is that Townsville in Oz, if so your likely to

    have a mix of 25 and 30 fps videos and maybe some 24

    fps ones, despite mencoder apparently having good

    filters for changing framerate, I doubt the change

    will be unnoticeable.

    I see - if I don't specify an option, it should make the target bitrate the same as the source.

    MacBook Pro 15.4" - Intel Core Duo 2.0 Mac OS X (10.4.6) 1GB RAM

    MacBook Pro 15.4" - Intel Core Duo 2.0 Mac OS X (10.4.6) 1GB RAM

  3. 0

    Winston Churchill

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Yes, 192kbps as an audio track of a video. It plays fine. Which is weird... since the Apple TV specs say only up to 160kbps...

    Mmmm, it is weird but not entirely unusual, I've encoded video at 1024 x 576 @ 25 fps and 1280 x 720 @ 25 fps, both of which are outside the tv specs but play, clearly the specs are made to be broken, especially if you are in a PAL region.

    I see - if I don't specify an option, it should make the target bitrate the same as the source.

    (I assume you mean frame rate) Like I say I don't use mencoder but I assume if you don't specify an option it will default to that of the source, personally I'd feel a little more confident if there was an option "same as Source" and I selected that.

    Also does mencoder have any options for predictive framing, this is an area that could help with video quality.

    User uploaded file

  4. 0

    DAD

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    jcataldo,

    I had a very similar situation with a slow (1.8GHz G5) iMac and a fast Linux server. Here is my suggestion.

    Download a demo copy of VisualHub. This program is basically a front end for ffmpeg. Find the setting that works best for you using VisualHub. Then look in the log files for the command string that is sent to ffmpeg. Now you can use this same command string to run ffmpeg on your Gentoo box.

    Cheers,

    Dad

    20 in. G5 iMac, AppleTV, Airport Express Mac OS X (10.4.9)

  5. 0

    jcataldo

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Thanks for that! I'm close now:

    ffmpeg -threads 4 -vcodec h264 -b 2000k -acodec aac -ar 48000 -ac 2 -ab 160k -i in.mpg out.mp4

    I just need to figure out how to do 2 pass...

  6. 0

    DAD

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    The ffmpeg documentation at

    http://ffmpeg.mplayerhq.hu/ffmpeg-doc.html

    is pretty good. It will tell you how to enable 2 pass encoding. However, from my tests it really doesn't make much difference if you are targeting the max AppleTV rates already.

    Cheers,

    DAD

    20 in. G5 iMac, AppleTV, Airport Express Mac OS X (10.4.9)

  7. 0

    jcataldo

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    What if I just use the -sameq flag?

  8. 0

    jcataldo

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    I give up. Just going to use Avidemux. 🙂