Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

various audio & video files opening lead to crash #889

Open
ilippert opened this issue Feb 27, 2024 · 14 comments
Open

various audio & video files opening lead to crash #889

ilippert opened this issue Feb 27, 2024 · 14 comments

Comments

@ilippert
Copy link
Contributor

ilippert commented Feb 27, 2024

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
Copy link
Contributor Author

ilippert commented Feb 27, 2024

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 ilippert changed the title various audio files opening lead to crash various audio & video files opening lead to crash Feb 27, 2024
@ccbogel
Copy link
Owner

ccbogel commented Feb 27, 2024

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

@ilippert
Copy link
Contributor Author

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.

@ccbogel
Copy link
Owner

ccbogel commented Feb 27, 2024

OK. so the issue is not ffmpeg or the png

@ilippert
Copy link
Contributor Author

check this maybe
unpaper/unpaper#113 (comment)

@ccbogel
Copy link
Owner

ccbogel commented Feb 27, 2024

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

@ccbogel
Copy link
Owner

ccbogel commented Feb 27, 2024

do you have time to Zoom?

@ilippert
Copy link
Contributor Author

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
Copy link
Contributor Author

do you have time to Zoom?

can do now :)

@ilippert
Copy link
Contributor Author

do you have time to Zoom?

can do now :)

am online now at

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

@ilippert
Copy link
Contributor Author

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
Copy link
Contributor Author

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

@ilippert
Copy link
Contributor Author

Hi there,

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

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

@ccbogel
Copy link
Owner

ccbogel commented Jun 13, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants