Last active
April 10, 2022 14:57
-
-
Save eslam-mahmoud/02f0e7bbd0ad6a6d7e55565afc548ad5 to your computer and use it in GitHub Desktop.
DaVinci Resolve on ubuntu linux how to solve codac problem, record on OBS, mov/mkv/mp4 problem
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
recod in OBS | |
export as MP4 | |
if you have exported to mkv | |
convert it first to mp4 | |
$fmpeg -i ./source/3.mkv -c:v libx264 -preset ultrafast -crf 0 ./mp4/3.mp4 | |
convert to mov | |
$ ffmpeg -i raw_footage.mp4 -vcodec mjpeg -q:v 2 -acodec pcm_s16be -q:a 0 -f mov footage_mjpeg.mov | |
import in davinci resolve | |
export as youtube file (will come out without audio) | |
Encode back | |
$ ffmpeg -i final_cut.mov -c:v libx264 -preset ultrafast -crf 0 final_video.mp4 | |
https://www.youtube.com/watch?v=WLcW4UWPC5Y | |
Encode in MJPEG: ffmpeg -i raw_footage.mp4 -vcodec mjpeg -q:v 2 -acodec pcm_s16be -q:a 0 -f mov footage_mjpeg.mov | |
Encode back to H264: ffmpeg -i final_cut.mov -c:v libx264 -preset ultrafast -crf 0 final_video.mp4 | |
sudo apt-get update -y | |
sudo apt-get install -y v4l2loopback-dkms | |
sudo killall gvfs-gphoto2-volume-monito | |
modprobe v4l2loopback exclusive_caps=1 max_buffers=2 | |
gphoto2 --auto-detect | |
gphoto2 --stdout --capture-movie | ffmpeg -i - -vcodec rawvideo -pix_fmt yuv420p -threads 0 -f v4l2 /dev/video0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment