This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
fuss:ffmpeg [2020/12/21 20:48] – [Converting Gif to H.256 Video] office | fuss:ffmpeg [2022/03/22 23:39] – [Capture WebCam to Framebuffer] office | ||
---|---|---|---|
Line 336: | Line 336: | ||
output.mp4 | output.mp4 | ||
</ | </ | ||
+ | |||
+ | ====== Capture WebCam to Framebuffer ====== | ||
+ | |||
+ | The following command will capture video from ''/ | ||
+ | <code bash> | ||
+ | ffmpeg -f v4l2 -video_size 320x240 -i /dev/video0 -pix_fmt bgra -f fbdev /dev/fb0 | ||
+ | </ | ||
+ | |||
+ | The command can be used, for example, to display a webcam to screen directly without needing to install the X window system. | ||
+ | |||
+ | ====== Adding Subtitles to Videos ====== | ||
+ | |||
+ | * as optional subtitles: | ||
+ | <code bash> | ||
+ | ffmpeg -i " | ||
+ | </ | ||
+ | where: | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * as burnt into the video (requires '' | ||
+ | <code bash> | ||
+ | ffmpeg -i movie.mp4 -vf subtitles=movie.srt output.mp4 | ||
+ | </ | ||
+ | or with '' | ||
+ | <code bash> | ||
+ | ffmpeg -i movie.srt movie.ass | ||
+ | ffmpeg -i movie.mp4 -vf ass=movie.ass output.mp4 | ||
+ | </ | ||
+ | where: | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | |||
For the contact, copyright, license, warranty and privacy terms for the usage of this website please see the contact, license, privacy, copyright.