Avidemux Forum

Avidemux => Main version 2.6 => Topic started by: andrewk8 on July 13, 2018, 09:52:44 PM

Title: Arrow Keys don't work (sometimes)
Post by: andrewk8 on July 13, 2018, 09:52:44 PM
ADM 2.7.1 x64 on Windows 10 x64.

New issue in 2.7.1 that wasn't in 2.7.0 or late 2.6.x

I navigate videos mostly with the arrow keys: up/down to navigate between I frames; left/right to fine tune between frames.  Occasionally I drag the seek bar with a mouse, but that's less common navigation.

In 2.7.1, sometimes the left/right arrow keys don't work.  But the up/down arrow keys continue to work.  To get the left/right arrow keys to work, you can click in a few key locations in the ADM window.  Not everywhere works, though.  I know clicking under the navigation buttons (always?) re-enables left/right key.  There are certain places in the ADM window you can click and it won't re-enable the left/right keys, yet up/down continue to work.
Title: Re: Arrow Keys don't work (sometimes)
Post by: eumagga0x2a on July 14, 2018, 12:49:05 AM
Have you tried the latest nightly (https://avidemux.org/nightly/win64/) (currently r180702)? Just to be sure you don't see the regression in 2.7.1 release fixed by [editor/nextPicture] Update lastReadPts when the next image has been found in the cache (https://github.com/mean00/avidemux2/commit/fa6bfd5b1f0638f6e0e6fc76888b96b519fc7037).
Title: Re: Arrow Keys don't work (sometimes)
Post by: Jan Gruuthuse on July 14, 2018, 05:27:48 AM
If problem persists:
Are you using
- An country specific keyboard other then US qwerty?
- Other [User Interface] preferences found @ Avidemux Menu: Edit: Preferences? see attached screenshot

You could perhaps try finding avidemux config file(s) and delete these if found?
Use file browser and search for config2 and config3, if these are avidemux related, just delete.
- \avidemux\config2
- \avidemux\config3
In windows to be found normally in AppData folder
Title: Re: Arrow Keys don't work (sometimes)
Post by: eumagga0x2a on July 14, 2018, 02:19:33 PM
If the problem persists with the latest nightly, please provide exact steps required to reproduce the issue. If the issue is related to a particular video, please provide a sample.

I would not suspect Avidemux configuration and keyboard settings to be at fault in any way, but the log file (admlog.txt) might be very helpful.
Title: Re: Arrow Keys don't work (sometimes)
Post by: andrewk8 on July 14, 2018, 07:08:13 PM
... for the 2.7.1 release... Keyboard is US English.  Windows 10 default USB keyboard driver.

The %AppData%\avidemux\admlog.txt file was last written ~a year ago by ADM 2.6.21.  I've used ADM 2.7 and 2.7.1 since to edit videos.

Just happened again.At this point, right / left arrow keys don't work.  Up / down arrow keys still work to navigate to I frames.

Exited ADM and deleted the config2 and config3 files.  Steps above did not happen with the 1st video I cut with ADM, but happened with the second (same session).

Update: still happens in the July 2 nightly.
Title: Re: Arrow Keys don't work (sometimes)
Post by: dirk362 on July 14, 2018, 07:32:50 PM
Can confirm issues also exists in Linux as well (LinuxMint 19.0 with XFCE).
Build Avidemux 2.7.1 - 4782c8568da-fflibs 3.3.7) - last build on 2nd July from GIT.

When this happens, if you click anywhere in Toolbar area, arrow keys (left/right) start to work.
Doesn't happen all the time - probably around 1/3 of the time.
Clicking in toolbar area seems to fix 'focus' issue to recognise keys again.
Title: Re: Arrow Keys don't work (sometimes)
Post by: eumagga0x2a on July 14, 2018, 10:09:31 PM
Quote from: dirk362 on July 14, 2018, 07:32:50 PM
Can confirm issues also exists in Linux as well (LinuxMint 19.0 with XFCE).
Build Avidemux 2.7.1 - 4782c8568da-fflibs 3.3.7) - last build on 2nd July from GIT.

Did you build Avidemux yourself or did you use the appImage? I can't reproduce it (or better, can't make happen unintentionally) so far on my Fedora 28 system.

QuoteWhen this happens, if you click anywhere in Toolbar area, arrow keys (left/right) start to work.
Doesn't happen all the time - probably around 1/3 of the time.
Clicking in toolbar area seems to fix 'focus' issue to recognise keys again.

The only location in the Avidemux GUI which can stop arrow keys from being interpreted as previous/next picture is the combo box to set audio shift. So sometimes this combo box receives (unintentionally?) focus. Moving the focus elsewhere should revive the left/right keys again.
Title: Re: Arrow Keys don't work (sometimes)
Post by: eumagga0x2a on July 15, 2018, 12:21:35 PM
I tried hard to reproduce the focus issue with the given steps on Windows 7 to no avail. Something else must happen to move focus to the audio shift input field which in turn would make left/right arrow to stop being interpreted as previous/next picture. Once this issue strikes again, pressing the tab key should be enough to move the focus to another GUI element, thus restoring the previous/next picture keyboard shortcuts.

So far, WFM, can't reproduce. Will try on Win10 later.
Title: Re: Arrow Keys don't work (sometimes)
Post by: andrewk8 on July 15, 2018, 01:31:51 PM
Quote from: eumagga0x2a on July 15, 2018, 12:21:35 PM
pressing the tab key should ... restoring the previous/next picture keyboard shortcuts.
Tab key confirmed to restore left/right arrow keys.
Title: Re: Arrow Keys don't work (sometimes)
Post by: eumagga0x2a on July 15, 2018, 10:21:41 PM
Can't reproduce focus inadvertently without user interaction moving to the audio shift combo box on win10 either --> WFM.
Title: Re: Arrow Keys don't work (sometimes)
Post by: dirk362 on July 17, 2018, 10:38:00 PM
Quote from: eumagga0x2a on July 14, 2018, 10:09:31 PM
Did you build Avidemux yourself or did you use the appImage? I can't reproduce it (or better, can't make happen unintentionally) so far on my Fedora 28 system.

Build on LinuxMint 19 via ADM supplied standard bash shell script from github.
I have changed OS from LM 18.3 to LM 19, and did a recompile for latest GIT source at time. Never had issue on LM 18.3 but that was a few commits earlier in terms of source.
As you say, click anywhere, or press tab, makes focus okay again and arrow keys work.

I am wondering if this is a QT regression and not specific to ADM. I have dvbcut with right arrow key input issue.

I am going to revert to LM 18.3 on spare machine and compile same GIT release and see if any difference to see if can help narrow this down.
Title: QT5 5.9.5 on 18.04 LTS
Post by: Jan Gruuthuse on July 19, 2018, 06:21:31 AM
I've not come across arrow keys issue on 64-bit 16.04 LTS or 18.04 LTS
on 18.04 LTS these QT5 are installed:
dpkg -l *qt5* | grep ii
ii  libqt5concurrent5:amd64         5.9.5+dfsg-0ubuntu1     amd64        Qt 5 concurrent module
ii  libqt5core5a:amd64              5.9.5+dfsg-0ubuntu1     amd64        Qt 5 core module
ii  libqt5dbus5:amd64               5.9.5+dfsg-0ubuntu1     amd64        Qt 5 D-Bus module
ii  libqt5designer5:amd64           5.9.5-0ubuntu1          amd64        Qt 5 designer module
ii  libqt5designercomponents5:amd64 5.9.5-0ubuntu1          amd64        Qt 5 Designer components module
ii  libqt5gui5:amd64                5.9.5+dfsg-0ubuntu1     amd64        Qt 5 GUI module
ii  libqt5help5:amd64               5.9.5-0ubuntu1          amd64        Qt 5 help module
ii  libqt5multimedia5:amd64         5.9.5-0ubuntu1          amd64        Qt 5 Multimedia module
ii  libqt5network5:amd64            5.9.5+dfsg-0ubuntu1     amd64        Qt 5 network module
ii  libqt5opengl5:amd64             5.9.5+dfsg-0ubuntu1     amd64        Qt 5 OpenGL module
ii  libqt5opengl5-dev:amd64         5.9.5+dfsg-0ubuntu1     amd64        Qt 5 OpenGL library development files
ii  libqt5positioning5:amd64        5.9.5+dfsg-0ubuntu2     amd64        Qt Positioning module
ii  libqt5printsupport5:amd64       5.9.5+dfsg-0ubuntu1     amd64        Qt 5 print support module
ii  libqt5qml5:amd64                5.9.5-0ubuntu1          amd64        Qt 5 QML module
ii  libqt5quick5:amd64              5.9.5-0ubuntu1          amd64        Qt 5 Quick library
ii  libqt5quickwidgets5:amd64       5.9.5-0ubuntu1          amd64        Qt 5 Quick Widgets library
ii  libqt5script5:amd64             5.9.5+dfsg-0ubuntu1     amd64        Qt 5 script module
ii  libqt5scripttools5:amd64        5.9.5+dfsg-0ubuntu1     amd64        Qt 5 script tools module
ii  libqt5sensors5:amd64            5.9.5-0ubuntu1          amd64        Qt Sensors module
ii  libqt5sql5:amd64                5.9.5+dfsg-0ubuntu1     amd64        Qt 5 SQL module
ii  libqt5sql5-sqlite:amd64         5.9.5+dfsg-0ubuntu1     amd64        Qt 5 SQLite 3 database driver
ii  libqt5svg5:amd64                5.9.5-0ubuntu1          amd64        Qt 5 SVG module
ii  libqt5test5:amd64               5.9.5+dfsg-0ubuntu1     amd64        Qt 5 test module
ii  libqt5webchannel5:amd64         5.9.5-0ubuntu1          amd64        Web communication library for Qt
ii  libqt5webkit5:amd64             5.212.0~alpha2-7ubuntu1 amd64        Web content engine library for Qt
ii  libqt5widgets5:amd64            5.9.5+dfsg-0ubuntu1     amd64        Qt 5 widgets module
ii  libqt5x11extras5:amd64          5.9.5-0ubuntu1          amd64        Qt 5 X11 extras
ii  libqt5xml5:amd64                5.9.5+dfsg-0ubuntu1     amd64        Qt 5 XML module
ii  qt5-assistant                   5.9.5-0ubuntu1          amd64        Qt 5 Assistant
ii  qt5-gtk-platformtheme:amd64     5.9.5+dfsg-0ubuntu1     amd64        Qt 5 GTK+ 3 platform theme
ii  qt5-qmake:amd64                 5.9.5+dfsg-0ubuntu1     amd64        Qt 5 qmake Makefile generator tool
ii  qt5-qmake-bin                   5.9.5+dfsg-0ubuntu1     amd64        Qt 5 qmake Makefile generator tool — binary file

Title: QT5 5.5.1 on 16.04 LTS
Post by: Jan Gruuthuse on July 19, 2018, 06:38:25 AM
on 16.04 LTS these QT5 are installed:
dpkg -l *qt5* | grep ii
ii  libqt5clucene5:amd64            5.5.1-3ubuntu0.1                   amd64        Qt 5 CLucene module
ii  libqt5concurrent5:amd64         5.5.1+dfsg-16ubuntu7.5             amd64        Qt 5 concurrent module
ii  libqt5core5a:amd64              5.5.1+dfsg-16ubuntu7.5             amd64        Qt 5 core module
ii  libqt5dbus5:amd64               5.5.1+dfsg-16ubuntu7.5             amd64        Qt 5 D-Bus module
ii  libqt5designer5:amd64           5.5.1-3ubuntu0.1                   amd64        Qt 5 designer module
ii  libqt5designercomponents5:amd64 5.5.1-3ubuntu0.1                   amd64        Qt 5 Designer components module
ii  libqt5feedback5:amd64           5.0~git20130529-0ubuntu13          amd64        Qt Feedback module
ii  libqt5gui5:amd64                5.5.1+dfsg-16ubuntu7.5             amd64        Qt 5 GUI module
ii  libqt5help5:amd64               5.5.1-3ubuntu0.1                   amd64        Qt 5 help module
ii  libqt5multimedia5:amd64         5.5.1-4ubuntu2                     amd64        Qt 5 Multimedia module
ii  libqt5network5:amd64            5.5.1+dfsg-16ubuntu7.5             amd64        Qt 5 network module
ii  libqt5opengl5:amd64             5.5.1+dfsg-16ubuntu7.5             amd64        Qt 5 OpenGL module
ii  libqt5opengl5-dev:amd64         5.5.1+dfsg-16ubuntu7.5             amd64        Qt 5 OpenGL library development files
ii  libqt5organizer5:amd64          5.0~git20140515~29475884-0ubuntu20 amd64        Qt PIM module, Organizer library
ii  libqt5positioning5:amd64        5.5.1-3ubuntu1                     amd64        Qt Positioning module
ii  libqt5printsupport5:amd64       5.5.1+dfsg-16ubuntu7.5             amd64        Qt 5 print support module
ii  libqt5qml5:amd64                5.5.1-2ubuntu6                     amd64        Qt 5 QML module
ii  libqt5quick5:amd64              5.5.1-2ubuntu6                     amd64        Qt 5 Quick library
ii  libqt5quicktest5:amd64          5.5.1-2ubuntu6                     amd64        Qt 5 Quick Test library
ii  libqt5quickwidgets5:amd64       5.5.1-2ubuntu6                     amd64        Qt 5 Quick Widgets library
ii  libqt5script5:amd64             5.5.1+dfsg-2build1                 amd64        Qt 5 script module
ii  libqt5scripttools5:amd64        5.5.1+dfsg-2build1                 amd64        Qt 5 script tools module
ii  libqt5sql5:amd64                5.5.1+dfsg-16ubuntu7.5             amd64        Qt 5 SQL module
ii  libqt5sql5-sqlite:amd64         5.5.1+dfsg-16ubuntu7.5             amd64        Qt 5 SQLite 3 database driver
ii  libqt5svg5:amd64                5.5.1-2build1                      amd64        Qt 5 SVG module
ii  libqt5test5:amd64               5.5.1+dfsg-16ubuntu7.5             amd64        Qt 5 test module
ii  libqt5waylandclient5:amd64      5.5.1-2build1                      amd64        QtWayland client library
ii  libqt5webkit5:amd64             5.5.1+dfsg-2ubuntu1                amd64        Web content engine library for Qt
ii  libqt5widgets5:amd64            5.5.1+dfsg-16ubuntu7.5             amd64        Qt 5 widgets module
ii  libqt5x11extras5:amd64          5.5.1-3build1                      amd64        Qt 5 X11 extras
ii  libqt5xml5:amd64                5.5.1+dfsg-16ubuntu7.5             amd64        Qt 5 XML module
ii  libsignon-qt5-1:amd64           8.58+16.04.20151106-0ubuntu1       amd64        Single Sign On framework
ii  qt5-qmake:amd64                 5.5.1+dfsg-16ubuntu7.5             amd64        Qt 5 qmake Makefile generator tool
Title: Re: Arrow Keys don't work (sometimes)
Post by: eumagga0x2a on July 19, 2018, 06:39:54 AM
I was building and testing Avidemux on macOS, Linux and Windows (7 and 10, 64 bits) using various Qt relelases and never experienced the audio shift combo box getting focus on its own. Something else I never use might be responsible. "Focus follows mouse" maybe?
Title: Re: Arrow Keys don't work (sometimes)
Post by: Jan Gruuthuse on July 19, 2018, 06:50:12 AM
Sometimes I loose the avidemux text menus with mouse hovers over, need to restart.
Title: Re: Arrow Keys don't work (sometimes)
Post by: eumagga0x2a on July 19, 2018, 07:18:45 AM
These are Ubuntu's selfmade and now obosolete appmenu. If it works, then purely by chance ;-D Just move along away from Xenial and Unity.
Title: Re: Arrow Keys don't work (sometimes)
Post by: Jan Gruuthuse on July 19, 2018, 07:51:32 AM
Shortly, one of these days: @ point release 18.04.1 LTS
Expected to hit the streets this summer on July 26
Title: Re: Arrow Keys don't work (sometimes)
Post by: dirk362 on July 21, 2018, 09:27:59 PM
I have two Linux machines - one has the issue one doesn't.
The weird thing is that they're both basically Ubuntu. One is Xubuntu 18.04, the other is LinuxMint 19.

With same compiled version from git, Xubuntu never has any issues. LinuxMint will still randomly lose focus such that left/right arrow stop, until click in toolbar area or press tab.

I don't believe its ADM application, but something within configuration.
qt5 modules are consistent across both builds, as you'd sort of expect given common base. That said, LinuxMint has more files present although perhaps due to different apps installed. But every file that is on Xubuntu under *qt5* filter is present and same version on LinuxMint.

I can't see a way to really get to bottom of this as it's not repeatable in a consistent manner.
Title: Re: Arrow Keys don't work (sometimes)
Post by: Jan Gruuthuse on July 22, 2018, 06:16:43 AM
Linux mint 19 has 3 interfaces: Cinnamon, MATE, and Xfce. In 32-bit or 64-bit versions.
- What is yours?
- Used CPU, GPU & ram memory?
Title: Re: Arrow Keys don't work (sometimes)
Post by: dirk362 on July 22, 2018, 12:27:54 PM
Quote from: Jan Gruuthuse on July 22, 2018, 06:16:43 AM
Linux mint 19 has 3 interfaces: Cinnamon, MATE, and Xfce. In 32-bit or 64-bit versions.
- What is yours?
- Used CPU, GPU & ram memory?

LinuxMint 19 XFCE x64, Intel i5-6600, Onboard HD530 GPU, 16Gb RAM.

System:    Host: study-g5 Kernel: 4.15.0-24-generic x86_64 bits: 64 Desktop: Xfce 4.12.3
           Distro: Linux Mint 19 Tara
Machine:   Device: desktop System: Gigabyte product: N/A serial: N/A
           Mobo: Gigabyte model: Z170X-Gaming 5 v: x.x serial: N/A
           UEFI [Legacy]: American Megatrends v: F4 date: 10/16/2015
CPU:       Quad core Intel Core i5-6600 (-MCP-) speed/max: 800/3900 MHz
Graphics:  Card: Intel HD Graphics 530
           Display Server: x11 (X.Org 1.19.6 ) driver: intel Resolution: 1920x1200@59.95hz
           OpenGL: renderer: Mesa DRI Intel HD Graphics 530 (Skylake GT2) version: 4.5 Mesa 18.0.5
Network:   Card-1: Intel Ethernet Connection (2) I219-V driver: e1000e
           Card-2: Qualcomm Atheros Killer E220x Gigabit Ethernet Controller driver: alx
Drives:    HDD Total Size: 20257.7GB (69.1% used)
Info:      Processes: 396 Uptime: 2 days Memory: 6809.8/15916.3MB Client: Shell (bash) inxi: 2.3.56
Title: Re: Arrow Keys don't work (sometimes)
Post by: Jan Gruuthuse on July 22, 2018, 03:51:31 PM
I can't see anything special
HDD Total Size: 20257.7GB (69.1% used) 20.257 TB?
How is that configured?
- How does your System Hard Disk looks like? Free Space?
- What is the size of your video & it's codec you work with, when having keyboard issues?
Title: Re: Arrow Keys don't work (sometimes)
Post by: eumagga0x2a on July 22, 2018, 06:33:03 PM
Back to the issue: The only question is, which GUI element gets the keyboard focus...

a) ...upon application startup

b) ...upon loading a video this way or another

If at any step either the audio shift checkbox or the adjacent spinbox gets focus, left/right arrow keys get a different meaning than navigating to the previous/next frame.

The tab key cycle through GUI elements.
Title: Re: Arrow Keys don't work (sometimes)
Post by: andrewk8 on July 22, 2018, 08:04:50 PM
Quote from: eumagga0x2a on July 22, 2018, 06:33:03 PMa) ...upon application startup
I hadn't thought of using right arrow as the key I press after loading a video.  Always the up arrow.

After re-starting ADM, on the third video of dragging from Windows Explorer onto ADM, right arrow DOES NOT WORK. Up arrow works.  Right arrow worked after loading the 1st and 2nd videos.

What's different about up/down vs. left/right?  In other words, why does up/down never seem to have this problem?
Title: Re: Arrow Keys don't work (sometimes)
Post by: eumagga0x2a on July 22, 2018, 09:03:23 PM
Quote from: andrewk8 on July 22, 2018, 08:04:50 PM
What's different about up/down vs. left/right?  In other words, why does up/down never seem to have this problem?

The up/down arrow keys can't be used in the audio shift checkbox and in the spinbox where you input the value. This is why their meaning doesn't change when these widgets get focus.

The question is only how it comes that focus is moved to this location all on its own, without clicking the checkbox or the spinbox / pressing the tab key. I can't make it happen on my systems.

QuoteAfter re-starting ADM, on the third video of dragging from Windows Explorer onto ADM

Did you close each video before dropping the next one? Or did you append?
Title: Re: Arrow Keys don't work (sometimes)
Post by: andrewk8 on July 22, 2018, 09:09:32 PM
Quote from: eumagga0x2a on July 22, 2018, 09:03:23 PMDid you close each video before dropping the next one? Or did you append?
Close (File --> Close). Then drag/drop from Windows Explorer.
Title: Re: Arrow Keys don't work (sometimes)
Post by: eumagga0x2a on July 22, 2018, 09:17:57 PM
What happens when you use the keyboard shortcut to close a video (Ctrl+W) instead of clicking?

I must admit that I never tried to use menus because keyboard shortcuts are so much more convenient. I guess using mouse and opening the File menu is the requirement to reproduce the issue.