LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-10-2012, 12:22 PM   #1
porphyry5
Member
 
Registered: Jul 2010
Location: oregon usa
Distribution: Slackware 14.1, Arch
Posts: 483

Rep: Reputation: 24
Mencoder yields 2GB output without crop, 2MB output with crop


Does anyone know offhand if mencoder's crop feature clashes with any of its other options? I'm using a direct adaptation of
http://www.mplayerhq.hu/DOCS/HTML/en...t-vcd-dvd.html
Section 7.8.5.1.

Without the crop option, I get the desired output file of ~2GB. When I add the crop option, encoding finishes in about a minute, producing a 2MB file. These are the two commands, identical in every respect except for the crop, whose parameters I got via -cropdetect
Code:
mencoder dvd://1 -dvd-device VIDEO_TS -oac lavc -ovc lavc -of mpeg -nosub \
-mpegopts format=dvd:tsaf -vf crop=688:432:18:72,harddup -srate 48000 -af lavcresample=48000 \
-lavcopts vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=6424:vbitrate=2400:\
keyint=15:vstrict=0:acodec=ac3:abitrate=192:aspect=16/9:vpass=1 -ofps 25 -o movie.1

mencoder dvd://1 -dvd-device VIDEO_TS -oac lavc -ovc lavc -of mpeg -nosub \
-mpegopts format=dvd:tsaf -vf harddup -srate 48000 -af lavcresample=48000 \
-lavcopts vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=6424:vbitrate=2400:\
keyint=15:vstrict=0:acodec=ac3:abitrate=192:aspect=16/9:vpass=1 -ofps 25 -o movie.1

grep CROP log.txt | tail -1
[CROP] Crop area: X: 9..712  Y: 71..504  (-vf crop=688:432:18:72).
 
Old 01-11-2012, 04:54 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981
use the vf filter to watch the video with mplayer, that'll probably shed some light on it, although extra degbugging on the menocder command should also be a lot of use.
 
Old 01-11-2012, 06:44 AM   #3
porphyry5
Member
 
Registered: Jul 2010
Location: oregon usa
Distribution: Slackware 14.1, Arch
Posts: 483

Original Poster
Rep: Reputation: 24
Quote:
Originally Posted by acid_kewpie View Post
use the vf filter to watch the video with mplayer, that'll probably shed some light on it, although extra degbugging on the menocder command should also be a lot of use.
Thanks, that's what I was afraid of, going to have to dig for this one. But it was worth a try.

Watching the movie with the vf filter appeared completely normal, so I started trying elimination to find the problem, and struck gold on the first try. For some unknown reason "crop" and "harddup" clash. When I removed "harddup" all was well.

The manual states "harddup" is necessary for mpeg output, and as it prevents mencoder dropping frames I expected to find the video and audio out of sync by the end of the movie. But there was no sign of that at all, nor any other adverse effect that I noticed.

Last edited by porphyry5; 01-11-2012 at 08:55 AM. Reason: Added solution
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
AcidRip Crop Detection on Lucid wdaniels Linux - Software 2 07-12-2010 11:26 PM
LXer: The Firefox Crop Circle LXer Syndicated Linux News 0 11-26-2007 04:30 AM
mencoder question.. crop and scale.. c0ldshadow Fedora 1 07-21-2005 04:10 PM
Crop/scale pdfs S.B. Linux - Software 1 03-16-2005 11:39 AM
crop images to 10x15 otoomet Linux - Software 3 03-03-2005 04:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration