convert pdf image video

05/05/2020

Convert pdf to jpg

You need to isntall ghostscript to read pdf.

get pdf size

identify.exe IMG_20200504_0015.pdf;

convert to jpg

convert -density 400 IMG_20200508_0061.pdf -scale 100% IMG_20200508_0061.jpg;

Convert video to streamable mp4

get video info

ffprobe file.avi -print_format json -show_format -show_streams -v quiet
ffprobe file.avi -hide_banner -loglevel fatal -show_error -show_format -show_streams -show_programs -show_chapters -show_private_data -print_format json

convert a file, changing video format, audio format and resolution

ffmpeg -i file.avi -c:v h264 -c:a aac -crf 23 -movflags faststart -vf scale=426:240 output.mp4

Concat multiple videos and convert

printf "file '$PWD/%s'\n" *.AVI > file.txt
ffmpeg -f concat -safe 0 -i file.txt -c:v h264 -c:a aac -crf 23 -movflags faststart -vf scale=426:240 output.mp4