maxcurzi / tplay

A terminal ASCII media player. View images, gifs, videos, webcam, YouTube, etc.. directly in the terminal as ASCII art.
MIT License
208 stars 13 forks source link

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

Open maxcurzi opened 1 year ago

maxcurzi commented 1 year ago

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

[ERROR:0@4.977] 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):