How to correctly chain filters

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

How to correctly chain filters

Ulf Zibis
Hi,

I have tried 2 forms:
$ ffmpeg -i in.vob -movflags +faststart -vf bwdif -vf hqdn3d -q 3 -c:a
copy out_bwdif_hqdn3d.vob
$ ffmpeg -i in.vob -movflags +faststart -vf bwdif,hqdn3d -q 3 -c:a copy
out_bwdif,hqdn3d.vob

The 1st one results in a file of size 229 MB, the 2nd of size 328 MB.

Can anyone tell me, what is the difference of both syntax?

Regards,

Ulf

_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: How to correctly chain filters

kumowoon1025
In the first one, the second -vf option overrides the one before it, so the
bwdif filter isn't applied.
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: How to correctly chain filters

Moritz Barsnick
In reply to this post by Ulf Zibis
On Fri, Dec 07, 2018 at 03:22:56 +0100, Ulf Zibis wrote:

> I have tried 2 forms:
> $ ffmpeg -i in.vob -movflags +faststart -vf bwdif -vf hqdn3d -q 3 -c:a
> copy out_bwdif_hqdn3d.vob
> $ ffmpeg -i in.vob -movflags +faststart -vf bwdif,hqdn3d -q 3 -c:a copy
> out_bwdif,hqdn3d.vob
>
> The 1st one results in a file of size 229 MB, the 2nd of size 328 MB.
>
> Can anyone tell me, what is the difference of both syntax?

ffmpeg does *not* support multiple "-vf" options for the same output,
only one of them is used. (It does not warn on multiple use either,
though.) The correct syntax for chaining filters is the comma:

https://ffmpeg.org/ffmpeg-filters.html#Filtering-Introduction

    "Filters in the same linear chain are separated by commas, and
     distinct linear chains of filters are separated by semicolons."

So your second command is the one you intended.

Cheers,
Moritz
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: How to correctly chain filters

Ulf Zibis
Hi Moritz

Am 07.12.18 um 09:20 schrieb Moritz Barsnick:

> ffmpeg does *not* support multiple "-vf" options for the same output,
> only one of them is used. (It does not warn on multiple use either,
> though.) The correct syntax for chaining filters is the comma:
>
> https://ffmpeg.org/ffmpeg-filters.html#Filtering-Introduction
>
>     "Filters in the same linear chain are separated by commas, and
>      distinct linear chains of filters are separated by semicolons."
>
> So your second command is the one you intended.

Thanks! Now I understand what I was observing.

-Ulf

_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: How to correctly chain filters

Carl Eugen Hoyos-2
In reply to this post by Ulf Zibis
2018-12-07 3:22 GMT+01:00, Ulf Zibis <[hidden email]>:

> I have tried 2 forms:
> $ ffmpeg -i in.vob -movflags +faststart -vf bwdif -vf hqdn3d
> -q 3 -c:a copy out_bwdif_hqdn3d.vob

Should have improved in current FFmpeg git head.

Carl Eugen
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: How to correctly chain filters

Ulf Zibis
Carl Eugen, thanks for remembering the question ..

Am 15.01.19 um 01:30 schrieb Carl Eugen Hoyos:
> 2018-12-07 3:22 GMT+01:00, Ulf Zibis <[hidden email]>:
>
>> I have tried 2 forms:
>> $ ffmpeg -i in.vob -movflags +faststart -vf bwdif -vf hqdn3d
>> -q 3 -c:a copy out_bwdif_hqdn3d.vob
> Should have improved in current FFmpeg git head.


But what has improved?
Are the 2 filter options now chained instead overridden?

-Ulf

_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: How to correctly chain filters

Carl Eugen Hoyos-2
2019-01-15 2:07 GMT+01:00, Ulf Zibis <[hidden email]>:

> Am 15.01.19 um 01:30 schrieb Carl Eugen Hoyos:
>> 2018-12-07 3:22 GMT+01:00, Ulf Zibis <[hidden email]>:
>>
>>> I have tried 2 forms:
>>> $ ffmpeg -i in.vob -movflags +faststart -vf bwdif -vf hqdn3d
>>> -q 3 -c:a copy out_bwdif_hqdn3d.vob
>> Should have improved in current FFmpeg git head.
>
> But what has improved?

A warning is shown.

Carl Eugen
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".