Baseplate Posted December 7, 2013 Share Posted December 7, 2013 I wanted to ask if there is anyway to extract the sound from a youtube link/video? Link to comment
!#NssoR_) Posted December 7, 2013 Share Posted December 7, 2013 Yes, you can but.. You should change formula the video to mp3. Link to comment
Baseplate Posted December 7, 2013 Author Share Posted December 7, 2013 You got any idea how to do so? Link to comment
!#NssoR_) Posted December 7, 2013 Share Posted December 7, 2013 See to that . local sound = playSound3D ( "http://www.uploadmusic.org/MUSIC/628051381741104.mp3", x, y, z, true ) -- Link the video setSoundMaxDistance ( sound, 100 ) Link to comment
Baseplate Posted December 7, 2013 Author Share Posted December 7, 2013 Not sure either to cry or laugh, thanks for nothing. Link to comment
bandi94 Posted December 7, 2013 Share Posted December 7, 2013 Well , i was searching some time ago for this. Yes it's possbile , by convert the youtube video to mp3 then play/download it to the client. There are page's like this ("youtube to mp3") , but i don't find any one that could be used with php call on server request. So i started searching for project's / php's that could be used , well that was a dead end to , bk all i found it was some pay'd stuff's .So i give'd up on this. Link to comment
!#NssoR_) Posted December 7, 2013 Share Posted December 7, 2013 You can download any sound you want from YouTube, but Should change the formula to MP3 and use it in this way sound = playSound("yoursound.mp3",true) And in meta . "theFile/yoursound.mp3"/> Just this -_-" Link to comment
Baseplate Posted December 7, 2013 Author Share Posted December 7, 2013 You can download any sound you want from YouTube, but Should change the formula to MP3 and use it in this way sound = playSound("yoursound.mp3",true) And in meta . "theFile/yoursound.mp3"/> Just this -_-" Gonna ignore this. @bandi94, I've seen a server once which can play sound from youtube links, so it is possible of course, gonna look in it anyways.. Link to comment
bandi94 Posted December 7, 2013 Share Posted December 7, 2013 @NssoR please realy stop posting more crap , bk i will end dead from laughing. Youtube it's not using .mp3 format how dafu*** you wanna change the "formula" of this video "https://www.youtube.com/watch?v=eaTawbEn_d4" to mp3 "formula" and play it on the server. ? We area speaking about real time youtube converter , i enter a song name on the server then : server->php->youtube->mp3 converter -> php -> server -> client -> playSound. And not about download some song from youtube and put it in the server. Link to comment
Markeloff Posted December 7, 2013 Share Posted December 7, 2013 Use an Online Converter. callRemote,fetchRemote Link to comment
Baseplate Posted December 7, 2013 Author Share Posted December 7, 2013 I've thought of callRemote and fetchRemote, but dunno what to do next.. Link to comment
Markeloff Posted December 7, 2013 Share Posted December 7, 2013 You want the music of the video? Well, if you tell us what are you trying to do we can help you. Link to comment
bandi94 Posted December 7, 2013 Share Posted December 7, 2013 Use an Online Converter. callRemote,fetchRemote Well yah , that's the point , but i was unable to find any Online Converter , that could be used with calling it from other php. There are only "paste the link and press the download button" well maybe it's possbile to do it i am prity noob at php/html . BTW : yes i think he wanna enter the youtube : link , then MTA would play the song (atleast i wanted to do this) Link to comment
Baseplate Posted December 7, 2013 Author Share Posted December 7, 2013 Yeah, I need the music from the video. Link to comment
Markeloff Posted December 7, 2013 Share Posted December 7, 2013 Well, he can play the song from an url if he found an online converter + player. Otherwise, after converting he should download the music somehow than play it. Link to comment
Baseplate Posted December 7, 2013 Author Share Posted December 7, 2013 Yeah, that's what I thought of too.. Link to comment
TAPL Posted December 7, 2013 Share Posted December 7, 2013 http://youtubeinmp3.com/api/ Link to comment
Baseplate Posted December 7, 2013 Author Share Posted December 7, 2013 This is my first time with fetchRemote, any small example possibility? Link to comment
Castillo Posted December 7, 2013 Share Posted December 7, 2013 I tried it, but all it does is output "Direct access denied.". function myCallback ( responseData, errno ) if ( errno == 0 ) then outputDebugString ( responseData ) end end fetchRemote ( "http://youtubeinmp3.com/fetch/?video=https://www.youtube.com/watch?v=i62Zjga8JOM", myCallback, "", false ) Link to comment
TAPL Posted December 7, 2013 Share Posted December 7, 2013 Yes it doesn't seems to be support direct access, it will need some html or php. Link to comment
spAik Posted December 8, 2013 Share Posted December 8, 2013 Yes it doesn't seems to be support direct access, it will need some html or php. owww. any ideas how to make it? is there a way to add referrer or so? Link to comment
Baseplate Posted December 8, 2013 Author Share Posted December 8, 2013 Why u no try soundcloud? Got any idea how to use soundcloud? I mean same way or? Link to comment
Spajk Posted December 8, 2013 Share Posted December 8, 2013 Yea, we would need to use a php script because we cant modify http request headers inside MTA Link to comment
.:HyPeX:. Posted December 8, 2013 Share Posted December 8, 2013 Guys, you're missing a heavy part here, you can actually download this, but you will need to do it client-sided wich is literally impossible, becouse either it would be using server's network to download the music wich it aint good.. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now