--
You received this message because you are subscribed to the Google Groups "Dedalus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dedalus-user...@googlegroups.com.
To post to this group, send email to dedalu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dedalus-users/b3837154-dcf1-4c3e-b43d-fdc11172a2b7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
PNG encoding with ffmpeg
# Example use: png2mp4 “frames/*" frames.mp4 30
# Options:
# -y Overwrite output
# -f image2pipe Input format
# -vcodec png Input codec
# -r $3 Frame rate
# -i - Input files from cat command
# -f mp4 Output format
# -vcodec libx264 Output codec
# -pix_fmt yuv420p Output pixel format
# -preset slower Prefer slower encoding / better results
# -crf 20 Constant rate factor (lower for better quality)
# -vf "scale..." Round to even size
# $2 Output file
function png2mp4(){
cat $1 | ffmpeg \
-y \
-f image2pipe \
-vcodec png \
-r $3 \
-i - \
-f mp4 \
-vcodec libx264 \
-pix_fmt yuv420p \
-preset slower \
-crf 20 \
-vf "scale=trunc(in_w/2)*2:trunc(in_h/2)*2" \
$2
}To view this discussion on the web visit https://groups.google.com/d/msgid/dedalus-users/CAAOZTN_covuTP3JKA3P2_gPixG24LPVgBixyQKxaN9ZUceaRtg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dedalus-users/CAMiLRL4rQpCxTS2QheKsNfxB6mJ18MzPC5%3D%3D0dGANy%3DfeZAO0g%40mail.gmail.com.