Thank you for your donation!


Youtube-DL
#11
Where does the original playlist come from?

I'm trying to understand if the process has manual steps where something has to be copied/pasted from Youtube.
Reply
#12
(11-29-2019, 03:15 PM)Tim Curtis Wrote: Where does the original playlist come from?

I'm trying to understand if the process has manual steps where something has to be copied/pasted from Youtube.

The original playlist is user generated with video page URLs copy pasted into a playlist and changed to point to localhost/yt-play/...

https://github.com/duracell80/MoodeRadio...xample.m3u

Stored in /var/lib/mpd/music/RADIO/_YouTube. It should also work from the Playlists folder on the SDCARD.

Can also stream from a phone or tablet like on a mobile chrome browser without a playlist via ...

Code:
http://moode.ip/yt-play/?type=cast&src=https://www.youtube.com/watch?v=mhyD2qchkEw
--

GitHub, Spotify and Resonate : @duracell80

My jam: ambient, lush vocals, synths and acoustic guitars
Reply
#13
I could do with some form of wildcard in the radio-images/thumbs directory for streaming sources.

The artist is "Radio Station" and the title is "Streaming Source" and so the album is the track title which changes per track.  I can't easily provide "YouTube: Imogen Heap - Hide and Seek ft. London Contemporary Voices | Mahogany Live.jpg" in the images folder without more processing and more delays to the streaming. But they all do start "YouTube colon". Thus some form of wildcard match could provide YouTube.jpg as the "cover art" for all of the "albums".

It might be possible to get the video thumbnail as the cover art but it's going to gunk up that folder really quickly.

   


Here's the currentsong.txt data while playing these streams.

Code:
cat /var/local/www/currentsong.txt

file=https://r3---sn-5uaezny6.googlevideo.com/videoplayback?expire=1575086566&ei=hpXhXe6-J4Ke4QSqq67wBw&ip=...
artist=Radio station
album=YouTube: Imogen Heap - Hide and Seek ft. London Contemporary Voices | Mahogany Live
title=Streaming source
coverurl=images/default-cover-v6.svg
track=
date=
composer=
encoded=VBR
bitrate=
outrate=16 bit, 48 kHz, Stereo, 1.536 mbps
volume=60
mute=0
state=play

Something like this would be ideal ...
Code:
artist=Radio station
album=YouTube
title=Imogen Heap - Hide and Seek ft. London Contemporary Voices | Mahogany Live
--

GitHub, Spotify and Resonate : @duracell80

My jam: ambient, lush vocals, synths and acoustic guitars
Reply
#14
It seems a lot more complicated in comparison to using native Youtube and streaming it to moOde over Airplay or Bluetooth. You also get the video using this approach :-)
Reply
#15
Pah video shmidio. Video uses bandwidth.  

Also I think YouTube stops playing on a mobile device when the screen goes off? This only plays audio without video (that you're not watching anyway). So what was 160Mb of data for a song is now 4mb. Or a concert in HD was 500mb and now it's 35mb.

Anyways the audio streams also bypass all the commericals there's no skip ads because well there are no ads, it's very cool. The pay off is huge. All this is happening on the player so you take out the headache of connecting two devices.

I'm pretty sure if you did Bluetooth to Moode on a 2 hour chill mix video you're gonna have to keep turning the screen back on every 5 minutes to resume the video and suck your battery too that's just pointless as well as using 1 GB of data when you could have had a 50mb audio file.

That's what the original poster was saying with using youtube-dl. People are riding busses now listening to YouTube but they have to keep their screen on. Pointed at the floor. I think this would be an awesome addition to functionality. Keep your favourite videos as audio only playlists. ASMR, live concerts, Vlogs and those 2 hour chill mixes that don't have video anyway. It's all good.

I'll write a very basic how to. But it's really simple to write a playlist just copy paste the "webpage URL".

Hours of piano ...
https://youtu.be/7JoqxPVY-e8

An hour of chill step with no video ...
https://youtu.be/Uxnu4iyDb2c

A video that's just a "jpeg" that ain't no video! ...
https://youtu.be/aJ2YLF6OPqk

Oh that's lush.

A nap with Bob Ross (literally in the background)
https://youtu.be/1s58rW0_LN4
--

GitHub, Spotify and Resonate : @duracell80

My jam: ambient, lush vocals, synths and acoustic guitars
Reply
#16
Not to mention the library supports all these sites too including SoundCloud , Vevo and TuneIn ... useful sources of audio.

https://ytdl-org.github.io/youtube-dl/su...sites.html
--

GitHub, Spotify and Resonate : @duracell80

My jam: ambient, lush vocals, synths and acoustic guitars
Reply
#17
I was with you until Bob Ross......:-)
Well.... ok....actually somewhere before "hours of piano" and anything thereafter.... lol
Reply
#18
Ok, I see the usage scenario. Seems valid. I'll check out the HowTo and then go from there.
Reply
#19
Here's the how to
http://moodeaudio.org/forum/showthread.php?tid=1943
--

GitHub, Spotify and Resonate : @duracell80

My jam: ambient, lush vocals, synths and acoustic guitars
Reply
#20
Great, thanks. Whats the 30 secs per item pre-processing after adding the PL to the queue?
Reply


Forum Jump: