appwiki:ffmpeg

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
Last revisionBoth sides next revision
appwiki:ffmpeg [2021/07/11 04:35] – [Common Convertion] yingappwiki:ffmpeg [2021/12/08 20:16] – [Common Convertion] ying
Line 60: Line 60:
 ffmpeg.exe -ss 00:00:09 -i video.mp4 -c copy -to 00:00:21 video_cut.mp4 ffmpeg.exe -ss 00:00:09 -i video.mp4 -c copy -to 00:00:21 video_cut.mp4
 </code> </code>
 +  * combine list of videos into 1 video
 +    * ref: https://stackoverflow.com/questions/7333232/how-to-concatenate-two-mp4-files-using-ffmpeg
  
   * gif maker <code>   * gif maker <code>
Line 70: Line 72:
 </code> </code>
  
 +  * image to square size (like convert image to texture size format) <code>
 +ffmpeg -i image.jpg -vf "scale=1024:1024:force_original_aspect_ratio=decrease,pad=1024:1024:-1:-1:color=white" -q:v 1 tex_image.jpg
 +
 +# longest side, so basically original size with padding to square
 +ffmpeg -i image.jpg -vf "scale=max(iw\,ih):max(iw\,ih):force_original_aspect_ratio=decrease,pad=max(iw\,ih):max(iw\,ih):-1:-1:color=white" -q:v 1 tex_image.jpg
 +</code>
  • appwiki/ffmpeg.txt
  • Last modified: 2022/12/07 07:21
  • by ying