View Full Version : MPEG-1 + ADPCM (easiest way?)
color
25th January 2021, 19:10
I am trying to redo a video for a project. For this i need a video to be mpeg-1 video and adpcm as audio. I was thinking on virtualdub, but I can't figure out what codec to se and how to change the audio (i only got the "pcm", ont know how to add other audio codecs).
Is there other programs that could do this? (Free would be best)
I do have ffmpeg. But I don't know how to get the right codec for video and audio to work.
Is this right?
ffmpeg -i "file.mp4" -vcodec mpeg1video -acodec adpcm_ms "output_file.mpeg"
filler56789
25th January 2021, 22:12
ffmpeg -i "file.mp4" -vcodec mpeg1video -acodec adpcm_ms "output_file.mpeg"
AFAIK the program stream container does not support ADPCM.
Probably you'll have to go the Matroska way.
Are you using Windows 10?
I use Windows 7 and AFAIR I didn't have to install ADPCM, Cinepak and some other ancient codecs :confused:
ffmpeg has an ADPCM compressor. As for its MPEG-1 encoder, I'm afraid you'll have to tweak the bitrate and the quantization matrices according to the video resolution, because MPEG-1 does not imply "Video-CD quality"...
Blue_MiSfit
25th January 2021, 22:22
If you want to stick with industry standard formats you can use MPEG-TS to store ADPCM and MPEG-1.
ffmpeg -i "file.mp4" -vcodec mpeg1video -acodec adpcm_ms -f mpegts "output_file.ts"
Lots of tweaking will be needed (input scaling, etc).
color
26th January 2021, 05:35
filler56789, I use Windows 10, 64-bit. I'm trying to create a PSX video-file. *.CPK (or a *.RPL, but it seems impossible). Just got to know that MPEG-1 video with ADPCM audio would work. But the problem is to create something. I don't know if MKV works, I don't know if its similar container?
Blue_MiSfit, that didn't work. It says that a 15fps is to low, however it does work with doubble the fps.
The video file is 640x480px, 15 fps.
filler56789
26th January 2021, 06:12
it says that a 15fps is to low, however it does work with doubble the fps.
The video file is 640x480px, 15 fps.
That's right, the minimum framerate for both MPEG-1 and MPEG-2 video is 23.976 fps, so a framerate conversion will be inevitable.
color
26th January 2021, 06:37
That's right, the minimum framerate for both MPEG-1 and MPEG-2 video is 23.976 fps, so a framerate conversion will be inevitable.
I did however found this, but it seems like they use another encoder?
http://www.psxdev.net/forum/viewtopic.php?t=277
I do get the video-file to work with only the video, but not the merged on with the audio.
foxyshadis
2nd February 2021, 14:37
You're going to run into problems, just like in that forum thread, because STR isn't MPEG-1, it's just mostly MPEG-1, so you'll inevitably get corruption if you don't use a purpose-built encoder; worse, some games modified the format in their own ways. One of the most immediate differences is that STR is column-major, not row-major, and 10-bit, which completely changes the stream. And the container is completely different, it's based on burning headers into the CD itself rather than being contained in a file alone.
Sadly, there was a remaster project a while back that never released its source, like most emulation projects.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.