ankush2708 / javacv

Automatically exported from code.google.com/p/javacv
GNU General Public License v2.0
0 stars 0 forks source link

Crop a 640*800 video to 640*640. Video is stretched #484

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.I want to record a squre video. I am choosing resolution 320*240 to record 
video
2. I rotated the image 90 degree for back camera and 270degree for front 
camera. Video is croped.
3.Record the video using FFmpegFrameRecorder 

What is the expected output? What do you see instead?
The video shulf not be stretched

What version of the product are you using? On what operating system?
Nexus 4

Please provide any additional information below.

Original issue reported on code.google.com by amlan....@gmail.com on 18 Sep 2014 at 6:45

GoogleCodeExporter commented 8 years ago
We can use, for example, cvSetImageROI() and cvCopy() to do that.

Please post your questions on the mailing list next time if possible, thank you!

Original comment by samuel.a...@gmail.com on 20 Sep 2014 at 12:52

GoogleCodeExporter commented 8 years ago
Thank you samuel. I will try that.

Original comment by amlan....@gmail.com on 20 Sep 2014 at 1:32