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 [2014/12/27 12:25]
cyril [AviDemux]
software:video [2024/04/12 23:20] (current)
cyril [mp3] mp3cut usage
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 158: Line 162:
 ==== ffmpeg ==== ==== ffmpeg ====
  
-  * ''-c:v libx264'' or libxvid for video codec +  * video codec: ''-c:v libx264'' or ''-c:libxvid'' 
-  * ''-c:a pcm_s16le'' or libmp3lame for video codec +  * audio codec: ''-c:a pcm_s16le'' or ''libmp3lame'' for video codec 
-  * ''-b:v 800k'' or ''-b:a 128k'' for video or audio bitrate +  * codec bitrate: video ''-b:v 800k'', audio ''-b:a 128k'' 
-  * ''-q:v 20'' or ''-q:a 90'' for video or audio quality (''-crf 20'' for x264)+  * codec quality: video ''-q:v 20'', audio ''-q:a 90'', x264 ''-crf 20'' 
 + 
 +  * crop: ''-vf "crop=640:360:0:60"'' 
 +  * resize: ''-vf "scale=1280:720"'' 
 +  * pad: ''-vf "pad=1280:720:370:0"'' 
 +  * rotate: ''-vf "transpose=2"'' (0=CCW+VF, 1=CW, 2=CCW, 3=CW+VF) 
 + 
 +  * blur: ''-vf boxblur=10:1'' 
 +  * overlay two videos:<code> 
 +ffmpeg -i in1.avi -vf "movie=in2.avi [b]; [in][b] overlay=320:0" 
 +</code><code> 
 +ffmpeg -i in1.avi -i in2.avi -filter_complex "[0:v][1:v] overlay=320:0" 
 +</code>
  
   * append side by side two videos:<code>   * append side by side two videos:<code>
Line 171: Line 187:
 </code> </code>
  
 +  * cut clip (ss is start time, t is duration):<code>
 +ffmpeg -i in.avi -ss 00:00:23 -t 00:00:19 -vcodec copy -acodec copy out.avi
 +</code>
  
 +  * render subtitles (requires to be compiled with libass): ''-vf "subtitles=in.srt"''
 +
 +  * transform portrait video 640x480 to landscape 1280x720 with blurry repeated sides:<code>
 +ffmpeg -i in.avi -filter_complex "[0:v] transpose=2,scale=1280:720,boxblur=10:1 [bg]; [0:v] transpose=2,scale=540:720 [fg]; [bg][fg] overlay=370:0 [out]" -map 
 +'[out]' -map 0:a -c:v libx264 -b:v 2000k -c:a copy out.avi
 +</code>
 ==== AviDemux ==== ==== AviDemux ====
  
Line 183: Line 208:
 ==== Kdenlive ==== ==== Kdenlive ====
  
-Tried Openshot and Cinelerra but seem crappy, Kdenlive is better suited.+Tried Openshot and Cinelerra but seem crappy, Kdenlive seems to have better design.
  
   * Transitions : works between two video tracks that overlap (eg dissolve).   * Transitions : works between two video tracks that overlap (eg dissolve).
Line 197: Line 222:
 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> </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>
 +
 +=> ''id3cp''
 +
 +To copy ID3 tags from a file to another one.
 +
 +=> ''id3v2''
 +
 +To view and edit ID3 tags in command line.
 +
 +=> ''kid3''
 +
 +To view and edit ID3 tags in GUI.
 +
  
 ==== ogg ==== ==== ogg ====
software/video.1419683122.txt.gz · Last modified: 2014/12/27 12:25 by cyril
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0