I am trying to keep informed but lowering my bandwidth.
Just for reference if I select video at 240 my bandwith use is at 28-33 kbs
Code: Select all
youtube-viewer --resolution=240 https://www.youtube.com/watch?v=bIZsnKGV8TE
Code: Select all
youtube-viewer --resolution=240 https://www.youtube.com/watch?v=bIZsnKGV8TE
Code: Select all
NASA Live: Official Stream of NASA TV
https://www.youtube.com/watch?v=21X5lGlDOfg
Code: Select all
root@live:/mnt/sda7/nasa# youtube-dl -F 21X5lGlDOfg
[youtube] 21X5lGlDOfg: Downloading webpage
[youtube] 21X5lGlDOfg: Downloading m3u8 information
[youtube] 21X5lGlDOfg: Downloading MPD manifest
[info] Available formats for 21X5lGlDOfg:
format code extension resolution note
91 mp4 256x144 HLS 197k , avc1.42c00b, 30.0fps, mp4a.40.5@ 48k
92 mp4 426x240 HLS 338k , avc1.4d4015, 30.0fps, mp4a.40.5@ 48k
93 mp4 640x360 HLS 829k , avc1.4d401e, 30.0fps, mp4a.40.2@128k
94 mp4 854x480 HLS 1380k , avc1.4d401f, 30.0fps, mp4a.40.2@128k
300 mp4 1280x720 3806k , avc1.4d4020, 60.0fps, mp4a.40.2 (best)
Code: Select all
mpv --ytdl --ytdl-format=91 https://www.youtube.com/watch?v=21X5lGlDOfg
According to that print out the lowest audio quality is 48Kbps. That is normally also the lowest for mp4a (aac) on youtube. Webm audio lowest on youtube is normally 40Kbps (ogg), I think. Video will most likely never be lower than audio on youtube. You can see there that the lowest video bitrate for video is 197K ( for 144P quality, the lowest).enrique wrote:Could not find info on web.
So after many test this is Best I have come up.
1) Get your address:2) Get Available formatsCode: Select all
NASA Live: Official Stream of NASA TV https://www.youtube.com/watch?v=21X5lGlDOfg
See lowest is 91 in this caseCode: Select all
root@live:/mnt/sda7/nasa# youtube-dl -F 21X5lGlDOfg [youtube] 21X5lGlDOfg: Downloading webpage [youtube] 21X5lGlDOfg: Downloading m3u8 information [youtube] 21X5lGlDOfg: Downloading MPD manifest [info] Available formats for 21X5lGlDOfg: format code extension resolution note 91 mp4 256x144 HLS 197k , avc1.42c00b, 30.0fps, mp4a.40.5@ 48k 92 mp4 426x240 HLS 338k , avc1.4d4015, 30.0fps, mp4a.40.5@ 48k 93 mp4 640x360 HLS 829k , avc1.4d401e, 30.0fps, mp4a.40.2@128k 94 mp4 854x480 HLS 1380k , avc1.4d401f, 30.0fps, mp4a.40.2@128k 300 mp4 1280x720 3806k , avc1.4d4020, 60.0fps, mp4a.40.2 (best)
3)Listen thru mpvNotice this is Video no Audio. But Video can go lower that Audio. As Audio channels seems to be set up to maximum resolution. What a piece of crap. I wonder if I can pretend to be an Android at youtube. And if then it may provide lower quality. That is next test.Code: Select all
mpv --ytdl --ytdl-format=91 https://www.youtube.com/watch?v=21X5lGlDOfg
In any case My bandwidth just go to: 16-23.5 KiB k/s hope it helps others.
thanks for the link semme, it is pretty interesting. I have installed it from the PPM , but I couldnot get it to work properly , I followed the instruction but it keep return no results
I have found some information about SMTUBE, maybe it is helpful.enrique wrote:I wonder if any of Puppy radio can listen Nasa or SpaceX Audio.
hi enrique; So do you know how to listen just to Audio? Thanks in advance
Code: Select all
youtube-dl -F https://www.twitch.tv/nasa
[twitch:stream] nasa: Downloading stream JSON
[twitch:stream] nasa: Downloading channel access token
[twitch:stream] nasa: Downloading m3u8 information
[info] Available formats for 38378971632:
format code extension resolution note
audio_only mp4 audio only 112k , mp4a.40.2
160p mp4 284x160 230k , avc1.4D401F, 30.0fps, mp4a.40.2
360p mp4 640x360 630k , avc1.4D401F, 30.0fps, mp4a.40.2
480p mp4 852x480 1377k , avc1.4D401F, 30.0fps, mp4a.40.2
720p mp4 1280x720 2322k , avc1.4D401F, 30.0fps, mp4a.40.2
720p__source_ mp4 1280x720 4519k , avc1.64001F, 30.0fps, mp4a.40.2 (best)
Code: Select all
mpv --ytdl --ytdl-format=audio_only https://www.twitch.tv/nasa
Code: Select all
mpv --ytdl --ytdl-format=91 https://www.youtube.com/watch?v=21X5lGlDOfg
root@live:/mnt/sda7/nasa# mpv --ytdl https://www.youtube.com/watch?v=21X5lGlDOfg --record-file="stream.mp4"
Playing: https://www.youtube.com/watch?v=21X5lGlDOfg
(+) Video --vid=1 (h264 1280x720 60.000fps)
(+) Audio --aid=1 (aac 2ch 48000Hz)
[ffmpeg] mp4: Tag [15][0][0][0] incompatible with output codec id '86018' (mp4a)
[recorder] Write header failed.
Disabling stream recording.
AO: [alsa] 48000Hz stereo 2ch float
VO: [gpu] 1280x720 yuv420p
I think you are confusing Kbps (kilobits per second) with KBps (kilobytes per second). 1 KiloByte= 8 x Kilobits. Don't know how youtube's live streams work but uploaded videos generally have video and audio tracks that are split and can be downloaded seperately. At some resolutions, one combined file (video and audio) can be downloaded directly from the google server. There are downloaders that can combine the video and audio streams for you.enrique wrote:nic007
I am sorry if I confuse you guys. See I seen too many numbers. I take note of them but at the end I ONLY go for what conky reports.
Now as You see Youtube have no AUDIO ONLY feed.
That I know there is no way to tell youtube to transmit ONLY the audio part of the feed.
The audio I spoke before is
Code: Select all
youtube-dl -F https://www.twitch.tv/nasa [twitch:stream] nasa: Downloading stream JSON [twitch:stream] nasa: Downloading channel access token [twitch:stream] nasa: Downloading m3u8 information [info] Available formats for 38378971632: format code extension resolution note audio_only mp4 audio only 112k , mp4a.40.2 160p mp4 284x160 230k , avc1.4D401F, 30.0fps, mp4a.40.2 360p mp4 640x360 630k , avc1.4D401F, 30.0fps, mp4a.40.2 480p mp4 852x480 1377k , avc1.4D401F, 30.0fps, mp4a.40.2 720p mp4 1280x720 2322k , avc1.4D401F, 30.0fps, mp4a.40.2 720p__source_ mp4 1280x720 4519k , avc1.64001F, 30.0fps, mp4a.40.2 (best)
But as you see https://www.twitch.tv/nasa do have an audio channel.
audio_only mp4 audio only 112k , mp4a.40.2
Now this Audio onlyconky reports bandwidth of 26.4-28.7 KiB k/sCode: Select all
mpv --ytdl --ytdl-format=audio_only https://www.twitch.tv/nasa
But Compress Video at youtubeconky reports 16-23.5 KiB k/sCode: Select all
mpv --ytdl --ytdl-format=91 https://www.youtube.com/watch?v=21X5lGlDOfg
Yes compress Video at youtube is less than a audio ONLY at www.twitch.tv
Code: Select all
mpv --ytdl --ytdl-format=audio_only https://www.twitch.tv/nasa
Code: Select all
mpv --ytdl --ytdl-format=91 https://www.youtube.com/watch?v=21X5lGlDOfg
Are you sure you did not swop the values you got from Conky around (the video from youtube should have the higher values for sure)? If you watch a live stream from youtube, you will watch the video which include video and audio. Any video with sound has a video and sound track. The video player (in your case mpv) picks this up. This is because video and audio codecs are different. Youtube commonly use the H264 mpeg-4 AVC codec for the video part of mp4's and the aac codec for the audio for videos.enrique wrote:nic007
Thanks for hanging around. This week have been the most productive to me here in the forum. I had no issues or contradictions. In fact I am very thankful for all the help you had provide me.
Now I am not trying to contradict you. I know it is hard to believe that Audio Only end up using more bandwidth than Composite Video.
PLEASE see that when we read we see all kind of bit rate information. True. I even look at it and may use as a guide. BUTTTTTT PLEASE see that my decisions are base ONLY on what corky metered. Yes the Practical side or what REALY end up using. Not theoretical of the stream spec.
SO I encourage you to test it your self.
1) Audio Only from https://www.twitch.tv/nasa
Spec : audio_only mp4 audio only 112k , mp4a.40.2
Link:2) Lowest video from https://www.youtube.com/watch?v=21X5lGlDOfgCode: Select all
mpv --ytdl --ytdl-format=audio_only https://www.twitch.tv/nasa
Spec : 91 mp4 256x144 HLS 197k , avc1.42c00b, 30.0fps, mp4a.40.5@ 48k
Link:Close all programs and windows of your Puppy. Look at conky. Make sure no one is using your data, so conky should report 0. Open a terminal and paste link. But let the video run for a minute before making note of the speed or the data consumption. Then do same thing with other link. report yourself here.Code: Select all
mpv --ytdl --ytdl-format=91 https://www.youtube.com/watch?v=21X5lGlDOfg
Regards youtube feeds. That I know there is NO WAY to tell youtube to send AUDIO Only if it is not already posted as a separate stream Audio channel reported on the manifest. I hope you prove me wrong on this, In fact I am looking if we can still use mobile youtube as it use to provide different set of manifest.
Again THANKS for any report and for helping me here. Please note there is no hurry. All happens because my Internet is from my Cellphone and I try to keep my use as low as possible so that the ISP do not throttle me the speed down once my maximum is reach.
Name: MPV+ytdl-worst
Executable: mpv
Parameters: --ytdl --ytdl-format=worstvideo+worstaudio --record-file=/tmp/stream.mkv %u
g) Click in [OK] to save settingName: MPV+ytdl-worst-Live
Executable: mpv
Parameters: --ytdl --ytdl-format=worst --record-file=/tmp/stream.ts %u