SMTUBE stopped working today

Using applications, configuring, problems
Message
Author
memo
Posts: 268
Joined: Thu 28 Jun 2018, 10:38

#21 Post by memo »

HI Enrique, thanks for the extensive explanation.I have tried it and here are the results;

Code: Select all

sh-4.3#  /usr/local/bin/youtube-dl --version
2020.05.29
sh-4.3# busybox ping 8.8.8.8 -c4 
PING 8.8.8.8 (8.8.8.8): 56 data bytes
64 bytes from 8.8.8.8: seq=0 ttl=53 time=18.233 ms
64 bytes from 8.8.8.8: seq=1 ttl=53 time=19.570 ms
64 bytes from 8.8.8.8: seq=2 ttl=53 time=16.552 ms
64 bytes from 8.8.8.8: seq=3 ttl=53 time=19.493 ms

--- 8.8.8.8 ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max = 16.552/18.462/19.570 ms
sh-4.3#  cd /root/ 
sh-4.3#  curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /root/youtube-dl   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     3    0     0    0     0      0      0 --:--:--  0:00:02 --:--:--     0
  0     3    0     0    0     0      0      0 --:--:--  0:00:03 --:--:--     0
100   619  100   619    0     0    163      0  0:00:03  0:00:03 --:--:--  3419
100 1713k  100 1713k    0     0   291k      0  0:00:05  0:00:05 --:--:-- 1395k
sh-4.3#  chmod a+rx /root/youtube-dl 
sh-4.3#  /root/youtube-dl --version 
2020.05.29
sh-4.3#  /root/youtube-dl vIaH35-MLsk 
[youtube] vIaH35-MLsk: Downloading webpage
[youtube] vIaH35-MLsk: Downloading js player de455b1a
[youtube] vIaH35-MLsk: Downloading js player de455b1a
WARNING: Requested formats are incompatible for merge and will be merged into mkv.
[download] Destination: Akon - Right Now (Na Na Na) (Official Video)-vIaH35-MLsk.f135.mp4
[download] 100% of 15.38MiB in 00:06
[download] Destination: Akon - Right Now (Na Na Na) (Official Video)-vIaH35-MLsk.f251.webm
[download] 100% of 4.89MiB in 00:01
[ffmpeg] Merging formats into "Akon - Right Now (Na Na Na) (Official Video)-vIaH35-MLsk.mkv"
Deleting original file Akon - Right Now (Na Na Na) (Official Video)-vIaH35-MLsk.f135.mp4 (pass -k to keep)
Deleting original file Akon - Right Now (Na Na Na) (Official Video)-vIaH35-MLsk.f251.webm (pass -k to keep)
sh-4.3#  mpv "/root/Akon - Right Now (Na Na Na) (Official Video)-vIaH35-MLsk.mp4" 
Playing: /root/Akon - Right Now (Na Na Na) (Official Video)-vIaH35-MLsk.mp4
[file] Cannot open file '/root/Akon - Right Now (Na Na Na) (Official Video)-vIaH35-MLsk.mp4': No such file or directory
Failed to open /root/Akon - Right Now (Na Na Na) (Official Video)-vIaH35-MLsk.mp4.


Exiting... (Errors when loading file)
sh-4.3# 
Xanialpup 7.5 32 bit

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#22 Post by fredx181 »

Hi memo, looking at your output it says:

Code: Select all

[ffmpeg] Merging formats into "Akon - Right Now (Na Na Na) (Official Video)-vIaH35-MLsk.mkv"
So you have in /root the video ending with .mkv , right ?
Then to play with mpv should be:

Code: Select all

mpv "/root/Akon - Right Now (Na Na Na) (Official Video)-vIaH35-MLsk.mkv"
Also... now you have a recent youtube-dl in root, to make it work system wide replace the old one on the system, first check where it is:

Code: Select all

which youtube-dl 
Then copy (and overwrite) the one you have in /root to there.
Again, check version if its from 2020:

Code: Select all

youtube-dl --version
EDIT: How things are handled by youtube-dl depends probably on the ffmpeg version you have (in Xenialpup probably rather old), that could be why enrique has .mp4 video and you .mkv :?:

Fred

memo
Posts: 268
Joined: Thu 28 Jun 2018, 10:38

#23 Post by memo »

Hi Fred, I applied your code. However it does work and the video appears, however I want it to work automatically with youtube viewer or smtube so I donot need to download the video every time.


EDIT: I moved it manually to two places one in user/bin the other user/local/bin. I have also deleted the older version. Now smtube works using mpv+youtube_dl.

is there a pet for newer version of ffmpeg ? mine is;

Code: Select all

sh-4.3# ffmpeg --version
ffmpeg version 2.8.11-0ubuntu0.16.04.1 Copyright (c) 2000-2017 the FFmpeg developers
  built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.4) 20160609
  configuration: --prefix=/usr --extra-version=0ubuntu0.16.04.1 --build-suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/i386-linux-gnu --incdir=/usr/include/i386-linux-gnu --cc=cc --cxx=g++ --enable-gpl --enable-shared --disable-stripping --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-frei0r --enable-libx264 --enable-libopencv --disable-i686
  libavutil      54. 31.100 / 54. 31.100
  libavcodec     56. 60.100 / 56. 60.100
  libavformat    56. 40.101 / 56. 40.101
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 40.101 /  5. 40.101
  libavresample   2.  1.  0 /  2.  1.  0
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  2.101 /  1.  2.101
  libpostproc    53.  3.100 / 53.  3.100
Unrecognized option '-version'.
Error splitting the argument list: Option not found
I also search for the latest version of gtk3_youtube_viewer for xenialpup 32 bit, is available for my system , the one I found so far is for 64 bit.
Attachments
Screenshot_2020-05-30_11-31-23.png
(51.14 KiB) Downloaded 20 times
Xanialpup 7.5 32 bit

Post Reply