Replies: 2 comments
-
Add
Maybe because Windows's default shell does not support single quotes |
Beta Was this translation helpful? Give feedback.
-
the filter worked! Im on a Mac, took me a while to remember, but del is rm for me. Now is all good, thanks!!! And I think I will add this postprocessor to every extractor I have, just in case I found a gif. |
Beta Was this translation helpful? Give feedback.
-
Want to convert GIFs to MP4, mainly for reddit, but also anywhere else that has has gifs.
I've seen other topics and suggestions but not exactly what i wanted.
Wanted it to be part of my .conf file, not an argument.
This bash command is exactly what I need and it converts every gif in a folder:
for i in *.gif; do ffmpeg -i "$i" -pix_fmt yuv420p -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" "${i%}.mp4"; done
After looking at some examples I managed to get this working, but it converts everything to mp4 even jpgs, how do I filter to only GIFs
So my question how do I filter only gifs???
extension = gif
orextension is gif
????it could also be -exec-after, to convert only after download completes
Oh and the && del {} part doesn't work either, the original gif files remained in the folder
Beta Was this translation helpful? Give feedback.
All reactions