Notes: ffmpeg

Create streaming server for your camera to access it wirelessly

Just use this:

ffmpeg -f v4l2 -i /dev/video0 -q:v 5 -f mjpeg -listen 1 http://0.0.0.0:8090

then access your cam using any software like obs, any virtual cam.

http://<ip>:8090

Combine audio & video of different length

  1. Long audio & shortvideo:
ffmpeg -i Downloads/pooja_updated.mp4 -i aum.opus -map 0:v:0 -map 1:a:0 -c:v copy -shortest -y output3.mp4
Read more…

Compress video without quality loss

ffmpeg -i <input file>  -vcodec libx265 -crf 28 <output file>