Can I separate audio layer and video from YouTube and add only audio to my website? I want to create app like spotify but I want to play music for example from YouTube
Use YouTube-dl to download the audio streams. You could probably stream them too in real time if you were fancy.
Related
I want to use the Web Audio API AnalyserNode without access to an MP3 source file. I'd like to just analyze the sound playing from the browser. Is that possible?
I want to play local video by web browser with js. Normally, it would be solved with html5 video tag. but the video was too big, ram couldn't contain it. So I decided to streaming local video file on browser not through server. I search it and I found that mediasource API able to do that, but I failed play my video. I search again more then I found video segments(initialization segments and media segments) form needed. but I couldn't find the way how to make it.
how can make video segments by js?
Is there any kind of api support to make it?
please not just about mp4box. mp4box is just for mp4 type. I want play every type of video that supported in video tag.
Is there a way to access audio track from YouTube video using Web Audio API?
Is there a way to load parts or whole YouTube video using <audio> or <video> tags?
i dont think so - you are able to embed videos via <iframe>, but there is no option to extract and embed music out of youtube videos.
does anyone know if is it possible to render an audio waveform from a video playing in a youtube player using Javascript?
Thank you!
On the client side, it's not possible to isolate the audio from the video data.
You would need to get the raw audio data to be able to then process it with the WebAudio API (e.g. display it).
There are some server-side solutions (extracting audio from video, sending it back etc.), but that's not legal, as it's written in the TOS of youtube:
(https://developers.google.com/youtube/terms?hl=fr)
You are not allowed to:
separate, isolate, or modify the audio or video components of any YouTube >audiovisual content made available through the YouTube API;
promote separately the audio or video components of any YouTube audiovisual >content made available through the YouTube API;
See this questions for more details:
Is there a Youtube API that gives only audio?
The idea is to have multiple audio files streaming on a website and to set each audio stream
to separate audio channels. Alternatively, the audio could come from separate web pages, and even separate windows, and then filtered to separate audio channels.
As I understand it, audio coming from anywhere in the browser is streamed through audio channels 1 (left) and 2(right). The advantage of audio sources being streamed on different channels is the ability to access that sound data independently for further manipulation.
How can this be accomplished?
Check this tutorial about creating positional audio with Web Audio API
http://www.html5rocks.com/en/tutorials/webaudio/positional_audio/
Web Audio API has required low level audio functions to mix audio channels freely.