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

#21 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 26 May 2016 - 11:45 AM

how do I set up PBX recorder to overwrite my Playfield and Backglass image even if they exist (makes updating to a new version of a table easier as I don't have to delete the old files first).  Thanks for such a great time saver.



#22 wrd1972

wrd1972

    Authoring Padawan

  • Platinum Supporter
  • 2,265 posts
  • Location:Central KY. USA

  • Flag: United States of America

  • Favorite Pinball: Funhouse

Posted 26 May 2016 - 02:35 PM

how do I set up PBX recorder to overwrite my Playfield and Backglass image even if they exist (makes updating to a new version of a table easier as I don't have to delete the old files first).  Thanks for such a great time saver.

I just delete the vids in the PinballX/media..... folder and allow PBXR to re-locate them and re-do them.


My VP Pincab /MAME Arcade  Specs: Dell T3400 workstation with Core2 Quad core 3.0GHZ (Q9650) CPU - 8GB of RAM - Nvidia  GTX 970

40" PF Sony gaming LED TV, Dual 21" Dell monitors in the backbox - Pinscape dual boards - Full DOF - Full MAME arcade support.


#23 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 26 May 2016 - 03:32 PM

Thats what I do now, but I could save a step if pbxrecorder always overwrites files (I saw it mentioned before, just can't find out how, will look for more info)



#24 gtxjoe

gtxjoe

    VPF Veteran

  • VIP
  • 5,152 posts

  • Flag: United States of America

  • Favorite Pinball: Medieval Madness, AbraCadabra



Contributor

Posted 26 May 2016 - 03:55 PM

how do I set up PBX recorder to overwrite my Playfield and Backglass image even if they exist (makes updating to a new version of a table easier as I don't have to delete the old files first).  Thanks for such a great time saver.

 

If you change the media filenaming convention to be based on "table name" and not description, then anytime a new table filename is used in the xml files, PBXR will detect it and record all new media for it.  This is the way I have mine set up now

NOTE:  If you switch to this table name based mode mode, you may have to delete all existing media based on description name and re-record everything.  I am not sure if PinballX looks for description name first then table name first, or vice versa, when looking for media.

I guess I should mention, that the older files won't be automatically delete, maybe in a future enhancement :)   So if you move from AFM 1.0 to AFM 2.0, PBXR will find and record all the AFM 2.0 media, but you will still have the AFM 1.0 media files sitting there not used

 

 

Other options but you will have to always delete at least one media file

1)  Use the Record Mode 1st option  (Find and record missing media only) and delete the image or video you want to re-record

2)  Use the Record Mode 3rd option (Record complete media set for new and incomplete tables...).  You only have to delete one item and all related items will be re-recorded.  

 

 

 

EDIT:  Regarding automatic overwrite of files, I guess the last Record Mode option will always overwrite all media files for all tables, so probably not exactly what you are looking for. I can't remember but maybe the drag and drop of the vpt table onto the pbxr exe will force a re-recording.  Try that or I will check at home when I have time


Edited by gtxjoe, 26 May 2016 - 03:58 PM.


#25 Umpa

Umpa

    Pinball Fan

  • Members
  • PipPipPipPip
  • 740 posts

  • Flag: United States of America

  • Favorite Pinball: AC/DC

Posted 26 May 2016 - 04:48 PM

I just used your program for the first time. Absolutely wonderful! Thank you!

#26 gtxjoe

gtxjoe

    VPF Veteran

  • VIP
  • 5,152 posts

  • Flag: United States of America

  • Favorite Pinball: Medieval Madness, AbraCadabra



Contributor

Posted 27 May 2016 - 12:55 AM

Borgdog, for your window in portrait mode, the video needs to be rotated 90 degrees.  

 

Go ahead and replace

     -vf "rotate=PI:bilinear=0"

with

     -vf "transpose=1"



#27 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 27 May 2016 - 02:41 AM

Borgdog, for your window in portrait mode, the video needs to be rotated 90 degrees.  

 

Go ahead and replace

     -vf "rotate=PI:bilinear=0"

with

     -vf "transpose=1"

 

 

Awesome! That did the trick, all is working great.  Now I just need to clean out all the old stuff out of get everything up to date.  Thanks again for all your help and this awesome tool!



#28 Wolverine

Wolverine

    Enthusiast

  • Members
  • PipPipPip
  • 67 posts

  • Flag: Germany

  • Favorite Pinball: Star Trek - The Next Generation

Posted 27 May 2016 - 11:52 AM

Hi,

 

i have still the Problem with 180 degrees rotated Playfield Videos in 1.4. (you gave me a version of 1.3 "PBXrecorder_DesktopVersion_1920x1080_1.3") but i wanted to try 1.4. Since my Playfield Monitor is 1920 x 1200 in that version a bit of the Playfield was missing- Also the DMD Video + Images don't begin at the top of my second Monitor...using screenres-test does not help.

 

So i would try to change the ahk file, but PBXRecorder does not seem to use ist. I Put it in the directory with the exe. I used filename PBXrecorder_1.4.ahk or PBXrecorder.ahk. what do i wrong?

 

 

Wolverine



#29 gtxjoe

gtxjoe

    VPF Veteran

  • VIP
  • 5,152 posts

  • Flag: United States of America

  • Favorite Pinball: Medieval Madness, AbraCadabra



Contributor

Posted 27 May 2016 - 01:00 PM

Wolverine,

Describe your setup.

You have a 2 monitor setup and you play desktop tables (landscape) or full screen tables (portrait)?

If you have a 2 monitor setup, whats on the 2nd screen, Backglass, Backglass and DMD, or DMD only?

Send me or post your, pinballx.ini, screenres.txt and a pbxrecorder.log and maybe a screenshot would be helpful


Edited by gtxjoe, 27 May 2016 - 01:01 PM.


#30 Wolverine

Wolverine

    Enthusiast

  • Members
  • PipPipPip
  • 67 posts

  • Flag: Germany

  • Favorite Pinball: Star Trek - The Next Generation

Posted 27 May 2016 - 01:23 PM

1. Monitor 1920x1200 Playfield landscape

2. Monitor 1920x1080 Backglas + DMD landscape

 

since i can't post files here the screenres.ini:

1920
1200
1350
1080
2
0
0
0
0
0
0
0

 

But before you put any work in my problem. why can't i use the ahk file...if that would work i could do testing for myself before i bore you with my questions ;)

 

 

Wolverine



#31 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 27 May 2016 - 02:58 PM

Wolverine you need to have autohotkey installed.  https://autohotkey.com/

 

Then you can double-click the ahk file to run it.



#32 Wolverine

Wolverine

    Enthusiast

  • Members
  • PipPipPip
  • 67 posts

  • Flag: Germany

  • Favorite Pinball: Star Trek - The Next Generation

Posted 27 May 2016 - 04:29 PM

Thx BorgDog..that did the trick ;).



#33 gtxjoe

gtxjoe

    VPF Veteran

  • VIP
  • 5,152 posts

  • Flag: United States of America

  • Favorite Pinball: Medieval Madness, AbraCadabra



Contributor

Posted 05 June 2016 - 03:28 AM

Beta release

 

Find_New_Tables.exe - Searches for new tables and let's you add them to the existing VP xml files
find2.png
 
 
PBX Recorder changes
- Can specify the table loading time
- Will find tables located in subfolders (based on table name or description)
- Minor Bug fixes:  mp4 format setting, uses Backglass offset value, skip to next table if VP error occurs
 
Unzip and put both of these files to your existing PBX Recorder folder
 
EDIT:  Jun 11 - uploaded new beta.  The table loading window was broken

Attached Files


Edited by gtxjoe, 11 June 2016 - 03:05 PM.


#34 krille81

krille81

    Enthusiast

  • Members
  • PipPipPip
  • 197 posts

  • Flag: Sweden

  • Favorite Pinball: Junk Yard, White Water, Star Wars (Data East)

Posted 06 June 2016 - 08:52 AM

Hi Gtxjoe i try to use this brilliant program but i can,t record my playfield, video captured :( i have try this in 2 days now without good result. here is my pbxrecorder.ini for one table.

DMD_tot_offset     = 1920             
DMD_orig_width     = 0         
 
ACDC (JP 2012)
 
EXAMPLE of all ffmpeg.exe commands used
"C:\PinballX\PBX Recorder\FFMpeg\bin\ffmpeg" -y -t 1 -f gdigrab -framerate 1 -offset_x 0 -offset_y 0 -video_size 1920x1280 -i desktop -vf "rotate=PI:bilinear=0" "C:\PinballX\Media\Visual Pinball\Table Images\ACDC (JP 2012).png"
"C:\PinballX\PBX Recorder\FFMpeg\bin\ffmpeg" -y -t 1 -f gdigrab -framerate 1 -offset_x 1920 -offset_y 0 -video_size 1280x1024 -i desktop "C:\PinballX\Media\Visual Pinball\Backglass Images\ACDC (JP 2012).png"
"C:\PinballX\PBX Recorder\FFMpeg\bin\ffmpeg" -y -t 1 -f gdigrab -framerate 1 -offset_x 1920 -offset_y 0 -video_size 0x0 -i desktop "C:\PinballX\Media\Visual Pinball\DMD Images\ACDC (JP 2012).png"
"C:\PinballX\PBX Recorder\FFMpeg\bin\ffmpeg" -y -t 20 -rtbufsize 1500M -f gdigrab -framerate 30 -offset_x 0 -offset_y 0 -video_size 1920x1280 -i desktop -vcodec libx264 -preset ultrafast -qp 0 -threads 8 "C:\PinballX\PBX Recorder\playfield.mkv"
"C:\PinballX\PBX Recorder\FFMpeg\bin\ffmpeg" -y -t 20 -rtbufsize 1500M -f gdigrab -framerate 30 -offset_x 1920 -offset_y 0 -video_size 1280x1024 -i desktop -vcodec libx264 -preset ultrafast  -qp 0 -threads 8 "C:\PinballX\PBX Recorder\bg.mkv"
"C:\PinballX\PBX Recorder\FFMpeg\bin\ffmpeg" -y -t 20 -rtbufsize 1500M -f gdigrab -framerate 30 -offset_x 1920 -offset_y 0 -video_size 0x0 -i desktop -vcodec libx264 -preset ultrafast  -qp 0 -threads 8 "C:\PinballX\PBX Recorder\dmd.mkv"
"C:\PinballX\PBX Recorder\FFMpeg\bin\ffmpeg" -y -i "C:\PinballX\PBX Recorder\playfield.mkv" -ss 5 -to 1000 -vf "rotate=PI:bilinear=0" -c:v libx264 -crf 26 "C:\PinballX\Media\Visual Pinball\Table Videos\ACDC (JP 2012).f4v"
"C:\PinballX\PBX Recorder\FFMpeg\bin\ffmpeg" -y -i "C:\PinballX\PBX Recorder\bg.mkv" -ss 5 -to 1000 -c:v libx264 -crf 26 "C:\PinballX\Media\Visual Pinball\Backglass Videos\ACDC (JP 2012).f4v"
"C:\PinballX\PBX Recorder\FFMpeg\bin\ffmpeg" -y -i "C:\PinballX\PBX Recorder\dmd.mkv" -ss 5 -to 1000 -c:v libx264 -crf 26 "C:\PinballX\Media\Visual Pinball\DMD Videos\ACDC (JP 2012).f4v"
 
PBXrecorder set to record complete media set
Launching table: VPinball992.exe -play C:\Program Files (x86)\Visual Pinball\Tables\ACDC (JP 2012).vpt
Video and screenshot capture (10:47:11)
Recording "C:\PinballX\PBX Recorder\playfield.mkv"
Convert Videos to f4v if video was captured (10:47:20)
Table done (10:47:23)
 
Airborne (Capcom 1996)
PBXrecorder set to record complete media set
Launching table: VPinball992.exe -play C:\Program Files (x86)\Visual Pinball\Tables\Airborne (Capcom 1996).vpt


#35 gtxjoe

gtxjoe

    VPF Veteran

  • VIP
  • 5,152 posts

  • Flag: United States of America

  • Favorite Pinball: Medieval Madness, AbraCadabra



Contributor

Posted 06 June 2016 - 03:17 PM

According to this you have a 1920x1280 monitor.  I think this is wrong in your screenres.txt.  You probably have a 1920x1080 monitor or 1920x1200 monitor

 

     "C:\PinballX\PBX Recorder\FFMpeg\bin\ffmpeg" -y -t 20 -rtbufsize 1500M -f gdigrab -framerate 30 -offset_x 0 -offset_y 0 -video_size 1920x1280 -i desktop -vcodec libx264 -preset ultrafast -qp 0 -threads 8 "C:\PinballX\PBX Recorder\playfield.mkv"



#36 krille81

krille81

    Enthusiast

  • Members
  • PipPipPip
  • 197 posts

  • Flag: Sweden

  • Favorite Pinball: Junk Yard, White Water, Star Wars (Data East)

Posted 06 June 2016 - 04:07 PM

Yeees!!! you right i have screwed up the resolution. It works now, i,m so happy :) thank you gtxjoe you have helped me before with registry problem an other stuff, and what a nice neat program you have made. cheers!!



#37 wrd1972

wrd1972

    Authoring Padawan

  • Platinum Supporter
  • 2,265 posts
  • Location:Central KY. USA

  • Flag: United States of America

  • Favorite Pinball: Funhouse

Posted 10 June 2016 - 12:26 AM

Hi Joe,

All of a sudden, PBXR will record table videos, but NOT Backglass videos. The B2S server appers to be working properly. I can load any table, and the backglass is there. When the recording starts for a backglass, once the crawler has reached its end, count to about five and it moves onto the next table. In the end, it says it made a recording. But it did not.

 

I have tried 1.3 and 1.4 Beta. Same issue with both and no errors ever show up.

 

Any idea about this one?


Edited by wrd1972, 10 June 2016 - 12:27 AM.

My VP Pincab /MAME Arcade  Specs: Dell T3400 workstation with Core2 Quad core 3.0GHZ (Q9650) CPU - 8GB of RAM - Nvidia  GTX 970

40" PF Sony gaming LED TV, Dual 21" Dell monitors in the backbox - Pinscape dual boards - Full DOF - Full MAME arcade support.


#38 gtxjoe

gtxjoe

    VPF Veteran

  • VIP
  • 5,152 posts

  • Flag: United States of America

  • Favorite Pinball: Medieval Madness, AbraCadabra



Contributor

Posted 10 June 2016 - 01:11 AM

Post a log file

#39 wrd1972

wrd1972

    Authoring Padawan

  • Platinum Supporter
  • 2,265 posts
  • Location:Central KY. USA

  • Flag: United States of America

  • Favorite Pinball: Funhouse

Posted 10 June 2016 - 11:32 AM

Post a log file

Attached.

 

Also, here is my monitor setup"

monitors.jpg

Monitor 2 is the playfield and 1 & 3 make up the backbox.

 

A quick comment. I dont quite understand why W7 keeps moving my PF TV (40" LED) to #2. I have reverted it back to number one by disconnecting the BG TVs (2 X 21" LED). But it keeps coming back to what you see above. I use this setup so that 1 & 3 are treated as a single TV so I can "mouse" the entire BG view-able surface.

 

Most importantly, this setup has worked flawlessly until recently when I removed my PC. The DB2S backglasses, your recorder, everything has worked absolutely flawlessly until again, very recently.

 

I see in the B2S screen res editor, that BG display is set to #2. Seems weird since #2 this is my PF TV. But this is the only setting that makes the B2S back-glass appear correctly on TVs 1 & 3. If I set the B2S display to 3, the only the top half of the visible B2s Backglass is shown on #1.

 

Again, I know the above setup works. It has worked flawlessly in the past for absolutely everything including PBXR. There must be a setting somewhere that has gotten dork'd.

 

Thanks Joe.

-Bill

Attached Files


Edited by wrd1972, 10 June 2016 - 11:44 AM.

My VP Pincab /MAME Arcade  Specs: Dell T3400 workstation with Core2 Quad core 3.0GHZ (Q9650) CPU - 8GB of RAM - Nvidia  GTX 970

40" PF Sony gaming LED TV, Dual 21" Dell monitors in the backbox - Pinscape dual boards - Full DOF - Full MAME arcade support.


#40 wrd1972

wrd1972

    Authoring Padawan

  • Platinum Supporter
  • 2,265 posts
  • Location:Central KY. USA

  • Flag: United States of America

  • Favorite Pinball: Funhouse

Posted 10 June 2016 - 11:49 AM

I just fixed.

 

I set B2S display back to 3 (which is where common sense says it should be.  And I revised  the Y-position setting to -770. This slid the the half shown BG image on #1,  all the way up to the top of #3.

 

PBXRR is now recording the BG videos. Yessssssssssss.

 

I am going to speculate that that when I powered my PC up (for testing purposes) without the BG TVs hooked up, somehow the B2S settings got dork'up. Anyway, I am now good to go again and maybe this information can be of use to you for further troubleshooting.

 

Thanks

Bill


My VP Pincab /MAME Arcade  Specs: Dell T3400 workstation with Core2 Quad core 3.0GHZ (Q9650) CPU - 8GB of RAM - Nvidia  GTX 970

40" PF Sony gaming LED TV, Dual 21" Dell monitors in the backbox - Pinscape dual boards - Full DOF - Full MAME arcade support.






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