Opened 13 years ago
Closed 11 years ago
#10042 closed Patch - Feature (Fixed)
mythburn.py enhancements
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | minor | Milestone: | 0.27 |
Component: | Plugin - MythArchive | Version: | 0.24-fixes |
Severity: | medium | Keywords: | |
Cc: | Ticket locked: | no |
Description
Attached is a patch that improves mythburn.py aspect ratio and video storage groups support.
Changes:
- getAspectRatioOfVideo: Changed streaminfo.xml to streaminfo_orig.xml. When ffmpeg transcodes the file the original DAR was lost. For example, 720x480 nuv files with a DAR of 1.33 after transcode the DAR would be 1.5 which would cause the aspect ratio of the output dvd to be set as 1.7778 causing the picture to be stretched.
- Added getVideoPath: When using Storage Groups for videos an error would occur because mytharchivehelper only provides the filename and not the complete file path as it does for recordings. getVideoPath pulls the Videos storage groups paths from the db, adds the local videopath, and returns the path where the filename is found. getVideoPath replaces videopath in the rest of the script.
- getStreamInformation: In many cases mytharchivehelper provides N/A for the aspect ratio or calculates the aspect ratio based on the PAR. In the patch getStreamInformation uses ffmpeg to get the DAR if it is available. If DAR isn't available it sets the aspect ratio from the PAR.
- encodeVideoToMPEG2: In cases where the video aspect ratio is > 1.9 add padding to the ffmpeg output video to avoid stretched video. Added folder parameter.
- encodeNuvToMPEG2: Removed the -crop* options as they do not work in the latest versions of ffmpeg or mythffmpeg that is in .24-fixes.
- various other typos and whitespaces
Attachments (1)
Change History (7)
Changed 13 years ago by
Attachment: | mythburn.py.patch added |
---|
comment:1 Changed 13 years ago by
Owner: | paulh deleted |
---|---|
Status: | new → assigned |
comment:2 Changed 11 years ago by
comment:6 Changed 11 years ago by
Milestone: | unknown → 0.27 |
---|---|
Resolution: | → Fixed |
Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.
In a3cf98c58828dfc0a42b58e2e303bcc1f02b1305/mythtv: