This shows you the differences between two versions of the page.
Next revision | Previous revision |
lwc:multimedia_and_graphics:transcoding [2020/11/26 19:39] – created John Harrison | lwc:multimedia_and_graphics:transcoding [2024/02/13 19:50] (current) – John Harrison |
---|
==== ffmpeg ==== | ==== ffmpeg ==== |
| |
<HTML><ul></HTML> | * rip audio: ffmpeg -i "$file" -vn -ac 2 -ar 44100 -f wav $fileBase.wav<HTML> |
<HTML><li></HTML>rip audio: ffmpeg -i "$file" -vn -ac 2 -ar 44100 -f wav $fileBase.wav<HTML></li></HTML> | * transcode a video file so it is playable through Windows Media Player (Windows) and Quicktime (MacOS): ffmpeg -i INPUT_FILE -b 1500 -ab 384k -cropleft 20 -cropright 20 OUTPUT.mpg |
<HTML><li></HTML>transcode a video file so it is playable through Windows Media Player (Windows) and Quicktime (MacOS): ffmpeg -i INPUT_FILE -b 1500 -ab 384k -cropleft 20 -cropright 20 OUTPUT.mpg | * find framerate: ffmpeg -i $file 2>&1 | sed -n "s/.*, \(.*\) fp.*/\1/p" |
| * make video from single image (example): ''ffmpeg -loop 1 -i image.png -c:v libx264 -t 15 -pix_fmt yuv420p -vf scale=320:240 out.mp4'' ([[https://stackoverflow.com/questions/25891342/creating-a-video-from-a-single-image-for-a-specific-duration-in-ffmpeg|source]]) |
\\ | * make video from a series of images (not necessarily numbered from 0000): ''cat *.jpeg | ffmpeg -f image2pipe -i - output.mkv'' then ''ffmpeg -i output.mkv -codec copy output.mp4'' //from [[https://stackoverflow.com/questions/22965569/convert-from-jpg-to-mp4-by-ffmpeg|this source]]// |
| |
<HTML></li></HTML> | |
<HTML><li></HTML>find framerate: ffmpeg -i $file 2>&1 | sed -n "s/.*, \(.*\) fp.*/\1/p"<HTML></li></HTML><HTML></ul></HTML> | |
| |
==== filters ==== | ==== filters ==== |