[Cialug] Basic video rotation with mplayer failing
Colin Burnett
cmlburnett at gmail.com
Thu Sep 3 20:09:12 CDT 2009
I have video taken with my Canon SD780IS. It plays just fine with mplayer:
VIDEO: [avc1] 1280x720 24bpp 30.000 fps 0.0 kbps ( 0.0 kbyte/s)
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 44100 Hz, 1 ch, s16le, 0.0 kbit/0.00% (ratio: 0->88200)
Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
==========================================================================
This is all fine but I need to rotate my video 180 degrees but I can't
even get a stream copy at this point:
$ mencoder -oac copy -ovc copy foo -o foo2
This produces garbage.
VIDEO: [avc1] 1280x720 24bpp 30.000 fps 23257.8 kbps (2839.1 kbyte/s)
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 44100 Hz, 1 ch, s16le, 707032.7 kbit/100203.05% (ratio: 88379086->88200)
Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
==========================================================================
The video gets horribly blocky, my A-V sync goes to whack, video plays
too fast, BUT my audio plays correctly (that is until it ends
pre-maturely because the video stream is done).
Ideally I could use the -vf flip,mirror option to mencoder to get a
180 rotation but it can't even copy it verbatim without hosing it. My
full command would be something like `mencoder -oac copy -ovc lavc -vf
flip,mirror foo -o foo2`. Doing this and playing it shows 180
rotation in video but all the aforementioned problems are still there.
Any suggestions? I've never had this much problem with mplayer before.
I looked into ffmpeg but I can't seem to find any way to rotate, flip, or mirror
Colin Burnett
More information about the Cialug
mailing list