tplay
tplay copied to clipboard
[BUG] Gstreamer warnings, errors on attempted video playback
Describe the bug
When trying to open videos on Fedora 39 (.mkv, .mp4, and youtube) I get warnings and errors.
To Reproduce Steps to reproduce the behavior:
- Install library dependencies
- Install tplay via cargo
- Try to play any video
Expected behavior
A video plays or an error tells me what action I might take to fix the problem.
Screenshots
$ tplay 'https://www.youtube.com/watch?v=dQw4w9WgXcQ'
[youtube] Extracting URL: https://www.youtube.com/watch?v=dQw4w9WgXcQ
[youtube] dQw4w9WgXcQ: Downloading webpage
[youtube] dQw4w9WgXcQ: Downloading ios player API JSON
[youtube] dQw4w9WgXcQ: Downloading web creator player API JSON
[youtube] dQw4w9WgXcQ: Downloading player b0557ce3
[youtube] dQw4w9WgXcQ: Downloading m3u8 information
[info] dQw4w9WgXcQ: Downloading 1 format(s): 18
[download] Destination: -
[download] 100% of 8.68MiB in 00:00:05 at 1.54MiB/s
[ WARN:[email protected]] global cap_gstreamer.cpp:2769 handleMessage OpenCV | GStreamer warning: your GStreamer installation is missing a required plugin
[ WARN:[email protected]] global cap_gstreamer.cpp:2784 handleMessage OpenCV | GStreamer warning: Embedded video playback halted; module qtdemux0 reported: Internal data stream error.
[ WARN:[email protected]] global cap_gstreamer.cpp:1679 open OpenCV | GStreamer warning: unable to start pipeline
[ WARN:[email protected]] global cap_gstreamer.cpp:1164 isPipelinePlaying OpenCV | GStreamer warning: GStreamer: pipeline have not been created
MFX: Can't initialize session
[ERROR:[email protected]] global cap.cpp:164 open VIDEOIO(CV_IMAGES): raised OpenCV exception:
OpenCV(4.8.1) /builddir/build/BUILD/opencv-4.8.1/modules/videoio/src/cap_images.cpp:253: error: (-5:Bad argument) CAP_IMAGES: can't find starting number (in the name of file): /tmp/my_temp_file_ZLfDuQ.webm in function 'icvExtractPattern'
Error: Application("Error opening video")
Desktop (please complete the following information):
- OS: Fedora 39
-
tplay --version
: tplay 0.5.0 -
yt-dlp --version
: 2024.08.06 -
mpv --version
: mpv 0.36.0 -
rustc --version
: rustc 1.75.0 (82e1608df 2023-12-21) -
pkg-config --modversion opencv4
: 4.8.1 -
ffmpeg -version
: ffmpeg version 6.1.2
Additional context
It's entirely possible/probable that this isn't a bug at all and I just need to do some more work to get this working on Fedora; I don't mind doing that work but am stuck and could use a pointer towards what I might be missing on my system. I installed equivalent packages as those listed for Ubuntu and successfully compiled and ran tplay
via cargo
.
I can open image files fine.