olive-editor / olive

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

Sequence Viewer black on newest Git #555

Closed alcomposer closed 5 years ago

alcomposer commented 5 years ago

Olive version: 3233c0d Feb 2019
Source: GIT
Operating system: Arch Linux
CPU: i7-8550U GPU: GeForce MX150 NVIDIA 418.43 (Nvidia Prime with Intel UHD 620) Driver: nvidia v: 418.43

Sequence viewer is blank (black) but media viewer shows media ok.

ghost commented 5 years ago

Try launch Olive with option

$ olive --disable-blend-modes
capezotte commented 5 years ago

Or LIBGL_ALWAYS_SOFTWARE=1 ./olive-editor

ghost commented 5 years ago

Or LIBGL_ALWAYS_SOFTWARE=1 ./olive-editor

This variable not show is black screen in sequence viewer broken by added GLSL effect or not.

@alcomposer, could you add screenshots and details about project file: is there any effects?

alcomposer commented 5 years ago

The media viewer plays back, but flickers, however the sequence viewer is completely blank (a black windows) where the media normally is.

I have narrowed it down to Nvidia (I am testing on Linux so maybe only Linux?). When I tested with Intel iGPU there was no problem playing back footage.

Neither the argument or the environment variable worked with the Nvidia GPU.

bradleypariah commented 5 years ago

I'm experiencing this as well. I have tried with both MOV files and MP4 files. The Media Viewer works to preview files, but when playing in the timeline, nothing shows in the Sequence Window. It's just black. The issues started with the most recent update from the repo. (Ubuntu Studio 18.04 with Nvidia) Here's a video: https://drive.google.com/open?id=1g4Q-IcZu-TU1-nbdbw0RpLB3AHzMGlCT

alcomposer commented 5 years ago

@bradleypariah is you Nvidia card an Optimus or pci-e GPU?

itsmattkc commented 5 years ago

Any improvement with d3487086c79a5640b6b8a539bcf1427b0c5e5b69?

bradleypariah commented 5 years ago

@bradleypariah is you Nvidia card an Optimus or pci-e GPU?

It's a 4GB gtx960. It's a PCI desktop GPU, I believe. Looks like a normal traditional PCIe x16 card.

neofetch .-/+oossssoo+/-. bradley@UbuntuStudio :+ssssssssssssssssss+: -------------------- -+ssssssssssssssssssyyssss+- OS: Ubuntu 18.04.2 LTS x86_64 .ossssssssssssssssssdMMMNysssso. Kernel: 4.15.0-45-lowlatency /ssssssssssshdmmNNmmyNMMMMhssssss/ Uptime: 5 hours, 52 mins +ssssssssshmydMMMMMMMNddddyssssssss+ Packages: 3119 /sssssssshNMMMyhhyyyyhmNMMMNhssssssss/ Shell: bash 4.4.19 .ssssssssdMMMNhsssssssssshNMMMdssssssss. Resolution: 1920x1080 +sssshhhyNMMNyssssssssssssyNMMMysssssss+ DE: Xfce ossyNMMMNyMMhsssssssssssssshmmmhssssssso WM: Xfwm4 ossyNMMMNyMMhsssssssssssssshmmmhssssssso WM Theme: BubbleTux +sssshhhyNMMNyssssssssssssyNMMMysssssss+ Theme: Adwaita-dark [GTK2] .ssssssssdMMMNhsssssssssshNMMMdssssssss. Icons: Humanity-Dark [GTK2] /sssssssshNMMMyhhyyyyhdNMMMNhssssssss/ Terminal: xfce4-terminal +sssssssssdmydMMMMMMMMddddyssssssss+ Terminal Font: Ubuntu Mono 11 /ssssssssssshdmNNNNmyNMMMMhssssss/ CPU: Intel i5-6600K (4) @ 3.900GHz .ossssssssssssssssssdMMMNysssso. GPU: NVIDIA GeForce GTX 960 -+sssssssssssssssssyyyssss+- Memory: 3451MiB / 32102MiB :+ssssssssssssssssss+: .-/+oossssoo+/-.

alcomposer commented 5 years ago

Any improvement with d348708?

No, and now both viewers are blank: blank screen

Debug output from terminal: 2019-02-28T14:07:30 [WARNING] Invalid values passed to get_buffer_offset_from_frame 124 < 125

Looks like this issue is across all Nvidia GPU's on Linux (I have only tested Linux). I have tested with iGPU (Intel) and video plays back on both viewers.

[note] I am able to render the output of the timeline, which renders without any issues, this is a display issue only.

@Symbian9 There are no effects on the video files, I test with footage that I drop into a blank project. @bradleypariah Are you using Nvidia Proprietary or Nouveau?

psemiletov commented 5 years ago

My Radeon don't show video at the Sequence viewer. Some days ago all was fine, but after one commit things goes weird :)

alcomposer commented 5 years ago

@psemiletov what is your OS, and GPU?

This is the first report if this issue occuring on an AMD card.

elsandosgrande commented 5 years ago

Olive version: 6c166a1 (Olive repository, AppImage), 26b4abe (personal Olive fork, manually/locally built) Operating system: (Antergos with KDE, latest updates, testing repositories)
CPU: AMD Dual-Core A9-9410
GPU: AMD Radeon R7 M440 (dedicated), AMD Stoney (integrated) Full laptop specifications sheet

I, personally, am seeing issues with neither the timeline nor the media previews. It is most likely not worth mentioning, but I am running it on Wayland.

EDIT: Oh, also, I have DRI_PRIME=1 set in /etc/environment/.

AGI-THB commented 5 years ago

I had the problem only when i used Olive in virtualbox (Linux MInt 19). CPU: intel i5-4200u GPU: iGPU

Godot-engine also refuses to start because of OpenGL problems.

Its fine outside the virtualbox.

DaniSeeh commented 5 years ago

Wanted to throw in my two cents that I am having this problem on 48497dd on this machine:

AMD Ryzen 1700x GTX 1070 32 GB of Ram Manjaro Cinnamon

Except for me, both media and sequence viewer display constant black. Everything was working on 83ad41d (with some other minor display issues but at least working).

edit: also, saving a frame as an image from the viewer not only doesn't work, it doesn't even save a black frame. It simply saves no file at all. BUT, exporting the video seems to work perfectly as far as I can tell.

psemiletov commented 5 years ago

@psemiletov what is your OS, and GPU? This is the first report if this issue occuring on an AMD card.

Mageia 6, XOrg radeon driver, Radeon HD 6870. MATE desktop.

ghost commented 5 years ago

FTR, I has NO such issue on my PC, but I launch Olive as:

$ olive --disable-blend-modes

Olive version: 48497dd (AppImage)

OS: Debian 9.x (x86_64)

GPU: ATI Radeon Xpress 1250

Driver: Gallium 0.4 on ATI RS600 - X.Org R300 Project

OpenGL version: 2.1 Mesa 13.0.6 (GLSL 1.20)

elsandosgrande commented 5 years ago

@psemiletov Could you try running AMDGPU? I am using AMDGPU and see no issues.

After discussing this issue for a little bit with @alcomposer on Discord, I think it would be beneficial to mention that I have Early KMS set up (I had 6-bit color instead of 8-bit after an update and setting this actually fixed it, though I was setting it up without my color issue in mind, so it was by pure chance that it fixed the issue) and that this issue does not come up in Xorg either (at least when using XRender as the backend in KWin, as OpenGL gives me glitches galore in Xorg).

EDIT: Just to clarify, AMDGPU is the driver that I am currently using. EDIT 2: Regarding OpenGL specifications, glxinfo.txt.

psemiletov commented 5 years ago

@psemiletov Could you try running AMDGPU? I am using AMDGPU and see no issues.

AMDGPU does not support my videocard. What was changed at video output code? Week ago I had video output in both panels.

psemiletov commented 5 years ago

My Sequence viewer, with the new project and one empty sequence, shows the random pieces of video memory (for example, from the "screenshot" of the file open dialog that was called before).

elsandosgrande commented 5 years ago

I get those framebuffer glitches too (not in Olive though and less and less with each and every KDE update). You're running xf86-video-ati with mesa installed as well if I am not mistaken.

Hmm, I wonder if it's just Nvidia's proprietary driver and the ATI driver having issues/if it's just nouveau and AMDGPU that are fine?

EDIT: Well, KDE and driver updates.

NathanSalapat commented 5 years ago

I'm having the same problem.

OS Linux Mint 19.1 Nvidia driver 390.77, GTX 1060 Olive versin: February | alpha | f19eded launched with --disable-blend-mode

I get some errors in the terminal, maybe this can shed some light on the issue.

2019-03-02T08:22:24 [WARNING] libpng warning: iCCP: known incorrect sRGB profile
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f2ee4005240] unsupported color_parameter_type aclc
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/nathan/Downloads/GOPR8751.MP4':
  Metadata:
    major_brand     : avc1
    minor_version   : 0
    compatible_brands: avc1isom
    creation_time   : 2014-01-01T01:47:26.000000Z
    firmware        : HD3.20.01.07
  Duration: 00:00:17.03, start: 0.000000, bitrate: 15445 kb/s
    Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuvj420p(pc), 1280x720 [SAR 1:1 DAR 16:9], 15042 kb/s, 59.94 fps, 59.94 tbr, 60k tbn, 119.88 tbc (default)
    Metadata:
      creation_time   : 2014-01-01T01:47:26.000000Z
      handler_name    :  Ambarella AVC
      encoder         : Ambarella AVC encoder
      timecode        : 01:47:19:33
    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)
    Metadata:
      creation_time   : 2014-01-01T01:47:26.000000Z
      handler_name    :  Ambarella AAC
      timecode        : 01:47:19:33
    Stream #0:2(eng): Data: none (tmcd / 0x64636D74), 0 kb/s (default)
    Metadata:
      creation_time   : 2014-01-01T01:47:26.000000Z
      timecode        : 01:47:19:33
2019-03-02T08:22:36 [ERROR] Unsupported codec in stream 2 of file "GOPR8751.MP4"
2019-03-02T08:22:36 [WARNING] QObject::connect: Cannot queue arguments of type 'QVector<int>'
(Make sure 'QVector<int>' is registered using qRegisterMetaType().)

[swscaler @ 0x7f2e780709a0] deprecated pixel format used, make sure you did set range correctly
2019-03-02T08:22:46 [INFO] Clip opened on track -1 (took 11 ms)
Input #0, image2, from '/home/nathan/Downloads/Minetest-channel-art.jpg':
  Duration: 00:00:00.04, start: 0.000000, bitrate: 250476 kb/s
    Stream #0:0: Video: mjpeg, yuvj444p(pc, bt470bg/unknown/unknown), 2560x1440 [SAR 28:28 DAR 16:9], 25 tbr, 25 tbn, 25 tbc
naj59 commented 5 years ago

Looks like a GoPro mp4. Error relies in codec. Probably hevc?

NathanSalapat commented 5 years ago

@naj59 It makes no difference what video I use. The second example is a .jpg and that doesn't work either. I have some projects that used to work just fine, and now display no output.

naj59 commented 5 years ago

@NathanSalapat I understandbut at this time, the error message is [ERROR] Unsupported codec in stream 2 of file "GOPR8751.MP4". But when you say that they worked before something must have been changed that this is broken. I am on Windows so I cannot really talk about.

NathanSalapat commented 5 years ago

Here's the error ouput from a clip that worked before.

Input #0, matroska,webm, from '/home/nathan/Videos/CitySim.mkv':
  Metadata:
    ENCODER         : Lavf56.40.101
  Duration: 00:18:08.77, start: 0.000000, bitrate: 7783 kb/s
    Stream #0:0: Video: h264 (High), yuv420p(progressive), 1920x1080, SAR 1:1 DAR 16:9, 30 fps, 30 tbr, 1k tbn, 60 tbc (default)
    Metadata:
      DURATION        : 00:18:08.766000000
    Stream #0:1: Audio: aac (LC), 44100 Hz, stereo, fltp (default)
    Metadata:
      title           : Microphone
      DURATION        : 00:18:08.644000000
    Stream #0:2: Audio: aac (LC), 44100 Hz, stereo, fltp (default)
    Metadata:
      title           : Desktop
      DURATION        : 00:18:08.644000000
2019-03-02T10:26:04 [WARNING] QObject::connect: Cannot queue arguments of type 'QVector<int>'
(Make sure 'QVector<int>' is registered using qRegisterMetaType().)
[swscaler @ 0x7fe8b9022a80] Warning: data is not aligned! This can lead to a speed loss
Input #0, matroska,webm, from '/home/nathan/Videos/CitySim.mkv':
  Metadata:
    ENCODER         : Lavf56.40.101
  Duration: 00:18:08.77, start: 0.000000, bitrate: 7783 kb/s
    Stream #0:0: Video: h264 (High), yuv420p(progressive), 1920x1080, SAR 1:1 DAR 16:9, 30 fps, 30 tbr, 1k tbn, 60 tbc (default)
    Metadata:
      DURATION        : 00:18:08.766000000
    Stream #0:1: Audio: aac (LC), 44100 Hz, stereo, fltp (default)
    Metadata:
      title           : Microphone
      DURATION        : 00:18:08.644000000
    Stream #0:2: Audio: aac (LC), 44100 Hz, stereo, fltp (default)
    Metadata:
      title           : Desktop
      DURATION        : 00:18:08.644000000
Input #0, matroska,webm, from '/home/nathan/Videos/CitySim.mkv':
  Metadata:
    ENCODER         : Lavf56.40.101
  Duration: 00:18:08.77, start: 0.000000, bitrate: 7783 kb/s
    Stream #0:0: Video: h264 (High), yuv420p(progressive), 1920x1080, SAR 1:1 DAR 16:9, 30 fps, 30 tbr, 1k tbn, 60 tbc (default)
    Metadata:
      DURATION        : 00:18:08.766000000
    Stream #0:1: Audio: aac (LC), 44100 Hz, stereo, fltp (default)
    Metadata:
      title           : Microphone
      DURATION        : 00:18:08.644000000
    Stream #0:2: Audio: aac (LC), 44100 Hz, stereo, fltp (default)
    Metadata:
      title           : Desktop
      DURATION        : 00:18:08.644000000
2019-03-02T10:26:11 [INFO] Clip opened on track 1 (took 17 ms)
2019-03-02T10:26:11 [INFO] Clip opened on track 0 (took 18 ms)
Input #0, matroska,webm, from '/home/nathan/Videos/CitySim.mkv':
  Metadata:
    ENCODER         : Lavf56.40.101
  Duration: 00:18:08.77, start: 0.000000, bitrate: 7783 kb/s
    Stream #0:0: Video: h264 (High), yuv420p(progressive), 1920x1080, SAR 1:1 DAR 16:9, 30 fps, 30 tbr, 1k tbn, 60 tbc (default)
    Metadata:
      DURATION        : 00:18:08.766000000
    Stream #0:1: Audio: aac (LC), 44100 Hz, stereo, fltp (default)
    Metadata:
      title           : Microphone
      DURATION        : 00:18:08.644000000
    Stream #0:2: Audio: aac (LC), 44100 Hz, stereo, fltp (default)
    Metadata:
      title           : Desktop
      DURATION        : 00:18:08.644000000
2019-03-02T10:26:11 [INFO] Clip opened on track -1 (took 13 ms)
[matroska,webm @ 0x7fe8ac004380] Invalid EBML number size tag 0x01 at pos 924 (0x39c)
[matroska,webm @ 0x7fe8a40051e0] Invalid EBML number size tag 0x01 at pos 924 (0x39c)
naj59 commented 5 years ago

Strange. Also a „format“ error. Tried this file in other software?

NathanSalapat commented 5 years ago

Yes, the file worked fine. I did an edit with it before in Olive. Plays fine with VLC.

itsmattkc commented 5 years ago

2b406d71f28f51e56eb69396c6c790e08ca7b384 fixes this for me, let me know if it's all good for you guys too.

DaniSeeh commented 5 years ago

Good for me now!

AGI-THB commented 5 years ago

It works now. @itsmattkc

NathanSalapat commented 5 years ago

Works now, Thanks.

itsmattkc commented 5 years ago

Confirmed with @alcomposer, the issue is gone. I'll close this now, thanks everyone for chiming in

capabomba commented 5 years ago

Sorry guys if I bring this up again, but I'm trying Olive for the first time and on my laptop with Windows 7 32 bit I still have this issue. No matter what file I add in the media library, it won't show in the viewer. It only plays sound. I also tried it on a desktop with same OS and nothing has changed.

I'm running it on a old Compaq Presario CQ61-207SL CPU Pentium Dual-core T4200 2GHz GPU Mobile Intel 4 series express chipset RAM 3 GB DDR2