tplay icon indicating copy to clipboard operation
tplay copied to clipboard

[BUG] CAP_IMAGES: can't find starting number (in the name of file): /tmp/my_temp_file_###.webm in function 'icvExtractPattern'

Open maxcurzi opened this issue 1 year ago • 0 comments

Describe the bug running tplay <youtube video> returns an error

[ERROR:[email protected]] global cap.cpp:164 open VIDEOIO(CV_IMAGES): raised OpenCV exception:

OpenCV(4.7.0) /builddir/build/BUILD/opencv-4.7.0/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_wrOXwS.webm in function 'icvExtractPattern'

Error: Application("Error opening video")

If you download the file manually then play it

yt-dlp <youtube video>
tplay <that file.webm>

Then tplay works, but notice that the resulting video is much larger (~25x) than the one downloaded by tplay.

Desktop (please complete the following information):

  • OS: Fedora 38 (Linux 6.2.14-300.fc38.x86_64)
  • tplay --version: 0.4.2
  • yt-dlp --version: 2023.03.04
  • mpv --version: 0.35.1
  • rustc --version: rustc 1.69.0 (84c898d65 2023-04-16)
  • pkg-config --modversion opencv: 4.7.0

maxcurzi avatar May 11 '23 17:05 maxcurzi