There is a way to force YouTube videos embedded in a website to play back at HD quality, simply by adding some lines to the embed code (?feature=player_detailpage&VQ=HD720). For additional details see here.
However, I have searched extensively for a way to do this with Facebook videos embedded in a website and have had no luck. Does anyone know of a way to accomplish this? Is there a line of code or a parameter I can add to Facebook's embed code to force an embedded video to play back in HD quality?
Am I missing something in the advanced documentation for Facebook's embedded video player or their video player API?
Well, I may have determined the answer. After reviewing some old guidelines that Facebook used to have, as well as their current recommendations for high quality videos, I began rendering my videos with the following settings:
H.264 Codec
Progressive
VBR, 2 pass
Target bit rate = 5
Max bit rate =10
Frame size = 1920 x 1080
Frame rate = 29.97fps
AAC, 192 kbps
44.1 Hz, Stereo
Once I render my videos with the settings above, Facebook appears to create several versions (240p, 360p, 480p, 720p, and 1080p) and then serves up the best file depending on the viewer's internet connection. This is true when the video is played on Facebook.com and when the video is embedded on a website.
The videos I've been uploading only get a handful of views, but at least they're at the best quality. Can anyone else confirm if these render settings are working for them as well?
Related
I want to download video from youtube. Then the downloaded video should saved and user can also play it in offline mode and user can also trim or edit that downloaded video.
I have searched a lot on Google and i find some answers but they didn't satisfy my question.
This question tell downloading video from youtube may reject your application is this true?
The screen shot from apple. YouTube Terms & Condition are also not allowing to download videos. Read section 5-B.
I have also try to load some examples for video downloading from youtube but they all failed for loading video MyTube , YouTube , SCBTube , PSYouTubeExtractor
Some questions related to youtube download. and for video trimming or cutting i am following this code .
is this downloading is possible or not ?
Downloading is, in some cases, possible, but it's against the YouTube T&Cs...so yeah, don't do it. Furthermore, even if you did implement this not all videos on YouTube are actually available in the appropriate H.264 format (e.g, videos which require advertising or content protection are often not available).
I want to play youtube video with a certain resolution, like 360p
and capture the packets, and then extract the video from the packets
and then I want to analyzing/retrieving flash/html5 video information/metadata from these videos
BTW, are videos still with the same resolution when they are extracted from the captured packets?
note that these videos may not be complete
are there any good tools for analyzing/retrieving flash/html5 video information/metadata
like video bit rate, video resolution(like 360p, 480p), used audio/video codecs, video size and duration/duration
if the video is not complete, the information would ideally include the original video size, the actual video size, the original video length/duration and the actual video length/duration
I hope it is a script, if it is a tool. I hope it can be run through shell using command line coz I want automation.
A paper says perl could do this, but I don't how
thanks!
(long comment, not a complete answer)
IANAL, but your goals may not fit the YouTube Terms of Service:
Section 4. C
You agree not to access Content through any technology or means other than the video playback pages of the Service itself, the Embeddable Player, or other explicitly authorized means YouTube may designate.
Section 4. H
You agree not to use or launch any automated system, including without limitation, "robots," "spiders," or "offline readers," that […] sends more request messages to the YouTube servers […] than a human can reasonably produce in the same period by using a conventional on-line web browser. Notwithstanding the foregoing, YouTube grants the operators of public search engines permission to use spiders to copy materials from the site for the sole purpose of and solely to the extent necessary for creating publicly available searchable indices of the materials, but not caches or archives of such materials. […]
You may be able to access the required information directly using the YouTube Data API. Here is a reference, and here is a list of directly supported programming languages. Perl will work as well, as the underlying data format is plain XML or JSON.
You might also find these SO questions YouTube Player API: How to get duration of a loaded/cued video without playing it? and Youtube API get video duration from the XML enlightening.
I have a stock trading membership website, on which I put up stock videos on stock trading days. Currently, I have them in .swf and I am quiet happy with what I offer. Lately, my members are asking for availability on iPhone / iPad too, which means, I have to convert or upload new videos in one of the universally accepted formats, i.e., .mp4. I have tested few settings with the video conversion, but, up to, 640 x 480 resolution worked well on iPhone / iPad but for web viewing, it was disaster. I usually offer videos in 980 x 620 size. I changed the size to 800 x 600 and it was Okay for web, but iPhone / iPad din't do well. I am using JWPlayer for the test.
I want to ask, what format of the video should I use, which will work for all platforms. I want to keep the video size down, and as well 1 file for all platforms. Is there anything that I can do to achieve this?
Will be very thankful if someone helps me out on this.
Thanks!
I don't think this is really a code related issue but since I'm here:
Definitely use mp4 it works on all your desired platforms.
Definately stick with JWPlayer, I use it to stream to web and iPhone.
To keep the "file size down" and if you are encoding offline use handbrake http://handbrake.fr/
Using that software you will see some pre-sets for iDevices including iPhone and iPod mp4 / m4v file output. A new version of the software has just been released so it may include a pre-set for iPad too.
Personally I have a pre-set that is 720x400 which runs on iPod touch 2ndGen and iPhone very well.
Unfortunately one file does not suit all your target platforms. However, with JWPlayer you are able set it up with bitrate switching such that the best possible version of the different video files is delivered to the target platform:
http://www.longtailvideo.com/support/jw-player/jw-player-for-flash-v4/27/bitrate-switching
The JWPlayer will also deliver to Flash and HTML5 enabled browsers.
I have a lot of videos I would like to embed into an app, and am currently just streaming them using an UIWebView browser I set up.
I know there are formats available to email videos, where videos can be like 6 mb or less.
What is the best way to do this for an iphone app.
Keeping the quality of the picture to some extent with smaller file sizes.
thanks
The file format (or container) is not the one who gives the file size, but the bitrate of the video stream, when compressing. Since you're going to use these for an iPhone app, I would go with .mov since it's Apple's proprietary format.
As for compression, it isn't really a topic that can be explained in one post, but long story short, the bitrate must be chosen according to the resolution of the video that's being compressed. Go for an h264 multi-pass encoding, and start with a bitrate of 1000 kbps and see if you're satisfied with the results, and keep pushing the bitrate lower and lower, until you get the most satisfying results with the lowest file size. It's really just a matter of fining the right balance, so it's going to take a few tries.
For audio, use AAC with a sample rate of 44.1 KHz and a bitrate of 128kbps if there is music in the audio, or a sample rate of 32KHz and a bitrate of 96kbps which is pretty decent for when there's only voice/narration, or even lower, as long as you're happy with the results.
I explained this process in an answer for a similar question - you can read it here.
Hope this helps ! :)
I'm building some YouTube search functionality into an iPhone app and want to ensure that I only receive results that will be playable on the device. According to the Searching for videos section in the API reference doc this seems to be relatively straightforward:
The format parameter specifies that videos must be available in a particular video format. Your request can specify any of the following formats:
I've tried setting "format=1" to limit to:
RTSP streaming URL for mobile video playback. H.263 video (up to 176x144) and AMR audio.
This provides a high proportion of playable videos but some are still unplayable and I'm worried that it's not returning others that would be playable.
When I leave the format field blank I receive an even higher proportion of non-streamable URLs.
This does not sound appropriate. My understanding is that iPhone does not stream RTSP rather it supports Apple's HTTP Streaming of segmented files for live and HTTP streaming of MPEG4 video files via range requests. I'd also expect the video to be H.264 and AAC audio.
Your setting sounds appropriate for low-end cellphones In particular, the 176x144 is a QCIF resolution commonly used on non-smartphones.
When you look at the XML file returned by a call to
http://gdata.youtube.com/feeds/api/videos/<your video id>
then you will notice that videos which are not playable on the iPhone will have the following tag:
<yt:state name='restricted' reasonCode='limitedSyndication'>Syndication of this video was restricted by its owner.</yt:state>
Just make sure to look for the above tag and ignore the video if the tag is present.