@"devilish1"
@"CelebFaker"
Hey guys, thanks for your help, I finally fixed the problem.
Please look at the codes below. This is how the
8) merged to mp4
batch looks like (in 30-March build), when you right click and edit it.
-------------------------------------------------------------
@echo off
call _internal\setenv.bat
"%PYTHON_EXECUTABLE%" "%DFL_ROOT%\main.py" videoed video-from-sequence ^
--input-dir "%WORKSPACE%\data_dst\merged" ^
--output-file "%WORKSPACE%\result.mp4" ^
--reference-file "%WORKSPACE%\data_dst.*" ^
--include-audio
"%PYTHON_EXECUTABLE%" "%DFL_ROOT%\main.py" videoed video-from-sequence ^
--input-dir "%WORKSPACE%\data_dst\merged_mask" ^
--output-file "%WORKSPACE%\result_mask.mp4" ^
--reference-file "%WORKSPACE%\data_dst.*" ^
--lossless
pause
-------------------------------------------------------------
Now, as I wrote before, somehow the "result.mp4" and "result_mask.mp4"
generated by this batch cannot be seen from Da Vinci Resolve (latest version),
Simply deleting the "--lossless" written at the bottom of the code (as @"CelebFaker" found out),
would actually solve half of the the problem, by making the "result.mp4" seen from Resolve,
but this time, you'll get another problem; "result_mask.mp4" is not generated (This is why I said "half" of the problem is solved)
So this is how I fixed the problem.
-------------------------------------------------------------
@echo off
call _internal\setenv.bat
"%PYTHON_EXECUTABLE%" "%DFL_ROOT%\main.py" videoed video-from-sequence ^
--input-dir "%WORKSPACE%\data_dst\merged" ^
--output-file "%WORKSPACE%\result.mp4" ^
--reference-file "%WORKSPACE%\data_dst.*" ^
--include-audio
"%PYTHON_EXECUTABLE%" "%DFL_ROOT%\main.py" videoed video-from-sequence ^
--input-dir "%WORKSPACE%\data_dst\merged_mask" ^
--output-file "%WORKSPACE%\result_mask.mp4" ^
--reference-file "%WORKSPACE%\data_dst.*" ^
--include-audio
pause
-------------------------------------------------------------
Instead of deleting "--lossless", I rewrote it to "--include-audio" like the code above it.
Now I get 2 files generated properly, and they both can be seen from Resolve.
I bet there's an smarter fix though. The above fix I found out will pause the batch process
after "result.mp4" has been generated, and you'll have to press enter key
to make the batch process go on. Also, you'll get an unneeded audio for "result_mask.mp4".
I hope someone could refine this!