Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Announcements and Chat > General Discussion

Reply
 
Thread Tools Search this Thread Display Modes
Old 25th January 2021, 19:10   #1  |  Link
color
Registered User
 
color's Avatar
 
Join Date: May 2016
Posts: 139
MPEG-1 + ADPCM (easiest way?)

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"
__________________
Automatic Colorization

Last edited by color; 25th January 2021 at 20:19.
color is offline   Reply With Quote
Old 25th January 2021, 22:12   #2  |  Link
filler56789
SuperVirus
 
Join Date: Jun 2012
Location: Antarctic Japan
Posts: 1,132
Code:
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

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"...
filler56789 is offline   Reply With Quote
Old 25th January 2021, 22:22   #3  |  Link
Blue_MiSfit
Derek Prestegard IRL
 
Blue_MiSfit's Avatar
 
Join Date: Nov 2003
Location: Los Angeles
Posts: 5,812
If you want to stick with industry standard formats you can use MPEG-TS to store ADPCM and MPEG-1.

Code:
ffmpeg -i "file.mp4" -vcodec mpeg1video -acodec adpcm_ms -f mpegts "output_file.ts"
Lots of tweaking will be needed (input scaling, etc).
Blue_MiSfit is offline   Reply With Quote
Old 26th January 2021, 05:35   #4  |  Link
color
Registered User
 
color's Avatar
 
Join Date: May 2016
Posts: 139
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.
__________________
Automatic Colorization

Last edited by color; 26th January 2021 at 05:39.
color is offline   Reply With Quote
Old 26th January 2021, 06:12   #5  |  Link
filler56789
SuperVirus
 
Join Date: Jun 2012
Location: Antarctic Japan
Posts: 1,132
Quote:
Originally Posted by color View Post
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.
filler56789 is offline   Reply With Quote
Old 26th January 2021, 06:37   #6  |  Link
color
Registered User
 
color's Avatar
 
Join Date: May 2016
Posts: 139
Quote:
Originally Posted by filler56789 View Post
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.
__________________
Automatic Colorization

Last edited by color; 26th January 2021 at 07:59.
color is offline   Reply With Quote
Old 2nd February 2021, 14:37   #7  |  Link
foxyshadis
ангел смерти
 
foxyshadis's Avatar
 
Join Date: Nov 2004
Location: Lost
Posts: 9,565
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.
foxyshadis is offline   Reply With Quote
Reply

Tags
mpeg-1

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 00:45.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, vBulletin Solutions Inc.