FS#72829 - [openshot] Failure when exporting video using nvenc

Attached to Project: Community Packages
Opened by Yakov (ru_maniac) - Wednesday, 24 November 2021, 14:40 GMT
Last edited by Buggy McBugFace (bugbot) - Saturday, 25 November 2023, 20:03 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To David Runge (dvzrv)
Caleb Maclennan (alerque)
Architecture x86_64
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

OpenShot fails to encode the export via nvenc (mp4 h.264 nv preset). It's not crashing, but instead throws an error message which reads:

"Sorry, there was an error exporting your video: error while writing raw video frame"

Reproduced the same scenario using .AppImage version of OpenShot from official web-site -- file encodes using nvenc without any issues, so I guess that NVIDIA drivers on my system are configured properly.

See attached log for more output. Please ignore error messages re: google analytics connection failure -- this is due to the fact that I've blocked GA on my home network.

Additional info:
* package version: 2.6.1-2
* config and/or log files etc.: attached to this report

Steps to reproduce:

1) Start OpenShot
2) Import an .mp4 video file encoded with h.264 (in this particular example, the file was from my dash camera)
3) Place the video on any track
4) Open "File->Export project->Export video"
5) Select "NVENC MP4 (h.264 nv)" in "Target"
6) Press "Export video"
7) Error message will appear, and export will fail
This task depends upon

Closed by  Buggy McBugFace (bugbot)
Saturday, 25 November 2023, 20:03 GMT
Reason for closing:  Moved
Additional comments about closing:  https://gitlab.archlinux.org/archlinux/p ackaging/packages/openshot/issues/1
Comment by David Runge (dvzrv) - Thursday, 02 December 2021, 19:40 GMT
@ru_maniac: Thanks for the report!

Sorry, I don't have an nvidia card, so I can only guess.

Do you have a configuration option for the encoder or for openshot, that causes the below?

```
[h264_nvenc @ 0x558cf7379040] [Eval @ 0x7fffd7c14c40] Undefined constant or missing '(' in 'zerolatency'
[h264_nvenc @ 0x558cf7379040] Unable to parse option value "zerolatency"
```
Comment by Yakov (ru_maniac) - Friday, 31 December 2021, 16:31 GMT
@dvzrv

Hello David,

Sorry for the late reply.
I don't think that I've configured OpenShot in any way, other than I've installed it. Pretty much everything happens on OpenShot's default config, apart from the resolution for the output.

If you'd like to have specifically a copy of my configuration -- do I attach it here?
Comment by Yakov (ru_maniac) - Thursday, 06 January 2022, 22:38 GMT
On the off-chance that this was what you wanted, here's my configuration file.
Comment by David Runge (dvzrv) - Saturday, 19 February 2022, 20:17 GMT
@ru_maniac: Sorry for the late reply. I believe that this might be introduced by our patches for python 3.10 compatibility or be an upstream bug.

At this point it is very hard to assess and maybe it makes sense for you to try e.g. openshot-git from the AUR to assess whether the latest commits work as intended (I can't guarantee anything though).
Comment by David Runge (dvzrv) - Sunday, 04 December 2022, 11:01 GMT
@ru_maniac: Can you please verify whether openshot 3.0.0 (currently in [community-testing]) fixes this issue for you?
Comment by Yakov (ru_maniac) - Friday, 03 February 2023, 16:35 GMT
@dvzrv

Hello there, sorry for the late reply as well.

I've upgraded to v3.0.0.3 now from community (stable), and the behavior is the same. With that said, AppImage version of the application, taken directly from project's web site, behaves correctly and encodes the file without problems. I've also tried to install openshot-git from AUR, which behaves in the same way as does the package from community repo.

Checked my NVENC and VAAPI configs as well: all seems OK, Firefox and VLC are able to use VAAPI for hardware acceleration, so the driver is configured properly (otherwise, I would imagine, AppImage version wouldn't work as well).

Please let me know if I can help you somehow to debug this further. Cheers.

Loading...