[FFmpeg-user] ERROR: zimg >= 2.7.0 not found using pkg-config

2022-01-13 Thread Matt C
Hi, when compiling, is there a good way to fix the

ERROR: zimg >= 2.7.0 not found using pkg-config

Was using this guide

https://zimg.buaa.us/documents/install/

With this Git

git clone https://github.com/buaazp/zimg -b master –depth=1

and ffmpeg 4.4

https://ffmpeg.org/releases/ffmpeg-4.4.tar.bz2

Thanks!


___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


[FFmpeg-user] Reusing ffmpeg2pass-0.log

2022-01-13 Thread c2e6bdae
Hello,

I need to split input.mp4 into multiple webm files of a certain size. At the 
moment, I'm running the following commands (assuming only two output files, 
although they can be more):

# 1st file
ffmpeg -i input.mp4 -threads 3 -c:a libvorbis -b:a 128K -c:v libvpx -quality 
best -vf scale=-2:480 -ss 0 -fs 200k -b:v 500k -pass 1 -an -y -f null /dev/null
ffmpeg -i input.mp4 -threads 3 -c:a libvorbis -b:a 128K -c:v libvpx -quality 
best -vf scale=-2:480 -ss 0 -fs 200k -b:v 500k -pass 2 part1.webm
# 2nd file
ffmpeg -i input.mp4 -threads 3 -c:a libvorbis -b:a 128K -c:v libvpx -quality 
best -vf scale=-2:480 -ss 5 -fs 200k -b:v 500k -pass 1 -an -y -f null /dev/null
ffmpeg -i input.mp4 -threads 3 -c:a libvorbis -b:a 128K -c:v libvpx -quality 
best -vf scale=-2:480 -ss 5 -fs 200k -b:v 500k -pass 2 part2.webm

In such scenario, could I simply reuse ffmpeg2pass-0.log generated in the first 
ffmpeg invocation for all subsequent 2nd passes? E.g.:

# 1st file, generate ffmpeg2pass-0.log
ffmpeg -i input.mp4 -threads 3 -c:a libvorbis -b:a 128K -c:v libvpx -quality 
best -vf scale=-2:480 -ss 0 -fs 200k -b:v 500k -pass 1 -an -y -f null /dev/null
ffmpeg -i input.mp4 -threads 3 -c:a libvorbis -b:a 128K -c:v libvpx -quality 
best -vf scale=-2:480 -ss 0 -fs 200k -b:v 500k -pass 2 part1.webm
# 2nd file, reuse ffmpeg2pass-0.log
ffmpeg -i input.mp4 -threads 3 -c:a libvorbis -b:a 128K -c:v libvpx -quality 
best -vf scale=-2:480 -ss 5 -fs 200k -b:v 500k -pass 2 part2.webm
# 3rd file, reuse ffmpeg2pass-0.log
ffmpeg -i input.mp4 -threads 3 -c:a libvorbis -b:a 128K -c:v libvpx -quality 
best -vf scale=-2:480 -ss 10 -fs 200k -b:v 500k -pass 2 part2.webm
# ...And so on

Thanks.
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".