Avidemux Forum

Avidemux => Main version 2.6 => Topic started by: mean on December 21, 2015, 07:41:48 PM

Title: OpenGl changes
Post by: mean on December 21, 2015, 07:41:48 PM
I've made some changes on the openGl part
Now it should work on all system, at least the accelerated display part. The filters might or might not

To test it, enable openGl, select openGl as display and restart avidemux
On the left hand side, you should see LavCodec/QtGl or VDPAU/QtGL
Browse a bit throught the video, if all is ok, display works

Add a rotate video filter, 20 Degré for example, and click preview
If it displays ok and the video is rotated, filters work

For information here is my local status :

First column is display, 2nd is filter

Intel :
   Linux : OK / OK (display seems a bit slow)
   Windows : OK/OK

AMD:
   Windows : OK/ KO
Title: OpenGl changes
Post by: Jan Gruuthuse on December 22, 2015, 06:45:27 AM
Works fine on Ubuntu 14.04.3 (64-bit). On playing screenshot
- Display: marked in green
- Filter: marked in red
- Preview: marked in yellow

Applied filter: OpenGL: OpenGL Rotate 20Ã,°
nvidia GeForce GTX 960
  Ubuntu : VDPAU OK / QtGl OK (runs smooth)
issue from long time ago:
The green pinkish display issue seems to be gone to (as far as I tested)

ps:
QuoteAMD:
   Windows : OK/ KO
fat fingered, I presume?
Title: Re: OpenGl changes
Post by: mean on December 22, 2015, 07:16:12 AM
No, it crashes esaily with filters/AMD (or ATI same difference)
Title: Re: OpenGl changes
Post by: Jan Gruuthuse on December 22, 2015, 08:21:36 AM
ow.

Applied filter: OpenGL: OpenGL Rotate 20Ã,°
nvidia GeForce GTX 960
  Ubuntu : Lavcodec OK / XVideo OK (runs smooth)

even preview OpenGL Fragment Shader Sample2 (runs fluently)
Title: Re: OpenGl changes
Post by: RoadRanger on June 13, 2016, 04:20:06 AM
OpenGL rotate on an Intel dual core processor and Windows 10 crashes every time :( .
Title: Re: OpenGl changes
Post by: mean on June 13, 2016, 05:09:03 AM
With 2.6.12 ?
Title: Re: OpenGl changes
Post by: RoadRanger on June 13, 2016, 05:45:05 AM
Quote from: mean on June 13, 2016, 05:09:03 AM
With 2.6.12 ?
Yes, with both the x64 and x32 builds. But ... I just found that turning off CPU MMX support lets it work :) .
Title: Re: OpenGl changes
Post by: mean on June 13, 2016, 05:46:51 AM
ah
I think it was fixed in the ffmpeg3 branch
Title: Re: OpenGl changes
Post by: RoadRanger on June 13, 2016, 06:20:23 AM
Quote from: mean on June 13, 2016, 05:46:51 AM
ah
I think it was fixed in the ffmpeg3 branch
I believe ffmpeg3 also has degree resolution rotation now :)  - but I don't know if avidemux could "preview" that :( ? The built-in AVC codec is no longer experimental and I have been using that with my command line conversions :) and would prefer to use that in Avidemux. Also the dynaudnorm audio filter is quite good and probably better for most people than Avidemux's present -3db normalization option :) . The changelog mentions a number of other new filters but I haven't checked them out yet.
Title: Re: OpenGl changes
Post by: RoadRanger on June 13, 2016, 06:24:48 AM
I assume I can't just "drop in" the new ffmpeg as it has a different number in the filenames than what you provide?
Title: Re: OpenGl changes
Post by: mean on June 13, 2016, 06:56:05 AM
we dont use ffmpeg, only the libav* libraries
Title: Re: OpenGl changes
Post by: RoadRanger on June 13, 2016, 11:37:29 AM
Quote from: mean on June 13, 2016, 06:56:05 AM
we dont use ffmpeg, only the libav* libraries
The "shared" version for Windows has those libraries. It's the "standalone" version that is all-in-one. In any case I'm good with disabling MMX support when using openGL filters for now :) .
Title: Re: OpenGl changes
Post by: mean on June 13, 2016, 11:49:47 AM
you can try the ffmpeg3 binaries, mostly the win32
The fix should be in there
http://avidemux.org/nightly/win32_ffmpeg3/
Title: Re: OpenGl changes
Post by: RoadRanger on June 13, 2016, 01:21:17 PM
I'll try it, thanks!
Title: Re: OpenGl changes
Post by: RoadRanger on June 13, 2016, 01:30:39 PM
No, still requires MMX disabled to not crash.
Title: Re: OpenGl changes
Post by: mean on June 13, 2016, 01:39:36 PM
I'll have a look, thanks for the info
Title: Re: OpenGl changes
Post by: mean on June 15, 2016, 06:37:11 PM
Since i've updated the compiler for win64, i dont see it anymore
I  used to reproduce it with virtualbox
"Maybe" fixed
Title: Re: OpenGl changes
Post by: RoadRanger on June 15, 2016, 08:27:36 PM
Just downloaded the latest x64 nightly build and now it crashes even with MMX disabled :( :
EXCEPTION_ACCESS_VIOLATION
sws_getCachedContext  [swscale-4.dll]
ADM_setCrashHook  [libADM_core6.dll]
ADM_setCrashHook  [libADM_core6.dll]
ADM_setCrashHook  [libADM_core6.dll]
UnhandledExceptionFilter  [KERNELBASE.dll]
memset  [ntdll.dll]
_C_specific_handler  [ntdll.dll]
_chkstk  [ntdll.dll]
RtlWalkFrameChain  [ntdll.dll]
KiUserExceptionDispatcher  [ntdll.dll]
sws_getCachedContext  [swscale-4.dll]
Title: Re: OpenGl changes
Post by: RoadRanger on June 15, 2016, 08:38:12 PM
I downgraded back to the latest x64 2.6 release version and verified that I can run the openGL rotate filter with MMX disabled.

Is there any other diagnostic log that I can send you?
Title: Re: OpenGl changes
Post by: mean on June 16, 2016, 06:32:25 AM
I assume you are running win10/64 or similar ?
Title: Re: OpenGl changes
Post by: mean on June 16, 2016, 08:24:29 AM
I think i've found the problem
Title: Re: OpenGl changes
Post by: mean on June 16, 2016, 05:49:59 PM
*Maybe* fixed
Title: Re: OpenGl changes
Post by: mean on June 17, 2016, 05:19:49 AM
Nope
Title: Re: OpenGl changes
Post by: RoadRanger on June 17, 2016, 05:49:31 AM
Quote from: mean on June 16, 2016, 06:32:25 AM
I assume you are running win10/64 or similar ?
Yes
Title: Re: OpenGl changes
Post by: mean on June 17, 2016, 05:52:41 AM
I've found a way to easily reproduce it, should be quick to fix
Title: Re: OpenGl changes
Post by: mean on June 17, 2016, 06:07:47 PM
I think this time it is ok,
http://avidemux.org/nightly/win64_ffmpeg3/avidemux_2.6.12_r160617_win64.exe
Title: Re: OpenGl changes
Post by: RoadRanger on June 17, 2016, 06:34:23 PM
Weird, I was able to"play filtered" the first time but when I went into the filter page and tried "preview" it crashed, and now I'm back to it crashing every time even with MMX disabled. However - I'm running an FFMPEG conversion AND the release Avidemux in the background doing a conversion/save on a segment of my 11 hour file so maybe there's some interaction? I'll try again after those have completed.
Title: Re: OpenGl changes
Post by: Jan Gruuthuse on June 18, 2016, 07:38:51 AM
Quotemaybe there's some interaction
Maybe, if both are using OpenGl simultaneous. Have similar with vdpau, can only support one Avidemux instance on vdpau (GPU-accelerated) or if something else grabbed vdpau on gpu.
Or perhaps you're reaching the limit of the hardware resources (keep an eye on cpu temperature) ffmpeg + twice avidemux running (re-encoding?) that is heavy usage.
Title: Re: OpenGl changes
Post by: RoadRanger on June 18, 2016, 07:48:47 PM
Quote from: Jan Gruuthuse on June 18, 2016, 07:38:51 AMOr perhaps you're reaching the limit of the hardware resources (keep an eye on cpu temperature) ffmpeg + twice avidemux running (re-encoding?) that is heavy usage.
I actually had my CPU "locked" to half speed for a couple months because the heatsink was clogged up with dust (fan on high speed all the time and CPU temp ~74C) and you're supposed to disassemble this Toshiba Satellite C55-A to clean it. But I'm lazy so today I just sucked air backwards through the fan inlet (with a high power shop vac) and that seems to have cleared things out. While I was at it I vacuumed out all the openings and the keyboard too but I made sure to do the heatsink air outlet last to not really jam in the dust. Now I'm at 63C at full clock vs the 75C at half clock before :) .

In any case I have 8GB of memory so have had no problem running multiple conversions in the past - even on this 2020M low end dual core non-hyperthreaded CPU.

I just tried the nightly mentioned above right after a reboot and it crashes MMX enabled or not :( . I just started up another conversion/edit on the released version and it's running fine.
Title: Re: OpenGl changes
Post by: mean on June 19, 2016, 06:38:28 AM
I cannot reproduce it. I tried on my laptop (win10 + intel graphics) & on virtual box with openGl enabled
All is fine

Could you detail what you do ? Maybe there is something more to trigger it