Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
fuss:ffmpeg [2020/12/21 20:48] – [Converting Gif to H.256 Video] officefuss:ffmpeg [2022/03/22 23:39] – [Capture WebCam to Framebuffer] office
Line 336: Line 336:
   output.mp4   output.mp4
 </code> </code>
 +
 +====== Capture WebCam to Framebuffer ======
 +
 +The following command will capture video from ''/dev/video0'', at ''320x240'' resolution and send it to the Linux framebuffer:
 +<code bash>
 +ffmpeg -f v4l2 -video_size 320x240 -i /dev/video0 -pix_fmt bgra -f fbdev /dev/fb0
 +</code>
 +
 +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 "movie.mp4" -i "movie.srt" -c copy -c:s mov_text output.mp4
 +</code>
 +where:
 +    * ''movie.mp4'' is the movie,
 +    * ''movie.srt'' are the subtitles in SRT format,
 +    * ''output.mp4'' is the output movie
 +  * as burnt into the video (requires ''ffmpeg'' compiled with ''--enable-libass''):
 +<code bash>
 +ffmpeg -i movie.mp4 -vf subtitles=movie.srt output.mp4
 +</code>
 +or with ''libass'':
 +<code bash>
 +ffmpeg -i movie.srt movie.ass
 +ffmpeg -i movie.mp4 -vf ass=movie.ass output.mp4
 +</code>
 +where:
 +    * ''movie.mp4'' is the movie,
 +    * ''movie.srt'' are the subtitles in SRT format,
 +    * ''output.mp4'' is the output movie
 +
  

fuss/ffmpeg.txt · Last modified: 2024/01/14 23:08 by office

Access website using Tor Access website using i2p Wizardry and Steamworks PGP Key


For the contact, copyright, license, warranty and privacy terms for the usage of this website please see the contact, license, privacy, copyright.