Shop Mobile More Submit  Join Login
×

More from DeviantArt



Details

Submitted on
February 11, 2008
Link
Thumb

Stats

Views
462
Favourites
0
Comments
46
×

FetchSong

Journal Entry: Mon Feb 11, 2008, 9:30 AM



Since I lost all my music...


dionyzizeuler ~ $ vlc `./fetchsong.php -a "Loreena McKennitt" -s "All Souls Night"`

Looking for artist: Loreena McKennitt
Looking for song: All Souls Night
12 matching entries.
Found song: www.youtube.com/watch?v=-qQHlW…
Flv URL: sjl-v148.sjl.youtube.com/get_v…
Downloading flv file...
--19:14:15--  sjl-v148.sjl.youtube.com/get_v…
           => `/tmp/fetchsong_7Fjluf'
Resolving sjl-v148.sjl.youtube.com... 64.15.120.51
Connecting to sjl-v148.sjl.youtube.com|64.15.120.51|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2,495,277 (2.4M) [video/flv]

100%[====================================================
=============================>] 2,495,277     95.07K/s    ETA 00:00

19:14:37 (119.16 KB/s) - `/tmp/fetchsong_7Fjluf' saved [2495277/2495277]

Flv downloaded to: /tmp/fetchsong_7Fjluf
Converting flv to mp3...
MMX supported but disabled
MMX2 supported but disabled
SSE supported but disabled
SSE2 supported but disabled
Converted flv to mp3.
VLC media player 0.8.6d Janus
Remote control interface initialized. Type `help' for help.
[00000221] main demuxer error: no id3 module matched "any"
status change: ( new input: /tmp/fetchsong_3NYV81 )
status change: ( audio volume: 256 )
status change: ( play state: 1 )
[00000204] main playlist: nothing to play
status change: ( stop state: 0 )
signal 2 received, terminating vlc - do it again in case it gets stuck
status change: ( stop state: 0 )
status change: ( quit )
[00000204] main playlist: stopping playback

dionyzizeuler ~ $



  • Mood: Content
  • Listening to: Loreena McKennitt
Add a Comment:
 
:icongeekfish:
Geekfish Featured By Owner Feb 20, 2008
deezer.com :D
Reply
:iconphilo23:
philo23 Featured By Owner Feb 16, 2008
what strange about this script is, on my system when it goes to download the FLV, it tried to load what looks like a comment.
it says:
"Downloading flv file...
--23:50:46-- [link]"
which is strange because i'd looked through the source and i cant find why its doing this..
any ideas?
Reply
:iconagorf:
agorf Featured By Owner Mar 2, 2008  Hobbyist Photographer
Download the .phps again and use it as: ./fetchsong.php 'Loreena McKennitt All Souls Night'
Reply
:icondionyziz:
dionyziz Featured By Owner Feb 17, 2008
What do you mean "what looks like a comment"?
Reply
:iconphilo23:
philo23 Featured By Owner Feb 17, 2008
well when it runs, it seems to pull HTML from the page, not the youtube FLV from the site :/
Reply
:icondionyziz:
dionyziz Featured By Owner Feb 17, 2008
What does it output? Pastebin it (not the file, the output). Don't run vlc, just fetch song.
Reply
:iconphilo23:
philo23 Featured By Owner Feb 18, 2008
the exact output is:
[link]
hope you can figure something out, i cant :(
Reply
:icondionyziz:
dionyziz Featured By Owner Feb 18, 2008
Can you try a different song?
Reply
:iconskyrail:
Skyrail Featured By Owner Feb 13, 2008
Hehe very nice. Where did you get the FLV converter, is that a vlc plugin? Heh :aww:
Reply
:icondionyziz:
dionyziz Featured By Owner Feb 13, 2008
just using mplayer ;-)

[ look at the source! :D ]
Reply
Add a Comment: