- Install GreaseMonkey
- Install this script: http://userscripts.org/scripts/show/103788
Tag Archives: video
FFMPEG – Generate Thumbnail from FLV
ffmpeg -i video.flv -an -ss 00:00:03 -an -r 1 -vframes 1 -y thumbnail.jpg
the options are as follow:
-i input file
-an Disable audio recording
-ss seek to (in this case second 3 to avoid black frame at start)
-vframes number of frame to get
-y overwrite output file
PHP – Get Youtube Video Title (based on supplied Video ID)
<?php
$video_id = ’48J_DIZBNyE’;
$content = file_get_contents(“http://youtube.com/get_video_info?video_id=” . $video_id);
parse_str($content, $ytarr);
echo $ytarr[‘title’] . ‘<hr>’ ; // title
?>
update:
you can also use this way
<?php
$video_id = ’48J_DIZBNyE’;
$video_info = simplexml_load_file(‘http://gdata.youtube.com/feeds/api/videos/’.$video_id.’?v=1′);
echo $video_info->title . ‘<hr>’; // title
echo $video_info->content; // description
?>