no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
| — | mp4box [2018/02/28 20:58] (current) – created - external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== mp4box ====== | ||
| + | * [[faac]] | ||
| + | * [[libav]] | ||
| + | * [[x264]] | ||
| + | * [[Video Conversion]] | ||
| + | * [[http:// | ||
| + | |||
| + | mp4box is used to mux files into an MP4 container. | ||
| + | |||
| + | == Create an MP4 file from an x264 video and a faac audio file for streaming == | ||
| + | |||
| + | < | ||
| + | faac -b 96k -o audio.m4a audio.wav | ||
| + | mp4box -add video.264 -add audio.m4a -fps 23.976 video.mp4 | ||
| + | mp4box -inter 500 video.mp4 | ||
| + | </ | ||
| + | |||
| + | If you are having trouble with the audio, try re-encoding it at a constant bitrate. | ||
| + | |||
| + | In some cases, mp4box sets it's own FPS for the video, which is why -fps is passed. | ||
| + | |||
| + | ==== Metadata ==== | ||
| + | |||
| + | Get all the supported tags: | ||
| + | |||
| + | < | ||
| + | MP4Box -tag-list | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | Supported iTunes tag modifiers: | ||
| + | album_artist | ||
| + | album | ||
| + | tracknum | ||
| + | track | ||
| + | artist | ||
| + | comment usage: comment=any comment | ||
| + | compilation | ||
| + | composer | ||
| + | created usage: created=time | ||
| + | disk usage: disk=x/N | ||
| + | tool usage: tool=name | ||
| + | genre | ||
| + | name usage: name=name | ||
| + | tempo | ||
| + | writer | ||
| + | group | ||
| + | cover | ||
| + | encoder usage: encoder=name | ||
| + | gapless usage: gapless=yes, | ||
| + | all | ||
| + | </ | ||
| + | |||
| + | Since the location and naming is confusing, here's the '' | ||
| + | |||
| + | < | ||
| + | General | ||
| + | Complete name : audio.m4a | ||
| + | Movie name : name | ||
| + | Album : album | ||
| + | Album/ | ||
| + | Track name/ | ||
| + | Performer | ||
| + | Composer | ||
| + | Comment | ||
| + | trk : track | ||
| + | com : composer | ||
| + | </ | ||
| + | |||
| + | Converting M4A to MP3 with avconv, copying metadata, with id3v1 only: | ||
| + | |||
| + | < | ||
| + | avconv -y -i source.m4a -map_metadata 0 -write_id3v1 1 -vn ouput.mp3 | ||
| + | </ | ||
| + | |||
| + | Converting M4A to MP3 with avconv, copying metadata, with id3v2.3 only: | ||
| + | |||
| + | < | ||
| + | avconv -y -i source.m4a -map_metadata 0 -id3v2_version 3 -vn ouput.mp3 | ||
| + | </ | ||
| + | |||
| + | And stripping extra frames from conversion: | ||
| + | |||
| + | < | ||
| + | id3v2 --remove-frame TXXX output.mp3 | ||
| + | </ | ||
| + | |||
| + | * '' | ||