TimeLineAnnotator / desktop

A GUI for graphical analysis and annotation of video and audio files.
https://tilia-app.com
Creative Commons Attribution Share Alike 4.0 International
10 stars 3 forks source link

Is ffmpeg necessary for playing back local files? #98

Closed FelipeDefensor closed 4 months ago

FelipeDefensor commented 4 months ago

Opening this to continue discussion we've been having by e-mail. Does ffmpeg need to be installed for TiLiA to playback local files?

FelipeDefensor commented 4 months ago

@azfoo Let's continue talking here.

You mentioned that you are unable to load any audio on a clean install of TiLiA. I think I have reproduced that behavior with ffmpeg installed. Following a hunch about what's going on, I was able to fix it by running TiLiA with admin privileges. Does that fix it on your end?

It would be very weird that ffmpeg is both required for playback and not bundled with PyQt because I have succesfully loaded media in previous versions of TiLiA in several different computers and some of them definitely didn't have ffmpeg available.

azfoo commented 4 months ago

So I tested things again and it seems that PyQt6.6 doesn't have the issue, but 6.7 has. Considering 6.7 was only released in April, that might explain your previous experience. Perhaps downgrading and defining PyQt's version would be a quick fix?

Having to run an app like that with admin privileges makes the app sound suspicious...

FelipeDefensor commented 4 months ago

So I tested things again and it seems that PyQt6.6 doesn't have the issue, but 6.7 has. Considering 6.7 was only released in April, that might explain your previous experience. Perhaps downgrading and defining PyQt's version would be a quick fix?

Having to run an app like that with admin privileges makes the app sound suspicious...

Yeah, I agree that requesting admin privileges is not ideal. Downgrading seems great, but I wasn't able to do it on my computer as some DLL error crops up. I'll try again.

azfoo commented 4 months ago

Try: pip install --force-reinstall PyQt6==6.6.0 PyQt6-Qt6==6.6.0 PyQt6-sip==13.6.0 PyQt6-WebEngine==6.6.0 PyQt6-WebEngine-Qt6==6.6.0?

FelipeDefensor commented 4 months ago

Will try, but I'm away from my setup until Monday.

FelipeDefensor commented 4 months ago

Try: pip install --force-reinstall PyQt6==6.6.0 PyQt6-Qt6==6.6.0 PyQt6-sip==13.6.0 PyQt6-WebEngine==6.6.0 PyQt6-WebEngine-Qt6==6.6.0?

Installing all dependencies with pip install -e . and then downgrading PyQt with the above works on a fresh environment on Windows 11. I will retry this on my usual setup tomorrow, but I think we can be confident that this works.

FelipeDefensor commented 4 months ago

Try: pip install --force-reinstall PyQt6==6.6.0 PyQt6-Qt6==6.6.0 PyQt6-sip==13.6.0 PyQt6-WebEngine==6.6.0 PyQt6-WebEngine-Qt6==6.6.0?

Installing all dependencies with pip install -e . and then downgrading PyQt with the above works on a fresh environment on Windows 11. I will retry this on my usual setup tomorrow, but I think we can be confident that this works.

Confirming that this also works on my usual setup.

FelipeDefensor commented 4 months ago

I'm closing this one as this douments the PyQt version issue. The question about bundling ffmpeg separately remains, though.