this is great!! thank you for explaining. I was beside myself trying to figure out why the heck my video files had to be blown up to 30gigs just for davinci to recognize it. I've been burned dual booting so many times that I just bit the bullet and went full linux (Nobara) and I'm slowly getting my video editing workflow converted over. rendering out from the windows side is an incredible workaround.
It's a pleasure - yes I see many people thinking something is broken without knowing some of this is just not built into the Linux version, and it does not use FFmeg from the OS. So yes editing videos can be larger as they are basically temporary, but the final rendition needs to get into a manageable size to upload. 30 Gbs is not very up loadable for most people ;-)
@@GadgeteerZA agreed! i tried uploading a 30Gb video.... its definitely not ideal. the whole process of recording, converting, editing, rendering, CONVERTING BACK, then uploading is going to take some getting used to. the gains from editing *way faster* on linux have been tremendous tho. i lose on time spent converting, but i spend way less time fiddling with making stuff work during the editing.
@@bigrob029 I have an idea I'm going to explore about possibly doing an automatic conversion to MP4 straight after the render. It may take a few days but if I get anything right, I'll post something quick about it.
OK but then you'd have no audio at all? The bash script is using FFmpeg to convert the audio from AAC to PCM. There'd never be any need to just strip off the AAC audio as DaVinci Resolve already ignores AAC if you import the clip.
Well, here is my first good news, the problem with H264 and H265 will end because the new standard after the new generation of GPU's like NVIDIA RTX 4000 series now supports a new open source codec that's revolutionizing the market and it's AV1, its not only better, you can hardware accelerate the encoding and decoding with it, so its faster, but only to new generation of GPU's, unfortunately... for Audio, you can use OGG vorbis, its the free open source direct competitor for audio codecs like MP3 and AAC, the results are fantastic as well, for containers the best are MKV's. I don't think there will be any competition for matroska for quite a while since its a fantastic file format. The only issue is finding equipment like cameras that record into AV1 and OGG, all compatibility, royalty and license issues will be solved.
Yes, that standard is certainly very good news! The challenge though is going to be with all the phones, cameras, etc making a move, and of course DaVinci Resolve also supporting it. The sad thing, as I saw others pointing out, is that Linux itself has no problem working with H.264, H.265, AV1, etc. OBS Studio (not $299) already supports those outputs including AAC on Linux. I'm exporting from OBS into MKV as it handles the multiple soundtracks well, which I can then mix inside DaVinci. I should also have mentioned of course none of these containers or codecs are an issue in Kdenlive video editor (also not $299) but yes it does lack quite a few of the DaVinci Resolve features.
@@GadgeteerZA This is the only reason why I still dual boot. I hope that when 2028 comes around that most of the patents surrounding mp4/h.264 and aac expire that Davinci Resolve will work better in this area!
@@enderpirate9887 Too true, but also partly DaVinci's fault for not including it. But I did see a recent blog for v19.0.2 that says: Support for decoding MPEG transport stream .ts clips. I just need to go see what that means in plain English. The brand-new FFmpeg also has some great advances around new codecs. So hopefully this does come right at some point soon.
@@ЭльдарДрагомир yes but that is not an option on Linux, that is why I did this video. DaVinci Resolve only uses its internal codecs that get bundled with it, not the OS codecs, and DaVinci Resolve does not include H.264 or H.265 in their Linux versions unless you pay for the Studio version. So the DaVinci Resolve Studio version will also show that export option, but I was thinking here of the free version users.
Having the problem trying to execute the script : it says [in#0 @ 0x63f54e6d4500] Error opening input: No such file or directory Error opening input file jwjw.mp4. Error opening input files: No such file or directory
That means it can't find the file name that was provided as the input parameter. I run the script from the same directory that the file is actually in, so it should find a file jwjw.mp4 in the current directory in this case.
It is working similarly to OBS Studio and others which don’t package all the codecs into their own app. They generally use FFmpeg in the background or drivers that need to be installed in the OS (much like Windows not opening .heic files until you install a driver). FFmpeg though is cross platform so if DaVinci Resolve supported that it would work on Linux, Windows and macOS.
Cool vid but im new to linux and i have no idea how to execute these files you've provided. everything is so hard on this OS...Back to Windows i guess.
Oops yes I probably should have explained just how to use it. There is also Handbrake as a GUI app on Linux but honestly in this case the CLI can be simpler once the script file is setup. So steps to do that would be: 1. Go to links I provided to open up and see the text that goes inside the script file. 2. Highlight it with your mouse and Copy that. 3. In your file manager, navigate to /home/loginname/.local/bin/ or just ~/.local/bin/. Righ-click there and choose Create New/Text file. 4. Give it whatever name you want to use, or one's I was using. 5. Paste that ext inside the open file editor (from step 3 action), and then save. 6. Right--click on the filename in the file manager, and choose Properties/Permissions tab and tick Is executable. It should then execute and work as I've shown for ever and a day. Only thing you may want to do is tweak any of those settings in the file and just save again. If you want to understand the command better (where ffmpeg appears in the file) you can type in Google Gemini, explain followed by that text, and it will do a great breakdown of what everything does. Or you can paste the whole file contents into Gemini and it will explain what the whole file does. But once done, this may be the easiest way to do it.
To summarise yes H.264 and H.265 both need a conversion before use in the free version of DaVinci Resolve. The Studio version handles H.264 and H.265 fine on Linux. But neither free or paid DaVinci Resolve handles AAC audio on Linux, so that always needs the audio converted to PCM (or at least recorded to PCM and not AAC).
hey great video, but whenever I try to execute the script it gives the invalid framerate error even though 60 (or 30 tried both) was entered in the terminal after the file, as instructed (the distro is mint cinnamon 22 if that makes a difference). Thank you for reading!
the exact error is: /home/systemm/.local/bin/davincivideo.sh: line 8: [[: \\\$#: syntax error: operand expected (error token is "\\\$#") Invalid framerate. Must be 30 or 60
appologies for the spam, i think it works now Changes: got rid of the "//////" before the "$" in the updated code, and set the name of the output to the input name and defined the output directory (since it was giving an error) (with an mov format instead since that was already the case) using: output_file="$output_dir$(basename "$input_file" ).mov" P.S. im sure some of the things added were a bit redundant it seems from the video that the renaming of output may have been unnecessary but this fixed the problems I had and hopefully this could be helpful to anyone else with issues :)
@@systemreadsstories4030 no thanks very much for alerting me to this. Looks like some extra characters crept in when I copied this over from PrivateBin to MicroBin. Glad you did see what the issue was. I have fixed the script file now, and will also just check the other one.
On the output file, yes I see what you're saying. I'm recording from OBS Studio to .mkv (mainly for that crash recovery) so by converting the output to .mov I would not overwrite that (in my case). But if you record in .mov say, then you could just change the output file to a .mkv. The container type is not so much the issue, it is more the CODEC types that are the issue inside the container.
@@GadgeteerZA Sorry I should've clairified, we're on the same page on that my file was also mkv for the same reason lol, I just worded it poorly, the output error was from the code not understanding where to put the file, idk why it happened but that seemed to fix it. Thank you for being so responsive, and the videos, as expected, work now in resolve without a problem, thank you for taking the time to make such an awesome code and video, very educational!
@@GadgeteerZA You're welcome, sorry for actually silly comment not being really useful! o) I'm just watching Linux related videos to get a better feeling for the environment and how "pro" users make use of it with specific applications. I guess Davinci Resolve is one of few professional software solutions on Linux when it comes to creating multimedia content, unfortunately there are still some issues with it (as far as I overview the video editing topic on Linux). Your solution / attempt to "just" use ffmpeg at the end, is neat.. but yeah, it is what it is, a workaround. Anyway, your findings, research and overview given here is nonetheless very interesting! One day Linux and general application availability will see the light and the world will recognize even more, you have a part in that already, so thank you! o)
@@ytbone9430 no problem. Yes I really only decided to feature it because at least they went to the trouble of producing a 99% fully working professional product on Linux, and to clarify there is no way to get H.264 working inside it on the free version. It is actually perfectly usable otherwise and pretty good to use. The real shocker for me (and this is a local country issue really) is the Studio version costs about 40% more in my country - I mean it is just software you download unless there is some packaged box that gets imported. But that just make sit totally unaffordable for individuals.
@@GadgeteerZA Maybe you can use a VPN to buy it? Just a guess, asking 40% more for a simple download, I agree, this seems kind of unfair. Paying for it might still be reasonable for some, if anyone wants to support companies doing Linux software, there are not many around! o) I am stuck on Windows for some time it seems, since there is no replacement for "Directory Opus" on Linux, you can see it as "Photoshop" for files and folders. "Directory Opus" is multiple universes ahead of anything file management related on Linux (Nemo, Thunar, Dolphin, Krusader etc..). I also have a strong dependency to "Adobe Camera Raw", so.. not going Linux full time anytime soon, but I prepare nonetheless! o) I just like to learn what this platform has to offer. Apart from already mentioned missing applications, there seem to be some general things missing in Linux (like UNC path handling e.g.). Not sure I will ever do the switch, but Linux can still be fun, at least as a side kick. o) I also encourage people to try the Linux land, it will do fine in many aspects for a lot of users. The more users, the better and sooner the platform will get broader adoption. Thanks again! o)
I'm generally okay with the linux workaround but I think too many compromises for DaVinci resolve easier just to work it in Windows. Davinci resolve in Linux is just a mess. 🤪
Everything else works fine that I'm using with Linux. As far as I know, it is only the import/export "licensing" issue for H.264? Is there some other surprise I still need to discover? This is more an irritation as it could be seamless, and the output size could be 1 GB instead of 50 GB. Maybe Black Friday is the time to get the paid version if that will solve this issue.
This may work for me importing my videos from my phone into DaVinci a bit easier now.🙌🏼😁
I hope it does!
this is great!! thank you for explaining. I was beside myself trying to figure out why the heck my video files had to be blown up to 30gigs just for davinci to recognize it.
I've been burned dual booting so many times that I just bit the bullet and went full linux (Nobara) and I'm slowly getting my video editing workflow converted over. rendering out from the windows side is an incredible workaround.
It's a pleasure - yes I see many people thinking something is broken without knowing some of this is just not built into the Linux version, and it does not use FFmeg from the OS. So yes editing videos can be larger as they are basically temporary, but the final rendition needs to get into a manageable size to upload. 30 Gbs is not very up loadable for most people ;-)
@@GadgeteerZA agreed! i tried uploading a 30Gb video.... its definitely not ideal. the whole process of recording, converting, editing, rendering, CONVERTING BACK, then uploading is going to take some getting used to. the gains from editing *way faster* on linux have been tremendous tho. i lose on time spent converting, but i spend way less time fiddling with making stuff work during the editing.
@@bigrob029 I have an idea I'm going to explore about possibly doing an automatic conversion to MP4 straight after the render. It may take a few days but if I get anything right, I'll post something quick about it.
Another good one!!!
Thank you!
You can just strip the aac audio off the source using ffmpeg. Much easier. Using studio of course on linux
OK but then you'd have no audio at all? The bash script is using FFmpeg to convert the audio from AAC to PCM. There'd never be any need to just strip off the AAC audio as DaVinci Resolve already ignores AAC if you import the clip.
Well, here is my first good news, the problem with H264 and H265 will end because the new standard after the new generation of GPU's like NVIDIA RTX 4000 series now supports a new open source codec that's revolutionizing the market and it's AV1, its not only better, you can hardware accelerate the encoding and decoding with it, so its faster, but only to new generation of GPU's, unfortunately... for Audio, you can use OGG vorbis, its the free open source direct competitor for audio codecs like MP3 and AAC, the results are fantastic as well, for containers the best are MKV's. I don't think there will be any competition for matroska for quite a while since its a fantastic file format. The only issue is finding equipment like cameras that record into AV1 and OGG, all compatibility, royalty and license issues will be solved.
Yes, that standard is certainly very good news! The challenge though is going to be with all the phones, cameras, etc making a move, and of course DaVinci Resolve also supporting it. The sad thing, as I saw others pointing out, is that Linux itself has no problem working with H.264, H.265, AV1, etc. OBS Studio (not $299) already supports those outputs including AAC on Linux. I'm exporting from OBS into MKV as it handles the multiple soundtracks well, which I can then mix inside DaVinci.
I should also have mentioned of course none of these containers or codecs are an issue in Kdenlive video editor (also not $299) but yes it does lack quite a few of the DaVinci Resolve features.
@@GadgeteerZA This is the only reason why I still dual boot. I hope that when 2028 comes around that most of the patents surrounding mp4/h.264 and aac expire that Davinci Resolve will work better in this area!
@@enderpirate9887 Too true, but also partly DaVinci's fault for not including it. But I did see a recent blog for v19.0.2 that says: Support for decoding MPEG transport stream .ts clips. I just need to go see what that means in plain English. The brand-new FFmpeg also has some great advances around new codecs. So hopefully this does come right at some point soon.
@@GadgeteerZA On Windows in 19.1.1 I see in Export Video -> QuickTime -> Codec (H.264, H.265)
@@ЭльдарДрагомир yes but that is not an option on Linux, that is why I did this video. DaVinci Resolve only uses its internal codecs that get bundled with it, not the OS codecs, and DaVinci Resolve does not include H.264 or H.265 in their Linux versions unless you pay for the Studio version. So the DaVinci Resolve Studio version will also show that export option, but I was thinking here of the free version users.
Having the problem trying to execute the script : it says
[in#0 @ 0x63f54e6d4500] Error opening input: No such file or directory
Error opening input file jwjw.mp4.
Error opening input files: No such file or directory
That means it can't find the file name that was provided as the input parameter. I run the script from the same directory that the file is actually in, so it should find a file jwjw.mp4 in the current directory in this case.
So how is Kdenlive able to export to mp4?
It is working similarly to OBS Studio and others which don’t package all the codecs into their own app. They generally use FFmpeg in the background or drivers that need to be installed in the OS (much like Windows not opening .heic files until you install a driver). FFmpeg though is cross platform so if DaVinci Resolve supported that it would work on Linux, Windows and macOS.
Cool vid but im new to linux and i have no idea how to execute these files you've provided. everything is so hard on this OS...Back to Windows i guess.
Oops yes I probably should have explained just how to use it. There is also Handbrake as a GUI app on Linux but honestly in this case the CLI can be simpler once the script file is setup. So steps to do that would be:
1. Go to links I provided to open up and see the text that goes inside the script file.
2. Highlight it with your mouse and Copy that.
3. In your file manager, navigate to /home/loginname/.local/bin/ or just ~/.local/bin/. Righ-click there and choose Create New/Text file.
4. Give it whatever name you want to use, or one's I was using.
5. Paste that ext inside the open file editor (from step 3 action), and then save.
6. Right--click on the filename in the file manager, and choose Properties/Permissions tab and tick Is executable.
It should then execute and work as I've shown for ever and a day. Only thing you may want to do is tweak any of those settings in the file and just save again. If you want to understand the command better (where ffmpeg appears in the file) you can type in Google Gemini, explain followed by that text, and it will do a great breakdown of what everything does. Or you can paste the whole file contents into Gemini and it will explain what the whole file does.
But once done, this may be the easiest way to do it.
@@GadgeteerZA thanks a lot I will be sure to try it again. 👍🏾
This is insane. Thanks for the info. Deleting Davinci Resolve.
To summarise yes H.264 and H.265 both need a conversion before use in the free version of DaVinci Resolve. The Studio version handles H.264 and H.265 fine on Linux. But neither free or paid DaVinci Resolve handles AAC audio on Linux, so that always needs the audio converted to PCM (or at least recorded to PCM and not AAC).
hey great video, but whenever I try to execute the script it gives the invalid framerate error even though 60 (or 30 tried both) was entered in the terminal after the file, as instructed (the distro is mint cinnamon 22 if that makes a difference). Thank you for reading!
the exact error is: /home/systemm/.local/bin/davincivideo.sh: line 8: [[: \\\$#: syntax error: operand expected (error token is "\\\$#")
Invalid framerate. Must be 30 or 60
appologies for the spam, i think it works now
Changes: got rid of the "//////" before the "$" in the updated code, and set the name of the output to the input name and defined the output directory (since it was giving an error) (with an mov format instead since that was already the case) using: output_file="$output_dir$(basename "$input_file" ).mov"
P.S. im sure some of the things added were a bit redundant it seems from the video that the renaming of output may have been unnecessary but this fixed the problems I had and hopefully this could be helpful to anyone else with issues :)
@@systemreadsstories4030 no thanks very much for alerting me to this. Looks like some extra characters crept in when I copied this over from PrivateBin to MicroBin. Glad you did see what the issue was. I have fixed the script file now, and will also just check the other one.
On the output file, yes I see what you're saying. I'm recording from OBS Studio to .mkv (mainly for that crash recovery) so by converting the output to .mov I would not overwrite that (in my case). But if you record in .mov say, then you could just change the output file to a .mkv. The container type is not so much the issue, it is more the CODEC types that are the issue inside the container.
@@GadgeteerZA Sorry I should've clairified, we're on the same page on that my file was also mkv for the same reason lol, I just worded it poorly, the output error was from the code not understanding where to put the file, idk why it happened but that seemed to fix it. Thank you for being so responsive, and the videos, as expected, work now in resolve without a problem, thank you for taking the time to make such an awesome code and video, very educational!
First! o)
Thank you!
@@GadgeteerZA You're welcome, sorry for actually silly comment not being really useful! o) I'm just watching Linux related videos to get a better feeling for the environment and how "pro" users make use of it with specific applications. I guess Davinci Resolve is one of few professional software solutions on Linux when it comes to creating multimedia content, unfortunately there are still some issues with it (as far as I overview the video editing topic on Linux).
Your solution / attempt to "just" use ffmpeg at the end, is neat.. but yeah, it is what it is, a workaround. Anyway, your findings, research and overview given here is nonetheless very interesting!
One day Linux and general application availability will see the light and the world will recognize even more, you have a part in that already, so thank you! o)
@@ytbone9430 no problem. Yes I really only decided to feature it because at least they went to the trouble of producing a 99% fully working professional product on Linux, and to clarify there is no way to get H.264 working inside it on the free version. It is actually perfectly usable otherwise and pretty good to use. The real shocker for me (and this is a local country issue really) is the Studio version costs about 40% more in my country - I mean it is just software you download unless there is some packaged box that gets imported. But that just make sit totally unaffordable for individuals.
@@GadgeteerZA Maybe you can use a VPN to buy it? Just a guess, asking 40% more for a simple download, I agree, this seems kind of unfair. Paying for it might still be reasonable for some, if anyone wants to support companies doing Linux software, there are not many around! o)
I am stuck on Windows for some time it seems, since there is no replacement for "Directory Opus" on Linux, you can see it as "Photoshop" for files and folders. "Directory Opus" is multiple universes ahead of anything file management related on Linux (Nemo, Thunar, Dolphin, Krusader etc..). I also have a strong dependency to "Adobe Camera Raw", so.. not going Linux full time anytime soon, but I prepare nonetheless! o) I just like to learn what this platform has to offer. Apart from already mentioned missing applications, there seem to be some general things missing in Linux (like UNC path handling e.g.). Not sure I will ever do the switch, but Linux can still be fun, at least as a side kick. o)
I also encourage people to try the Linux land, it will do fine in many aspects for a lot of users. The more users, the better and sooner the platform will get broader adoption.
Thanks again! o)
I'm generally okay with the linux workaround but I think too many compromises for DaVinci resolve easier just to work it in Windows. Davinci resolve in Linux is just a mess. 🤪
Everything else works fine that I'm using with Linux. As far as I know, it is only the import/export "licensing" issue for H.264? Is there some other surprise I still need to discover? This is more an irritation as it could be seamless, and the output size could be 1 GB instead of 50 GB. Maybe Black Friday is the time to get the paid version if that will solve this issue.