LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices


Reply
  Search this Thread
Old 05-23-2022, 07:53 AM   #46
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,387

Rep: Reputation: 229Reputation: 229Reputation: 229

Quote:
Originally Posted by teckk View Post
@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.
 
Old 05-23-2022, 09:11 PM   #47
openbsd98324
Member
 
Registered: Feb 2022
Posts: 31

Rep: Reputation: 4
Quote:
Originally Posted by teckk View Post
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.
Attached Thumbnails
Click image for larger version

Name:	1653358064-1-fox-news-fltvstream-raspberry-pi-rpi3b+.jpg
Views:	2
Size:	92.9 KB
ID:	38970  
 
Old 05-24-2022, 08:00 AM   #48
teckk
Senior Member
 
Registered: Oct 2004
Distribution: Arch
Posts: 4,165
Blog Entries: 4

Rep: Reputation: 1440Reputation: 1440Reputation: 1440Reputation: 1440Reputation: 1440Reputation: 1440Reputation: 1440Reputation: 1440Reputation: 1440Reputation: 1440
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
 
Old 05-29-2022, 05:10 AM   #49
openbsd98324
Member
 
Registered: Feb 2022
Posts: 31

Rep: Reputation: 4
Quote:
Originally Posted by teckk View Post
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
Attached Thumbnails
Click image for larger version

Name:	1653856174-screenshot.jpg
Views:	5
Size:	171.2 KB
ID:	38989   Click image for larger version

Name:	1653856024-screenshot.jpg
Views:	4
Size:	160.8 KB
ID:	38990   Click image for larger version

Name:	1653855964-screenshot.jpg
Views:	3
Size:	174.1 KB
ID:	38991   Click image for larger version

Name:	1653856000-screenshot.jpg
Views:	4
Size:	171.6 KB
ID:	38992  

Last edited by openbsd98324; 05-29-2022 at 03:36 PM.
 
Old 06-03-2022, 09:43 AM   #50
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,547

Rep: Reputation: 57
Interesting thread.

Have you got maybe an URL to use the python script for LCI Live News?
 
Old 06-03-2022, 11:22 AM   #51
teckk
Senior Member
 
Registered: Oct 2004
Distribution: Arch
Posts: 4,165
Blog Entries: 4

Rep: Reputation: 1440Reputation: 1440Reputation: 1440Reputation: 1440Reputation: 1440Reputation: 1440Reputation: 1440Reputation: 1440Reputation: 1440Reputation: 1440
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
 
Old 06-03-2022, 11:33 AM   #52
teckk
Senior Member
 
Registered: Oct 2004
Distribution: Arch
Posts: 4,165
Blog Entries: 4

Rep: Reputation: 1440Reputation: 1440Reputation: 1440Reputation: 1440Reputation: 1440Reputation: 1440Reputation: 1440Reputation: 1440Reputation: 1440Reputation: 1440
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
 
Old 06-03-2022, 03:18 PM   #53
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,547

Rep: Reputation: 57
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?
Attached Thumbnails
Click image for larger version

Name:	oMsm.jpg
Views:	9
Size:	150.5 KB
ID:	39007  

Last edited by frenchn00b; 06-03-2022 at 03:22 PM.
 
Old 06-03-2022, 04:32 PM   #54
teckk
Senior Member
 
Registered: Oct 2004
Distribution: Arch
Posts: 4,165
Blog Entries: 4

Rep: Reputation: 1440Reputation: 1440Reputation: 1440Reputation: 1440Reputation: 1440Reputation: 1440Reputation: 1440Reputation: 1440Reputation: 1440Reputation: 1440
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
 
Old 06-03-2022, 04:43 PM   #55
teckk
Senior Member
 
Registered: Oct 2004
Distribution: Arch
Posts: 4,165
Blog Entries: 4

Rep: Reputation: 1440Reputation: 1440Reputation: 1440Reputation: 1440Reputation: 1440Reputation: 1440Reputation: 1440Reputation: 1440Reputation: 1440Reputation: 1440
Here is another one. Looks like it streams using the same type of dash segmented playlist.
https://www.tf1info.fr/direct/

Requests spit to shell
https://0x0.st/oMiX.png
 
Old 06-09-2022, 10:38 AM   #56
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, RPi OS, Mint & Android
Posts: 13,911

Rep: Reputation: 1901Reputation: 1901Reputation: 1901Reputation: 1901Reputation: 1901Reputation: 1901Reputation: 1901Reputation: 1901Reputation: 1901Reputation: 1901Reputation: 1901
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: The Pirate Bay and a Never-Ending Search for an Unbiased Judge LXer Syndicated Linux News 0 05-25-2009 12:00 AM
LXer: Fedora 9 : Good News. Bad News. LXer Syndicated Linux News 0 04-18-2008 10:10 PM
LXer: What's your favorite news hub for free software news? LXer Syndicated Linux News 0 07-14-2007 03:16 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > General

All times are GMT -5. The time now is 05:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration