Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to play MP4 videos from Youtube?

I need to play videos from Youtube as MP4.

My system (an Android Phone) does not support Flash.

It can play MP4 videos.

So I'm thinking of creating a web page that plays videos from Youtube.

I need to get MP4 videos to play in my page.

What approaches are there?

like image 981
Abi Avatar asked Jan 20 '11 04:01

Abi


People also ask

Can I play MP4 on YouTube?

According to YouTube, the recommended video format is the . MP4 file type. To display your videos at the highest quality possible, YouTube also recommends using the h. 264 video codec and a standard aspect ratio of 16:9.

How do I play MP4 videos?

On a PC running Windows 10, select Start > File Explorer, or select File Explorer from the taskbar. Press and hold (or right-click) the MP4 file you want to play, select Open with, and then choose your preferred file player from the list of applications.

Why MP4 videos are not playing?

Reason 1: The media player you are using is not compatible with the format. Reason 2: There could be a codec issue. Reason 3: The MP4 file that you have downloaded could be broken. These are the most common reasons why you may end up looking for how to fix corrupt video files MP4 solutions.

How do I rip an MP4 from YouTube?

Choose any YouTube downloader app, such as Free YouTube Downloader, YTD Video Downloader, Y2Mate, SaveFrom.net, etc. Once the video is downloaded, launch Stellar Converter for Audio Video on your PC or Mac. Add the YouTube video file saved on your computer. Select MP4 as output format and click on Convert.


2 Answers

Take a look at this related question, where the OP has figured out a hacky way to get the necessary ID and checksum parameters for the get_video "API". Streaming Youtube Videos

He successfully played back the stream in the VideoView component. You can use the fmt parameter for choosing which format you want, see wikipedia for a list: http://en.wikipedia.org/wiki/YouTube#Quality_and_codecs

Good luck.

like image 103
Junibert Avatar answered Sep 28 '22 07:09

Junibert


Did you actually try viewing videos? I have the Droid Eris, which shipped with a YouTube app. Try going to the mobile version of YouTube and see if that works out.

Google created Android. Google owns YouTube. Transitivity says you shouldn't have any problems.

like image 27
Andrew Avatar answered Sep 28 '22 07:09

Andrew