openshot-qt icon indicating copy to clipboard operation
openshot-qt copied to clipboard

Post Export Video option, the video is missing from output .Mp4 file however, audio in the exported...

Open boxbing opened this issue 1 year ago • 36 comments

Describe the bug Missing video in .Mp4 file post video export...

I added the video clips and placed the required title to the video thereafter, to generate output clicked "Export Video" in ".Mp4" file format. Post video export the video is missing however, the audio sound is audible in the .mp4 exported file.

Steps to reproduce the behavior:

  1. Go to 'File > Export Project '
  2. Click on 'Export Video'
  3. then wait for video to render it properly.
  4. Play the exported video (.Mp4) file to see the missing video from it.

Expected behavior The exported video should come with video and sound both but video is missing...

System Details

  • OpenShot Version: 3.1.1
  • libopenshot Version: 0.3.2
  • Platform: Linux-6.7.4-zen1-1-zen-x86_64-with-glibc2.39
  • Processor:
  • Machine: x86_64
  • Python version: 3.11.7
  • Qt5 version: 5.15.11
  • PyQt5 version: 5.15.10
  • Qt Detected Languages: ['en-IN', 'en-Latn-IN']
  • LANG Environment Variable: en_IN
  • LOCALE Environment Variable:
  • Daily Build: Verified issue still exists in daily build: http://github.com/OpenShot/openshot-qt/releases/download/OpenShot-v3.1.1-daily-11721-d98b5f2f-8e9d7edc-x86_64.AppImage

Log Files

Exception / Stacktrace No stacktrace found in log files

Screenshots (Optional) If applicable, add screenshots to help explain your problem. You can include screenshots by copy/pasting them on GitHub or dragging-and-dropping into the GitHub page. All images are public, so please don't post screenshots containing personal information.

boxbing avatar Feb 14 '24 15:02 boxbing

Output File test

boxbing avatar Feb 14 '24 15:02 boxbing

Hello @boxbing Please provide the following:

  1. What operating system are you running (windows 11?, Ubuntu 22.04 lts? etc?).
  2. Does this issue happen with other .mp4 files or just this one?
  3. Please provide a full screen shot of your project when you first open it.
  4. Click on Export and provide a screen shot of the Export screen.
  5. Without making any changes when you click on Export, click on "Export Video" and verify that issue still exists.
  6. If you are making a change from the Export screen then tell us exactly what changes you are making.
  7. Have you made any changes in Edit | Preferences? If yes, what settings?

Please provide all the information.

Colorjet3 avatar Feb 14 '24 15:02 Colorjet3

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

boxbing avatar Feb 14 '24 15:02 boxbing

  1. What operating system are you running (windows 11?, Ubuntu 22.04 lts? etc?). Tried on latest Arch and Ubuntu both. Found same issue.

  2. Does this issue happen with other .mp4 files or just this one? Tried with mp4 h264, and profile = hd 720p 30fps

  3. Please provide a full screen shot of your project when you first open it. Full screen shot test_01

  4. Click on Export and provide a screen shot of the Export screen. Before Export Click image After Export Click image

  5. Without making any changes when you click on Export, click on "Export Video" and verify that issue still exists. Yes

  6. If you are making a change from the Export screen then tell us exactly what changes you are making. Nothing Changed on export screen

  7. Have you made any changes in Edit | Preferences? If yes, what settings? No

boxbing avatar Feb 14 '24 16:02 boxbing

System Details:

OpenShot Version 3.1.1 ffmpeg version n6.1.1

Os: NAME="Garuda Linux" PRETTY_NAME="Garuda Linux" ID=garuda ID_LIKE=arch BUILD_ID=rolling

boxbing avatar Feb 14 '24 17:02 boxbing

Thank you @boxbing for all this information.

I didn't see a response to this question: Does this issue happen with other .mp4 files or just this one? What I need to know is if this issue only happens with this one .mp4 or other .mp4 files that you have also.

I am a novice Linux user. I have Ubuntu 23.10 installed in Oracle Virtualbox in my Windows 11 host computer. I just installed OpenShot v3.1.1 using the App Center. Created a Test project with a .jpg and a .mp4 file. I exported using the default project profile and default Export settings (mp4 h264, and profile = hd 720p 30fps).

When I double clicked on the .mp4 that I created it is like Ubuntu couldn't even open the .mp4 file for me. So I installed VLC and I am able to both see the video and hear the audio of my project.

Please try VLC also in addition to answering the question.

Colorjet3 avatar Feb 14 '24 19:02 Colorjet3

Thanks for your response @Colorjet3 !

I hvae tried many projects created new or tried to export old projects in defferent formats but faced same issue (sound is audiable however, video is missing).

Also, tried in VLC my default video plyer: See the output https://github.com/OpenShot/openshot-qt/issues/5421#issuecomment-1944050695

Apart from this, I have another old linux machine with Openshot which was working fine however, post Openshot new update its creating the same issue.

boxbing avatar Feb 15 '24 04:02 boxbing

To test quickly I created a new windows 10 virtul machine and installed latest version of Openshot. Tried to open the OpenShot App but it failing to load the OpenShot Application.

boxbing avatar Feb 15 '24 04:02 boxbing

Hello @boxbing.

  1. Which version of Windows 10 (home, pro?). If you are running the home and or the N version then you need to install the Microsoft Media Feature (https://www.microsoft.com/en-us/download/details.aspx?id=48231)
  2. Are you getting any error messages?
  3. Open a command prompt.
  4. Change directories to "c:\program files\openshot video editor"
  5. Execute this command: openshot-qt-cli.exe --debug
  6. The command prompt windows will display messages. See if you find something that might tell us what the issue is.

Colorjet3 avatar Feb 15 '24 16:02 Colorjet3

In my experience this is usually a missing codec issue. If the codec hasn't been installed on the system.

Colorjet, you might want to upload a short video you've exported with the same settings, and ask OP if they are able to play it. Or get OP to upload their video and see if you can play it...

leodf1 avatar Feb 15 '24 19:02 leodf1

Hello @leodf1. I am a very novice Linux user and wouldn't know what to ask the OP to do. Any chance you can chime in and provide some advice on what to do next?

The OP does use VLC to test with and I thought that VLC would have most of the codecs, if not all. But I guess some can be missing.

Colorjet3 avatar Feb 15 '24 19:02 Colorjet3

Hi Colorjet, I tinkered with VLC a very long time ago, same with Linux. No useful knowledge to speak of now. At the time, I did find that VLC was no better at handling different video formats than the standard Windows Media Player, which is why I never used it.

@boxbing Would you please export a short video and upload it here. Then someone can check if it's a playback issue on your system, or an export issue of the software

leodf1 avatar Feb 15 '24 19:02 leodf1

Hello @boxbing. I just used Build#11732 AppImage (openshto.org/download/#daily) in Ubuntu 23.10. I created a test project with two video clips. Made no edits and Exported (Test03.mp4) with the default settings.

I am able to play the Exported Test03.mp4 file in Ubuntu 23.10 (guest virtual using Oracle Virtualbox) using VLC. I then copied this to my host Windows 11 Pro and played it with both VLC and Windows Media player without any issues.

Please copy this attached test03.mp4 file to both of your environments and see if you are able to see the video and hear the audio.

Uploading Test03.mp4…

Colorjet3 avatar Feb 15 '24 21:02 Colorjet3

https://github.com/OpenShot/openshot-qt/assets/59097181/cf6ed959-7731-4a21-88cf-5a932e9d26ea

Colorjet3 avatar Feb 15 '24 21:02 Colorjet3

https://github.com/OpenShot/openshot-qt/assets/323529/56fa41f5-cfc9-4cae-9b88-fe95b1ea0009

boxbing avatar Feb 16 '24 08:02 boxbing

There is no video data in OP clip, only audio (I assume the thumping rhythm is the correct audio). So export is not working for some reason...

Perhaps the upgrade to 3.1.1 over previous version broke something. Can OP uninstall 3.1.1 and revert back to the previous working version. If it works again, try uninstalling that version, rebooting and fresh install of 3.1.1.

leodf1 avatar Feb 16 '24 10:02 leodf1

Hello @boxbing.

  1. I did not see a confirmation from you if the Test03.mp4 file I provided worked for you or not. This would help us focus our efforts of troubleshooting.
  2. Did you upgrade from a previous version (v2.6.x? or earlier?).

Please give this a try:

  1. Close Openshot if running.
  2. Go to Openshot.org/download/#daily and download the latest dev daily build #11732 AppImage. This was just released on 2/15.
  3. Make a backup of ~/home/username/.openshot_qt folder. Save this backup for a while.
  4. Delete ~/home/username/.openshot_qt folder. The entire folder.
  5. Make the AppImage you downloaded executable and start it.
  6. Open your project, Export it and see if the export includes the video.

Colorjet3 avatar Feb 16 '24 15:02 Colorjet3

I had Manjaro installed on my Oracle Virtualbox as a guest (julst like Ubuntu 23.10) so I ran AppImage build #11732 and tested an Export and both video and audio worked for me.

Colorjet3 avatar Feb 16 '24 15:02 Colorjet3

When I previously tested the appimage, the most recent version on the website was from last October. It crashed at startup due to glibc incompatibility. After reading your post I noticed that there were new builds created in the last few days. I tested build 11751, the most recent at the minute (not the same as yours). I encountered a different problem with no audio channels. (The official Arch package works just fine as far as audio is concerned with my configuration in which I use Jack2).

I spent about half an hour and could not find a way to solve this audio channel issue, perhaps there is an incompatibility between appimages and jack, or the jack library is not part of appimage, whatever. While doing these tests I ran into another issue: if I pass as parameter the name of a well configured project and Openshot chokes on that error, it defaults (cleans) my configured project, then I have to configure it again. This of course causes a waste of time.

For the time being I won't test anymore with the current appimpage. I might try again in a few weeks or wait for a fresh Openshot release, and for it to be packaged by Arch.

Piscium avatar Feb 18 '24 17:02 Piscium

Yes, there have been many fixes pushed to the DEV environment by the lead developer.

Regarding the audio issues. When you say "...no audio channels...", are you getting some kind of an error? I also don't know what Jack2 means.

@jonoomph Please take a look at this issue.

Colorjet3 avatar Feb 19 '24 03:02 Colorjet3

Hello @boxbing.

  1. I did not see a confirmation from you if the Test03.mp4 file I provided worked for you or not. This would help us focus our efforts of troubleshooting.

Yes, Test03.mp4 is working

  1. Did you upgrade from a previous version (v2.6.x? or earlier?).

Both, installed new on a new system and updated as well on an old system

Please give this a try:

  1. Close Openshot if running.
  2. Go to Openshot.org/download/#daily and download the latest dev daily build #11732 AppImage. This was just released on 2/15.
  3. Make a backup of ~/home/username/.openshot_qt folder. Save this backup for a while.
  4. Delete ~/home/username/.openshot_qt folder. The entire folder.
  5. Make the AppImage you downloaded executable and start it.
  6. Open your project, Export it and see if the export includes the video.

Tried but not found any different result

boxbing avatar Feb 19 '24 19:02 boxbing

Thank you for the update @boxbing. I am at a loss. We need @jonoomph to chime in.

Colorjet3 avatar Feb 19 '24 20:02 Colorjet3

Regarding the audio issues. When you say "...no audio channels...", are you getting some kind of an error? I also don't know what Jack2 means.

Exactly, I got an error message that said "No audio channels".

This is Jack, Jack2 is version 2 of Jack: https://en.wikipedia.org/wiki/JACK_Audio_Connection_Kit

Piscium avatar Feb 19 '24 23:02 Piscium

Package (1)     Old Version  New Version  Net Change

extra/openshot  3.1.1-1      3.1.1-1        0.00 MiB

just tried to update but no luck

boxbing avatar Feb 21 '24 12:02 boxbing

Tired to compile video using Kdenlive, it's working

https://github.com/OpenShot/openshot-qt/assets/323529/8fa090b9-fe85-4e0a-bbdb-52e02a56bfc8

boxbing avatar Feb 21 '24 13:02 boxbing

Thank again for the update @boxbing. What does this conclude? Where do we go from here?

Colorjet3 avatar Feb 22 '24 01:02 Colorjet3

Found the targets working in OpenShot Video Editor

❌ Target: MP4 (h.264) Not working

✅ Target: MP4 (h.264 va) Working

✅ Target: MOV (mpeg4) Working

✅ Target: Mp4 (mpeg4) Working

boxbing avatar Feb 23 '24 06:02 boxbing

There is a way around this 'exporting' issue, as partly mentioned above. Choose the codec target mp4 (mpeg4) instead of mp4 (h.264) default. The same applies to format mkv. Alternatively, use the codec mp4 (h.265) which seems to work fine as well.

bendipa avatar Feb 25 '24 09:02 bendipa

MP4 (h.265) works for me, h.264 does not. Linux debian, OpenShot 3.1.1. Kind of checked that needed codecs are there.

lrontu avatar Jun 13 '24 18:06 lrontu

Confirming that I had the exact same issue on Ubuntu 22.04 running OpenShot 3.2.1 from the official PPA. Using the daily AppImage (OpenShot-v3.2.1-daily-12662-044bb224-23713d3a-x86_64.AppImage) has solved the issue for me!

erikaheidi avatar Jul 26 '24 15:07 erikaheidi