General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!
Notices
Welcome to
LinuxQuestions.org , a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free.
Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please
contact us . If you need to reset your password,
click here .
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a
virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month.
Click here for more info.
05-23-2022, 07:53 AM
#46
Senior Member
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,658
Quote:
Originally Posted by
teckk
@Xeratul
Code:
man -t youtube-dl | ps2pdf - ytdl.pdf
man -t mpv | ps2pdf - mpv.pdf
man -P cat youtube-dl > ytdl.txt
man -P cat mpv > mpv.txt
man youtube-dl | groff -mandoc -Thtml > ytdl.html
man mpv | groff -mandoc -Thtml > mpv.html
man -Hfirefox youtube-dl
man -Hfirefox mpv
It seems that VLC works fine. I tried the fltk project above and it works.
05-23-2022, 09:11 PM
#47
Member
Registered: Feb 2022
Posts: 72
Rep:
Quote:
Originally Posted by
teckk
Deutsche Welle has a English version
Code:
yt-dlp -f 93 https://m.youtube.com/watch?v=GE_SfNVNyqk -o - | ffplay -
Sky News
Code:
yt-dlp -f 93 https://m.youtube.com/watch?v=9Auq9mYxFEE -o - | ffplay -
Newsy
Code:
yt-dlp -f 18 https://m.youtube.com/watch?v=gxJ6eJtGYFw -o - | ffplay -
Reuters
Code:
yt-dlp -f 93 https://m.youtube.com/watch?v=OsksEXx2X9M -o - | ffplay -
PBS
Code:
yt-dlp -f 18 https://m.youtube.com/watch?v=bhM2rT38JXE -o - | ffplay -
Fox
Code:
yt-dlp -f 18 https://m.youtube.com/watch?v=FACbviA9Umc -o - | ffplay -
ABC (US)
Code:
yt-dlp -f 93 https://m.youtube.com/watch?v=w_Ma8oQLmSM -o - | ffplay -
ABC (OZ)
Code:
yt-dlp -f 93 https://m.youtube.com/watch?v=vOTiJkg1voo -o - | ffplay -
One could make a shell script using select for a menu.
Glad it helps.
The streams/urls have been added to fltvstream. If you have further streams/urls, please feel free to let us know.
Kind regards.
05-24-2022, 08:00 AM
#48
LQ Guru
Registered: Oct 2004
Distribution: Arch
Posts: 5,141
Quote:
If you have further streams/urls
Code:
agent="Mozilla/5.0 (iPhone; CPU iPhone OS 10_0_1 like Mac OS X) AppleWebKit/602.1.50 (KHTML, like Gecko) Version/10.0 Mobile/14A403 Safari/602.1"
srch="Deutsche welle"
nret=10
yt-dlp --user-agent "$agent" -q ytsearch"$nret":"$srch" \
--date now-1months \
--flat-playlist \
--print "" \
--print "Video Title:" \
--print title \
--print "Video Duration:" \
--print duration_string \
--print "View Count:" \
--print view_count \
--print "Video Url:" \
--print urls | tee -a utsearch.txt
05-29-2022, 05:10 AM
#49
Member
Registered: Feb 2022
Posts: 72
Rep:
Quote:
Originally Posted by
teckk
Code:
agent="Mozilla/5.0 (iPhone; CPU iPhone OS 10_0_1 like Mac OS X) AppleWebKit/602.1.50 (KHTML, like Gecko) Version/10.0 Mobile/14A403 Safari/602.1"
srch="Deutsche welle"
nret=10
yt-dlp --user-agent "$agent" -q ytsearch"$nret":"$srch" \
--date now-1months \
--flat-playlist \
--print "" \
--print "Video Title:" \
--print title \
--print "Video Duration:" \
--print duration_string \
--print "View Count:" \
--print view_count \
--print "Video Url:" \
--print urls | tee -a utsearch.txt
Thanks !
It allows now to add custom channel/tube, to view/play.
https://gitlab.com/openbsd98324/fltvstream
Last edited by openbsd98324; 05-29-2022 at 03:36 PM .
06-03-2022, 09:43 AM
#50
Senior Member
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,561
Rep:
Interesting thread.
Have you got maybe an URL to use the python script for LCI Live News?
06-03-2022, 11:22 AM
#51
LQ Guru
Registered: Oct 2004
Distribution: Arch
Posts: 5,141
Did a test.
https://newstube.live/watch/lci-france
Scraped it...
Code:
https://lci-das-live-ssl.tf1.fr/video/LIlMxdc1WY7vBWoMpofuMg/1654286653/out/v1/3949f9922e0046a0926e11f8687e1c1a/index_audio_17_0_21448547.mp4?m=1636385068
https://lci-das-live-ssl.tf1.fr/video/LIlMxdc1WY7vBWoMpofuMg/1654286653/out/v1/3949f9922e0046a0926e11f8687e1c1a/index_video_1_0_21448555.mp4?m=1636385068
https://lci-das-live-ssl.tf1.fr/video/LIlMxdc1WY7vBWoMpofuMg/1654286653/out/v1/3949f9922e0046a0926e11f8687e1c1a/index.mpd
Code:
ffmpeg -i https://lci-das-live-ssl.tf1.fr/video/LIlMxdc1WY7vBWoMpofuMg/1654286653/out/v1/3949f9922e0046a0926e11f8687e1c1a/index.mpd -c:a copy -c:v copy testlci.mp4
mplayer testlci.mp4
Capture area with scrot...
https://0x0.st/oMsm.png
06-03-2022, 11:33 AM
#52
LQ Guru
Registered: Oct 2004
Distribution: Arch
Posts: 5,141
Little more thinking...I tend to do things the manual way.
Code:
yt-dlp -F https://lci-das-live-ssl.tf1.fr/video/LIlMxdc1WY7vBWoMpofuMg/1654286653/out/v1/3949f9922e0046a0926e11f8687e1c1a/index.mpd
[generic] index: Requesting header
WARNING: [generic] Falling back on generic information extractor.
[generic] index: Downloading webpage
[generic] index: Extracting information
[info] Available formats for index:
ID EXT RESOLUTION │ TBR PROTO │ VCODEC VBR ACODEC ABR ASR MORE INFO
────────────────────────────────────────────────────────────────────────────────────────────────
8 m4a audio only │ 96k dash │ audio only mp4a.40.2 96k 44100Hz DASH audio, m4a_dash
9 m4a audio only │ 96k dash │ audio only mp4a.40.2 96k 44100Hz DASH audio, m4a_dash
10 m4a audio only │ 128k dash │ audio only mp4a.40.2 128k 44100Hz DASH audio, m4a_dash
6 m4a audio only │ 128k dash │ audio only mp4a.40.2 128k 44100Hz DASH audio, m4a_dash
7 m4a audio only │ 128k dash │ audio only mp4a.40.2 128k 44100Hz DASH audio, m4a_dash
11 m4a audio only │ 128k dash │ audio only mp4a.40.2 128k 48000Hz DASH audio, m4a_dash
12 m4a audio only │ 128k dash │ audio only mp4a.40.2 128k 48000Hz DASH audio, m4a_dash
4 mp4 416x234 │ 400k dash │ avc1.42C00D 400k video only DASH video, mp4_dash
3 mp4 640x360 │ 800k dash │ avc1.42C01E 800k video only DASH video, mp4_dash
2 mp4 1024x576 │ 1200k dash │ avc1.4D401F 1200k video only DASH video, mp4_dash
5 mp4 1024x576 │ 1699k dash │ avc1.4D401F 1699k video only DASH video, mp4_dash
1 mp4 1280x720 │ 2499k dash │ avc1.4D401F 2499k video only DASH video, mp4_dash
06-03-2022, 03:18 PM
#53
Senior Member
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,561
Rep:
It does not find an url. It seems that the url/stream has changed its location.... ?
https://lci-das-live-ssl.tf1.fr/vide...1c1a/index.mpd
EDIT: can it be that we need to use firefox and look/find then the changed/updated URL?
Last edited by frenchn00b; 06-03-2022 at 03:22 PM .
06-03-2022, 04:32 PM
#54
LQ Guru
Registered: Oct 2004
Distribution: Arch
Posts: 5,141
Yup, seems to change
Code:
Select an option.: 3
Enter/Paste Utube URL: https://lci-das-live-ssl.tf1.fr/video/sUAnKRXN9fY6xJQZ-jY7MA/1654305831/out/v1/3949f9922e0046a0926e11f8687e1c1a/index.mpd
[generic] index: Requesting header
WARNING: [generic] Falling back on generic information extractor.
[generic] index: Downloading webpage
[generic] index: Extracting information
[info] Available formats for index:
ID EXT RESOLUTION │ TBR PROTO │ VCODEC VBR ACODEC ABR ASR MORE INFO
────────────────────────────────────────────────────────────────────────────────────────────────
8 m4a audio only │ 96k dash │ audio only mp4a.40.2 96k 44100Hz DASH audio, m4a_dash
9 m4a audio only │ 96k dash │ audio only mp4a.40.2 96k 44100Hz DASH audio, m4a_dash
10 m4a audio only │ 128k dash │ audio only mp4a.40.2 128k 44100Hz DASH audio, m4a_dash
6 m4a audio only │ 128k dash │ audio only mp4a.40.2 128k 44100Hz DASH audio, m4a_dash
7 m4a audio only │ 128k dash │ audio only mp4a.40.2 128k 44100Hz DASH audio, m4a_dash
11 m4a audio only │ 128k dash │ audio only mp4a.40.2 128k 48000Hz DASH audio, m4a_dash
12 m4a audio only │ 128k dash │ audio only mp4a.40.2 128k 48000Hz DASH audio, m4a_dash
4 mp4 416x234 │ 400k dash │ avc1.42C00D 400k video only DASH video, mp4_dash
3 mp4 640x360 │ 800k dash │ avc1.42C01E 800k video only DASH video, mp4_dash
2 mp4 1024x576 │ 1200k dash │ avc1.4D401F 1200k video only DASH video, mp4_dash
5 mp4 1024x576 │ 1699k dash │ avc1.4D401F 1699k video only DASH video, mp4_dash
1 mp4 1280x720 │ 2499k dash │ avc1.4D401F 2499k video only DASH video, mp4_dash
$Enter to continue.
If you are going to use that one, you'll need to scrape it into a variable, then play it.
Code:
ffplay https://lci-das-live-ssl.tf1.fr/video/sUAnKRXN9fY6xJQZ-jY7MA/1654305831/out/v1/3949f9922e0046a0926e11f8687e1c1a/index.mpd
https://0x0.st/oMiz.png
06-09-2022, 10:38 AM
#56
LQ Guru
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,356
This is proving to be an excellent thread, witjh very informative posts and some very interesting applications of everyday programs. A lot of documentation has obviously been read.
All times are GMT -5. The time now is 10:10 PM .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know .
Latest Threads
LQ News