kader990 / sagetv-addons

Automatically exported from code.google.com/p/sagetv-addons
0 stars 0 forks source link

test based on aspect ratio.. #64

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Fantastic plugin, just what I've been looking for.  Any chance you could 
the test to trancode recordings based on the show Aspect Ratio...

something like this...
if [IsTV == "true" && IsActivelyRecording == false && ?MediaRatio? 
== "16:9"]
{
:PRIORITY 15
:TRANSCODEOPTS "iPhone-Widescreen" "false"
_TRANSCODE
}

if [IsTV == "true" && IsActivelyRecording == false && ?MediaRatio? 
== "4:3"]
{
:PRIORITY 15
:TRANSCODEOPTS "iPhone-Standard" "false"
_TRANSCODE
}

GetMediaFileFormatDescription info - can be found at the following url 
http://download.sage.tv/api/sage/api/MediaFileAPI.html#GetMediaFileEncoding
(sage.MediaFile)

Thanks
Anne

Original issue reported on code.google.com by jackson....@gmail.com on 15 Apr 2009 at 7:03

GoogleCodeExporter commented 8 years ago
Will be added next time I work on the code.

Original comment by derek%ba...@gtempaccount.com on 21 Apr 2009 at 1:44

GoogleCodeExporter commented 8 years ago
There doesn't appear to be a reliable way to determine the aspect ratio of the
recording.  *All* recordings from my HD-PVR device give this info:

MPEG2-TS[H.264 720p, AC3/384Kbps@48kHz Stereo]

Even if the show is not widescreen, it's still reported as 720p.  If I added 
this
test as implemented it would be about as useful and reliable as using the IsHD 
test
to determine if a recording is widescreen.  Is there a reason you don't just 
use the
IsHD test to determine when a recording is 16:9?  I don't have any more ideas 
on this
so unless you have something else I think I'm going to have to mark this as 
"won't
fix" since there's just no reliable way to determine the actual aspect ratio of 
the
file's content.

Original comment by derek%ba...@gtempaccount.com on 22 Apr 2009 at 6:10

GoogleCodeExporter commented 8 years ago
No reliable way to determine the actual aspect ratio of a recording's content,
therefore marking this as "won't fix".  Feel free to reopen if you think of a 
better
way to determine aspect ratio.

Original comment by derek%ba...@gtempaccount.com on 26 Apr 2009 at 6:44

GoogleCodeExporter commented 8 years ago
Won't fix; issue closed.

Original comment by derek%ba...@gtempaccount.com on 26 Apr 2009 at 7:45