wswartzendruber
28th April 2008, 20:21
Hey Guys,
Google is awesome, and has answered a lot of my questions, but I'm still trying to perfect my ripping, transcoding, and muxing technique. I want my MP4s to be playable on as many devices and players as possible (which support HE-AAC).
I have the following questions:
1. What is the appropriate way to tag MP4 movies? I've read that Apple is the "standard" but after looking in AtomicParsley, I don't see where to put metadata information for movies, just for TV shows and music.
2. How does MP4Box handle chapters? Is this done by using the advanced content technique or by using Nero's chapter technique?
3. How do I change the profile level on my H.264 streams? I use MEncoder to rip from the DVD to H.264 and it doesn't provide this option. Note that I prefer using MEncoder as it seems to correctly handle converting from variable framerate to fixed framerate.
4. Is dvdxchap messed up with timing? When using dvdxchap indexes in Matroska, it doesn't skip to the proper place in the movie. Instead, it skips more and more short of the appropriate place as the movie goes on. I have also observed this behavior with VLC. I have not been able to test this using MP4 because chapter support is not yet implemented there with MPlayer.
Here is how I've currently been doing things. This is not a script, but instead a guide I wrote up for myself to use.
# Rip the video from the DVD.
mencoder dvd://1 -noaspect -vf crop=710:470,scale=720:480,dsize=854:480,harddup -ofps 24000/1001 -oac copy -ovc x264 -x264encopts frameref=3:mixed_refs:bframes=3:brdo:bime:weight_b:me=umh:subq=6:trellis=1:me_range=12:8x8dct:nofast_pskip:threads=2:crf=20 -o "video.avi"
mencoder video.avi -oac copy -ovc copy -of rawvideo -o video.264
# Rip the audio from the DVD.
mplayer dvd://1 -vo null -ao "pcm:fast:file=audio.wav" -channels 2 -aid ?
normalize ?.wav
neroaacenc_sse -br 80000 -2pass -he -if audio.wav -of audio.m4a
# Rip the subtitles from the DVD.
mencoder dvd://1 -oac copy -ovc copy -vobsubout "subtitles" -sid ? -o /dev/null
# Rip the chapter index from the DVD.
dvdxchap -t 1 /dev/hda > chapters.txt
# Mux the separate streams into a single MP4 file.
MP4Box -new "?.mp4" -chap chapters.txt -par 1=427:360 -fps 23.976024 -add video.264#1 -lang eng -name 1="Dialogue" -add audio.m4a#1 -lang eng -name 1="Dialogue" -add subtitles.idx#?
Google is awesome, and has answered a lot of my questions, but I'm still trying to perfect my ripping, transcoding, and muxing technique. I want my MP4s to be playable on as many devices and players as possible (which support HE-AAC).
I have the following questions:
1. What is the appropriate way to tag MP4 movies? I've read that Apple is the "standard" but after looking in AtomicParsley, I don't see where to put metadata information for movies, just for TV shows and music.
2. How does MP4Box handle chapters? Is this done by using the advanced content technique or by using Nero's chapter technique?
3. How do I change the profile level on my H.264 streams? I use MEncoder to rip from the DVD to H.264 and it doesn't provide this option. Note that I prefer using MEncoder as it seems to correctly handle converting from variable framerate to fixed framerate.
4. Is dvdxchap messed up with timing? When using dvdxchap indexes in Matroska, it doesn't skip to the proper place in the movie. Instead, it skips more and more short of the appropriate place as the movie goes on. I have also observed this behavior with VLC. I have not been able to test this using MP4 because chapter support is not yet implemented there with MPlayer.
Here is how I've currently been doing things. This is not a script, but instead a guide I wrote up for myself to use.
# Rip the video from the DVD.
mencoder dvd://1 -noaspect -vf crop=710:470,scale=720:480,dsize=854:480,harddup -ofps 24000/1001 -oac copy -ovc x264 -x264encopts frameref=3:mixed_refs:bframes=3:brdo:bime:weight_b:me=umh:subq=6:trellis=1:me_range=12:8x8dct:nofast_pskip:threads=2:crf=20 -o "video.avi"
mencoder video.avi -oac copy -ovc copy -of rawvideo -o video.264
# Rip the audio from the DVD.
mplayer dvd://1 -vo null -ao "pcm:fast:file=audio.wav" -channels 2 -aid ?
normalize ?.wav
neroaacenc_sse -br 80000 -2pass -he -if audio.wav -of audio.m4a
# Rip the subtitles from the DVD.
mencoder dvd://1 -oac copy -ovc copy -vobsubout "subtitles" -sid ? -o /dev/null
# Rip the chapter index from the DVD.
dvdxchap -t 1 /dev/hda > chapters.txt
# Mux the separate streams into a single MP4 file.
MP4Box -new "?.mp4" -chap chapters.txt -par 1=427:360 -fps 23.976024 -add video.264#1 -lang eng -name 1="Dialogue" -add audio.m4a#1 -lang eng -name 1="Dialogue" -add subtitles.idx#?