[FFmpeg-user] setdar ratio - syntax

Ben Barker ben at bbarker.co.uk
Sun Nov 25 13:12:27 EET 2018


Yep - just checked:

Slashes do indeed work as expected, even if the "ratio" parameter is left
out. However, I have left the "ratio" in for the moment, since it is what
the manual suggests, so less likelihood of future problems!



On Sun, Nov 25, 2018 at 8:44 AM Kieran O Leary <kieran.o.leary at gmail.com>
wrote:

> 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
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".


More information about the ffmpeg-user mailing list