QualCoder icon indicating copy to clipboard operation
QualCoder copied to clipboard

various audio & video files opening lead to crash

Open ilippert opened this issue 1 year ago • 16 comments

Describe the bug :
Have QualCoder 3.5

am on Fedora Linux and have used sudo pip install python-vlc to remove vlc missing message from QualCoder, even though VLC was installed on system; I have also installed alternatively Fedora's meanwhile also packaged python3-vlc.

I open an audio file, QualCoder crashes. I try another audiofile: same result. I convert the audiofile externally into mp3 format. Still crashes.

edit: same issue with video files

Opening the file with the VLC without QualCoder works.

To Reproduce :

  1. import audio file
  2. open audio file

crash

Expected behavior :
audio file should open to allow for transcription

Screenshots :
If applicable, add screenshots that helps to explain your problem.

Desktop (please complete the following information):

  • OS: Fedora
  • Version 39

this is the latest part of the shell's error message

      encoder         : Lavc60.3.100 png
[image2 @ 0x5616217764c0] The specified filename '/home/ingmarlippert/Documents/GU/Hessenbox/Teaching/deep.teaching/QualCoder project/deep.teaching.qda/audio/waveform.png' does not contain an image sequence pattern or a pattern is invalid.
[image2 @ 0x5616217764c0] Use a pattern such as %03d for an image sequence or use the -update option (with -frames:v 1 if needed) to write a single image.
frame=    1 fps=0.3 q=-0.0 Lsize=N/A time=00:00:00.00 bitrate=N/A speed=   0x    
video:1kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
Segmentation fault (core dumped)

ilippert avatar Feb 27 '24 16:02 ilippert

https://superuser.com/questions/1792249/ffmpeg-suppress-warning-when-writing-to-a-single-image seems to refer to something similar. I am not sure why QualCoder is looking for an image in the audio file.

The file /audio/waveform.png is readable by my computer.

ilippert avatar Feb 27 '24 16:02 ilippert

Hi. I am not getting this problem on Windows. If it is to do with using ffmpeg to create the waveform you could comment out that bit, in the view_av.py file: image

Like so: image

ccbogel avatar Feb 27 '24 21:02 ccbogel

I tested it now also an another computer with the current code of QualCoder, with line 3746 in https://github.com/ccbogel/QualCoder/blob/master/qualcoder/view_av.py commented out; and not having it commented out. It does not make a difference.

ilippert avatar Feb 27 '24 22:02 ilippert

OK. so the issue is not ffmpeg or the png

ccbogel avatar Feb 27 '24 22:02 ccbogel

check this maybe https://github.com/unpaper/unpaper/issues/113#issue-1357029426

ilippert avatar Feb 27 '24 22:02 ilippert

Well its no the ffmpeg that the problem. its something else I think

ccbogel avatar Feb 27 '24 23:02 ccbogel

do you have time to Zoom?

ccbogel avatar Feb 27 '24 23:02 ccbogel

I note that reinstalling QualCoder with the commented out line also crashes QualCoder when attempting to open audio/video files. But in the shell I cannot find any error message.

ilippert avatar Feb 27 '24 23:02 ilippert

do you have time to Zoom?

can do now :)

ilippert avatar Feb 27 '24 23:02 ilippert

do you have time to Zoom?

can do now :)

am online now at

https://uni-frankfurt.zoom-x.de/j/6864199000

ilippert avatar Feb 27 '24 23:02 ilippert

Sorry, the changes to https://github.com/ccbogel/QualCoder/blob/master/qualcoder/view_charts.py that I used back in January don't seem to get me a running QualCoder anymore... (I had deactivated wordcloud import)

ilippert avatar Jun 10 '24 16:06 ilippert

I went back to QualCoder 3.3 on a fresh Fedora install and the same waveform error appears, too.

ilippert avatar Jun 10 '24 16:06 ilippert

Hi there,

I am trying to find more on the ffmpeg error message I am receiving...

  • https://superuser.com/questions/1792249/ffmpeg-suppress-warning-when-writing-to-a-single-image
  • https://video.stackexchange.com/questions/36766/extracting-a-screenshot-from-a-video-using-ffmpeg

Would you let me know where ffmpeg is called, so that I can try to experimend with the call?

ilippert avatar Jun 13 '24 21:06 ilippert

Hi. ffmpeg is used in these two files:

speech_to_text.py In here a python module called pydub pydub uses ffmpeg using this to convert format to flac and to split audio into chunks

view_av.py

class SegmentGraphicsItem methods: contextMenuEvent export_segment

class DialogViewAV methods: get_waveform

ccbogel avatar Jun 13 '24 22:06 ccbogel

For me on Fedora 42 with QualCoder 3.7 I get a similar problem. When trying to code a video file the application freezes and shortly thereafter crashes. The terminal looks like this (first line my command to start, second line output):

python3.12 -m qualcoder
Segmentation fault (core dumped)

aaronkurz avatar Jul 19 '25 11:07 aaronkurz

Acknowledged. I do not have a solution for this at the moment.

ccbogel avatar Jul 20 '25 06:07 ccbogel