Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
software:video [2017/06/24 23:45]
cyril [mp3]
software:video [2024/05/12 22:48] (current)
cyril [ffmpeg]
Line 47: Line 47:
  | convert im3.png - -append final.png  | convert im3.png - -append final.png
 </code> </code>
 +
 +=== Create animated GIF ===
 +
 +<code>convert -delay 50 -loop 0 *.jpg out.gif</code>
  
 === Formats === === Formats ===
Line 179: Line 183:
 </code> </code>
  
-  * encode video from images sequence:<code> +  * encode video from images sequence (eg for timelapse):<code> 
-ffmpeg -r 50 -i 01/all/image_1_%07d.pgm -r 50 -c:v libx264 -b:v 800k video_01.avi+ffmpeg -r 50 -i 01/all/image_1_%07d.pgm -c:v libx264 -b:v 800k video_01.avi 
 +ffmpeg -r 10 -pattern_type glob -i "*.JPG" -c:v libsvtav1 -qp 20 video.mp4
 </code> </code>
  
   * cut clip (ss is start time, t is duration):<code>   * cut clip (ss is start time, t is duration):<code>
-ffmpeg -i in.avi -ss 00:00:23 -t 00:00:19 out.avi+ffmpeg -i in.avi -ss 00:00:23 -t 00:00:19 -vcodec copy -acodec copy out.avi
 </code> </code>
  
Line 217: Line 222:
 <code bash> <code bash>
 lame -V2 --vbr-new -q0 --lowpass 10 -s 22.05 -b32 file.wav file.mp3 lame -V2 --vbr-new -q0 --lowpass 10 -s 22.05 -b32 file.wav file.mp3
 +</code>
 +
 +=> ''mp3cut''
 +
 +To cut an mp3 file (warning: ID3 tags are not copied):
 +<code bash>
 +mp3cut -o output.mp3 -t 00:00:05+700-00:00:07+800 input.mp3
 +</code>
 +
 +To concatenate mp3 files:
 +<code bash>
 +mp3cut -o output.mp3 input1.mp3 input2.mp3 input3.mp3
 </code> </code>
  
software/video.1498347924.txt.gz · Last modified: 2017/06/24 23:45 by cyril
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0