ccbogel / QualCoder

Qualitative data analysis for text, images, audio, video. Cross platform. Python 3.10 or newer and PyQt6.
https://qualcoder.wordpress.com/
MIT License
360 stars 84 forks source link

Right click context menu in Audio/Video Coding doesn't show #884

Closed ht-commer closed 5 months ago

ht-commer commented 7 months ago

Describe the bug :
V. 3.5 in an English Windows 11 environment After audio/video segments are identified, it is not possible to see the right click context menu - a window briefly flashes and quickly disappears.

To Reproduce :

Click on audio/video segment, right click on segment, menu doesn't show.

Expected behavior :
Right click should cause a context menu to appear, where the user should be able to see play segment, delete segment, link text to segment, and other options.

Screenshots :
See attached

Desktop (please complete the following information):

Additional context :
Screenshot 2024-02-13 085514

ccbogel commented 7 months ago

It appears to be an issue with the exe. I don't know how to fix the exe. I downloaded the source code zip, and ran that. Under this option the context menu works fine. I will put a note on the 3.5 release info.

ht-commer commented 7 months ago

I also tried the virtual environment , and the context menu works. Only issue is, after a video segment is played, there is an error message like the following appears in the console (but not in the GUI): [000002b07adb13c0] direct3d11 vout display error: SetThumbNailClip failed: 0x800706f4 The linked text segment cannot be displayed after checking the option "scroll transcript while playing".

ccbogel commented 7 months ago

You should be able to ignore that thumbnail error without affecting how QC works. I get various ignorable errors when using VLC with python. That error does not occur for me. But each persons hardware is also different I am guessing, something to do with python binding to VLC and how VLC uses the underlying hardware.

Regards this: The linked text segment cannot be displayed after checking the option "scroll transcript while playing". I did not have a problem, unless its related to the error you mention, that I cannot reproduce. The checkbox was checked and in the context menu I selected play segment, and it played the segment.
I guess the easy fix is not to check that box perhaps.

ht-commer commented 7 months ago

Thank you for the feedback!

ccbogel commented 6 months ago

@ht-commer OK. I am working on an additional solution to this problem. Click on the Segment label text at the top of the screen will allow you to select a segment from a list. Then this will show a context menu for memo, delete, play. It is under development right now, so I will work on it over the next week to fixit a lot more. This will be something that works with segments when the code is packaged into an exe with pyinstaller.

ccbogel commented 6 months ago

@ht-commer OK now updated so: right-click on the segment label will allow you to select a segment. Then a menu pops up for play, delete, or memo the segment. image

ht-commer commented 6 months ago

Thanks for the update. On my Windows 11 system I can now select the segments on top to see and execute the menu items, and in the corresponding transcription/text segments, I can "play text" after right-clicking the coded text.

ccbogel commented 6 months ago

will close issue when checked by using a pyinstaller exe version

ccbogel commented 5 months ago

OK, now I have added a button. Hover over to see the tooltip comment. This works by pressing the button, then select a segment, then the menu opens for : play, delete, memo