NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 47 48 49 50 51 … 93 Next »
Need some help with MEncoder commandline, please

 
  • 0 Vote(s) - 0 Average
Need some help with MEncoder commandline, please
zehd
Offline

Posting Freak

Posts: 5,119
Threads: 249
Joined: Feb 2006
#1
2006-12-12, 11:47 PM
Hi all. I'm doing finishing touches on a new version of ZProcess where it will now use MEncoder to transcode files.

One thing I can do with FFmpeg is create a video rectangle inside a 4x3 field that may not necessarily be centred. Here's an example, including the commandline that would create the rectangel...

[ATTACHMENT NOT FOUND]

Code:
"C:\Program Files\devnz\gbpvr\Third Party\FFmpeg\ffmpeg.exe" -y -i "C:\TV\Recorded\Battlestar Galactica\Battlestar.Galactica-S03E08-Hero.avi" -target ntsc-dvd  -deinterlace  -b 4000000 -vcodec mpeg2video -ab 224 -ar 48000 -acodec mp2 -ac 2 -r 23.976023976024 -s [B]560x308[/B] [B]-padtop 64 -padbottom 108 -padleft 56 -padright 24[/B] -aspect 4:3  "C:\TV\Override\Battlestar.Galactica-S03E08-Hero.mpg"

With ffmpeg, I can play with the padding. The resulting padding + Rectangle size equals a 640x480 video...

In Mencoder, when I create the same size rectangle, it is automatically centred vertically and horizontally, within the field

[ATTACHMENT NOT FOUND]

Code:
"C:\Program Files\devnz\gbpvr\Third Party\mplayer\mencoder.exe" -oac lavc -ovc lavc -of mpeg -mpegopts format=dvd:tsaf -vf lavcdeint,scale=[B]560:308[/B],expand=[B]640:480[/B],harddup -srate 48000 -af lavcresample=48000 -lavcopts vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=4000:vbitrate=4000:keyint=15:acodec=mp2:abitrate=224:aspect=4/3  -fps 23.976 -ofps 23.976023976024 -o "C:\TV\Override\Battlestar.Galactica-S03E08-Hero.mpg" "C:\TV\Recorded\Battlestar Galactica\Battlestar.Galactica-S03E08-Hero.avi"

With the MEncoder docs, it say that I can create hieght and width of a rectangle and define the x,y coordinates of the start of that rectangle, which would be great (I can create that code in ZProcess).. I just can't get it working...

http://www.mplayerhq.hu/DOCS/man/en/mplayer.1.html

I think it's in the scale or expand, but everything I do has the rectangle centred...

Any ideas?

Thanks
Frank
Frank Z
[COLOR="Gray"]
I used to ask 'why?' Now I just reinstall...
[SIZE="1"]______________________________________________
Author: ZTools: ZProcess, MVPServerChecker; UltraXMLTV Enhancer, Renamer, Manager; [/SIZE]
[/COLOR]
-stattik-
Offline

Posting Freak

Posts: 924
Threads: 26
Joined: Mar 2005
#2
2006-12-13, 03:01 AM
Are you trying to crop the video or encode add black space around it? I've probably got a snippit somewhere.
zehd
Offline

Posting Freak

Posts: 5,119
Threads: 249
Joined: Feb 2006
#3
2006-12-13, 05:06 AM
-stattik- Wrote:Are you trying to crop the video or encode add black space around it? I've probably got a snippit somewhere.

Yeah, I'm trying to take a 16:9 video aspect ratio and letterbox into a 4:3. The problem is, that many of the avis guys have, don't have set aspect ratios or resluotions...

ZProcess already calculates the required padding. So I just need to be able to designate my own values for top, bottom, left and right padding, lie I can do with ffmpeg...

It would be great if you could get me in the right direction

Thanks

Frank
Frank Z
[COLOR="Gray"]
I used to ask 'why?' Now I just reinstall...
[SIZE="1"]______________________________________________
Author: ZTools: ZProcess, MVPServerChecker; UltraXMLTV Enhancer, Renamer, Manager; [/SIZE]
[/COLOR]
-stattik-
Offline

Posting Freak

Posts: 924
Threads: 26
Joined: Mar 2005
#4
2006-12-13, 05:11 PM
expand=-80:-172:56:64 should do the trick although I'm not able to test this at the time. If you don't mind me asking, why would you not want to center the picture in the frame?
zehd
Offline

Posting Freak

Posts: 5,119
Threads: 249
Joined: Feb 2006
#5
2006-12-13, 08:38 PM
-stattik- Wrote:expand=-80:-172:56:64 should do the trick although I'm not able to test this at the time.


Thanks Stattik... I'm gonna try this...

Quote:If you don't mind me asking, why would you not want to center the picture in the frame?

Great question. Well first of all, the actual 4x3 field that is sent to an MVP, overscans, and is not always centred itself. (Possibly a symptom of an older TV too) With this tweaking, I'm able to optimize the picture so that there is absolutely no cut off.

And my Wife is insistent on having a OSD clock from her TV, and I hate how it overlays in the bottom left of the screen, usually over some writing or something. So I also shift the whole kit and kaboodle up above that. It ends up creating a Letterbox that's actually placed similarily to the first illustration in my first post...
Frank Z
[COLOR="Gray"]
I used to ask 'why?' Now I just reinstall...
[SIZE="1"]______________________________________________
Author: ZTools: ZProcess, MVPServerChecker; UltraXMLTV Enhancer, Renamer, Manager; [/SIZE]
[/COLOR]
Ted the Penguin
Offline

Posting Freak

Posts: 1,590
Threads: 64
Joined: Aug 2006
#6
2006-12-13, 10:24 PM
zehd Wrote:And my Wife is insistent on having a OSD clock from her TV
ouch, NFG
zehd
Offline

Posting Freak

Posts: 5,119
Threads: 249
Joined: Feb 2006
#7
2006-12-13, 11:21 PM
Ted the Penguin Wrote:ouch, NFG

And that's the inspiration for ZProcess....
Frank Z
[COLOR="Gray"]
I used to ask 'why?' Now I just reinstall...
[SIZE="1"]______________________________________________
Author: ZTools: ZProcess, MVPServerChecker; UltraXMLTV Enhancer, Renamer, Manager; [/SIZE]
[/COLOR]
HtV
Offline

Posting Freak

Posts: 3,470
Threads: 46
Joined: Dec 2005
#8
2006-12-14, 12:04 AM
zehd Wrote:And that's the inspiration for ZProcess....

I can feel it...........there's love in the air.Smile
AMD Athlon 64 3000, HDD: 80, 120, 200 GB, Hauppauge 350 + 150, MVP, Asus 6000L Laptop client, Asus X50sl client,
Fritz!box 7140 modem/router, GBPVR 1.3.7.
zehd
Offline

Posting Freak

Posts: 5,119
Threads: 249
Joined: Feb 2006
#9
2006-12-14, 02:54 AM
BTW, I got that command thingy working... Thanks
Frank Z
[COLOR="Gray"]
I used to ask 'why?' Now I just reinstall...
[SIZE="1"]______________________________________________
Author: ZTools: ZProcess, MVPServerChecker; UltraXMLTV Enhancer, Renamer, Manager; [/SIZE]
[/COLOR]
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  why demux/mux? use mencoder to make dvdauthor files! pBS 12 6,913 2006-04-13, 02:56 PM
Last Post: pBS

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode