Hi,
Encountered an error when doing a 2 pass encoding with both libx264 and libx265. After two pass encoding is completed, the video file cannot be played as it is forever stuck on the first frame. One pass encoding using libx264 and libx265 works fine.
When doing two pass encoding, sometimes will also get the following error "A low level exception occurred in: Voucoder R2 (Exporter:9...)
Running Adobe Premiere Pro 2019 (version 13.1.3) on a AMD Ryzen 3900X with MSI X570 motherboard. Appreciate some help on how to get the two-pass encoding working. Thanks
Error with 2 pass encoding using libx254 and libx265
-
-
Can you please append the Voukoder logfile?
You can find it in the Voukoder Settings Tab->Logfile.
-
As requested, I have uploaded the logfile.
When I use two pass encoding, the video is frozen on the first frame whilst the audio plays. Once audio playback is completed, the video starts playing (without audio)
Only encounter this issue when doing 2 pass encoding with libx264 and libx265. No issues with one pass encode
-
Vouk
24. Juli 2019 um 15:36 Hat das Label Behoben hinzugefügt. -
- Offizieller Beitrag
This is also probably fixed in the next version. Please retest once it is available.
-
Downloaded the latest version 2.2, problem still there.
2 pass encoding with libx264 and libx265 still not working properly. After two pass encoding is completed, the video file cannot be played as it is forever stuck on the first frame.
One pass encoding using libx264 and libx265 works fine.
Appreciate if you can relook again
-
Vouk
16. August 2019 um 09:55 Hat das Label von Behoben auf In Bearbeitung geändert. -
I can confirm this problem now. Since I have upgraded from Version 2.1.0 to 2.2 I also have this problem with 2 pass.
Edit: When the second pass starts this error appears at every frame:
Code
Alles anzeigen[14:32:44] Frame #13452: vRender: 33 us, vProcess: 6 us, vEncoding: 1463 us, Latency: 1543 us [14:32:44] Aborting audio renderer loop: No audio samples left!. [14:32:44] Frame #13453: vRender: 25 us, vProcess: 5 us, vEncoding: 3438 us, Latency: 3509 us [14:32:44] Aborting audio renderer loop: No audio samples left!. [14:32:44] Frame #13454: vRender: 26 us, vProcess: 4 us, vEncoding: 5588 us, Latency: 5658 us [14:32:44] Aborting audio renderer loop: No audio samples left!. [14:32:44] Frame #13455: vRender: 28 us, vProcess: 4 us, vEncoding: 3154 us, Latency: 3223 us [14:32:44] Aborting audio renderer loop: No audio samples left!. [14:32:44] Frame #13456: vRender: 24 us, vProcess: 5 us, vEncoding: 1264 us, Latency: 1326 us [14:32:44] Aborting audio renderer loop: No audio samples left!. [14:32:44] Frame #13457: vRender: 21 us, vProcess: 4 us, vEncoding: 37456 us, Latency: 37519 us [14:32:44] Aborting audio renderer loop: No audio samples left!. [14:32:44] Frame #13458: vRender: 29 us, vProcess: 5 us, vEncoding: 5809 us, Latency: 5878 us [14:32:44] Aborting audio renderer loop: No audio samples left!. [14:32:44] Frame #13459: vRender: 30 us, vProcess: 4 us, vEncoding: 3632 us, Latency: 3701 us [14:32:44] Aborting audio renderer loop: No audio samples left!. [14:32:44] Frame #13460: vRender: 25 us, vProcess: 4 us, vEncoding: 1238 us, Latency: 1300 us [14:32:44] Aborting audio renderer loop: No audio samples left!. [14:32:44] Frame #13461: vRender: 18 us, vProcess: 3 us, vEncoding: 5080 us, Latency: 5136 us [14:32:44] Aborting audio renderer loop: No audio samples left!. [14:32:44] Frame #13462: vRender: 26 us, vProcess: 5 us, vEncoding: 5938 us, Latency: 6002 us [14:32:44] Aborting audio renderer loop: No audio samples left!. [14:32:44] Frame #13463: vRender: 24 us, vProcess: 4 us, vEncoding: 3604 us, Latency: 3668 us
-
Maybe the issue could be this commit. When the seconds pass starts the audiorenderer is not created would be my assumption.
-
- Offizieller Beitrag
Yes, looks like it.
-
I have fixed it. I will do a pull request later
-
- Offizieller Beitrag
-
I have have used the mkv container.
-
I used the same settings you have posted Vouk. Here is a complete logfile.
I have also noticed that the Encoder Settings in the metadata of the video are also missing then.
-
- Offizieller Beitrag
Checked mp4 and mkv. I can not reproduce the issue, but I see the issues in the logfile. I'd guess that in your case:
if (audioRenderer)
audioRenderer->Reset();
audioRenderer is suddenly NULL and the Reset() is not called. But i'm not sure how this can happen.
-
Zitat
audioRenderer is suddenly NULL and the Reset() is not called. But i'm not sure how this can happen
Yes, in the pull request I have replaced if(audioRenderer) with if(exportInfo.audio.enabled) then everything works fine.
I have also made an if clause to avoid that audio is encoded twice when using 2pass.
-
- Offizieller Beitrag
But that's wrong. It shouldn't happen.
NULL->Reset() is not valid.
-
That's strange audioRenderer isn't NULL while debugging, but why it doesn't work?
-
When using 2pass the audio is encoded already in the first pass. When the second pass starts audioRenderer is NULL because it's already done in the first pass I think. With my added if clause that prevents encoding the audio twice, it is fixed.
-
- Offizieller Beitrag
That is not how it works. But let's keep the dev talk out of a public thread. Lets move it to a private chat.
-
- Offizieller Beitrag
Fixed.
-
Vouk
20. August 2019 um 06:14 Hat das Label von In Bearbeitung auf Behoben geändert. -
Vouk
22. Februar 2022 um 20:59 Hat das Thema aus dem Forum Bug reports nach Closed verschoben.