gdquest / blender-sequencer-multithreaded-render Goto Github PK
View Code? Open in Web Editor NEWMultithreaded renders for the Blender video sequence editor, from the command line
License: GNU General Public License v3.0
Multithreaded renders for the Blender video sequence editor, from the command line
License: GNU General Public License v3.0
First of all, this is cool! I check I can make it work with 4 cores and it says OK, it goes beyond 100% which is weird but went through :)
bpsrender 282script2scene1.blend -w 4
splited in 4 jobs and files
» Probing...
» Input(blend) @ /media/pm/Data/tse/la test/scenes/282script2scene1.blend...
• Probing done.
» Rendering mixdown...
» Output @ /media/pm/Data/test/la test/scenes/bpsrender/282script2scene1_m.flac...
• Mixdown done.
» Rendering video (w/o audio)...
» Output @ /media/pm/Data/test/la test/scenes/bpsrender/282script2scene1_c_#######...
100%|███████████████████████████████████████████████████████████████████████████████████| 5456/5456 [14:10<00:00, 6.42frames/s]
• Video chunks rendering done.
» Concatenating (video) chunks...
» Output @ /media/pm/Data/test/la test/scenes/bpsrender/282script2scene1_v.mkv...
• Concatenating done.
» Joining audio/video...
» Output @ /media/pm/Data/test/la test/scenes/282script2scene1.mkv...
• Joining done.
BUT, but, but, there's no audio :(
Of course, audio is set in Blender render settings (ffmpeg, H264, AAC 192) and I tested a normal render, it's got sound.
VLC states only one video stream, nothing else.
But the flac file plays though.
It's bps 0.1.40.post2, tqdm 4.36.1, python 3.7.4 on ubuntu 19.10 (Pop OS).
Any hint to join the audio by hand?
Hello all,
when trying to run the bpsrender using my blend file which is located here
"James Jamison\Desktop\test\GoProVideo1\Go Pro 1.blend"
i get this error
"main.py: error: unrecognized arguments: Jamison\Desktop\test\GoProVideo1\Go Pro 1.blend"
figuring it was the spaces i tried putting it in the C:\ drive folder so now its in
"C:\test"
then forgot about the spaces in the blend file " Go Pro 1.blend"
and managed to get the same error
"main.py: error: unrecognized arguments: Pro 1.blend"
after removing the spaces i managed to get it to run
my issues:
I'm submitting a...
What is the current behavior?
When I render a scene containing a scene strip which contains audio, then the resulting video won't contain the audio of the scene strip.
What is the expected behavior?
Scene strips with audio should be supported.
Tell us the steps to reproduce the bug, and if possible share a minimal demo of the problem.
I'm submitting a...
What is the current behavior?
When I try to run it after installing it through pip, I get this message.
Traceback (most recent call last):
File "/home/[my account]/.local/bin/bpsrender", line 5, in
from bpsrender.main import main
File "/home/[my account]/.local/lib/python2.7/site-packages/bpsrender/main.py", line 15, in
from .calls import call
File "/home/[my account]/.local/lib/python2.7/site-packages/bpsrender/calls.py", line 13, in
from .helpers import BSError, checkblender, kickstart, printd, prints, printw
File "/home/[my account]/.local/lib/python2.7/site-packages/bpsrender/helpers.py", line 70
print('{s}{p} {}{e}'.format(text, s=s, e=e, p=p), **kwargs)
^
SyntaxError: invalid syntax
What is the expected behavior?
For commands like bpsrender -h to display properly.
Tell us the steps to reproduce the bug, and if possible share a minimal demo of the problem.
Also, I installed it through pip because I've heard it's the best way to access it since it's out of the Sequencer now. If there are more up-to-date ways, I will try those.
I'm submitting a...
What is the current behavior?
BPSrender does not run.
What is the expected behavior?
BPSrender to run.
Tell us the steps to reproduce the bug, and if possible share a minimal demo of the problem.
python3 -m bpsrender file.blend
;Traceback (most recent call last):
File "/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/usr/lib/python3.6/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home/user/bin/blender/2.83/scripts/addons/power_sequencer/scripts/BPSRender/bpsrender/__main__.py", line 31, in <module>
from .calls import call
File "/home/user/bin/blender/2.83/scripts/addons/power_sequencer/scripts/BPSRender/bpsrender/calls.py", line 26, in <module>
from tqdm import tqdm
ModuleNotFoundError: No module named 'tqdm'
Other information
Running:
Questions
I'm submitting a...
What is the current behavior?
Mixdown crashes:
~ WARNING:mixdown: Something went wrong when calling command - SKIPPING.
The problem probably lies on the Blender side (bug report filed), since Blender "Render Audio" feature gives this error:
terminate called after throwing an instance of 'aud::FileException'
what(): File couldn't be written, audio encoding failed with ffmpeg.
What is the expected behavior?
Mixdown should not crash and produce an audio file instead.
Tell us the steps to reproduce the bug, and if possible share a minimal demo of the problem.
Make sure you have Blender 2.92.3 and try rendering a mixdown with bpsrender.
Other information
Bug reported on developer.blender.org:
https://developer.blender.org/T88614
But probably a good idea to have the bug listed here as well if someone is looking at what's wrong.
I tried also with the new Blender 3.0 Alpha and the same error there. With Blender 2.83.15 feature still works, but I'm not sure which version broke it.
When I specify a render with a start frame and and end frame, the resulting audio is the entire project whereas the video output is correct. Obviously the subsequent join produces an unusable product with the wrong audio track.
Here is the output of the dryrun. Thanks.
-Joe D
[jdellorf@ussaro Projects]$ bpsrender --dry-run -o ../Renders/track_1 -s 9686 -e 16209 NESR_2019_multicam.blend
DEBUG:BPS:CMD-PROBE: blender --background /media/current_project/NESR_2019/Projects/NESR_2019_multicam.blend --python /home/jdellorf/.local/lib/python3.7/site-packages/bpsrender/bscripts/probe.py --disable-autoexec
» Probing...
» Input(blend) @ /media/current_project/NESR_2019/Projects/NESR_2019_multicam.blend...
• Probing done.
INFO:BPS:Setup:
INFO:BPS:probe_py_normalized: /home/jdellorf/.local/lib/python3.7/site-packages/bpsrender/bscripts/probe.py
INFO:BPS:mixdown_py_normalized: /home/jdellorf/.local/lib/python3.7/site-packages/bpsrender/bscripts/mixdown.py
INFO:BPS:video_py_normalized: /home/jdellorf/.local/lib/python3.7/site-packages/bpsrender/bscripts/video.py
INFO:BPS:frame_start: 9686
INFO:BPS:frame_end: 16209
INFO:BPS:frames_total: 6524
INFO:BPS:ext:
INFO:BPS:render_path: /media/current_project/NESR_2019/Renders/track_1
INFO:BPS:render_parts_path: /media/current_project/NESR_2019/Renders/track_1/bpsrender
INFO:BPS:chunks_file_path: /media/current_project/NESR_2019/Renders/track_1/bpsrender/chunks.txt
INFO:BPS:render_chunk_path: /media/current_project/NESR_2019/Renders/track_1/bpsrender/NESR_2019_multicam_c_#######
INFO:BPS:render_video_path: /media/current_project/NESR_2019/Renders/track_1/bpsrender/NESR_2019_multicam_v
INFO:BPS:render_mixdown_path: /media/current_project/NESR_2019/Renders/track_1/bpsrender/NESR_2019_multicam_m.flac
INFO:BPS:render_audiovideo_path: /media/current_project/NESR_2019/Renders/track_1/NESR_2019_multicam
DEBUG:BPS:CMD-MIXDOWN: blender --background /media/current_project/NESR_2019/Projects/NESR_2019_multicam.blend --python /home/jdellorf/.local/lib/python3.7/site-packages/bpsrender/bscripts/mixdown.py --disable-autoexec -- /media/current_project/NESR_2019/Renders/track_1/bpsrender/NESR_2019_multicam_m.flac
» Rendering mixdown...
» Output @ /media/current_project/NESR_2019/Renders/track_1/bpsrender/NESR_2019_multicam_m.flac...
• Mixdown done.
DEBUG:BPS:CMD-VIDEO:
DEBUG:BPS:CMD-CHUNK(9686-10772): blender --background /media/current_project/NESR_2019/Projects/NESR_2019_multicam.blend --python /home/jdellorf/.local/lib/python3.7/site-packages/bpsrender/bscripts/video.py --disable-autoexec --render-output /media/current_project/NESR_2019/Renders/track_1/bpsrender/NESR_2019_multicam_c_####### -s 9686 -e 10772 --render-anim
DEBUG:BPS:CMD-CHUNK(10773-11859): blender --background /media/current_project/NESR_2019/Projects/NESR_2019_multicam.blend --python /home/jdellorf/.local/lib/python3.7/site-packages/bpsrender/bscripts/video.py --disable-autoexec --render-output /media/current_project/NESR_2019/Renders/track_1/bpsrender/NESR_2019_multicam_c_####### -s 10773 -e 11859 --render-anim
DEBUG:BPS:CMD-CHUNK(11860-12946): blender --background /media/current_project/NESR_2019/Projects/NESR_2019_multicam.blend --python /home/jdellorf/.local/lib/python3.7/site-packages/bpsrender/bscripts/video.py --disable-autoexec --render-output /media/current_project/NESR_2019/Renders/track_1/bpsrender/NESR_2019_multicam_c_####### -s 11860 -e 12946 --render-anim
DEBUG:BPS:CMD-CHUNK(12947-14033): blender --background /media/current_project/NESR_2019/Projects/NESR_2019_multicam.blend --python /home/jdellorf/.local/lib/python3.7/site-packages/bpsrender/bscripts/video.py --disable-autoexec --render-output /media/current_project/NESR_2019/Renders/track_1/bpsrender/NESR_2019_multicam_c_####### -s 12947 -e 14033 --render-anim
DEBUG:BPS:CMD-CHUNK(14034-15120): blender --background /media/current_project/NESR_2019/Projects/NESR_2019_multicam.blend --python /home/jdellorf/.local/lib/python3.7/site-packages/bpsrender/bscripts/video.py --disable-autoexec --render-output /media/current_project/NESR_2019/Renders/track_1/bpsrender/NESR_2019_multicam_c_####### -s 14034 -e 15120 --render-anim
DEBUG:BPS:CMD-CHUNK(15121-16209): blender --background /media/current_project/NESR_2019/Projects/NESR_2019_multicam.blend --python /home/jdellorf/.local/lib/python3.7/site-packages/bpsrender/bscripts/video.py --disable-autoexec --render-output /media/current_project/NESR_2019/Renders/track_1/bpsrender/NESR_2019_multicam_c_####### -s 15121 -e 16209 --render-anim
» Rendering video (w/o audio)...
» Output @ /media/current_project/NESR_2019/Renders/track_1/bpsrender/NESR_2019_multicam_c_#######...
INFO:BPS:CALL-VIDEO: generating /media/current_project/NESR_2019/Renders/track_1/bpsrender/chunks.txt
0%| | 0/6524 [00:00<?, ?frames/s]• Video chunks rendering done.
0%| | 0/6524 [00:00<?, ?frames/s]
DEBUG:BPS:CMD-CONCATENATE: ffmpeg -stats -f concat -safe -0 -i /media/current_project/NESR_2019/Renders/track_1/bpsrender/chunks.txt -c copy -y /media/current_project/NESR_2019/Renders/track_1/bpsrender/NESR_2019_multicam_v
» Concatenating (video) chunks...
» Output @ /media/current_project/NESR_2019/Renders/track_1/bpsrender/NESR_2019_multicam_v...
• Concatenating done.
DEBUG:BPS:CMD-JOIN: ffmpeg -stats -i /media/current_project/NESR_2019/Renders/track_1/bpsrender/NESR_2019_multicam_v -i /media/current_project/NESR_2019/Renders/track_1/bpsrender/NESR_2019_multicam_m.flac -map 0:v:0 -c:v copy -map 1:a:0 -c:a aac -b:a 192k -y /media/current_project/NESR_2019/Renders/track_1/NESR_2019_multicam
» Joining audio/video...
» Output @ /media/current_project/NESR_2019/Renders/track_1/NESR_2019_multicam...
• Joining done.
there is an audio issue that makes bpsrender not mixdown the audio completely when you use speed control strips and keyframe the pitch of the audio strips to match the video strip speed.
reproduce:
on the "Speed Control" strip, uncheck "Stretch to input stip length" and use "Speed factor" to keyframe the value for speed control.
copy/paste the keyframes from the "Speed Control" strip to the audio pitch value, so that the sound pitch matches the speed control.
render the video with bpsrender.
result:
bpsrender leaves the keyframed audio strips out (they are silent in the mixdown). all untouched audiostips are mixed down correctly.
workaround:
mixdown audio only with blender, and render the video w/o audio in bpsrender, then --join with bpsrender or ffmpeg
thx 4 the speedy renders! <3
We use a library to have a progress bar, tqdm. It makes it hard to parse the output of the renderer and adds an unecessary dependency. This would fix #4
I have a error popping in the command window when trying to render in any form with any parameters, that do not allow me to render anything with this code.
frame_start, frame_end, ext = chain(*tmp)
ValueError: not enough values to unpack (expected 3, got 0)
Whole code error list here:
https://u.smutty.horse/mhsfsagytwy.txt
C:\Users\ME TECH\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages>python -m bpsrender -v -w 3 -j D:\YOUTUBE\Blender\ESclass.blend
» Probing...
» Input(blend) @ D:\YOUTUBE\Blender\ESclass.blend...
• Probing done.
INFO:BPS:Setup:
INFO:BPS:probe_py_normalized: C:\Users\ME TECH\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\bpsrender\bscripts\probe.py
INFO:BPS:mixdown_py_normalized: C:\Users\ME TECH\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\bpsrender\bscripts\mixdown.py
INFO:BPS:video_py_normalized: C:\Users\ME TECH\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\bpsrender\bscripts\video.py
INFO:BPS:frame_start: 1
INFO:BPS:frame_end: 53049
INFO:BPS:frames_total: 53049
INFO:BPS:ext: .mp4
INFO:BPS:render_path: C:\Users\ME TECH\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages
INFO:BPS:render_parts_path: C:\Users\ME TECH\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\bpsrender
INFO:BPS:chunks_file_path: C:\Users\ME TECH\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\bpsrender\chunks.txt
INFO:BPS:render_chunk_path: C:\Users\ME TECH\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\bpsrender\ESclass_c_#######
INFO:BPS:render_video_path: C:\Users\ME TECH\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\bpsrender\ESclass_v.mp4
INFO:BPS:render_mixdown_path: C:\Users\ME TECH\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\bpsrender\ESclass_m.flac
INFO:BPS:render_audiovideo_path: C:\Users\ME TECH\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\ESclass.mp4
» Joining audio/video...
» Output @ C:\Users\ME TECH\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\ESclass.mp4...
~ WARNING:join: Something went wrong when calling command - SKIPPING.
After the rendering of mixdown and video ends and starts to joining but it will ends with a message
~ WARNING:join: Something went wrong when calling command - SKIPPING.
What is this problem. There is no problem after running dry run. report below.
C:\Users\ME TECH\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages>python -m bpsrender -s 1 -e 53049 -v -w 3 -j D:\YOUTUBE\Blender\ESclass.blend --dry-run
DEBUG:BPS:CMD-PROBE: blender --background D:\YOUTUBE\Blender\ESclass.blend --python C:\Users\ME TECH\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\bpsrender\bscripts\probe.py --disable-autoexec
» Probing...
» Input(blend) @ D:\YOUTUBE\Blender\ESclass.blend...
• Probing done.
INFO:BPS:Setup:
INFO:BPS:probe_py_normalized: C:\Users\ME TECH\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\bpsrender\bscripts\probe.py
INFO:BPS:mixdown_py_normalized: C:\Users\ME TECH\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\bpsrender\bscripts\mixdown.py
INFO:BPS:video_py_normalized: C:\Users\ME TECH\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\bpsrender\bscripts\video.py
INFO:BPS:frame_start: 1
INFO:BPS:frame_end: 53049
INFO:BPS:frames_total: 53049
INFO:BPS:ext:
INFO:BPS:render_path: C:\Users\ME TECH\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages
INFO:BPS:render_parts_path: C:\Users\ME TECH\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\bpsrender
INFO:BPS:chunks_file_path: C:\Users\ME TECH\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\bpsrender\chunks.txt
INFO:BPS:render_chunk_path: C:\Users\ME TECH\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\bpsrender\ESclass_c_#######
INFO:BPS:render_video_path: C:\Users\ME TECH\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\bpsrender\ESclass_v
INFO:BPS:render_mixdown_path: C:\Users\ME TECH\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\bpsrender\ESclass_m.flac
INFO:BPS:render_audiovideo_path: C:\Users\ME TECH\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\ESclass
DEBUG:BPS:CMD-JOIN: ffmpeg -stats -i C:\Users\ME TECH\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\bpsrender\ESclass_v -i C:\Users\ME TECH\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\bpsrender\ESclass_m.flac -map 0:v:0 -c:v copy -map 1:a:0 -c:a aac -b:a 192k -y C:\Users\ME TECH\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\ESclass
» Joining audio/video...
» Output @ C:\Users\ME TECH\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\ESclass...
• Joining done
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.