Giter Site home page Giter Site logo

debugly / ffmpegtutorial Goto Github PK

View Code? Open in Web Editor NEW
295.0 7.0 61.0 249.66 MB

FFmpeg step by step tutorials for iOS/macOS developer. (适合零基础的 iOS/macOS 开发者学习FFmpeg API 和音视频渲染技术。演示了 OpenGL 和 Metal 等多种视频渲染方式,以及使用 AudioUnit 和 AudioQueue 渲染不同格式的音频。)

License: MIT License

Objective-C 90.86% Ruby 0.57% C 2.42% GLSL 3.28% Metal 2.37% Shell 0.51%
ffmpeg ios videoplayer macos metal ffmpeg-player opengl opengles tutorial audioqueue audiounits yuv yuv2rgb learn-ffmpeg

ffmpegtutorial's Issues

'libswscale/swscale.h' file not found

'libavutil/version.h' file not found 'libswscale/swscale.h' file not found 'libavutil/frame.h' file not found 我pod install三次 直接下载和git clone 都是这个问题,找不到这三个头文件 以前的issues也看了 没看出怎么解决

怎么支持https啊?

播放https报错没有ssl “https protocol not found, recompile FFmpeg with openssl, gnutls or securetransport enabled.”

有带ssl的 MRFFmpeg.podspec 吗?

1.1.1h 版本好像只支持mac。。。

新人求助,为什么找不到头文件 #import <FFmpegTutorial/FFVersionHelper.h>

#import <FFmpegTutorial/FFVersionHelper.h>这里提示找不到,pod我也安装了啊
qidong@bogon FFmpegTutorial-master % pod install --project-directory=Example/iOS
will install MRFFmpeg3.4.7
Analyzing dependencies
Downloading dependencies
Generating Pods project
Integrating client project
Pod installation complete! There are 3 dependencies from the Podfile and 3 total pods installed.

pod 失败

pod 失败

zyding4:FFmpegTutorial admin$ pod install --project-directory=Example/iOS
will install MRFFmpeg4.3
Analyzing dependencies
[!] Failed to load 'FFmpegTutorial' podspec: 
[!] Invalid `FFmpegTutorial.podspec` file: undefined local variable or method `podspec' for Pod:Module.

 #  from /Users/admin/Documents/Github/FFmpegTutorial/FFmpegTutorial.podspec:122
 #  -------------------------------------------
 #  
 >    s.dependency 'MRFFmpegPod', podspec => "https://ifoxdev.hd.sohu.com/ffpods/MRFFmpeg4.3.podspec"
 #    
 #  -------------------------------------------

这句代码是不是差个冒号.? s.dependency 'MRFFmpegPod', podspecpodspec 的前面。

但是我加了也不行。

zyding4:FFmpegTutorial admin$ pod install --project-directory=Example/iOS
will install MRFFmpeg4.3
Analyzing dependencies
[!] Failed to load 'FFmpegTutorial' podspec: 
[!] Invalid `FFmpegTutorial.podspec` file: [!] Unsupported version requirements. [{:podspec=>"https://ifoxdev.hd.sohu.com/ffpods/MRFFmpeg4.3.podspec"}] is not valid..

 #  from /Users/admin/Documents/Github/FFmpegTutorial/FFmpegTutorial.podspec:122
 #  -------------------------------------------
 #  
 >    s.dependency 'MRFFmpegPod', :podspec => "https://ifoxdev.hd.sohu.com/ffpods/MRFFmpeg4.3.podspec"
 #    
 #  -------------------------------------------

麻烦能不能指点下,是不是我 pod 有问题

内存问题

相比上一篇 USEBITMAP 0 时的情况,是省去了把 CIImage 转 CGImageRef,再把 CGImageRef 转成 UIImage 的过程!我觉得性能上会好些,没想到的是 fps,CPU,GPU 都降了,内存增加了近两倍!这是什么鬼?
这里您清楚为什么内存和CPU都增加了吗?我现在和您遇到相同的疑问。

macos 报错

'libavutil/version.h' file not found
./download-vendor.sh macos release 也无法下载依赖库

pod 失败,需要修改podfile

use_frameworks!

platform :osx, '10.11'

target 'FFmpegTutorial-macOS' do
  pod 'FFmpegTutorial',:path => '../../'
end

pre_install do |installer|
  puts `../../download-vendor.sh macos 0.10.1-230831144049-ijk`
end

如上,PodFile文件只有一个打印puts,没执行 sh文件。把它改成下面这样,就可以执行pod install了。

pre_install do |installer|
  podfile_path = File.dirname(File.realpath(__FILE__))
  script_relative_path = "../../download-vendor.sh"
  script_full_path = File.expand_path(script_relative_path, podfile_path)
  system("sh #{script_full_path} ios 0.10.1-230831144049-ijk")
end

How to execute ffmpeg commands in ios app?

I successfully compiled latest version of ffmpef v4.1 in my ios app but i don't know how to execute ffmpeg commands on local video file?

Suppose i want to convert local mkv video file(located inside ios app) to mp4 file then how can i execute commands using ffmpeg in swift or objective c?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.