Hi i wont to use Mplayers auto crop detect feature and save the outpu to a variable
mplayer dvd:/// -vf cropdetect
output
Code:
[CROP] Crop area: X: 0..703 Y: 0..303 (-vf crop=704:304:0:0).0 0
[CROP] Crop area: X: 0..703 Y: 0..303 (-vf crop=704:304:0:0).0 0
[CROP] Crop area: X: 0..703 Y: 0..303 (-vf crop=704:304:0:0).0 0
[CROP] Crop area: X: 0..703 Y: 0..303 (-vf crop=704:304:0:0).0 0
[CROP] Crop area: X: 0..703 Y: 0..303 (-vf crop=704:304:0:0).0 0
[CROP] Crop area: X: 0..703 Y: 0..303 (-vf crop=704:304:0:0).0 0
i've trimmed it down with this
mplayer dvd:/// -vf cropdetect|cut -d '(' -f 2|cut -d ')' -f 1|grep crop|tail
output
Code:
-vf crop=704:304:0:0
-vf crop=704:304:0:0
-vf crop=704:304:0:0
-vf crop=704:304:0:0
-vf crop=704:304:0:0
-vf crop=704:304:0:0
-vf crop=704:304:0:0
-vf crop=704:304:0:0
-vf crop=704:304:0:0
i hope to get only 1 of these lines stored as a variable