Dreamcast 4XM video testing

General Dreamcast discussion applies here. Before posting here please check the other forums in the Dreamcast section to see if your topic would fit better in those categories.

Moderators: pcwzrd13, mazonemayu

Forum rules
Please check the other forums in the Dreamcast section before posting here to see if your topic would fit better in those categories. Example: A new game/homebrew release would go in the New Releases/Homebrew/Emulation section: http://dreamcast-talk.com/forum/viewforum.php?f=5 or if you're having an issue with getting your Dreamcast to work or a game to boot it would go in the Support section: http://dreamcast-talk.com/forum/viewforum.php?f=42
SMiTH
Black Mesa
Posts: 1492

Dreamcast 4XM video testing

Post#1 » Fri Oct 08, 2021 7:21 pm

4xm seems to be a very good video player for dreamcast allowing dvd quality playback.
The drawback is that 4xm encoding takes forever and the file size of a .4xm after converting is large.
But, it is an interesting format.

https://wiki.multimedia.cx/index.php/4xm_Format

----

Selfboot Script v4:

If any1 wants to test the 4xm player that is included on one of the DreamOn disks..
I made a quick batch script to create a selfboot .cdi

viewtopic.php?f=2&p=167025#p167005

----

4XM Video Player:

Ian Micheal wrote:Sm player plays 4xm files dreamcast encoded with sound and shows file info it's a start traced this from 2003 post about ffmpeg

https://www.smplayer.info/


----

4XM Tools/Docs Etc:
4XM Encoder/Compression & More:

check MoeFoh's attachment below.. (ian_4xm[tools]Movie.rar)

----

4XM details for playing video on dreamcast:

Here is the mediainfo details of matrix4xm.mp4 (decoded from source matrix.4xm)

Overall bit rate: 1052

Video: 916kbps, 640x368 (1.739), at 25.000 fps, AVC (High 4:4:4 Predictive@L3)(CABAC/4 Ref Frames)

Audio: 128kbps, 44.1Khz, 2 channels, AAC(LC)

----

4xm codec:
https://www.ffmpeg.org/~michael/4xm.html
https://github.com/intel/ffmpeg_libyami ... odec/4xm.c
https://gfiber.googlesource.com/vendor/ ... rmat/4xm.c
https://code.soundsoftware.ac.uk/projec ... xm_8c.html
https://stuff.mit.edu/afs/sipb/project/ ... odec/4xm.c
https://stuff.mit.edu/afs/sipb/project/ ... codec/sh4/

list of games that use 4xm format:
https://www.mobygames.com/game-group/mi ... e-4x-movie

4xm samples:
https://samples.mplayerhq.hu/game-formats/4xm/

----

Ian Micheal wrote:Ok we can use ffmpeg to decode 4xm files like matrix or others with

Code: Select all

ffmpeg -i Ducati.4xm  intro.mp4


this will help to see what the real stats are to help with encoding

Code: Select all

Guessed Channel Layout for Input Stream #0.1 : stereo
Input #0, 4xm, from 'VIDEO.4XM':
  Duration: 00:08:10.64, start: 0.000000, bitrate: 1411 kb/s
    Stream #0:0: Video: 4xm, rgb565le, 640x368, 25 tbr, 25 tbn, 25 tbc
    Stream #0:1: Audio: adpcm_4xm, 44100 Hz, stereo, s16p, 1411 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (4xm (native) -> mpeg1video (native))
  Stream #0:1 -> #0:1 (adpcm_4xm (native) -> mp2 (native))


----

Ian Micheal wrote:Data Rate Defines the throughput in bytes per second. The default value for
this parameter is 800 000 i.e. 780 Kb per second corresponding
to a CDX8 drive. You should count about 100 Kb per second for
a single-speed drive. This calculation takes into account both
images and sound. If there is no sound it is for the images alone.

So that's what the data rate is maybe for gdemu we could up this for tests
Last edited by SMiTH on Sat Dec 10, 2022 7:39 pm, edited 12 times in total.

User avatar
Ian Micheal
Developer
Posts: 5994
Contact:

Re: Dreamcast 4XM video testing

Post#2 » Fri Oct 08, 2021 8:57 pm

This encoder is trial version i cant get it to make working movies that play on sm player or dreamcast we have to go back to what i posted first..

SMiTH
Black Mesa
Posts: 1492

Re: Dreamcast 4XM video testing

Post#3 » Fri Oct 08, 2021 9:08 pm

tried using the newer 4xm_comp version from tuxthewise dc tools pack.
idk if the encoded 4xm works on real hardware?
null dc loads black screen, demul loads video with messed up audio

details for video.4xm source:
.avi-xvid--bitrate 1052, 640x368, 25fps
128kbps, 44.1Khz, stereo (MP3)

runtime of video.4xm: 4:28
time to encode video.4xm: 4hrs 55min 28sec
filesize of video.4xm: 194mb

????
estimated time to encode 80min movie: 80hrs
estimated filesize of encoded 80min movie: 3.2gb
Last edited by SMiTH on Fri Oct 08, 2021 11:15 pm, edited 1 time in total.

User avatar
Ian Micheal
Developer
Posts: 5994
Contact:

Re: Dreamcast 4XM video testing

Post#4 » Fri Oct 08, 2021 10:50 pm

Only one that works is the one i posted from the 4xm sdk in the other topic not tuxwise

F9 will post soon it works on hardware and nulldc and demul

Both newer from tux and the archive i find just dont work the encoding no idea


As my video i did get it to work with the 4xm sdk disk i had tools posted below it's not trial version etc

like i said use a very small under 1 min clip to do testing or your wasting 20 hours

I will post my test working encoding cdi's here

SMiTH
Black Mesa
Posts: 1492

Re: Dreamcast 4XM video testing

Post#5 » Fri Oct 08, 2021 10:56 pm

thank you.
i removed the attachments from first post.
what setting did you use with your last 4xm?
it worked fine?

User avatar
Ian Micheal
Developer
Posts: 5994
Contact:

Re: Dreamcast 4XM video testing

Post#6 » Fri Oct 08, 2021 10:59 pm

SMiTH wrote:thank you.
i removed the attachments from first post.
what setting did you use with your last 4xm?
it worked fine?


That is the problem i dont know and i have trying to do it again i think got more to do with the file you import then any setting in the tools..

Work on it more too night very small clip etc which still takes time but under 1 min till we get it right

Newer tools dropped the yamaha audio support is why it dont work i found out

sdk one i posted support dreamcast audio

You need the this one it support DMA audio transfer it says compile data from the 4xm sdk is 2001
Attachments
AUDIO64.rar
(5.43 KiB) Downloaded 217 times

SMiTH
Black Mesa
Posts: 1492

Re: Dreamcast 4XM video testing

Post#7 » Fri Oct 08, 2021 11:03 pm

i tried input a file that was as close to the details of the matrix.4xm
idk?

the .drv i use for selfboot script is actually audio64 it was renamed to audio4x because when i made odd&sods disk there were other .drv files needed to work.

should i use the new audio64.drv instead?
testing the newer audio64...
i found no difference??
Last edited by SMiTH on Fri Oct 08, 2021 11:16 pm, edited 5 times in total.

User avatar
Ian Micheal
Developer
Posts: 5994
Contact:

Re: Dreamcast 4XM video testing

Post#8 » Fri Oct 08, 2021 11:06 pm

SMiTH wrote:i tried input a file that was as close to the details of the matrix.4xm
idk?


Yes talking the encoder that encoded the f9 trailer i made work did i use xilisoft or shana encoder i re encoded the file before i use the 4xm tools

I used one of them cant remember which


Like my xvid player it matters only xilisoft works on it

And i used ffmpeg to do tests last night if i did that with my own player you get zero sound and never know why

User avatar
MoeFoh
Uber
Posts: 1036

Re: Dreamcast 4XM video testing

Post#9 » Fri Oct 08, 2021 11:12 pm

Ian's original 4xm tools file. The *comp.exe file is different than the tools.rar posted earlier in this thread. Now I'm confused.
Attachments
ian_4xm[tools]Movie.rar
(767.09 KiB) Downloaded 232 times
Last edited by MoeFoh on Sun Oct 10, 2021 4:19 am, edited 1 time in total.
“The problem with the world is that the intelligent people are full of doubts, while the stupid ones are full of confidence.”
- Charles Bukowski


  • Similar Topics
    Replies
    Views
    Last post

Return to “Lounge”

Who is online

Users browsing this forum: No registered users