• 大小: 15MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-07-04
  • 语言: 其他
  • 标签: ffmpeg  

资源简介

从零开始学习音视频编程技术(十一) FFMPEG Qt视频播放器之BUG修复

FFMPEG的版本是2.5.2
SDL的版本是2.04

记得将ffmpeg/bin目录下的dll文件拷贝到编译生成的exe所在的目录下,否则会无法运行。
1.新增暂停跳转功能

代码解释见:http://blog.yundiantech.com/?log=blog&id=22

资源截图

代码片段和文件信息


/**
 * 叶海辉
 * QQ群121376426
 * http://blog.yundiantech.com/
 */

#include 
#include 

#include “videoplayer/videoplayer.h“

#undef main
int main(int argc char *argv[])
{
    QApplication a(argc argv);

    QTextCodec *codec = QTextCodec::codecForName(“UTF-8“);
    QTextCodec::setCodecForLocale(codec);
//    QTextCodec::setCodecForCStrings(codec);
//    QTextCodec::setCodecForTr(codec);

    VideoPlayer w;
    w.show();

    return a.exec();
}


 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2017-12-07 09:20  VideoPlayer_8\
     目录           0  2017-12-07 09:09  VideoPlayer_8\ffmpeg\
     目录           0  2017-12-07 09:09  VideoPlayer_8\ffmpeg\bin\
     文件    19646464  2014-12-31 06:21  VideoPlayer_8\ffmpeg\bin\avcodec-56.dll
     文件     1367552  2014-12-31 06:21  VideoPlayer_8\ffmpeg\bin\avdevice-56.dll
     文件     2314752  2014-12-31 06:21  VideoPlayer_8\ffmpeg\bin\avfilter-5.dll
     文件     5839360  2014-12-31 06:21  VideoPlayer_8\ffmpeg\bin\avformat-56.dll
     文件      452096  2014-12-31 06:21  VideoPlayer_8\ffmpeg\bin\avutil-54.dll
     文件      324608  2014-12-31 06:21  VideoPlayer_8\ffmpeg\bin\ffmpeg.exe
     文件      475136  2014-12-31 06:21  VideoPlayer_8\ffmpeg\bin\ffplay.exe
     文件      152576  2014-12-31 06:21  VideoPlayer_8\ffmpeg\bin\ffprobe.exe
     文件      121344  2014-12-31 06:21  VideoPlayer_8\ffmpeg\bin\postproc-53.dll
     文件     1187840  2014-03-08 12:39  VideoPlayer_8\ffmpeg\bin\SDL2.dll
     文件      270336  2014-12-31 06:21  VideoPlayer_8\ffmpeg\bin\swresample-1.dll
     文件      446976  2014-12-31 06:21  VideoPlayer_8\ffmpeg\bin\swscale-3.dll
     目录           0  2017-12-07 09:09  VideoPlayer_8\ffmpeg\include\
     目录           0  2017-12-07 09:09  VideoPlayer_8\ffmpeg\include\libavcodec\
     文件      179819  2014-12-31 06:21  VideoPlayer_8\ffmpeg\include\libavcodec\avcodec.h
     文件        3111  2014-12-31 06:21  VideoPlayer_8\ffmpeg\include\libavcodec\avfft.h
     文件        3764  2014-12-31 06:21  VideoPlayer_8\ffmpeg\include\libavcodec\dv_profile.h
     文件        2358  2014-12-31 06:21  VideoPlayer_8\ffmpeg\include\libavcodec\dxva2.h
     文件       10623  2014-12-31 06:21  VideoPlayer_8\ffmpeg\include\libavcodec\old_codec_ids.h
     文件        4007  2014-12-31 06:21  VideoPlayer_8\ffmpeg\include\libavcodec\vaapi.h
     文件        5437  2014-12-31 06:21  VideoPlayer_8\ffmpeg\include\libavcodec\vda.h
     文件        7094  2014-12-31 06:21  VideoPlayer_8\ffmpeg\include\libavcodec\vdpau.h
     文件        6340  2014-12-31 06:21  VideoPlayer_8\ffmpeg\include\libavcodec\version.h
     文件        2317  2014-12-31 06:21  VideoPlayer_8\ffmpeg\include\libavcodec\vorbis_parser.h
     文件        6062  2014-12-31 06:21  VideoPlayer_8\ffmpeg\include\libavcodec\xvmc.h
     目录           0  2017-12-07 09:09  VideoPlayer_8\ffmpeg\include\libavdevice\
     文件       16642  2014-12-31 06:21  VideoPlayer_8\ffmpeg\include\libavdevice\avdevice.h
     文件        1859  2014-12-31 06:21  VideoPlayer_8\ffmpeg\include\libavdevice\version.h
............此处省略220个文件信息

评论

共有 条评论