Skip to content

Latest commit

 

History

History
38 lines (27 loc) · 905 Bytes

File metadata and controls

38 lines (27 loc) · 905 Bytes
  • download videos
ffmpeg -i http://<url>.m3u8 -c copy "output.mp4"
  • record screen
ffmpeg -f x11grab -framerate 25 -r 25 -s 1920x1080 -i :0.0 output.mp4
  • build from source

link source

  1. install nv-code-headers
git clone https://git.videolan.org/git/ffmpeg/nv-codec-headers.git
  1. install Video Codec SDK
cp Interface/*.h /usr/local/cuda/include 
cp Lib/linux/stubs/x86_64/* /usr/local/cuda/targets/x86_64-linux/lib/
  1. build ffmpeg
git clone https://git.ffmpeg.org/ffmpeg.git
cd ffmpeg
git checkout release/5.1
./configure --prefix=$HOME/.local --enable-nonfree --enable-nvenc  --enable-libnpp --enable-cuda-nvcc --nvccflags="-gencode arch=compute_75,code=sm_75 -O2" --extra-cflags=-I/usr/local/cuda/include  --extra-ldflags=-L/usr/local/cuda/lib64