The audio is corrupted at the end of an mp4 file.
Describe the bug When I load a specific .mp4 file, in the original version of OpenShot I was using, the last several seconds of the audio seemed to play about 0.5 second loop. If I played the video in either Media Player or ClipChamp there was no issue. With the daily build the last few seconds of the video appear to have been discarded.
I'm happy to send you the video file that has the issue but it's 60 MB.
As a work around, I loaded the video in ClipChamp, exported it, and was able to use the resulting video in OpenShot.
Steps to reproduce the behavior:
- Load a specific mp4 file
- Play the last 10 seconds or so
- Hear error
Expected behavior no audio corruption or video truncation.
System Details
- OpenShot Version: 3.4.0
- libopenshot Version: 0.5.0
- Platform: Windows-10-10.0.26100
- Processor: Intel64 Family 6 Model 186 Stepping 3, GenuineIntel
- Machine: AMD64
- Python version: 3.8.9
- Qt5 version: 5.15.2
- PyQt5 version: 5.15.4
- Qt Detected Languages: ['en-US']
- LANG Environment Variable:
- LOCALE Environment Variable:
- Daily Build: Skipped this step
Log Files
- openshot-qt.log: File too small or empty (not uploaded)
- libopenshot.log (6 KB)
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.
- When you say load a specific *.mp4 file, is there something special about it?
- Which build # of v3.4.0-Release-Candidate are you working with? Go to Help | About OpenShot and from this screen right click anywhere and select Copy Version Info and then paste that information in your reply.
- Does this happen with all other *.mp4 files or just this one?
- How about other types of file (*.mov, *.mp3, etc?)
- How is your *.mp4 file recorded?
-
I've loaded a number of mp4 files in OpenShot without incident so there is something special about it. I just don't know what.
Version: 3.4.0 | 0.5.0
OpenShot-v3.4.0-release-candidate-14650-3723fbd9-0b018e34
Release Date: 2025-09-15
-
and 4. No. This is the only file of any kind that I've had this issue with, or any issue for that matter, in OpenShot.
-
I made the video on Windows 11 with the Camera App, a logi HD 1080p camera, and I was using an ART C1 USB microphone (Applied Research and Technology). I mention the microphone because with the original OpenShot build that I was using, when I hit the critical point, the video seemed to be fine but the audio started to stutter. When I grabbed the daily build to test with using it, the video was truncated at about the location where the stutter happened in the previous version. Unfortunately, I don't have a record of the version of OpenShot I was using when it stuttered. As I said in the bug report, Media Player and ClipChamp didn't have any problem with the file in question. I even loaded the file into ClipChamp and simply exported it and used the exported file to complete the project.
Thank you @kcliff-tranaptic for the information you provided. I am going to assign this to the lead developer to look into it. This issue and a few other, similar in nature (video/audio recording via gaming), have resulted in OpenShot not being able to handle the importing.
So far, the solution has been to run the source file through a converter like ShutterEncoder, VLC, or Handbrake and create a new file. Then import this file into OpenShot and all is good. I don't exactly know what setting(s) during the recording process is causing OpenShot to trip. Essentially, running the source file through ClipChamp then exporting it is like "converting" it.
We'll see when the lead developer will get to this. For now, your workaround seems to be working.