本程序实现转码一个普通视频文件为视频mpeg4,音频mp3的功能
#include <avcodec.h>
#include <avformat.h>
#include <stdio.h>
#include <avutil.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
main(int argc,char **argv)
{
const char *input_file_name="/root/movies/ddh1.mpg";
av_register_all();//注册库中所有可用的文件格式和编码器
AV...
视频阅读全文
实现方法:
1.下载 flvplayer.swf 播放器:http://www.hzlzh.com/up/flvplayer.swf
2.把播放器放到 当前使用主题目录? 即 wp-content/theme/****;
3.在主题的 functions.php 中添加如下代码即可;
/**FLV player */
function flvplayer($atts, $content=null){
extract(shortcode_atts(array("width"=>'460',"height"=>'330'),$atts));
return '<embed width="'.$width.'" height=".$height." type="application/...
WP相关, 短代码, 视频阅读全文