Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

.mark.

macrumors 6502
Original poster
May 28, 2007
266
1
Jersey, C.I.
Hi, can anyone tell me what settings I should be using to convert an MKV file to use with apple tv. I want to keep the quality as close to the original as possible as the files will be HD (720p or 1080p).

Also, should I be clicking the H.264 encoding setting?
 

NightStorm

macrumors 68000
Jan 26, 2006
1,860
66
Whitehouse, OH
All I do is set it to convert for AppleTV at the Go Nuts quality setting (I believe H264 will automatically turn on, but you should check). I also go into the Advanced settings and set the audio bitrate to 160kbps.

The result is a pretty good AppleTV-compatible MP4 file.
 

Mindflux

macrumors 68000
Oct 20, 2007
1,987
1
Austin
All I do is set it to convert for AppleTV at the Go Nuts quality setting (I believe H264 will automatically turn on, but you should check). I also go into the Advanced settings and set the audio bitrate to 160kbps.

The result is a pretty good AppleTV-compatible MP4 file.


how long does your encode (or transcoding) take with gonuts?
 

NightStorm

macrumors 68000
Jan 26, 2006
1,860
66
Whitehouse, OH
beh! see that sort of time to encode a movie just baffles me. it's twice as long (or more) than most films.
I think its certainly justifiable as you are taking a high bitrate, high resolution H264 high profile video stream and re-encoding it to match the lower specifications (i.e. main profile) of the AppleTV. It isn't a simple transcoding process.
 

peeaanuut

macrumors 65816
Sep 10, 2007
1,048
1
Southern California
I was able to get a 720p ripped movie with 5.1 audio. I know I need to down convert the audio but VH was giving me an error message about not being able to convert to audio portion of the mkv file. Anyone have any clue about that?
 

.mark.

macrumors 6502
Original poster
May 28, 2007
266
1
Jersey, C.I.
thanks for all your advice guys. I'm getting an error tho! The error reads

"An error prevented <fileName.mkv>'s conversion from starting. See below for the explanation: Resampling with input channels greater than 2 unsupported.Abort at ffmpeg.c:1574"

Anyone know a work around?! I'm sure there must be!
 

Rob1980

macrumors member
Feb 25, 2006
40
0
Ramsgate UK
thanks for all your advice guys. I'm getting an error tho! The error reads

"An error prevented <fileName.mkv>'s conversion from starting. See below for the explanation: Resampling with input channels greater than 2 unsupported.Abort at ffmpeg.c:1574"

Anyone know a work around?! I'm sure there must be!

Have you tried changing the settings and force quicktime settings
 

ntrigue

macrumors 68040
Jul 30, 2007
3,805
4
Please be aware that the file size must be less than 4GB to play nice with AppleTV.
 

finglonger

macrumors newbie
Dec 18, 2007
6
0
thanks for all your advice guys. I'm getting an error tho! The error reads

"An error prevented <fileName.mkv>'s conversion from starting. See below for the explanation: Resampling with input channels greater than 2 unsupported.Abort at ffmpeg.c:1574"

Anyone know a work around?! I'm sure there must be!

I had a similar problem converting an MKV file with a 5.1 multi-channel soundtrack into something more useful, and by largely trial and error I've FINALLY found a fix. It uses Ffmpegx, so download that and the codecs first before you try this. It might also help if you download Perian for Quicktime. And if I don't mention it, LEAVE THE SETTINGS ALONE!

Anyway, in Ffmpegx: under VIDEO select XVid [.AVI] (mencoder) and set bitrate to 5500 and framerate to unspecified (you may need to mess around with this, but unspecified keeps it as is in the original). in AUDIO, leave EVERYTHING as is. In FILTERS, tick deinterlace, denoise, dering and deblock. In OPTIONS, tick High quality, Two pass and Trellis, and change from fast bilinear to bilinear. Then encode.

This should hopefully give you an AVI file with identical quality visuals and a stereo soundtrack that will play nice in pretty much anything - even Quicktime. if you need to, you can then re-convert this using VisualHub or similar.

Hope this helps!
 

.mark.

macrumors 6502
Original poster
May 28, 2007
266
1
Jersey, C.I.
I had a similar problem converting an MKV file with a 5.1 multi-channel soundtrack into something more useful, and by largely trial and error I've FINALLY found a fix. It uses Ffmpegx, so download that and the codecs first before you try this. It might also help if you download Perian for Quicktime. And if I don't mention it, LEAVE THE SETTINGS ALONE!

Anyway, in Ffmpegx: under VIDEO select XVid [.AVI] (mencoder) and set bitrate to 5500 and framerate to unspecified (you may need to mess around with this, but unspecified keeps it as is in the original). in AUDIO, leave EVERYTHING as is. In FILTERS, tick deinterlace, denoise, dering and deblock. In OPTIONS, tick High quality, Two pass and Trellis, and change from fast bilinear to bilinear. Then encode.

This should hopefully give you an AVI file with identical quality visuals and a stereo soundtrack that will play nice in pretty much anything - even Quicktime. if you need to, you can then re-convert this using VisualHub or similar.

Hope this helps!

cheers buddy - will give this a try later when i've got some time
 

stomer

macrumors 6502a
Apr 2, 2007
608
1
Leeds, UK
I was able to get a 720p ripped movie with 5.1 audio. I know I need to down convert the audio but VH was giving me an error message about not being able to convert to audio portion of the mkv file. Anyone have any clue about that?
Just leave it. Don't resample it. To do this, open VisualHub, click Advanced, and in the field 'Extra FFMpeg flags:', enter '-acodec copy'.
This tells VisualHub to skip re-encoding the audio, and instead just perform a 'passthrough'.

Also, apropos quality settings. I don't think that there's much point in re-encoding video at a higher bitrate than the original, so I wonder if 'Go Nuts' is mostly wasting disk space. If your re-encode's file size is larger than the original, then you're probably wasting disk space.
I tend to have the H.264 box ticked, Optimize for: AppleTV and Quality set to High. I find that this gives me quality that is indistinguishable from the original and doesn't waste too much disk space either. Failing that, I'll find the bitrate of the original file (CMD+4) and set that bitrate in the 'Advanced...' tab.
 

Stomps

macrumors newbie
Feb 25, 2008
2
0
Just leave it. Don't resample it. To do this, open VisualHub, click Advanced, and in the field 'Extra FFMpeg flags:', enter '-acodec copy'.
This tells VisualHub to skip re-encoding the audio, and instead just perform a 'passthrough'.

Also, apropos quality settings. I don't think that there's much point in re-encoding video at a higher bitrate than the original, so I wonder if 'Go Nuts' is mostly wasting disk space. If your re-encode's file size is larger than the original, then you're probably wasting disk space.
I tend to have the H.264 box ticked, Optimize for: AppleTV and Quality set to High. I find that this gives me quality that is indistinguishable from the original and doesn't waste too much disk space either. Failing that, I'll find the bitrate of the original file (CMD+4) and set that bitrate in the 'Advanced...' tab.

I have found another, yet still painful solution.

First in VisualHub, passthrough the audio as stated above, re-encoding the video. For example iTunes, optimized for All, Go Nuts with H.264 box checked.

Then with the finished file, open in Quicktime and passthrough the video, re-encoding the audio from 5.1 to stereo. For example Export to MPEG-4, options: File format - mp4, Video Format - passthrough. Audio - AAC-LC.

This is ripping my .mkv 5.1 files to stereo .mp4.

2-step process but doesn't really require any more time as the audio and video are done separately instead of together.

I have found this file compatible with my ATV, iPhone and with my Xbox 360 over Connect360. Maybe overkill but compatible is compatible.
 

SpaceJello

macrumors 6502
Dec 2, 2006
441
83
Then with the finished file, open in Quicktime and passthrough the video, re-encoding the audio from 5.1 to stereo. For example Export to MPEG-4, options: File format - mp4, Video Format - passthrough. Audio - AAC-LC.

This is ripping my .mkv 5.1 files to stereo .mp4.

Is there a workaround to keep the 5.1 within the mp4 along with stereo but have the file be compatible for Apple TV, iphone etc?

Or can that only happen with m4v?
 

Nimiety

macrumors regular
Sep 6, 2006
117
1
With 2.3, this could be a very helpful thread, particularly if the last poster's question gets answered...
 

dynaflash

macrumors 68020
Mar 27, 2003
2,119
8
At least as of 2.2 the atv will only recognize the ac3 trac if it is named .m4v (and for that matter chapters).
 

spacepower7

macrumors 68000
May 6, 2004
1,509
1
First

There's two basic routes to go:

1- Just put it in Visualhub (or HandBrake SnapShot 0.9.3?) and use AppleTV preset. Convert for several hours, and be done with it. Personally, in Visualhub I would use AppleTV with setting of high, go nuts will increase file sized with little noticeable effect.

2- Become obsessive compulsive and start learning alot more about the process and details of the various video formats. Wikipedia, Handbrake forum and wiki, etc (read Dynaflash's video posts bc he is one of the developers of Handbrake)

Step 1: Install MediaInfo Mac (free) to learn more about the video you want to convert. It COULD be possible that the actually video and audio streams in your MKV files are actually AppleTV compatible. Which means learning more about the different formats/streams. Sometimes you don't have to convert (streams) but change containers (MKV,MP4,M4V,AVI) This is called remuxing, where you can extract the audio and video out of the MKV container and then recombine them back into a MP4 container. This may only take 1-10 minutes depending on the length(time) of the video.

If you read this far......

1- You're bored, confused and could care less about video formats, then go route 1 and be done with it and don't waste your time, you will still have good results. Run your conversions overnight or when your not using your Mac.

2- If this stuff is interesting to you, Read, Read, Read, and experiment.
 

brobins

macrumors member
Nov 27, 2008
77
0
There's two basic routes to go:

1- Just put it in Visualhub (or HandBrake SnapShot 0.9.3?) and use AppleTV preset. Convert for several hours, and be done with it. Personally, in Visualhub I would use AppleTV with setting of high, go nuts will increase file sized with little noticeable effect.

2- Become obsessive compulsive and start learning alot more about the process and details of the various video formats. Wikipedia, Handbrake forum and wiki, etc (read Dynaflash's video posts bc he is one of the developers of Handbrake)

Step 1: Install MediaInfo Mac (free) to learn more about the video you want to convert. It COULD be possible that the actually video and audio streams in your MKV files are actually AppleTV compatible. Which means learning more about the different formats/streams. Sometimes you don't have to convert (streams) but change containers (MKV,MP4,M4V,AVI) This is called remuxing, where you can extract the audio and video out of the MKV container and then recombine them back into a MP4 container. This may only take 1-10 minutes depending on the length(time) of the video.

If you read this far......

1- You're bored, confused and could care less about video formats, then go route 1 and be done with it and don't waste your time, you will still have good results. Run your conversions overnight or when your not using your Mac.

2- If this stuff is interesting to you, Read, Read, Read, and experiment.


Great advice!

What is the best method of remuxing a mkv into a m4v on OS X?

Many Thanks,
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.