[FFmpeg-user] setdar ratio - syntax
Kieran O Leary
kieran.o.leary at gmail.com
Sun Nov 25 10:44:25 EET 2018
On Sun, Nov 25, 2018 at 8:02 AM Gyan Doshi <gyandoshi at gmail.com> wrote:
>
> On 25-11-2018 06:45 AM, Kieran O Leary wrote:
>
> > I tried to search through the commit history but didn't have enough
> > time and knowledge to figure out when this happened.
> > I don't see why the previous usage needed to change.
>
>
> Since ':' is used to delimit options within filters, the colon should be
> escaped and the string quoted i.e. 'X\:Y', which works for me.
Of course, my bad - I think I was posting too late ;) Thanks Gyan.
I just checked my scripts and I never use colons as the delimiter, I
use slashes:
$ ./ffmpeg -f lavfi -i testsrc -vf scale=720/576,setdar=4/3 -t 1 ratio.mov
ffmpeg version N-92521-g737b5f5869 Copyright (c) 2000-2018 the FFmpeg developers
built with gcc 7 (Ubuntu 7.3.0-27ubuntu1~18.04)
configuration:
libavutil 56. 24.101 / 56. 24.101
libavcodec 58. 40.100 / 58. 40.100
libavformat 58. 23.100 / 58. 23.100
libavdevice 58. 6.100 / 58. 6.100
libavfilter 7. 46.100 / 7. 46.100
libswscale 5. 4.100 / 5. 4.100
libswresample 3. 4.100 / 3. 4.100
Input #0, lavfi, from 'testsrc':
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #0:0: Video: rawvideo (RGB[24] / 0x18424752), rgb24,
320x240 [SAR 1:1 DAR 4:3], 25 tbr, 25 tbn, 25 tbc
File 'ratio.mov' already exists. Overwrite ? [y/N] y
Stream mapping:
Stream #0:0 -> #0:0 (rawvideo (native) -> mpeg4 (native))
Press [q] to stop, [?] for help
Output #0, mov, to 'ratio.mov':
Metadata:
encoder : Lavf58.23.100
Stream #0:0: Video: mpeg4 (mp4v / 0x7634706D), yuv420p, 720x576
[SAR 16:15 DAR 4:3], q=2-31, 200 kb/s, 25 fps, 12800 tbn, 25 tbc
Metadata:
encoder : Lavc58.40.100 mpeg4
Side data:
cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: -1
frame= 25 fps=0.0 q=1.9 Lsize= 127kB time=00:00:00.96
bitrate=1079.9kbits/s speed=15.6x
video:126kB audio:0kB subtitle:0kB other streams:0kB global
headers:0kB muxing overhead: 0.797990%
-Kieran
More information about the ffmpeg-user
mailing list