In a PHP system, my client suggested to download videos AND MAINLY captions from YouTube using the following tools:
cclive
gcap
As I have never heard of these before, my question is does anyone have any experience with them? Both projects seem to be inactive for like one year or so... Do they still work?
Is it possible to download captions for any YT video with them? I have stumbled upon some YT API info that the captions are not available for unauthorized users (i.e. you can only get your own captions if you are authorized with the API)?
Caption tracks can only be accessed via the Data API by the authorized owner of a given video.
The official YouTube Players can access caption data, but they use a different mechanism for accessing that data which is not part of a public API.
Related
I have requirement where I need to provide ui to my website users to upload video's on one common channel , Can anyone know, how can I implement it ?
I googled on it but get no result
I know all about You tube Data Api v3 and implemented it, but don't know how to implement it for my website such that all users can add their videos on my own channel.
I get blocked at authentication page because after login each user can add video on their own channel
What you want to do is only possible with YouTube Direct Lite. Basically user's will upload to their own channel but videos will be submitted to your playlist.
I'm putting together an application in facebook, part of which requires a user to input a bunch of information into a form, including a video and a number of text fields.
For my application, I'm using a combination of HTML, PHP, mySQL and Javascript.
I want to be able to upload the users video file to facebook using the PHP SDK in the same page as I am inserting their info into my database. I want something similiar to the photo solution here: Exception when uploading photo with Facebook Graph API. But I'm not sure what the array key should be for the video itself.
Can any give me any ideas?
My apologies,
I realized that the solution I linked to works. However, you have to give facebook time to process the video, otherwise the graph api replies false.
What I want to do is, to show uploaded videos list of my youtube channel to website's visitors.
Something like that. (Image take from youtube channel, I want to show exactly this way)
Don't want to create iframe. Can I fetch data from channels exact page with PHP or something else? I have no idea if it's possible with youtube api. Any suggestions?
Yes you can. The videos on a channel are essentially a user's so using the YouTube GData API you can make a call to http://gdata.youtube.com/feeds/api/videos?author=ahmednuaman (my videos for example).
I am working on a video listing website which uses JW Player and its plugins. Embed code of the video can be placed anywhere in the web but we need to track which video plays in which site and its count of views and plays.
We are using Google Analytics Pro plugin for JW Player to track the traffic. But is there any way for me to track the report to
See all the sites that the player is embedded on to see how many people played the video from that site
How many plays are done for each video from from these sites
Exactly which videos are played
Currently we are using following code inside JW Player
s1.addVariable('gapro.accountid', 'UA-21590286-1');
//alert(this.data.captions[this.slide])
s1.addVariable("gapro.trackstarts","true");
s1.addVariable("gapro.trackpercentage","true");
s1.addVariable("gapro.tracktime","true");
s1.addVariable("gapro.idstring","||Channel Name||-||Story Name||");
Following is a sample embed code for playing a video..
Thanks in advance for the support.
Best Regards
Deepu S Nath
The JW GA plug-in should report which site is hosting the player in the Hostname parameter.
1/ Check that when you play a video on your player embedded on a site, a GIF request is sent to google-analytics.com :
http://www.google-analytics.com/__utm.gif?
utmwv=4.9.2&utms=2&utmn=1209321314&
utmhn=www.longtailvideo.com&utmt=event&
utme=5(Video%20Plays*http%3A%2F%2Fcontent.longtailvideo.com%2Fvideos%2Fbunny.flv*
http%3A%2F%2Fwww.longtailvideo.com%2Faddons%2Fplugins%2F107%2Fget-examples.html%3Faddon%3D107%26vid%3D292%26q%3D)
(I have truncated the request which should be much longer).
2/ Confirm that the utmhn value reported is the hostname of the site where the player is hosted. It looks like the JW player plug in reports the Video Play as an Event where the Category is Play, Action is the file source URL and Label is the URL where the video is played.
3/ In Google Analytics, look for a report displaying Event Labels by Hostnames (or create it using a custom report). You should use a filter to view only Event Label = "Video Plays".
This should show you how many plays you had from each site. You can use similar reports to view which video were player from each site (using Event Action).
On a final note, I do not think that the JW player is tracking 'Load' events - when the player is loaded, so you won't see if a player was loaded but no video played. You can confirm by checking if a GIF request is sent when the player is loaded.
I just found that there is no direct solution for my requirement using the google pro plugin.. Instead we implemented a custom solution as follows..
Created a custom Tracker which uses the google analytics APIs directly instead of "Google Analytics Pro" plugin. For that I have Utilized the JWplayer API to interact with the video player and get the video related data and it was be passed to the Google Analytics API. Later in the Google Analytics account, created a custom report with the required metrics and dimensions.. This helped me to get all the tracking details and create the required report. :) I really appreciate the support I got from Antoine which helped me to understand some basics and move towards a solution.
I just checked your site and found that the embed code consists of iFrame and this is the reason why you are unable to track the hostname at which the embed video gets played.As you are using iframes in the embed video code, you wont be able to track the site details were the video is embedded. You always get storybridge.tv as the site url. (iFrame do not support cross domain interaction)
To avoid this problem we have to use tag (Similar to old Youtube Embed Code) which will help the plugin to get the details of the site at which video is played.
I am developing a website, where I am allowing users to upload videos, but if the members numbers keep on increasing and they keep on uploading more videos it will be expensive for me. So I want to upload the movies to youtube instead, is this possible?
By viewing some other posts here, I am thinking it is possible?
You need Youtube API to upload the videos with PHP.
There are some ready scripts you can use to upload to youtube, the one that deserves mention here is:
PHPTube
More Resources
Use the YouTube API with PHP
YouTube Uploader
In addition to Sarfraz's links you also have the Services_YouTube PEAR package and the Zend_Gdata_YouTube class. They are both very well documented.