shaileshmulange / javacv

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

Android Images to video how to change the video size dynamically as per orientation ? #256

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi , 
I am creating the video from list of images using ffmpeg-recorder. it works 
Perfectly. But i have the various size of images means it shows some weird 
parts in the same video. so please advice me how to change the video size as 
per the single image ??? 

i mean depends upon the image video size should be get change  or i need  
 full image get displayed in the video . 

Please advice me . 

Thanks,
Rajesh K

Original issue reported on code.google.com by SDIPondy on 9 Nov 2012 at 8:45

GoogleCodeExporter commented 9 years ago
 newFFmpegFrameRecord recorder = new newFFmpegFrameRecord("video"+System.currentTimeMillis()+".mp4",320,480);

i am using this line to give a height and width for a video. 

Original comment by SDIPondy on 9 Nov 2012 at 9:18

GoogleCodeExporter commented 9 years ago
I don't think FFmpeg supports dynamically changing image sizes. If you want to 
resize your images, you can do that with cvResize(). Is this what you want?

Original comment by samuel.a...@gmail.com on 10 Nov 2012 at 2:11

GoogleCodeExporter commented 9 years ago
Hi samuel , 

i will check the re-size functionality and let you know. 

Original comment by SDIPondy on 12 Nov 2012 at 5:43

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Hi samuel,

What i need is i have captured some images from device. from that 5 images are 
portrait screens and another images are landscape images. so as per the 
orientation our video size should get change . For this only i am searching 
solution and asked whether we have dynamic image size changing facility or not 
??? 

i mean while showing the landscape images our video size should get changed as 
per the image size. 

Thanks ,
Rajesh K

Original comment by Rajeshan...@gmail.com on 12 Nov 2012 at 6:06

GoogleCodeExporter commented 9 years ago
We can use cvTranspose() to transform a landscape image to a portrait image, or 
vice versa. Is this good for you? Please ask your questions on the mailing list 
next time, thank you

Original comment by samuel.a...@gmail.com on 18 Nov 2012 at 2:45