ringcrl / ffavc

A video decoder built on ffmpeg which allows libpag to use ffmpeg as its software decoder for h264 decoding.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ffavc

ffavc is a video decoder built on ffmpeg which allows libpag to use ffmpeg as its software decoder for h264 decoding.

Build ffmpeg

First, make sure you have built the ffmpeg vendor libraries.

Windows platform

1.Install Visual Studio 2019.

2.Install mysy2

3.Install some dependencies

pacman -S make gcc diffutils mingw-w64-{i686,x86_64}-pkg-config mingw-w64-i686-nasm mingw-w64-i686-yasm

4.Rename msys64/usr/bin/link.exe to msys64/usr/bin/link.bak, to avoid conflict with MSVC's link.exe

  1. Run "VS2019 x86 Native Tools Command Prompt" (Run "VS2019 x86_x64 Native Tools Command Prompt" for 64-bit.)

  2. Go to the mingw installation directory and run, (usually located in C:\workspace\windows\msys64):

msys2_shell.cmd -mingw32 -use-full-path (-mingw64 for 64-bit)
  1. Finally, go to the root directory of ffavc project, run:
build_ffmpeg.sh

Web platform

  1. Go to the root directory of ffavc project, run:
build_ffmpeg.sh
  1. Go to the root directory of web/script directory, run:
build.sh

Other platforms

Go to the root directory of ffavc project, run:

build_ffmpeg.sh

The script will generate ffmpeg libraries to vendor/ffmpeg directory.

Build ffavc

After ffmpeg libraries are built, you can open this project by CLion to build, or simply build it with the cmake command-line tool.

About

A video decoder built on ffmpeg which allows libpag to use ffmpeg as its software decoder for h264 decoding.

License:GNU Lesser General Public License v2.1


Languages

Language:Objective-C 69.4%Language:C++ 7.8%Language:Shell 6.9%Language:C 3.9%Language:TypeScript 3.6%Language:Java 2.2%Language:CMake 2.0%Language:JavaScript 1.8%Language:Ruby 1.2%Language:Objective-C++ 0.8%Language:HTML 0.3%