Skip to content

Instantly share code, notes, and snippets.

@frogonwheels
Last active December 28, 2015 04:49
Show Gist options
  • Save frogonwheels/7445670 to your computer and use it in GitHub Desktop.
Save frogonwheels/7445670 to your computer and use it in GitHub Desktop.
Avconv
avconv -i "${infile}" -r 50 -vf "yadif=0:-1:1,crop=in_w:in_h*6/8:1:in_h/8,scale=-1:360,pad=640:360:(ow-iw)/2:(oh-ih)/2,setsar=1:1" -af "volume=-3dB" -ar 48000 -b 3200k -codec:a aac -strict experimental -codec:v mpeg4 "${outfile}"
Outputs>
avconv version 10_alpha1-6:10~~git20131111.45ef963-1~ubuntu13.10.1, Copyright (c) 2000-2013 the Libav developers
built on Nov 11 2013 22:51:26 with gcc 4.8 (Ubuntu/Linaro 4.8.1-10ubuntu8)
[mpeg @ 0x1f82680] max_analyze_duration reached
Guessed Channel Layout for Input Stream #0.1 : stereo
Input #0, mpeg, from 'TheInvitation.VOB':
Duration: 00:04:57.47, start: 0.360000, bitrate: 7510 kb/s
Stream #0.0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x576 [PAR 16:15 DAR 4:3], 7700 kb/s, 25 fps, 90k tbn, 50 tbc
Stream #0.1[0xa0]: Audio: pcm_dvd, 48000 Hz, stereo, s16, 1536 kb/s
[scale @ 0x1f88a40] The <w>:<h>:flags=<flags> option syntax is deprecated. Use either <w>:<h>:<flags> or w=<w>:h=<h>:flags=<flags>.
[setsar @ 0x1f89e00] This syntax is deprecated, use dar=<number> or dar=num/den.
[aac @ 0x1f841a0] Too many bits per frame requested
Output #0, mp4, to 'TheInvitation.mp4':
Stream #0.0: Video: mpeg4, yuv420p, 640x360 [PAR 1:1 DAR 16:9], q=2-31, 3200 kb/s, 90k tbn, 50 tbc
Stream #0.1: Audio: aac, 48000 Hz, stereo, fltp, 3200 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (mpeg2video -> mpeg4)
Stream #0:1 -> #0:1 (pcm_dvd -> aac)
Error while opening encoder for output stream #0:1 - maybe incorrect parameters such as bit_rate, rate, width or height
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment