unfa / kdenlive-multirender Goto Github PK
View Code? Open in Web Editor NEWA Bash script enabling multi-threaded video rendering for Kdenlive.
License: MIT License
A Bash script enabling multi-threaded video rendering for Kdenlive.
License: MIT License
When i do this thing, I expected that thing, but instead it crashes.
I guess this is a bug, should I provide GDB output?
Sometimes melt rendering just crashes, leaving a useless video file behind.
In such a case the final concatenation will fail too. The user will have to manually re-run some kmr- scripts and then manually concatenate the whole thing again.
It'd be great to handle this withing the script.
The script seems to ignore the start frame.
The script seems to have unspecified dependencies, that are at unsatisfied at least on a typical Debian Testing installation.
For instance, this syntax would not work:
while [[ $(pgrep -f "bash kmr-" -c) > $(( $THREADS - 1 )) ]];
Replacing it with this worked.
while [ $(pgrep -f "bash kmr-" -c) -ge $THREADS ];
Same here, this didn’t work:
if [[ "breakpoints_mode"==TRUE ]]; then
But this worked:
if [ "breakpoints_mode" = TRUE ]; then
On the last line there is an invocation of:
"$(urldecode $PATHFILE/$TARGET)"
What is this urldecode? The command does not exist in my system, and apt-cache search urldecode
finds nothing useful for it.
Hi unfa,
Thank you for creating this kdenlive multirender script.
I was wondering if you can explain the "16 4" after your script example? I only have an ancient dual-core computer with 4gb of system memory (ram) and I would like to use both cores / threads, so what would be the numbers after the script command? Whenever I tried this with any numbers after the script command it failed?
Regards,
Phil (phd21)
Hi, as you have worked in this field for a good amount of time I want to verify if in your scenario this technique can be applied?
https://youtu.be/PytyNRd5R40
If it works then we can give KDENlive community a suggestion to include a simple button for this. For me everything is working as expected. 2 hrs of rendering took 20 mints.
Let me know. Thanks.
The users don't really have to control this, it could be splitting the job into 5 or 10-minute parts.
For projects shorter than 5 minutes it could use smaller chunks to still make it faster.
After rendering the video, it is parted/fragmented in the number of threads it was rendered.
I suppose the end result should be 1 complete file.
Right?
[concat @ 0x5589597ea3c0] Impossible to open 'ST1-Story_Mode-Pt1-01.mp4'
list.txt: No such file or directory
The video files are saved to somewhere other than kdenlive-mulitirender.sh and the kdenlive script.
Not sure this is doable but I currently use Kdenlive on Windows and noticed that the script generator creates a .bat file for editing the code instead of the .sh script.
Test Project.bat:
set RENDERER="C:/Users/[USERNAME]/Desktop/Kdenlive-windows/kdenlive_render.exe"
set MELT="C:/Users/[USERNAME]/Desktop/Kdenlive-Windows/melt.exe"
set SOURCE_0="file:///D:/Projects/Test%Project/scripts/Test%Project.bat.mlt"
set TARGET_0="file:///D:/Projects/Test%Project/Test1.mp4"
set PARAMETERS_0="in=0 out=3168 %MELT% C:/Users/[USERNAME]/AppData/Roaming/kdenlive/profiles/customprofile5 avformat - %SOURCE_0% %TARGET_0% properties=x264-medium f=mp4 vcodec=libx264 acodec=aac g=120 crf=30 ab=128k preset=faster threads=4 real_time=-1"
%RENDERER% %PARAMETERS_0%
Is there a way to translate the .sh script to the .bat? would be awesome to have a multirender for windows. If not, well it doesn't hurt to ask. Thanks!
Melt outputs text files with progress information - this can be paserd and used to show nice progress information to the user.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.