Log in
Register
Menu
Log in
Register
Home
What's new
Latest activity
Authors
Forums
New posts
Search forums
What's new
New posts
Latest activity
Members
Current visitors
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Satellite TV receivers & systems support forums
Analogue systems
Want to resurrect your D/D2 MAC kit?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Captain Jack" data-source="post: 1016750" data-attributes="member: 243342"><p>Ah, yeah, forgot about WS signals - I wouldn't know where to start there! The PAL encoding is an enigma for me. I understand MAC better than I do PAL - it seems like a simpler mechanism as it's all linear.</p><p></p><p>Yeah, at moment I am just resizing it to fit my no-name TV's screen with a 'close-enough' aspect. The filter graph for 4/3 and WS is this:</p><p></p><p>[CODE] aw = s->vid.width;</p><p> ah = s->vid.conf.lines;</p><p> sw = av->codec_ctx->width;</p><p> sh = av->codec_ctx->height;</p><p></p><p> if((sw/sh) > (aw/ah)) /* check if source video's ratio is bigger than TV screen's (16/10-ish for me, which coincidentally is full frame's ratio (1024/625)) */</p><p> {</p><p> /* widescreen padding - letterbox */</p><p> sprintf(fi,"[in]pad=""iw:iw/(%f/%f):0:(oh-ih)/2"",scale=%f:%f[video]; \</p><p> movie=tv1000.png,scale=iw/(1024/%f):iw/(iw/ih)/(576/%f)[tvlogo]; \</p><p> movie=satsuk.png,scale=iw/(1024/%f):iw/(iw/ih)/(576/%f)[satslogo]; \</p><p> [video][tvlogo]overlay=%i:%i[logos]; \</p><p> [logos][satslogo]overlay=%i:%i[out]",</p><p> aw,ah,sw,sh,</p><p> sw,sh,</p><p> sw,sh,</p><p> (int) (sw*12/15),(int) (sh*1/10),</p><p> (int) (sw*12/16),(int) (sh*10/12)</p><p> );</p><p> }</p><p> else</p><p> {</p><p> /* 4/3 padding - pillarbox */</p><p> sprintf(fi,"[in]pad=""iw*(4/3):ih:(ow-iw)/2:0"",scale=%f:%f[video]; \</p><p> movie=tv1000.png,scale=iw/(1024/%f):iw/(iw/ih)/(576/%f)[tvlogo]; \</p><p> movie=satsuk.png,scale=iw/(1024/%f):iw/(iw/ih)/(576/%f)[satslogo]; \</p><p> [video][tvlogo]overlay=%i:%i[logos]; \</p><p> [logos][satslogo]overlay=%i:%i[out]",</p><p> sw,sh,</p><p> sw,sh,</p><p> sw,sh,</p><p> (int) (sw*12/15),(int) (sh*1/10),</p><p> (int) (sw*12/16),(int) (sh*10/12)</p><p> );</p><p> }[/CODE]</p><p></p><p>As you can see - pretty ugly and definitely needs tidying up.</p></blockquote><p></p>
[QUOTE="Captain Jack, post: 1016750, member: 243342"] Ah, yeah, forgot about WS signals - I wouldn't know where to start there! The PAL encoding is an enigma for me. I understand MAC better than I do PAL - it seems like a simpler mechanism as it's all linear. Yeah, at moment I am just resizing it to fit my no-name TV's screen with a 'close-enough' aspect. The filter graph for 4/3 and WS is this: [CODE] aw = s->vid.width; ah = s->vid.conf.lines; sw = av->codec_ctx->width; sh = av->codec_ctx->height; if((sw/sh) > (aw/ah)) /* check if source video's ratio is bigger than TV screen's (16/10-ish for me, which coincidentally is full frame's ratio (1024/625)) */ { /* widescreen padding - letterbox */ sprintf(fi,"[in]pad=""iw:iw/(%f/%f):0:(oh-ih)/2"",scale=%f:%f[video]; \ movie=tv1000.png,scale=iw/(1024/%f):iw/(iw/ih)/(576/%f)[tvlogo]; \ movie=satsuk.png,scale=iw/(1024/%f):iw/(iw/ih)/(576/%f)[satslogo]; \ [video][tvlogo]overlay=%i:%i[logos]; \ [logos][satslogo]overlay=%i:%i[out]", aw,ah,sw,sh, sw,sh, sw,sh, (int) (sw*12/15),(int) (sh*1/10), (int) (sw*12/16),(int) (sh*10/12) ); } else { /* 4/3 padding - pillarbox */ sprintf(fi,"[in]pad=""iw*(4/3):ih:(ow-iw)/2:0"",scale=%f:%f[video]; \ movie=tv1000.png,scale=iw/(1024/%f):iw/(iw/ih)/(576/%f)[tvlogo]; \ movie=satsuk.png,scale=iw/(1024/%f):iw/(iw/ih)/(576/%f)[satslogo]; \ [video][tvlogo]overlay=%i:%i[logos]; \ [logos][satslogo]overlay=%i:%i[out]", sw,sh, sw,sh, sw,sh, (int) (sw*12/15),(int) (sh*1/10), (int) (sw*12/16),(int) (sh*10/12) ); }[/CODE] As you can see - pretty ugly and definitely needs tidying up. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Satellite TV receivers & systems support forums
Analogue systems
Want to resurrect your D/D2 MAC kit?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.
Accept
Learn more…
Top