fe77e7716fb426c4509b2efac883e290562b89ce
Play MPEG files on a Sega Dreamcast
Just experimenting to see if I can play MPEG files. There are still a lot of issues though, like no sound or a lot of stutter.
You can also check Ian's implementaton here: https://github.com/ianmicheal/pl_mpegDC
Build instructions
- Follow the instructions here to install the dependencies: https://dreamcast.wiki/Getting_Started_with_Dreamcast_development
- Also build and optionally install
mkdcdiscglobally: https://dreamcast.wiki/Getting_Started_with_Dreamcast_development#Burning_an_example_program_to_CD-R - Remember to run
. /opt/toolchains/dc/kos/environ.shand. /opt/toolchains/dc/kos/environ_dreamcast.shto set up the necessary env variables - Place your MPEG file in the
cd_rootfolder and name itVIDEO.MPG make- mkdcdisc -e main.elf -o any_name.cdi -n "ANY NAME" -D cd_root/
Converting an MP4 file to MPEG
ffmpeg -i bad-apple.mp4 -vf "scale=320:240,format=yuv420p" -c:v mpeg1video -b:v 600k -r 30 -c:a mp2 -ar 22050 -ac 2 -b:a 64k VIDEO.MPG
Disclaimer
A lot of the code here was written by AI (sorry, I'm still not that good at C or Dreamcast homebrew). Though, a lot of manual work still went into this to correct the AI's mistakes.
Description
Languages
C
99.7%
Makefile
0.3%