Jump to content



Photo
* * * * * 3 votes

PBX Recorder (Automated PinballX media video recorder)

pbxrecorder screenshot videos ffmpeg recorder Pinballx

  • Please log in to reply
359 replies to this topic

#61 patrickfx

patrickfx

    Pinball fan

  • Members
  • PipPipPip
  • 141 posts

  • Flag: Canada

  • Favorite Pinball: AC DC, Indiana Jones, Iron man

Posted 23 June 2016 - 03:31 AM

I still have this problem :( I just continue to understand, I don't know if this can help. When I run the command line

E:\PBXRecorder_x64\FFMpeg\bin\ffmpeg" -y -t 1 -f gdigrab -framerate 1 -offset_x 0 -offset_y 0 -video_size 1920x1080 -i desktop -vf "rotate=PI:bilinear=0" "E:\PinballX\Media\Visual Pinball\Table Images\24 (Stern 2009).png"

 

This capture my monitor 1 which is the playfield but I realize it capture only icon, everything else is white.  There is some other windows like chrome I.m writing right now.  Weird !!!


Patrickfx
Canada, Quebec
I should play sometimes, not just configure my Pinball !!!

#62 gtxjoe

gtxjoe

    VPF Veteran

  • VIP
  • 5,152 posts

  • Flag: United States of America

  • Favorite Pinball: Medieval Madness, AbraCadabra



Contributor

Posted 23 June 2016 - 03:50 AM

No idea.  Share a print screen of you desktop and the png file created by ffmpeg.  Also what happens when you try to record a playfield video?  Share that also.



#63 patrickfx

patrickfx

    Pinball fan

  • Members
  • PipPipPip
  • 141 posts

  • Flag: Canada

  • Favorite Pinball: AC DC, Indiana Jones, Iron man

Posted 24 June 2016 - 02:53 PM

OK, I made some more test and maybe I have something that can help.  Again, considering this line run in command line...
E:\PBXRecorder_x64\FFMpeg\bin\ffmpeg" -y -t 1 -f gdigrab -framerate 1 -offset_x 0 -offset_y 0 -video_size 1920x1080 -i desktop -vf "rotate=PI:bilinear=0" "E:\temp\testpng.png".
 
When extension is gif it work, when with png, partial ok, just icon IS SHOWING
 
I attach the result.  
 
Then, another result as a gif file seem to work better.
 
Note : I'm unable to attach file, I add file to my gallery but it need to be approuved.  I search a way but can't find.  The image button as only link option, not able to select local drive arggggg!

Patrickfx
Canada, Quebec
I should play sometimes, not just configure my Pinball !!!

#64 patrickfx

patrickfx

    Pinball fan

  • Members
  • PipPipPip
  • 141 posts

  • Flag: Canada

  • Favorite Pinball: AC DC, Indiana Jones, Iron man

Posted 24 June 2016 - 03:20 PM

There is attachment

 

http://vpforums.org/.../74/testpng.png

http://vpforums.org/.../74/testgif.gif


Patrickfx
Canada, Quebec
I should play sometimes, not just configure my Pinball !!!

#65 Slydog43

Slydog43

    Pinball Wizard

  • Platinum Supporter
  • 3,008 posts
  • Location:Hackettstown, NJ

  • Flag: United States of America

  • Favorite Pinball: Addams Family, All Williams 90's Games

Posted 24 June 2016 - 03:22 PM

Can this capture also work with VPX 10.1 with Fullscreen Exclusive mode (meaning you need to Alt-Tab to show player if B2S is used with a table?).



#66 Carny_Priest

Carny_Priest

    Pinball Fan

  • Members
  • PipPipPipPip
  • 1,257 posts
  • Location:Austin, TX

  • Flag: United States of America

  • Favorite Pinball: EATPM

Posted 24 June 2016 - 05:00 PM

No idea. I haven't tested it yet. Are you saying it is not capturing the playfield in full screen mode? If it doesn't work we may have to switch the capture engine to OBS.


Sent from my iPad using Tapatalk

#67 Drybonz

Drybonz

    Really bad at pinball, but having fun.

  • Members
  • PipPipPipPip
  • 1,538 posts

  • Flag: ---------

  • Favorite Pinball: Theatre of Magic

Posted 24 June 2016 - 05:05 PM

Earlier comments were that fullscreen screenshots weren't being captured.



#68 gtxjoe

gtxjoe

    VPF Veteran

  • VIP
  • 5,152 posts

  • Flag: United States of America

  • Favorite Pinball: Medieval Madness, AbraCadabra



Contributor

Posted 24 June 2016 - 05:09 PM

That was Pinballx screenshot support. No one has commented on whether PBX recorder works or not.

If it doesn't work, the simple workaround is just disable full screen mode when recording

#69 patrickfx

patrickfx

    Pinball fan

  • Members
  • PipPipPip
  • 141 posts

  • Flag: Canada

  • Favorite Pinball: AC DC, Indiana Jones, Iron man

Posted 24 June 2016 - 05:19 PM

Hello Carny_priest,  I try with / without full screen.  No difference when running the PBX recorder tool.  Dont know what you mean by trying capture engine OBS.  What's OBS ?

 

What I try to explain is even without the tool of PBX recorder, the problem occur.  So I don't thing it's related to the tools.  It's seem to be related to the PNG format.  When I run FFMmep with png output, it doesn't capture all the image.  If I try output to gif, it work.  Look my link that show what I mean.

 

So, I verify on the net if there is a codec to png but seem it not that.  

 

So from there, maybe you have some more experience then me on that stuff.


Patrickfx
Canada, Quebec
I should play sometimes, not just configure my Pinball !!!

#70 Drybonz

Drybonz

    Really bad at pinball, but having fun.

  • Members
  • PipPipPipPip
  • 1,538 posts

  • Flag: ---------

  • Favorite Pinball: Theatre of Magic

Posted 24 June 2016 - 05:51 PM

Open Broadcast Software... it's another way to capture video and screenshots.



#71 patrickfx

patrickfx

    Pinball fan

  • Members
  • PipPipPip
  • 141 posts

  • Flag: Canada

  • Favorite Pinball: AC DC, Indiana Jones, Iron man

Posted 24 June 2016 - 05:59 PM

Drybonz, the fun part disapear if not integrted / automated like PBX recorder.  When you have 300 tables, it so fun to press enter and loop automatically the tables.

 

I still want to continue with PBX recorder


Patrickfx
Canada, Quebec
I should play sometimes, not just configure my Pinball !!!

#72 patrickfx

patrickfx

    Pinball fan

  • Members
  • PipPipPip
  • 141 posts

  • Flag: Canada

  • Favorite Pinball: AC DC, Indiana Jones, Iron man

Posted 25 June 2016 - 04:06 AM

OK, I :love39: Just found the solution.  I change the color bits from 32 to 16.  Then, all png files was just perfect.   :otvclap:

 

:bye2:


Patrickfx
Canada, Quebec
I should play sometimes, not just configure my Pinball !!!

#73 Westworld

Westworld

    Enthusiast

  • Members
  • PipPipPip
  • 114 posts
  • Location:Munich

  • Flag: Germany

  • Favorite Pinball: Kiss

Posted 25 June 2016 - 08:50 AM

Are you saying it is not capturing the playfield in full screen mode?

yes. It is capturing the Virtual Pinball Designer screen, not the play mode/screen. 

Disabling full screen works

It was nice for new tables to simply drag them on the recorder, nothing else to setup.

But still better than nothing, so just to repeat "thanks a lot for that great tool, a big help".



#74 vogliadicane

vogliadicane

    Pinball Fan

  • Members
  • PipPipPipPip
  • 517 posts
  • Location:Velbert

  • Flag: Germany

  • Favorite Pinball: The Addams Family

Posted 26 June 2016 - 03:13 PM

I encounter a problem, when recording video from the backglass monitor (64bit version of pbx recorder). The backglass is positioned with a 214 px x-Offset and doesn't cover the whole display area.

When using the screenres.exe everything is fine and adjusted propperly.

 

The problem, it seems the x-offset is not used, because resulting videos show the black 214 px bar of the offset on the left side and are cropped on the right one. From the log file (posted below), I can see the values from the screenres are read, but not taken correctly for the video capture (there is no x-offset and the width is 2132 instead of 2133).

 

Can you help me figure out, how I could solve this, please?

Juni 26,2016 16:42:24
Version 1.4

Monitor Count: 2,  Primary Monitor: 1
Monitor 1: 3840x2160 (\\.\DISPLAY1)
Monitor 2: 6400x1600 (\\.\DISPLAY2)

Pinballx.ini
4
C:\VPin_Programs\PinballX
0
1
1
0
0
0
0
0
60
0

Identify all VP XML files...
VP System #1:
C:\VPin_Programs\PinballX\Databases\Visual Pinball\Visual Pinball.xml
C:\VPin_Programs\Visual Pinball
C:\VPin_Programs\Visual Pinball\Tables
VPinball921.exe

Skipping this system: MAME.xml

Skipping this system: MAME.xml

Total number of VP systems found: 1

Working on Visual Pinball.xml (16:42:55)

Screenres.txt
3840
2160
2133
1600
2
214
0
0
0
0
0
0

Values used for media capture (height/width forced to even values)
VirtualScreenWidth = 6400
TotalScreenWidth   = 3840  
PF_width           = 3840          
PF_height          = 2160         
BG_width           = 2132          
BG_height          = 1600         
DMD_width          = 0      
DMD_height         = 0        
DMD_X_offset       = 0            
DMD_Y_offset       = 0             
-----------------------------------------
DMD_tot_offset     = 3840             
DMD_orig_width     = 0         

24 (Stern 2009)
AlternateExe found in xml: VPinball99_PhysMod5.exe

EXAMPLE of all ffmpeg.exe commands used
"E:\Install\PBX Recorder\PBXRecorder_x64_1.4\PBXRecorder_x64\FFMpeg\bin\ffmpeg" -y -t 1 -f gdigrab -framerate 1 -offset_x 0 -offset_y 0 -video_size 3840x2160 -i desktop -vf "rotate=PI:bilinear=0" "C:\VPin_Programs\PinballX\Media\Visual Pinball\Table Images\24 (Stern 2009).png"
"E:\Install\PBX Recorder\PBXRecorder_x64_1.4\PBXRecorder_x64\FFMpeg\bin\ffmpeg" -y -t 1 -f gdigrab -framerate 1 -offset_x 3840 -offset_y 0 -video_size 2132x1600 -i desktop "C:\VPin_Programs\PinballX\Media\Visual Pinball\Backglass Images\24 (Stern 2009).png"
"E:\Install\PBX Recorder\PBXRecorder_x64_1.4\PBXRecorder_x64\FFMpeg\bin\ffmpeg" -y -t 1 -f gdigrab -framerate 1 -offset_x 3840 -offset_y 0 -video_size 0x0 -i desktop "C:\VPin_Programs\PinballX\Media\Visual Pinball\DMD Images\24 (Stern 2009).png"
"E:\Install\PBX Recorder\PBXRecorder_x64_1.4\PBXRecorder_x64\FFMpeg\bin\ffmpeg" -y -t 65 -rtbufsize 1500M -f gdigrab -framerate 30 -offset_x 0 -offset_y 0 -video_size 3840x2160 -i desktop -vcodec libx264 -preset ultrafast -qp 0 -threads 8 "E:\Install\PBX Recorder\PBXRecorder_x64_1.4\PBXRecorder_x64\playfield.mkv"
"E:\Install\PBX Recorder\PBXRecorder_x64_1.4\PBXRecorder_x64\FFMpeg\bin\ffmpeg" -y -t 65 -rtbufsize 1500M -f gdigrab -framerate 30 -offset_x 3840 -offset_y 0 -video_size 2132x1600 -i desktop -vcodec libx264 -preset ultrafast  -qp 0 -threads 8 "E:\Install\PBX Recorder\PBXRecorder_x64_1.4\PBXRecorder_x64\bg.mkv"
"E:\Install\PBX Recorder\PBXRecorder_x64_1.4\PBXRecorder_x64\FFMpeg\bin\ffmpeg" -y -t 65 -rtbufsize 1500M -f gdigrab -framerate 30 -offset_x 3840 -offset_y 0 -video_size 0x0 -i desktop -vcodec libx264 -preset ultrafast  -qp 0 -threads 8 "E:\Install\PBX Recorder\PBXRecorder_x64_1.4\PBXRecorder_x64\dmd.mkv"
"E:\Install\PBX Recorder\PBXRecorder_x64_1.4\PBXRecorder_x64\FFMpeg\bin\ffmpeg" -y -i "E:\Install\PBX Recorder\PBXRecorder_x64_1.4\PBXRecorder_x64\playfield.mkv" -ss 5 -to 1000 -vf "rotate=PI:bilinear=0" -c:v libx264 -crf 26 "C:\VPin_Programs\PinballX\Media\Visual Pinball\Table Videos\24 (Stern 2009).f4v"
"E:\Install\PBX Recorder\PBXRecorder_x64_1.4\PBXRecorder_x64\FFMpeg\bin\ffmpeg" -y -i "E:\Install\PBX Recorder\PBXRecorder_x64_1.4\PBXRecorder_x64\bg.mkv" -ss 5 -to 1000 -c:v libx264 -crf 26 "C:\VPin_Programs\PinballX\Media\Visual Pinball\Backglass Videos\24 (Stern 2009).f4v"
"E:\Install\PBX Recorder\PBXRecorder_x64_1.4\PBXRecorder_x64\FFMpeg\bin\ffmpeg" -y -i "E:\Install\PBX Recorder\PBXRecorder_x64_1.4\PBXRecorder_x64\dmd.mkv" -ss 5 -to 1000 -c:v libx264 -crf 26 "C:\VPin_Programs\PinballX\Media\Visual Pinball\DMD Videos\24 (Stern 2009).f4v"

PBXrecorder set to record complete media set
FYI (FTP not enabled): No Wheel Image - 24 (Stern 2009).png
Launching table: VPinball99_PhysMod5.exe -play C:\VPin_Programs\Visual Pinball\Tables\PM5 - 24.vpt
Video and screenshot capture (16:43:13)
Recording "E:\Install\PBX Recorder\PBXRecorder_x64_1.4\PBXRecorder_x64\playfield.mkv"
Recording "E:\Install\PBX Recorder\PBXRecorder_x64_1.4\PBXRecorder_x64\bg.mkv"
Convert Videos to f4v if video was captured (16:44:27)
Converting to "C:\VPin_Programs\PinballX\Media\Visual Pinball\Table Videos\24 (Stern 2009).f4v"
Converting to "C:\VPin_Programs\PinballX\Media\Visual Pinball\Backglass Videos\24 (Stern 2009).f4v"
Table done (16:46:03)

ACDC (Stern 2012)
AlternateExe found in xml: VPinball99_PhysMod5.exe
PBXrecorder set to record complete media set
FYI (FTP not enabled): No Wheel Image - ACDC (Stern 2012).png
Launching table: VPinball99_PhysMod5.exe -play C:\VPin_Programs\Visual Pinball\Tables\PM5 - AC-DC.vpt
Video and screenshot capture (16:46:20)
Recording "E:\Install\PBX Recorder\PBXRecorder_x64_1.4\PBXRecorder_x64\playfield.mkv"
Recording "E:\Install\PBX Recorder\PBXRecorder_x64_1.4\PBXRecorder_x64\bg.mkv"
Convert Videos to f4v if video was captured (16:47:33)
Converting to "C:\VPin_Programs\PinballX\Media\Visual Pinball\Table Videos\ACDC (Stern 2012).f4v"
Converting to "C:\VPin_Programs\PinballX\Media\Visual Pinball\Backglass Videos\ACDC (Stern 2012).f4v"
Table done (16:49:10)

Apollo 13 (Sega 1995)
AlternateExe found in xml: VPinball992.exe
PBXrecorder set to record complete media set
Launching table: VPinball992.exe -play C:\VPin_Programs\Visual Pinball\Tables\Apollo 13_VP9.2_1.0.2_FS.vpt
Video and screenshot capture (16:49:27)
Recording "E:\Install\PBX Recorder\PBXRecorder_x64_1.4\PBXRecorder_x64\playfield.mkv"
Recording "E:\Install\PBX Recorder\PBXRecorder_x64_1.4\PBXRecorder_x64\bg.mkv"
Convert Videos to f4v if video was captured (16:50:40)
Converting to "C:\VPin_Programs\PinballX\Media\Visual Pinball\Table Videos\Apollo 13 (Sega 1995).f4v"
Converting to "C:\VPin_Programs\PinballX\Media\Visual Pinball\Backglass Videos\Apollo 13 (Sega 1995).f4v"
Table done (16:52:06)

Attack from Mars (Midway 1995)
AlternateExe found in xml: VPinballX.exe
PBXrecorder set to record complete media set
Launching table: VPinballX.exe -play C:\VPin_Programs\Visual Pinball\Tables\Groni Pinball - Attack from Mars V1.0_VPX.vpx
Video and screenshot capture (16:52:22)
Recording "E:\Install\PBX Recorder\PBXRecorder_x64_1.4\PBXRecorder_x64\playfield.mkv"
Recording "E:\Install\PBX Recorder\PBXRecorder_x64_1.4\PBXRecorder_x64\bg.mkv"
Convert Videos to f4v if video was captured (16:53:36)
Converting to "C:\VPin_Programs\PinballX\Media\Visual Pinball\Table Videos\Attack from Mars (Midway 1995).f4v"
Converting to "C:\VPin_Programs\PinballX\Media\Visual Pinball\Backglass Videos\Attack from Mars (Midway 1995).f4v"
Table done (16:55:06)

Attack from Mars RedMod (Midway 1995)
AlternateExe found in xml: VPinballX.exe
PBXrecorder set to record complete media set
Launching table: VPinballX.exe -play C:\VPin_Programs\Visual Pinball\Tables\Groni Pinball - Attack from Mars V1.0_VPX_REDMOD.vpx
Video and screenshot capture (16:55:22)
Recording "E:\Install\PBX Recorder\PBXRecorder_x64_1.4\PBXRecorder_x64\playfield.mkv"
Recording "E:\Install\PBX Recorder\PBXRecorder_x64_1.4\PBXRecorder_x64\bg.mkv"
Convert Videos to f4v if video was captured (16:56:36)
Converting to "C:\VPin_Programs\PinballX\Media\Visual Pinball\Table Videos\Attack from Mars RedMod (Midway 1995).f4v"
Converting to "C:\VPin_Programs\PinballX\Media\Visual Pinball\Backglass Videos\Attack from Mars RedMod (Midway 1995).f4v"

       

Edited by vogliadicane, 26 June 2016 - 03:15 PM.


#75 gtxjoe

gtxjoe

    VPF Veteran

  • VIP
  • 5,152 posts

  • Flag: United States of America

  • Favorite Pinball: Medieval Madness, AbraCadabra



Contributor

Posted 26 June 2016 - 03:36 PM

Try the beta release:  http://www.vpforums....=34492&p=346341

 

Let me know if it works for you.  There are not too many that use the bg offsets, but there are a few ;)


Edited by gtxjoe, 26 June 2016 - 03:37 PM.


#76 vogliadicane

vogliadicane

    Pinball Fan

  • Members
  • PipPipPipPip
  • 517 posts
  • Location:Velbert

  • Flag: Germany

  • Favorite Pinball: The Addams Family

Posted 28 June 2016 - 07:42 AM

The beta records now with the correct x-offset, thanks!

 

Btw, tested in both (32 and 64bit) folders, both worked. First I didn't know, which version the beta exe is, but I assume it depends on the other files, if it is executed for 32 or 64bit.

Great stuff this recorder!!



#77 smoke007

smoke007

    Hobbyist

  • Members
  • PipPip
  • 11 posts

  • Flag: United States of America

  • Favorite Pinball: Simpsons

Posted 01 August 2016 - 09:16 PM

gtxjoe,

Thank you for the awesome software!  I'm new to the scene.  I just got my VirtuaPin cab, loaded some tables, populated PBX, but was irritated by the lower quality of the playfield videos that were available and the fact that they were not preview videos of the actual tables (versions, authors) that I had loaded.  I was about to try and start recording all my own videos, but luckily found your thread and software just in time.  I'm so impressed by how well your PBX Recorder worked!

 

I have several versions sometimes of the same table, so these new preview videos make it perfect to quickly see the differences between the table versions in PBX.

 

Thank you tons!!

Smoke.007



#78 BorgDog

BorgDog

    We come in peace.. shoot to kill.. shoot to kill.

  • Members
  • PipPipPipPip
  • 1,427 posts
  • Location:Leavenworth, WA

  • Flag: United States of America

  • Favorite Pinball: Alien Star, TNA



Posted 01 August 2016 - 09:46 PM

Hey Joe, just downloaded the 1.5 version to install in my new cab, and noticed the rotation settings at the top, awesome!  thanks!



#79 gtxjoe

gtxjoe

    VPF Veteran

  • VIP
  • 5,152 posts

  • Flag: United States of America

  • Favorite Pinball: Medieval Madness, AbraCadabra



Contributor

Posted 01 August 2016 - 10:18 PM

Eventually that will make it into the GUI settings :)    if you do modify the script even further, send me your final version and i can try to include it in future versions



#80 BorgDog

BorgDog

    We come in peace.. shoot to kill.. shoot to kill.

  • Members
  • PipPipPipPip
  • 1,427 posts
  • Location:Leavenworth, WA

  • Flag: United States of America

  • Favorite Pinball: Alien Star, TNA



Posted 01 August 2016 - 11:40 PM

That was all I needed to change on the new cab, 2 monitor both portrait, no dmd (wedgehead).  Thanks, just started it recording all the videos a minute ago.  And I actually redid the mini-cab so all the monitors are top aligned and just that rotation is all I need on that one now too.







Also tagged with one or more of these keywords: pbxrecorder, screenshot, videos, ffmpeg, recorder, Pinballx