Giter VIP home page Giter VIP logo

dranger-ffmpeg-updated's Introduction

An ffmpeg and SDL Tutorial or How to Write a Video Player in Less Than 1000 Lines

The original version including explanations can be found here.

UPDATED 2020-2022 source files

This repo contains build information on Windows as well as the updated and commented source files for the amazing tutorial by dranger, which is based on previous work by Martin Bohme and FFplay code examples that are part of FFmpeg. Some parts of the code were adapted from ffmpeg-video-player.

The files were tested to work with ffmpeg-4.3.1 and SDL2-2.0.12 using mingw as well as with ffmpeg-5.1.2 (you can use the prebuilt version for Windows ffmpeg-5.1.2-full_build-shared.(7z|zip)) and SDL2-2.24.1 (use SDL2-devel-2.24.1-VC.zip) with cl.exe distributed with VS2022.

Build information

See build_info.txt on how to build the source files, which includes a very short outline of how to build ffmpeg using mingw. For the VC builds you can use build_vc.bat tut01.c, which expects the ffmpeg header files in ffmpeg-5.1.2-full_build-shared\include and SDL2 headers in SDL2-2.24.1\include. Libs are assumed to be in ffmpeg-5.1.2-full_build-shared\lib and SDL2-2.24.1\lib\x64. Since the ffmpeg libs are not completely static, you can then use run_with_dll_path.bat tut01.exe to add the ffmpeg DLL location at ffmpeg-5.1.2-full_build-shared\bin to the PATH and then run the file.

dranger-ffmpeg-updated's People

Contributors

omgitsmoe avatar

Stargazers

 avatar

Watchers

 avatar

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.