Apple TV - h264 MP4 AAC.

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

Posted on Jun 18, 2007 3:49 PM

Reply
8 replies

Jun 18, 2007 4:44 PM in response to jcataldo

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

Jun 18, 2007 4:56 PM in response to Winston Churchill

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

Jun 18, 2007 5:20 PM in response to jcataldo

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

Jun 18, 2007 5:35 PM in response to jcataldo

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)

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Apple TV - h264 MP4 AAC.

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.