Describe the bug
Wrong Video mode selected for VirtualDub when cutting HD H.264 file with smart rendering and more than 1 cut, resulting in a livelock and VirtualDub process never ends.
To Reproduce
Steps to reproduce the behavior (for HD files; for HQ files it is similar):
- For HD avi files, configure VirtualDub as cut program with H.264 codec. Use Smart Rendering.
- Open HD avi file and add at least 2 cuts. Start cutting.
- The process starts, but never ends (see screenshots for example and details)
Expected behavior
The process should finish soon.
Screenshots
For this example, I have added 2 short cuts. The progress bar indicates that the first cut is processed, but then it just does not proceed with the next cut. It just runs indefinitely:
![image](https://private-user-images.githubusercontent.com/7443680/326287632-1e2bc487-0f49-4372-b82b-4301f7a4a2a9.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjMzMDE1MjIsIm5iZiI6MTcyMzMwMTIyMiwicGF0aCI6Ii83NDQzNjgwLzMyNjI4NzYzMi0xZTJiYzQ4Ny0wZjQ5LTQzNzItYjgyYi00MzAxZjdhNGEyYTkucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDgxMCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA4MTBUMTQ0NzAyWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YmMxY2NhMzg4ZWY0NGYxNGJjYzBiYTA1YmRhYmJmMWIzOThlZWE3MjE4OTYwNWJkNzNlOTNiZDA4YjU1NWEwYiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.lStkpBN8A-ffpLbXkhXfTt6Oj1DcOeBFqJo3F6CfNH4)
Only the time is increased, but no progress (a couple of minutes later):
![image](https://private-user-images.githubusercontent.com/7443680/326287773-2b5354c3-f1ee-4fbe-a516-71ad143bcf36.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjMzMDE1MjIsIm5iZiI6MTcyMzMwMTIyMiwicGF0aCI6Ii83NDQzNjgwLzMyNjI4Nzc3My0yYjUzNTRjMy1mMWVlLTRmYmUtYTUxNi03MWFkMTQzYmNmMzYucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDgxMCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA4MTBUMTQ0NzAyWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9Mzc2NTcwZWQ2NGI3N2ViMTQ1YzMwMWY5OGQ2YmY5ZWZiNWNkZTY3NzI0OTFhMDkyZWZkNTJlYjVjNzI4N2I4MiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.SlraTMZpuQXrbhFvx2GbPOcQEVzfupazWgQWm5ldHok)
Looking in the temporary *.syl script, I see that video mode 1 "Fast recompress" has been selected.
I manually tested it with VirtualDub. This is the wrong mode, but it works with mode 3 "Full processing mode":
![image](https://private-user-images.githubusercontent.com/7443680/326287945-317cb612-0a5f-410a-a734-75292392dc08.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjMzMDE1MjIsIm5iZiI6MTcyMzMwMTIyMiwicGF0aCI6Ii83NDQzNjgwLzMyNjI4Nzk0NS0zMTdjYjYxMi0wYTVmLTQxMGEtYTczNC03NTI5MjM5MmRjMDgucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDgxMCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA4MTBUMTQ0NzAyWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NjNlZDljYmQwMzQzMTg1MzZmZWZkM2YzN2UwNmUwNmEzODU5MmI2MzgzZjA0OTkxNjUzN2FiM2EzNzcwY2Q5MSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.m62mNgM4_kSXhIfH2PhakJjLxjeHjN_Pvf5gJzG35D8)
Therefore suggested solution:
Just change this line:
|
Writeln(f, 'VirtualDub.video.SetMode(1);'); // fast Recompression |
to
Writeln(f, 'VirtualDub.video.SetMode(3);'); // Full processing mode
Desktop (please complete the following information):
- Windows 10
- Cut Assistant 0.24.1.25
- VirtualDub 1.10.4
- For H.264 codec: x264vfw 44_2851bm_44825