[MPlayer-users] Scripting and cropdetect
Torinthiel
torinthiel at megapolis.pl
Thu Sep 2 17:56:42 CEST 2004
On Thu, Sep 02, 2004 at 05:34:48PM +0200, JiHO wrote:
>
> Hi all,
>
> I previously mentionned on this list (a long time ago... thread:
> "Encoding problems / tips needed") that I wanted to scrip the DVD
> encoding process.
> At this stage I am trying to automate the crop detection procedure (I
> know this is controversial and has been discutted previously,
> nevertheless I want to automate this). My problem is with getting the
> result of -vf cropdetect. Indeed let us put the interesting lines in a file:
> mplayer dvd://1 -vo null -nosound -vf cropdetect -ss 300 -frames 4
> 2>&1 | grep "crop area" > file
>
> then if I do:
> cat file
> I obtain:
> crop area: X: 9..716 Y: 75..501 (-vf crop=706:426:10:76)
> crop area: X: 9..716 Y: 75..501 (-vf crop=706:426:10:76)
> which seems interesting
>
> but if I do:
> less file
> I obtain:
> V: 0,0 1 0% 0% 0,0% 0 0 0%^MV: 0,1 2 0% 0% 0,0% 0 0
> 0%^MV: 0
> ,2 3 0% 0% 0,0% 0 0 0%^Mcrop area: X: 9..716 Y: 75..501 (-vf
> crop=706:4
> 26:10:76)
> V: 0,2 4 0% 0% 0,0% 0 0 0%^Mcrop area: X: 9..716 Y: 75..501
> (-vf crop
> =706:426:10:76)
>
> question 1/ why this difference?
Because MPlayer prints it's status line, than moves back and prits
cropdetect results. Use -quiet
Torinthiel
--
Waclaw "Torinthiel" Schiller GG#: 542916, 3073512
torinthiel(at)megapolis(dot)pl
gpg: B06901F1 fpr: FAA3 559F CAE9 34DE CDC8 7346 2B6E 39F2 B069 01F1
"No classmates may be used during this examination"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-users/attachments/20040902/5e746225/attachment.pgp>
More information about the MPlayer-users
mailing list