OpenShot / openshot-qt

OpenShot Video Editor is an award-winning free and open-source video editor for Linux, Mac, and Windows, and is dedicated to delivering high quality video editing and animation solutions to the world.
http://www.openshot.org
Other
4.25k stars 531 forks source link

Openshot exports only audio with default settings - "Frame AVERROR_EOF" error #5419

Open Piscium opened 7 months ago

Piscium commented 7 months ago

Describe the bug: Openshot exports only audio with default settings, them being Target = mp4 h264, and profile = hd 720p 24fps. This issue happens on a up to date Arch Linux install. There is at least another Arch user with the same issue [1] and two more with unknown installations mentioned in another thread [2]. As others reported in [2], I can successfully export with mpeg4 and h265, however the latter is not convenient to me because it takes too long for the task at hand and it generates too big files. My workaround for this issue is therefore exporting in mpeg4 format. Like others reported in [1] and [2] I get this error on the console, repeatedly: Frame AVERROR_EOF.

I tried to run the most recent official daily build (built last October) but it fails at startup with a known issue [3]. I tried to build the libopenshot-git package from AUR but it fails with many errors. I did not therefore run the most recent version in github.

[1] https://www.reddit.com/r/OpenShot/comments/1af1ezi/openshot_only_exports_audio_on_black_screen/ [2] https://www.reddit.com/r/openshot/comments/j17njl/comment/khdk2u5/ [3] https://github.com/OpenShot/openshot-qt/issues/5327

Steps to reproduce the behavior:

  1. Click on Export button
  2. Click on Export Video button
  3. Wait until export finishes
  4. View the exported file with vlc, there will be just audio

Expected behavior: It should export both audio and video in h264.

System Details:

Colorjet3 commented 7 months ago

Hello @Piscium. I don't have access to Arch Linux to test in. Trying to install it in an Oracle Virtualbox and having nothing but trouble so far (I am not a Linux guy so doesn't take much to challenge me...LOL!).

Please give this a try:

  1. Run your original video/audio file through a converter like VLC, HandBrake, or ShutterEncoder, and convert it to .mp4 with a new name.
  2. Import this new file into OpenShot.
  3. I would first Export without making any edit just to see if this make is it work.
Piscium commented 7 months ago

Hello @Piscium. I don't have access to Arch Linux to test in. Trying to install it in an Oracle Virtualbox and having nothing but trouble so far (I am not a Linux guy so doesn't take much to challenge me...LOL!).

Please give this a try:

1. Run your original video/audio file through a converter like VLC, HandBrake, or ShutterEncoder, and convert it to .mp4 with a new name.

2. Import this new file into OpenShot.

3. I would first Export without making any edit just to see if this make is it work.

I did that, took a random mp4 video that I had on my PC, imported into Openshot, exported, and the same thing happened, the exported file has only audio.

Installing Arch from scratch does require some knowledge of Linux. A much easier option is to install Manjaro or Endeavour, which are Arch derivatives. I don't know if the issue happens on them.

sblatnick commented 7 months ago

I am seeing the same problem, but on Debian. h264 fails to export frames, audio only. If I use h265 I get frames, but then others have trouble viewing the videos.

I also get the same "Frame AVERROR_EOF" during export.

INFO app: openshot-qt version: 3.1.1
INFO app: libopenshot version: 0.3.2
INFO app: platform: Linux-6.6.13-amd64-x86_64-with-glibc2.37
INFO app: processor: 
INFO app: machine: x86_64
INFO app: python version: 3.11.8
INFO app: qt5 version: 5.15.10
INFO app: pyqt5 version: 5.15.10
boxbing commented 7 months ago

Kind of same issue https://github.com/OpenShot/openshot-qt/issues/5421

Piscium commented 7 months ago

Kind of same issue #5421

i agree

Colorjet3 commented 6 months ago

Please give the latest DEV Daily build #11768 (released on 2/18/24) and let's see the result.

go to openshot.org/download/#daily

sblatnick commented 6 months ago

I can confirm that the daily build from Feb 19 does export video in h264. Thanks!

Piscium commented 6 months ago

I can confirm that the daily build from Feb 19 does export video in h264. Thanks!

That was on Debian, correct? Was it Debian stable, testing or unstable? On Arch it is still not working for me. I built the AUR git package which in principle should fetch the latest from upstream git repo.

sblatnick commented 6 months ago

Debian Testing

Piscium commented 6 months ago

Arch is bleeding edge. I suppose the issue is caused by a library incompatibility, but which library? That is the question.

ghost commented 6 months ago

Just so you know, the daily build fixed this bug for me too so whatever you did works :+1:

Piscium commented 6 months ago

I don't mind the issue being closed, however it still does not work for me when I build the git AUR packages in Arch, so from my point of view this issue is alive and kicking! :-).

Colorjet3 commented 6 months ago

Oops...sorry about that...I missed that. Reopening.

schober-ch commented 5 months ago

Just want to add myself to that list of arch users. Seeing exactly the same effect.

Using

And some of the (potentially?) relevant library versions:

I've just started using openshot today so I basically do not know what exactly might be relevant, but if you can give some hints I might be able to try putting something together.


INFO app:             Thu Mar 28 14:07:55 2024
INFO app:               Starting new session
INFO app: ------------------------------------------------
INFO app:             OpenShot (version 3.1.1)
INFO app: ------------------------------------------------
INFO app: openshot-qt version: 3.1.1
INFO app: libopenshot version: 0.3.2
INFO app: platform: Linux-6.8.2-arch1-1-x86_64-with-glibc2.39
INFO app: processor:
INFO app: machine: x86_64
INFO app: python version: 3.11.8
INFO app: qt5 version: 5.15.11
INFO app: pyqt5 version: 5.15.10```
Colorjet3 commented 5 months ago

There has been many fixes and improvements in the latest DEV Daily Build #11909 (as of this writing) that addresses the GlibC error that many other linux flavors were experiencing as well (I am by no means a linux expert and honestly don't care for ArchLinux). I have Ubuntu, Arch Linux, Mint, and Fedora running in my Virtualbox environment for testing.

The latest DEV Daily AppImage consistently runs without any issues at this time on all these versions that I have tested and no issues with Exporting either...yes in ArchLinux as well.

So for now, please download the latest dev daily build AppImage, make it executable and run it. Give your projects a try and let me know how things are working.

schober-ch commented 5 months ago

Thank you! I appreciate that this tool is available at all and that you invest the time in manually testing this in different distributions!

I've done as suggested and tested the latest AppImage build and this is working!

Colorjet3 commented 5 months ago

You are welcome @schober-ch and glad that it is working for you.

KiralyCraft commented 5 months ago

I'm also experiencing the same thing on Arch Linux with version 3.1.1; It seems that VA-API encoding is not effected, and works as expected even with this version (whereas using CPU encoding only produces audio).

Considering that the fix is already in place from what I've read, this is more of a note for whoever updates late.

Piscium commented 5 months ago

I'm also experiencing the same thing on Arch Linux with version 3.1.1; It seems that VA-API encoding is not effected, and works as expected even with this version (whereas using CPU encoding only produces audio).

I am on Arch too. It's weeks since I tried this, however I could not choose the VA-API option in openshot even though I had vaapi packages installed. Do you have any relevant package installed that I don't have?

pacman -Ss vaapi extra/gstreamer-vaapi 1.24.1-2 [installed] Multimedia graph framework - vaapi plugin extra/intel-media-driver 24.2.0-1 [installed] Intel Media Driver for VAAPI — Broadwell+ iGPUs extra/libvdpau-va-gl 0.4.2-3 [installed] VDPAU driver with OpenGL/VAAPI backend

Colorjet3 commented 5 months ago

I'm also experiencing the same thing on Arch Linux with version 3.1.1; It seems that VA-API encoding is not effected, and works as expected even with this version (whereas using CPU encoding only produces audio).

Considering that the fix is already in place from what I've read, this is more of a note for whoever updates late.

Just make sure that you are running the latest dev daily AppImage available if you run into issues. The latest dev daily build has many fixes and enhancements not in the production release at this time.

Colorjet3 commented 5 months ago

Hello @Piscium. I had not tested VA-API MP4 (h.264 va) until now and it fails for me as well. This is the error I get: image

Are you getting this same error as well?

Piscium commented 5 months ago

Are you getting this same error as well?

Yes, the very same message.

Piscium commented 5 months ago

Just make sure that you are running the latest dev daily AppImage available if you run into issues. The latest dev daily build has many fixes and enhancements not in the production release at this time.

I acknowledge that the appimage works for you in an Arch VM, and for another Arch user. As I said before it does not work for me, I get the error message about No Channels at startup, and I have not figured out a way to get around that. I suspect the reason is that I use the Jack2 audio server, instead of the more common options of Pulseaudio and Pipewire.

Also a few weeks ago (when the issue was supposed to already having been fixed) I used the AUR git package to run the openshot git version and that had the same problem of no video.

Colorjet3 commented 5 months ago

Hello @Piscium This is beyond my expertise. I believe that the lead developer (@jonoomph ) needs to chime in.

superian commented 1 month ago

Same 'no video, just audio' on exporting edited video here with Ubuntu 24.04 when using the PPA and getting the following deb file: ppa.launchpadcontent.net/openshot.developers/ppa/ubuntu noble/main amd64 openshot-qt all 3.2.1+dfsg2+1693+202407112018~ubuntu24.04.1

The PC has only just been upgraded from 22.04 and as part of that, openshot-qt was removed by the upgrade software. So it's a new-ish install - while all the dependencies not already installed were got..

The following additional packages will be installed:

  gdal-data gdal-plugins libaec0 libarmadillo12 libblosc1 libcfitsio10t64 libcharls2 libfreexl1 libfyba0t64 libgdal34t64 libgdcm3.0t64 libgeos-c1t64 libgeos3.12.1t64 libgeotiff5 libhdf4-0-alt libhdf5-103-1t64 libhdf5-hl-100t64 libhwloc-plugins libhwloc15 libjsoncpp25 libkmlbase1t64 libkmldom1t64 libkmlengine1t64 liblept5 libnetcdf19t64 libodbc2 libodbcinst2 libogdi4.1 libopencv-calib3d406t64 libopencv-contrib406t64 libopencv-core406t64 libopencv-dnn406t64 libopencv-features2d406t64 libopencv-flann406t64 libopencv-highgui406t64 libopencv-imgcodecs406t64 libopencv-imgproc406t64 libopencv-ml406t64 libopencv-objdetect406t64 libopencv-video406t64 libopenshot26 libpq5 libproj25 libqt5quickwidgets5 libqt5webengine-data libqt5webengine5 libqt5webenginecore5 libqt5webenginewidgets5 libre2-10 librttopo1 libsocket++1 libspatialite8t64 libsuperlu6 libsz2 libtbb12 libtbbbind-2-5 libtbbmalloc2 libtesseract5 liburiparser1 libxerces-c3.2t64 proj-bin proj-data python3-defusedxml python3-openshot python3-py python3-pyqt5.qtopengl python3-pyqt5.qtsvg python3-pyqt5.qtwebchannel python3-pyqt5.qtwebengine python3-sentry-sdk python3-zmq unixodbc-common

Suggested packages:

  geotiff-bin gdal-bin libgeotiff-epsg libhdf4-doc libhdf4-alt-dev hdf4-tools libhwloc-contrib-plugins odbc-postgresql tdsodbc ogdi-bin openshot-qt-doc subversion python3-pytest

The following NEW packages will be installed

  gdal-data gdal-plugins libaec0 libarmadillo12 libblosc1 libcfitsio10t64 libcharls2 libfreexl1 libfyba0t64 libgdal34t64 libgdcm3.0t64 libgeos-c1t64 libgeos3.12.1t64 libgeotiff5 libhdf4-0-alt libhdf5-103-1t64 libhdf5-hl-100t64 libhwloc-plugins libhwloc15 libjsoncpp25 libkmlbase1t64 libkmldom1t64 libkmlengine1t64 liblept5 libnetcdf19t64 libodbc2 libodbcinst2 libogdi4.1 libopencv-calib3d406t64 libopencv-contrib406t64 libopencv-core406t64 libopencv-dnn406t64 libopencv-features2d406t64 libopencv-flann406t64 libopencv-highgui406t64 libopencv-imgcodecs406t64 libopencv-imgproc406t64 libopencv-ml406t64 libopencv-objdetect406t64 libopencv-video406t64 libopenshot26 libpq5 libproj25 libqt5quickwidgets5 libqt5webengine-data libqt5webengine5 libqt5webenginecore5 libqt5webenginewidgets5 libre2-10 librttopo1 libsocket++1 libspatialite8t64 libsuperlu6 libsz2 libtbb12 libtbbbind-2-5 libtbbmalloc2 libtesseract5 liburiparser1 libxerces-c3.2t64 openshot-qt proj-bin proj-data python3-defusedxml python3-openshot python3-py python3-pyqt5.qtopengl python3-pyqt5.qtsvg python3-pyqt5.qtwebchannel python3-pyqt5.qtwebengine python3-sentry-sdk python3-zmq unixodbc-common

.. assorted config files doubtless remained.

Trying the three non-CPU encoders all failed with error messages as above.

The AppImage from here works fine, so I'll just use that.

TatoMato commented 1 month ago

Hi there, this issue bothers me too. I want to export Vertical profile FHD, HD every FPS fails to export video. Webm exports just fine.

I am using default Fedora 39 and OpenShot from its repositories.