Skip to content
This repository has been archived by the owner on Jun 17, 2022. It is now read-only.

Error while joining video and audio #6

Open
ME-TECH-ELECTRONICS opened this issue Oct 28, 2020 · 13 comments
Open

Error while joining video and audio #6

ME-TECH-ELECTRONICS opened this issue Oct 28, 2020 · 13 comments

Comments

@ME-TECH-ELECTRONICS
Copy link

Bug report

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

@ME-TECH-ELECTRONICS ME-TECH-ELECTRONICS changed the title Error while joining Error while joining video and audio Oct 28, 2020
@ME-TECH-ELECTRONICS
Copy link
Author

please reply ASAP

@NathanLovato
Copy link
Collaborator

You shouldn't include the -j option when doing a full render with bpsrender. You can run your command as bpsrender -w3 D:\YOUTUBE\Blender\ESclass.blend instead. The join operation is included. The -j option is only to [re-]join previously rendered chunks.

Could you try this and tell me if it works?

Also, if not, could you tell me exactly what happens? Print the content of the bpsrender directory next to your video, and tell me what doesn't work and what is the expected output (e.g. if you don't get any video in the end)?

@ME-TECH-ELECTRONICS
Copy link
Author

python -m bpsrender -w 3 D:\YOUTUBE\Blender\test.blend

» Probing...
» Input(blend) @ D:\YOUTUBE\Blender\test.blend...
• Probing done.

» Rendering mixdown...
» Output @ C:\Users\ME TECH\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\bpsrender\test_m.flac...
• Mixdown done.

» Rendering video (w/o audio)...
» Output @ C:\Users\ME TECH\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\bpsrender\test_c_#######...
100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 180/180 [00:06<00:00, 28.27frames/s]
• Video chunks rendering done.

» Concatenating (video) chunks...
» Output @ C:\Users\ME TECH\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\bpsrender\test_v.mp4...
• Concatenating done.

» Joining audio/video...
» Output @ C:\Users\ME TECH\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\test.mp4...
~ WARNING:join: Something went wrong when calling command - SKIPPING.

This the result without using -j cmd
git

@ME-TECH-ELECTRONICS
Copy link
Author

These are the blender settings

@ME-TECH-ELECTRONICS
Copy link
Author

The video and audio renders in mp4 and flac file but cannot join them to make the final file. I noticed that file is 0 Bytes (final file size )

@NathanLovato
Copy link
Collaborator

Could you run the command python -m bpsrender --dry-run -w 3 D:\YOUTUBE\Blender\test.blend ?

This will output the commands bpsrender would run without actually calling them (dry run). It will output the ffmpeg command that joins the file. You can copy that command and paste it in your terminal to see why ffmpeg is failing. I'll need this output to help you.

@ME-TECH-ELECTRONICS
Copy link
Author

python -m bpsrender --dry-run -w 3 D:\YOUTUBE\Blender\test.blend
DEBUG:BPS:CMD-PROBE: blender --background D:\YOUTUBE\Blender\test.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\test.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: 0
INFO:BPS:frame_end: 0
INFO:BPS:frames_total: 1
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\test_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\test_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\test_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\test
DEBUG:BPS:CMD-MIXDOWN: blender --background D:\YOUTUBE\Blender\test.blend --python C:\Users\ME TECH\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\bpsrender\bscripts\mixdown.py --disable-autoexec -- C:\Users\ME TECH\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\bpsrender\test_m.flac

» Rendering mixdown...
» Output @ C:\Users\ME TECH\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\bpsrender\test_m.flac...
• Mixdown done.
DEBUG:BPS:CMD-VIDEO:
DEBUG:BPS:CMD-CHUNK(0--1): blender --background D:\YOUTUBE\Blender\test.blend --python C:\Users\ME TECH\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\bpsrender\bscripts\video.py --disable-autoexec --render-output C:\Users\ME TECH\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\bpsrender\test_c_####### -s 0 -e -1 --render-anim
DEBUG:BPS:CMD-CHUNK(0--1): blender --background D:\YOUTUBE\Blender\test.blend --python C:\Users\ME TECH\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\bpsrender\bscripts\video.py --disable-autoexec --render-output C:\Users\ME TECH\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\bpsrender\test_c_####### -s 0 -e -1 --render-anim
DEBUG:BPS:CMD-CHUNK(0-0): blender --background D:\YOUTUBE\Blender\test.blend --python C:\Users\ME TECH\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\bpsrender\bscripts\video.py --disable-autoexec --render-output C:\Users\ME TECH\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\bpsrender\test_c_####### -s 0 -e 0 --render-anim

» Rendering video (w/o audio)...
» Output @ C:\Users\ME TECH\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\bpsrender\test_c_#######...
INFO:BPS:CALL-VIDEO: generating C:\Users\ME TECH\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\bpsrender\chunks.txt
0%| | 0/1 [00:00<?, ?frames/s]• Video chunks rendering done.
DEBUG:BPS:CMD-CONCATENATE: ffmpeg -stats -f concat -safe -0 -i C:\Users\ME TECH\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\bpsrender\chunks.txt -c copy -y C:\Users\ME TECH\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\bpsrender\test_v

» Concatenating (video) chunks...
» Output @ C:\Users\ME TECH\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\bpsrender\test_v...
• Concatenating done.
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\test_v -i C:\Users\ME TECH\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\bpsrender\test_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\test

» Joining audio/video...
» Output @ C:\Users\ME TECH\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\test...
• Joining done.
0%| | 0/1 [00:00<?, ?frames/s]

This is the output of dry run

@NathanLovato
Copy link
Collaborator

I think the issue is just you didn't set the export path in blender. You most likely need the output to end with something like file_name.mp4.

@NathanLovato NathanLovato transferred this issue from GDQuest/blender-power-sequencer Oct 29, 2020
@ME-TECH-ELECTRONICS
Copy link
Author

ME-TECH-ELECTRONICS commented Oct 29, 2020

Can you just explain how to do this

@NathanLovato
Copy link
Collaborator

NathanLovato commented Oct 29, 2020

Sure. Here, see the Output section at the bottom left of your image? The output path is currently /tmp. If you replace it with a name like test.mp4 and save your blend file, it may solve your problem.

Screenshot from 2020-10-29 12-49-47

You can write the path like this in Blender to save relative to your .blend file's location: //test.mp4 (with two leading slashes).

@ME-TECH-ELECTRONICS
Copy link
Author

python -m bpsrender -w 3 -v D:\YOUTUBE\Blender\test.blend -o D:\YOUTUBE\Blender

» Probing...
» Input(blend) @ D:\YOUTUBE\Blender\test.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: 180
INFO:BPS:frames_total: 180
INFO:BPS:ext: .mp4
INFO:BPS:render_path: D:\YOUTUBE\Blender
INFO:BPS:render_parts_path: D:\YOUTUBE\Blender\bpsrender
INFO:BPS:chunks_file_path: D:\YOUTUBE\Blender\bpsrender\chunks.txt
INFO:BPS:render_chunk_path: D:\YOUTUBE\Blender\bpsrender\test_c_#######
INFO:BPS:render_video_path: D:\YOUTUBE\Blender\bpsrender\test_v.mp4
INFO:BPS:render_mixdown_path: D:\YOUTUBE\Blender\bpsrender\test_m.flac
INFO:BPS:render_audiovideo_path: D:\YOUTUBE\Blender\test.mp4

» Rendering mixdown...
» Output @ D:\YOUTUBE\Blender\bpsrender\test_m.flac...
• Mixdown done.

» Rendering video (w/o audio)...
» Output @ D:\YOUTUBE\Blender\bpsrender\test_c_#######...
INFO:BPS:CALL-VIDEO: skipping D:\YOUTUBE\Blender\bpsrender\chunks.txt: The system cannot find the file specified
100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 180/180 [00:06<00:00, 27.53frames/s]
• Video chunks rendering done.

» Concatenating (video) chunks...
» Output @ D:\YOUTUBE\Blender\bpsrender\test_v.mp4...
• Concatenating done.

» Joining audio/video...
» Output @ D:\YOUTUBE\Blender\test.mp4...
~ WARNING:join: Something went wrong when calling command - SKIPPING.

it is still showing the same error

git11

@NathanLovato
Copy link
Collaborator

you have to use the dry run option again and manually run the join command from ffmpeg. It seems like there's an issue either with your ffmpeg or with file paths.

@me-tech3152
Copy link

Can you just highlight the join cammand from above dry run result to run the join operation

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants