Skip to content

Latest commit

 

History

History
43 lines (30 loc) · 971 Bytes

README.md

File metadata and controls

43 lines (30 loc) · 971 Bytes

Little Player v0.2.0


Goal

Project for learning FFmpeg with C++.

Feature

Read file and play.

Run

  1. compile code to littlePlayer.exe
  2. run: ./littlePlayer.exe /path/to/target/xxx.mp4

for test

  • 修改CMakeLists.txt的add_executable部分,把test路径下的cpp文件加入
  • main.cpp, 修改main方法,使其调用test路径下的runTest.cpp
  • testPlayVideo 仅播放视频,根据自己的路径,修改inputPath
  • testPlayAudio 仅播放音频,根据自己的路径,修改inputPath

Constraint

  1. FFmpeg latest API
  2. Easy API
  3. SDL2
  4. C++11
  5. Video only
  6. CMake
  7. Audio some day?

Steps

  • Read media file and transfer it to pixel format file.
  • Play pixel format file using ffplay.
  • Read pixel format file and draw data on SDL.
  • Read media file and draw picture using SDL.
  • Read mp3 file and play it.
  • Play video with audio.
  • play file with audio only or video only.