How to get direct url of video from youtube url? [closed] - javascript

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I'm creating a bot in Discord.JS (it's a library for Node.JS) and I would like to add a music module to it. Discord.JS can play videos in formats like .wav, .mp4 etc. in voice channels. I would like to add a possibility for users to just type a YouTube url of a video to play it. Is there any possibility to get a video's url from an YouTube url by an API or any other way?

You used to be able to get it pretty easily with youtube.com/get_video?video_id=... but that was like 5+ years ago, now I think it uses some weird stream thing.
I don't think Youtube's official API lets you download videos or get a URL. Also, you should probably take a look at section 5B of the YouTube TOS
You shall not download any Content unless you see a “download” or similar link displayed by YouTube on the Service for that Content.
But anyway, one method I know is youtube-dl, but I'm pretty sure it's only for python. There seem to be a few node wrappers online though (ex.)
I've also found a node.js youtube downloader, ytdl. Last update was 9 days ago so it should probably be working fine with the current system. You should be able to use -o filename or --output filename to download it, or --print-url to get a direct video url.

You could use FFMPEG to download video and then play that file

Related

What are the steps I should take to make video difficult to be downloaded? [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 5 years ago.
Improve this question
I'm using Videojs plugin to show my videos, but there are many issues facing me like when I load video Internet Download Manager and other video downloaders grab it and there is an error appends , so I want to know how specifically make my video protected from downloading.
I have read many questions and answers for the same topic but non of them explained how to specifically do this and all answers talk about but a video link in external JavaScript file and I tried many ways to do so but it isn't working.
How to overcome this issue with Videojs video player plugin?
This question comes up a lot. You need to understand there is no difference from the servers perspective from download to play, or download to store. If you prevent somebody from download, you also prevent them from watching, which is the same as not not putting the video on the internet. You do have the option of using DRM, But its very complicated to use, and would be best if you just contacted a vendor or supplier to do it for you.

Will it be possible to do live video streaming in a webpage without using server side scripting or programming? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
Will it be possible to do live video streaming in a webpage without using server side scripting or programming?, if possible, Can anyone help me to do live video streaming in my website using jQuery or JavaScript?
No, it isn't.
You have to have something on the server to send the video stream.
Client side code can't pick up the video from the ether.
All you can do is involve video embedding from Youtube code snippet or other sites.
This won't require your own server.
This tutorial might help.
Well if you really want you probably can stream previously encoded files. However live streaming takes encoding, which might be inefficient with JS. If you can manage encoding i.e. your webcam output in realtime by some means like FFMPEG then you can use the FileReader API to pick up the encoded video content and stream it out through a socket by a worker session.

Information from ICEcast [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I have a Dutch Radio Station called FinioxFM and I would like to get information from my ICEcast server to my website. I'm using Airtime, I've searched all over the internet and I couldn't find a answer. I saw a lot op options but they were all from 2007 or 2010 and I didn't know if they would still work now. My question is how do I get this information from my ICEcast server. Or is there a simple way with Airtime? Do I use HTML, Java Script or PHP? What are my options?
Using Airtime V2.5.1 and a direct link to my stream is http://radio.finiox.com:8000/live - My website is http://www.finiox.com
Thanks for helping me out!
You're using a rather old version of Icecast, that leads to three options:
Upgrade to latest version (2.4.1) and use the JSON API. (Official packages for many distributions available at http://icecast.org/download/)
Retrofit the JSON API files (status-json.xsl and xml2json.xslt) and put them in your webroot
Write custom XSLT and access that. Some old examples are here: http://ruecker.fi/foss/icecast/xslt/
Please note that both option 2 and 3 mean that you need to do the query and inclusion on the server side. While on Icecast 2.4.1 or newer you also query that data directly from the client web browser, as Icecast supports sending CORS ACAO headers. (See default config and documentation)

How to get the RTMP & stream name from this URL? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
I am trying to get the RTMP & stream name of the top JW PLAYER that shows up When you open this link: LINK
I have tried everything but I am unable to get it, can someone please help me with this.
My ultimate goal is to be able to grab that stream and put it in my own JWPLAYER,
thank you so much!
any info would really help guys
Your above stream link is http://fw01.livem3u8.me.totiptv.com/live//7f2989e3f87e4efdb36bac56b64dca62.m3u8?bitrate=800
That is working fine right now in VLC player. But for me it was total hit and trail.
What i did for this is I'm going to explain.
Download URL Helper from www.urlhelper.com/download.htm (trail version will work fine)
Install it and run it.
Click Options >> Select and select your network adapter.
Click OK.
Then click Start at toolbar (It starts watching your network traffic).
Run the page where stream is.
In a moment URL helper will start showing you some URLs.
On the bottom click "All" See here http://s22.postimg.org/9w61m07y9/Untitled.png
Copy the URL that is NOT shown as mp3.
If you are running only one stream there will be only one address shown multiple times.
Copy that URL. That's your stream link. That you can use to run on any player(Hopefully).!
I hope this will work for you as well.

Voice chat in the browser? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
We are looking to implement a group -voice- chat in the browser using node.js on the server. Is this possible?
If you want your solution to be purely JavaScript based on both, server and client side, then you would probably have to wait for the WebRTC, Device API or media capture API and then implement node.js backend for it.
Other than that it is, I would say, a question of Flash oriented APIs on the client side (for accessing devices such as cameras or microphones) and some kind of interoperability with node.js backend in case you don't want to take advantage of Flash Media Server or Red5.
I'm researching and working on the same problem.
This is my proposed stack:-
capturing voice on the client
https://github.com/jiehanzheng/Recorderjs/blob/master/README.md
encoding the captured speech so that it can be shared via Node
https://github.com/jpemartins/speex.js
sharing voice data with multiple users
node.js and socket.io
Somebody wrote a THESIS on this. good read but some missing code in the samples
http://pure.ltu.se/portal/files/36285511/LTU-EX-2012-36247736.pdf
relevant question on so. in particular look at answer by sirjamm
How to Call SPEEX Audio Decode/Encode in HTML5 / JavaScript (Without Flash)
If I get it working, will post the github ref here.
hth

Categories

Resources