q 3 stands for default quality, you may change 3 from -1 to 10, or omit the option.
If you want to create id3v1 and id3v2 tags at the same time, you can use: lame -V 5 -add-id3v2 -pad-id3v2 -ignore-tag-errors -ta artist -tl album -tt title -tn track -ty year -tg genre -tc comment file.wav file.mp3įor OGG, the most traditional encoder is Vorbis sudo apt-get install vorbis-toolsĪnd to encode: oggenc -q 3 -o file.ogg file.wav Use -V 3 for average bitrates around ~200kbps This will create a high-quality MP3 VBR file around ~130kbps, which is great for casual listening. sudo apt-get install lameĪnd to encode: lame -V 5 file.wav file.mp3 To avoid long strings (and unicode issues) everything is in the same directory, and this is under unix., considered by many (including me) THE best MP3 encoder, specially for VBR. I can do this for avi in seconds, but not mp4.
I can't even find a frontend that will do this (just re-muxing in the audio over the old audio in the mp4). I've tried changing the syntax a little each time, but it always returns the same stream (so -map 1:a:0 = -map 1:a = -map 1, etc.).Ĭl string: "ffmpeg -i video-01.mp4 -i audio-01.m4a -map 0:v -vcodec copy -map 1:a -acodec copy newvideo-01.mp4"Īm I missing or overlooking something in the ffmpeg help? or doing something blatantly stupid?Īll of the audio was recorded at different distances (and therefore, levels), so the normalization is absolutely necessary. All the feedback from ffmpeg is spot on, as expected. VLC loses initial keyframes sort-of giving medium gray as the keyframe until about 10 seconds in.Ħ. The video loses something, and in some players, pausing or doing any effect (slow, fast play, etc.) causes things similar to keyframe loss or corruption. The resultant video plays (sort of), but the audio does not, in all playersĥ. Quicktime, however, shows the audio track ONLY has a zero length 0:00:00.0Ĥ. All tools show the audio in the mp4, they all show proper info for all the streams (vid and aud).ģ. The resulting file ends up 8MB larger (this is acceptable)Ģ. However, using map and copy with ffmpeg doesn't seem to work right:ġ. The new audio is the old, except de-hiss'd, normalized, and with several fades placed. m4a audio file and over-writing the existing one in an. I tried this (came here after trying and failing), with the option of taking an. bash: syntax error near unexpected token del mkvlist.txt
bash: syntax error near unexpected token del filelist.txtįor /F "delims= " %%F in (mkvlist.txt) do ffmpeg.exe -i "%%F" -vcodec copy -aco dec copy "%%~dF%%~pF%%~nF.mp4"Ĭommand 'mdel' from package 'mtools' (main)Ĭommand 'delp' from package 'fp-utils-2.4.4' (universe)Ĭommand 'el' from package 'oneliner-el' (universe)Ĭommand 'tel' from package 'orville-write' (universe)Ĭommand 'deal' from package 'deal' (universe)Ĭommand 'hdel' from package 'hfsutils' (main)Ĭommand 'bel' from package 'belier' (universe)Ĭommand 'qdel' from package 'slurm-llnl-torque' (universe)Ĭommand 'qdel' from package 'gridengine-client' (universe)Ĭommand 'qdel' from package 'torque-client-x11' (universe)Ĭommand 'qdel' from package 'torque-client' (universe)ĭel: command not for /F "delims= " %%F in (mkvlist.txt) do ffmpeg.exe -i "%%F" -vcodec copy -acodec copy "%%~dF%%~pF%%~nF.mp4" Thanks, but unfortunately it didn't work.