Difference between revisions of "Filter Wizard"

From MythTV Official Wiki
Jump to: navigation, search
m
 
(15 intermediate revisions by 2 users not shown)
Line 1: Line 1:
This is a [[Feature Wishlist_(Frontend Addons)|feature request]] for a '''Filter Wizard''' for selecting and applying filters to recordings already recorded. Example: crop black bars from a TV show broadcast in letterbox.
+
This is a [[Feature Wishlist_(Frontend Addons)|feature request]] for a '''Filter Wizard''' or GUI for selecting and applying filters to recordings. This feature has associated [[Bug_Tracking_System | trac]] entry {{Ticket|3152}}.
The functionality to apply filters to recordings already exists in the transcoder profiles, but currently this method is not very user friendly (its just an argument string).  Additionally, it is currently not possible to add new transcoder profiles, leaving only 4 possible combinations of compression and filtering. 
+
 
 
= Background =
 
= Background =
The topic of allowing the user to add new recording profiles has been brought up on the developer mailing list.  The position of the main developers seems to be "if you add a single new profile name, it would have to be added for each and every other profile group, etc, etc.. " and that this would be overly complex. It is assumed that the average user will not need more than 4 recording profiles. As far as I can tell the profiles in the 'transcoder' group would not have this issue. It is my understanding that 'transcoder' profiles are always used post recording and would therefore be hardware independent.  Therefore a new profile in the 'transcoder' group would not need to be added to any of the other profile groups.
+
The functionality to apply filters to recordings already exists in the ''transcoders'' profiles, but currently this method is not very user friendly (its just an argument string). Filters  can also be applied in the same way on a per channel basis during recording or playback.  There is some discussion on the developer mailing list of adding a GUI for filters in the future, but nothing recent.  Section [http://www.mythtv.org/docs/mythtv-HOWTO-10.html#ss10.4 10.4] in the user manual describes the currently available filters.
 +
 
 +
[[Image:Filterscurrent.jpg|thumb|center|400px|The current method is not user friendly.]]
  
It is currently possible to add new transcoder profiles to the [[Recordingprofiles_table|recordingprofiles table]] using a mysql query. 
 
mysql> insert into recordingprofiles (name, videocodec, audiocodec, profilegroup) values("Letterbox","MPEG-4","MP3",6);
 
These profiles are then editable in the [[User_Manual:Utilities_and_Setup#Recording_Profiles|'recording profiles' setup screen]].  They are also selectable from the 'post recording processing' options of the recording scheduler.  However, these new profiles are not selectable from the osd menu of playing recordings.  Currently the only selectable profiles from the osd are hard coded as "Default", "Autodetect", "High Quality", "Medium Quality" and "Low Quality".
 
 
== Developer Threads ==
 
== Developer Threads ==
*[http://www.gossamer-threads.com/lists/mythtv/dev/17678 More recording profiles?]
+
*[http://www.gossamer-threads.com/lists/mythtv/dev/18669 New plugin scheme / Filter selection interface?]
*[http://www.gossamer-threads.com/lists/mythtv/dev/17800 More recording profiles? (revisited)]
+
*[http://www.gossamer-threads.com/lists/mythtv/dev/18349 Filter documentation?]
*[http://www.gossamer-threads.com/lists/mythtv/dev/13814 [Preliminary patch[ Add profile groups]
 
*[http://www.gossamer-threads.com/lists/mythtv/dev/13725 How to edit the gui? (And some profile related stuff)]
 
 
 
= Solutions =
 
== Suggested Solution ==
 
'''Fix transcoder profile setup to allow for adding new transcoders'''
 
* Add graphical interface for creating new transcoder profiles.
 
* Modify osd menu for playing recordings to show additional transcoder profiles.
 
 
 
'''Modify the transcoder profile wizard to make adding filter parameters easier'''
 
* Replace the 'custom filters' input box with 'Add filter'/'Remove filter'/'Modify Filter' buttons and a list of currently applied filters
 
* On 'Add filter' -> Provide a list of available filters
 
* On 'Select filter' -> Provide a wizard for each type of filter
 
 
 
'''Pros'''
 
* Should definatly work
 
* Fixes transcoder profile setup to allow for more profiles
 
* User only has to set parameters once and can use them on any video
 
* Filter parameters easily input
 
* Filters are more discoverable to user
 
* Seems to go along with the current architecture
 
 
 
'''Cons'''
 
* Possibly adds clutter to transcoder profile setup
 
* Will require some gui coding for wizards
 
 
 
== Alternate Solution #1 ==
 
Set the filters in the transcoder profile
 
 
 
'''Pros'''
 
* This should definitely work
 
* User only has to set parameters once and can use them on any video
 
* No new code
 
 
 
'''Cons'''
 
* Currently only 5 (really 3) profiles and no option to add more.
 
* The current filter options are inconvenient to input from a remote.
 
* Filters aren't very discoverable.
 
 
 
== Alternate Solution #2 ==
 
Apply the filters in user jobs
 
  
'''Pros'''
+
= Proposed Solution =
* This should work
+
== Add/Remove/Reorder GUI ==
* No new code
+
This would be similar to the ''Recording Profiles'' setup screen that would contain a list of applied filters and an ''(add new filter)'' item at the bottom.  Pressing the menu key would bring up a menu with the options to move the selected filter up in the list (to be applied earlier in the chain), down in the list, or to remove it. Selecting ''(add new filter)'' would bring up a new screen with a list of the available filtersEach of these items would then bring up a wizard to walk the user through inputing the required parameters of the filter. Selecting an existing filter brings up the wizard for that filter to alter the values.
 
 
'''Cons'''
 
* Not convenient to the user since they could not easily change filter parameters from a remote.
 
* Would require expertise.
 
* User would have to find a transcoder the would do the filtering. (maybe virtualDub or something)  
 
 
 
== Alternate Solution #3 ==
 
Provide a filter menu for each recording
 
* Provide a menu item context menu of a recorded video (i.e. where 'edit' is)Allow the user to select filter parameters here and possibly preview.
 
** Similare wizard to the first solution.
 
* Add videoFilter field to recorded table in database to store filter parameters for each recording
 
** Perhaps other tables could be created, but this seems in line with how channel fitlers were implemented
 
* Modify transcoder to get filters from the recorded table, in (addition to / as apposed to) the recording profile.
 
** What about conflicts
 
  
'''Pros'''
+
[[Image:Filterbutton.jpg|thumb|center|400px|A button will replace the text input.]]
* Should work
+
[[Image:Filterchain.jpg|thumb|center|400px|The applied filters will be listed with their settings.]]
* Allows user to choose custom filter parameters for each recording
+
[[Image:Filteradjust.jpg|thumb|center|400px|Selecting a filter will bring up a wizard to modify the settings.]]
* Should be easily discoverable for the user
+
[[Image:Filterpopup.jpg|thumb|center|400px|The menu button opens a popup menu to alter the ordering of the chain.]]
 +
[[Image:Filterlist.jpg|thumb|center|400px|Adding a new filter opens a list of available filters to select from.]]
  
'''Cons'''
+
[[Category:Wishlist]]
* Probably would be redundant for user to select parameters for each recording if there are only several parameter sets the user uses for all their videos
 
* Possibly adds clutter to recorded video menu
 
* Requires change to MySQL schema
 
* Requires change to transcoder code
 
* Requires change to osd code?
 

Latest revision as of 20:59, 24 September 2010

This is a feature request for a Filter Wizard or GUI for selecting and applying filters to recordings. This feature has associated trac entry #3152.

Background

The functionality to apply filters to recordings already exists in the transcoders profiles, but currently this method is not very user friendly (its just an argument string). Filters can also be applied in the same way on a per channel basis during recording or playback. There is some discussion on the developer mailing list of adding a GUI for filters in the future, but nothing recent. Section 10.4 in the user manual describes the currently available filters.

The current method is not user friendly.

Developer Threads

Proposed Solution

Add/Remove/Reorder GUI

This would be similar to the Recording Profiles setup screen that would contain a list of applied filters and an (add new filter) item at the bottom. Pressing the menu key would bring up a menu with the options to move the selected filter up in the list (to be applied earlier in the chain), down in the list, or to remove it. Selecting (add new filter) would bring up a new screen with a list of the available filters. Each of these items would then bring up a wizard to walk the user through inputing the required parameters of the filter. Selecting an existing filter brings up the wizard for that filter to alter the values.

A button will replace the text input.
The applied filters will be listed with their settings.
Selecting a filter will bring up a wizard to modify the settings.
The menu button opens a popup menu to alter the ordering of the chain.
Adding a new filter opens a list of available filters to select from.