Jump to content

All my products and services are free. All my costs are met by donations I receive from my users. If you enjoy using any of my products, please donate to support me. Thank you for your support. Tom Speirs

Patreon

How to create good real DMD Video's ? (FX3)


Mike_da_Spike

Recommended Posts

Hi all, 

I'm busy to create a script to create real DMD videos for FX3 (so I can use it in PinballX)

With DMDext I can show the DMD from memory.

With FFMpeg I can capture the output to MKV file. (command FFMpeg -y -t 140 -rtbufsize 1500M -f gdigrab -framerate 30 -offset_x 0 -offset_y 0 -video_size 512x128 -i desktop -vcodec libx264 -preset ultrafast -qp 0 -threads 8  dmd.MKV) 

So I have the video now in 512x128. This is 4 times the ectual size, to keep the video nice)

But when I convert it with FFmpeg to MP4, it won't show anything on screen. (command : ffmpeg -y -i dmd.mkv -ss 50.5 -to 130.5 -vf [in]scale=512:-1[middle1];[middle1]crop=w=128:h=32:x=0:y=0[middle2];[middle2]vflip[out] -c:v libx264 -crf 26  output.mp4)

Converting the MKV with handbrakecli.exe, will crop it to big, so looks like it is zoomed. (command : HandbrakeCLI  -i dmd.mkv -o output.Mp4 -e x264  -q 100.0 -a 1,1 -E faac,copy:ac3 -B 160,160 -6 dpl2,none -R Auto,Auto -D 2.5,0.0 --audio-copy-mask aac,ac3,dtshd,dts,mp3 --audio-fallback ffac3 -f mp4 --decomb --loose-anamorphic --modulus 2 -m --x264-preset medium --h264-profile high --h264-level 4.1  )

As you can see, I'm not familiar with both programs. So what would be the best way to capture a real DMD video and convert it soPinballX can play it ?

  

 

Link to comment
Share on other sites

Don't know much about producing output specifically for realDMD but I don't think that you need to crop the input with ffmpeg. You can just scale it down to 128x32.

 

Looks like a snippit of one of my scripts. I have a p2k style cabinet which is why I use the vflip filter. The vast majority of cabinet designs don't need vflip.

That should simply that transcode instruction.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...