olive-editor / olive

Free open-source non-linear video editor
https://olivevideoeditor.org/
GNU General Public License v3.0
8.19k stars 556 forks source link

.mp3, .ogg, and .wav import sounds are broken/desynced #359

Closed Corruptinator closed 5 years ago

Corruptinator commented 5 years ago

Version: [Jan 2019 | 1d85c42] Windows 10 64-Bit

I noticed that after importing .mp3 into a project sequencer there are no waveforms shown on the timeline and does not play back sound. (Edit: Same thing for .ogg, no sound playback) For .wav, it does play back sound but starts playing the beginning part of the sound regardless of where the playback marker is set on the sequencer timeline. Say I hit stop and stop the music, then moving the timeline marker back at the start and press play, the song/sound still continues where it was left off instead of going back at the beginning. The .WAV files are desynced from the sequencer timeline. Wav files also show flat waveforms in the timeline. (Edit: .M4a [AAC] is affected as like the WAV format)

image

Possible sound import regression perhaps?

itsmattkc commented 5 years ago

Interesting, this issue appears to be very similar to #313, which I haven't been able to address since I haven't been able to recreate it. Could you send the full debug log when you import these files and provide your computers's specs?

itsmattkc commented 5 years ago

Scratch that last statement, I was finally able to recreate. Expect a fix soon.

Corruptinator commented 5 years ago

Sorry, my computer ran out of power. Haven't done Debug Log before.

pgilfernandez commented 5 years ago

I macOS it happens something similar... but it seems to happen with all sound files:

captura de pantalla 2019-01-24 a las 8 47 43
itsmattkc commented 5 years ago

I believe 32479b1b8395004e06d46e5289b19632fed8a6d5 should fix this, let me know if it does! (Windows users can download the latest build)

Corruptinator commented 5 years ago

I redownloaded Olive from the official webpage downloads, didn't show which version number it was, Audio is still desynced and some still can't play normally. I did get the Debug Log though:

[WARNING] libpng warning: iCCP: known incorrect sRGB profile (:0, )
[INFO] Initializing effects... (:0, )
[INFO] Finished initializing effects (:0, )
[INFO] Found the following audio devices: (:0, )
[DEBUG] "Speakers (4- Sennheiser 3D G4ME1)" (:0, )
[DEBUG] "Speakers (4- Sennheiser 3D G4ME1)" (:0, )
[INFO] Using audio device "Default Output Device" (:0, )
[WARNING] libpng warning: iCCP: known incorrect sRGB profile (:0, )
[WARNING] Tried to display clip 0 but it's closed (:0, )
[INFO] Clip opened on track 0 (:0, )
[INFO] Clip closed on track 0 (:0, )
[WARNING] Tried to display clip 0 but it's closed (:0, )
[WARNING] Tried to display clip 0 but it's closed (:0, )
[INFO] Clip opened on track 0 (:0, )
[INFO] Auto-recovery project saved (:0, )
[INFO] Clip closed on track 0 (:0, )
[WARNING] Tried to display clip 0 but it's closed (:0, )
[WARNING] Tried to display clip 0 but it's closed (:0, )
[INFO] Clip opened on track 0 (:0, )
[INFO] Clip closed on track 0 (:0, )
[WARNING] Tried to display clip 0 but it's closed (:0, )
[WARNING] Tried to display clip 0 but it's closed (:0, )
[INFO] Clip opened on track 0 (:0, )
[INFO] Clip closed on track 0 (:0, )
[WARNING] Tried to display clip 0 but it's closed (:0, )
[WARNING] Tried to display clip 0 but it's closed (:0, )
[INFO] Clip opened on track 0 (:0, )
[WARNING] Invalid values passed to get_buffer_offset_from_frame 0 
[WARNING] Invalid values passed to get_buffer_offset_from_frame 0 
[WARNING] Invalid values passed to get_buffer_offset_from_frame 0 
[WARNING] Invalid values passed to get_buffer_offset_from_frame 0 
[WARNING] Invalid values passed to get_buffer_offset_from_frame 0 
[WARNING] Invalid values passed to get_buffer_offset_from_frame 0 
[WARNING] Invalid values passed to get_buffer_offset_from_frame 0 
[WARNING] Invalid values passed to get_buffer_offset_from_frame 0 
[WARNING] Invalid values passed to get_buffer_offset_from_frame 0 
[INFO] Auto-recovery project saved (:0, )
itsmattkc commented 5 years ago

Sorry I accidentally uploaded an older build, try it now

Corruptinator commented 5 years ago

Hang on... download is slow.

Corruptinator commented 5 years ago

Ugh. Download Failed. Network Error. Still trying to download.

Corruptinator commented 5 years ago

It works, Waveforms are also shown on the timeline. Thanks!

itsmattkc commented 5 years ago

Awesome! really glad to have solved that one :)

Corruptinator commented 5 years ago

:)