I might be very dim, but do not understand this. Running the command on my file gets me:
Code:
awk '{gsub("--height=","",$NF);gsub("--width=","",$(NF-1));print $NF,$(NF-1) }' .wmvtoavi/log/out
/media/arkiv/funnyvideos/bikerack.wmv File:
pixels 320
pixels 240
1.33:1 ratio:
0 Frames:
hours/mins/secs 00:00:29
second per
WMV2 format:
second per
0): AID
wmav2 Codec:
second per
Hz 32000
The file looks like:
File: /media/arkiv/funnyvideos/bikerack.wmv
Width: 320 pixels
Height: 240 pixels
Aspect ratio: 1.33:1
Frames: 0
Duration: 00:00:29 hours/mins/secs
Framerate: 30.000 frames per second
Video format: WMV2
Video bitrate: 0 bits per second
Audio track 1 (Stream 0.0, AID 0):
Codec: wmav2
Bitrate: 40000 bits per second
Sampling rate: 32000 Hz
So basically, it stripped "height" and "width", and for the others, it removed e.g. "Sampling rate" and moved "hz" in front of "32000".
So unless I don't understand anything, it looks like it doesn't do what I need.
- Ketil
Bookmarks