Opened 19 years ago

Closed 18 years ago

Last modified 4 years ago

#225 closed enhancement (fixed)

A Script to generate Screenshots for Emulators configured in Mythgame...

Reported by: anonymous Owned by: greg
Priority: minor Milestone: 0.20
Component: mythgame Version: head
Severity: medium Keywords:
Cc: Ticket locked: no

Description

This should be an addon Script for the contrib directory.

It uses the Programm scrot to generate screenshots for the Emulators defined in the New Mythgame.

Thestes with zsnes and it worked well.

Attachments (4)

emulator_screenshots.sh (2.3 KB) - added by jochen 19 years ago.
New Version 2.0
emulator_screenshots21.sh (2.3 KB) - added by jochen 19 years ago.
2.1 small bug fixed
emulator_screenshots30.sh (4.2 KB) - added by jochen 19 years ago.
Version 3.0
emulator_screenshots.2.sh (4.7 KB) - added by jochen 19 years ago.
Testversion 4.0 (deosn't work)

Download all attachments as: .zip

Change History (18)

comment:1 Changed 19 years ago by Isaac Richards

Owner: changed from Isaac Richards to greg

Changed 19 years ago by jochen

Attachment: emulator_screenshots.sh added

New Version 2.0

comment:2 Changed 19 years ago by jochen

Type: enhancementpatch

New Version of the Script:

Supports Parameters wich are stored in the emulator commandline in the database.

whats missing:

  • replacement of the variables in the commandline with the romname
  • using only the extensions stored in the database
  • serching through subdirectorys
  • checking if a screenshot exits

comment:3 Changed 19 years ago by anonymous

Type: patchenhancement

Changed 19 years ago by jochen

Attachment: emulator_screenshots21.sh added

2.1 small bug fixed

Changed 19 years ago by jochen

Attachment: emulator_screenshots30.sh added

Version 3.0

comment:4 Changed 19 years ago by jochen

3.0 changes:

  • extensions now supported
  • check if screenshot exits.

missing:

  • replacement of variables on the commandline
  • subdirectorys.

comment:5 Changed 19 years ago by greg

Status: newassigned

You could use the gamemetadata table here which contains the ROMPATH that the game was found in as well as the romname and thereby avoid having to worry about file extensions, subdirectories or loopthing through the contents of the base rompath.

Changed 19 years ago by jochen

Attachment: emulator_screenshots.2.sh added

Testversion 4.0 (deosn't work)

comment:6 Changed 19 years ago by jochen

I've updated the script to use the gamemetadata table.

now it need to be patched so that the $COMMANDLINE var is splited to cmdrun and cmdpar. If someone would work on this, i've no time...

comment:7 Changed 18 years ago by danielk

Milestone: 0.20
Version: head

comment:8 Changed 18 years ago by jochen

Resolution: fixed
Status: assignedclosed

This ticket is closed, because i've added the functionality of this script directly to mythgame...

comment:9 in reply to:  8 Changed 17 years ago by ryebrye@…

Replying to jochen:

This ticket is closed, because i've added the functionality of this script directly to mythgame...

Can you please explain how to access this functionality in mythgame? I have the latest svn build, but can't figure out how to make it build screenshots automatically for my several thousand roms... (yeah, you can see why an automatic generator is a feature I want!)

Ryan

comment:10 Changed 17 years ago by greg

The code to incorporate this directly within mythgame was never accepted into the code base and likely will not be.

There are just way too many potential issues with this and anyone wishing to do it will have to do it manually with a script (including the ones Jochen added to the system).

If you have any further comments and questions please do so on the mailling lists as the ticket system is not a help forumn :)

comment:11 Changed 4 years ago by Mark Kendall <mark.kendall@…>

In cc682b107d/mythtv:

AvFormatDecoder?: Fix potential error in DVD aspect ratio

  • from last commit, zero is not a valid aspect ratio

Refs #225

comment:12 Changed 4 years ago by Mark Kendall <mark.kendall@…>

In 6f9825338/mythtv:

AvFormatDecoder?: Fix some DVD menus with VAAPI and VDPAU

  • as noted in the code, overriding the aspect ratio from the DVD

ringbuffer broke aspect ratio change detection and we were continually
resetting the decoder - with fairly disastrous results

Refs #225

comment:13 Changed 4 years ago by Mark Kendall <mark.kendall@…>

In 55dd6a75df/mythtv:

AvFormatDecoder?: Fix some DVD menus with VAAPI and VDPAU

  • as noted in the code, overriding the aspect ratio from the DVD

ringbuffer broke aspect ratio change detection and we were continually
resetting the decoder - with fairly disastrous results

Refs #225

(cherry picked from commit 6f9825338a3622a2c433f31c08e11d07f7becfbe)

comment:14 Changed 4 years ago by Mark Kendall <mark.kendall@…>

In 2b753d95fd/mythtv:

AvFormatDecoder?: Fix potential error in DVD aspect ratio

  • from last commit, zero is not a valid aspect ratio

Refs #225

(cherry picked from commit cc682b107deda27dd8a4caaf83a80044011723e3)

Note: See TracTickets for help on using tickets.