User Tools

Site Tools


wiki:ffmpeg_commands

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
wiki:ffmpeg_commands [2024/02/25 12:40] – add Capture desktop antisawiki:ffmpeg_commands [2024/02/29 11:38] (current) – add Add sound to video antisa
Line 10: Line 10:
  
   ffmpeg -hide_banner -framerate 20 -video_size $(xrandr | awk '/\*/{printf$1}') -f x11grab -i $DISPLAY.0 screenRecording.mp4   ffmpeg -hide_banner -framerate 20 -video_size $(xrandr | awk '/\*/{printf$1}') -f x11grab -i $DISPLAY.0 screenRecording.mp4
 +
 +
 +===== Add sound to video =====
 +  ffmpeg -i input.mp4 -i input.mp3 -c copy -map 0:v:0 -map 1:a:0 output.mp4
  
 ====== Tested on ====== ====== Tested on ======
Line 19: Line 23:
  
   * https://superuser.com/questions/377343/cut-part-from-video-file-from-start-position-to-end-position-with-ffmpeg   * https://superuser.com/questions/377343/cut-part-from-video-file-from-start-position-to-end-position-with-ffmpeg
 +  * https://superuser.com/questions/590201/add-audio-to-video-using-ffmpeg
wiki/ffmpeg_commands.1708861228.txt.gz · Last modified: 2024/02/25 12:40 by antisa

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki