ffmpeg.org (697B)
1 ffmpeg recipes I should stuff into config files or scripts, but 2 haven't yet. 3 * Extracting parts of videos 4 ~-c copy -map 0~ ensures all streams (audio & subtitles) are kept. 5 The timestamp syntax is described in the "Time duration" section of 6 =ffmpeg-utils(1)=; =MM:SS= works fine. 7 8 #+begin_src sh 9 ffmpeg -i $input -c copy -map 0 \ 10 -ss $tstart -to $tend \ 11 $output 12 #+end_src 13 14 * Reduce file size 15 ** with =-vf=: ~-vf "scale=iw/2:ih/2"~ 16 ** with H.265 17 openSUSE Tumbleweed's ffmpeg is not built with H.265 support AFAICT. 18 19 1. Install =libx265-devel= 20 2. Clone =https://git.ffmpeg.org/ffmpeg.git= 21 3. ~./configure --enable-libx265 --enable-gpl~ 22 4. ~ffmpeg -i $input -vcodec libx265 -crf 28~