Win a copy of TensorFlow 2.0 in Action this week in the Artificial Intelligence and Machine Learning forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

Video Resize API

 
Ranch Hand
Posts: 209
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Anyone know of a java api that i can use in a program to resize the height and width of a video (i.e. in format video/mpg, video/3gp etc.)

and to find out the height and width of the video?

and to set the format of the video to video/3gp?

Cheers in advance :-)

Niall
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

You can check out below artifact. It's indeed built by me to resize videos.

This artifact can be used to resize images as well as videos to lower resolution with very good quality

URL for Project dependency(Available for Maven, Gradle, Scala etc..): Click Here


Or you can add below dependency to pom.xml

<dependency>
<groupId>io.github.techgnious</groupId>
<artifactId>IVCompressor</artifactId>
<version>1.0.1</version>
</dependency>

Usage::

   IVCompressor compress=new IVCompressor();
   byte[] Imageoutput=compress.resizeImage(data, fileFormat, resolution); //for image compression
   byte[] VideoOutput=compress.reduceVideoSize(videoData, fileFormat, resolution);//for video compression

It can convert 25MB video into 300-400kb with default settings. It have many other methods with custom settings. Do check out. Thank you
 
Marshal
Posts: 70684
288
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch

Please show us that your app can be trusted; many users are reluctant to download unfamiliar code. I have removed the text colours because some people find coloured text impossible to read.
 
Srikanth Reddyy
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I had the same similar requirement and i have searched for solution in many places but couldn't find direct solution.After many days of research i have gained knowledge on utilising FFMPEG through java and manipulate the videos. Hence in order to ease this problem i have created a artifact for resizing the images and videos.

This artifact is in its initial stage. Many more features will be released soon with time
 
Srikanth Reddyy
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can also refer this link for complete info about IVCompressor

https://techgnious.github.io/IVCompressor
 
Campbell Ritchie
Marshal
Posts: 70684
288
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Somebody told me I was overreacting about code on GitHub: sorry.
 
Saloon Keeper
Posts: 22668
153
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There's a very good video app I've used in the past called ProjectX, and it's 100% Java. It's one of those apps I like to wave in people's faces when they say that Java is "slow".

Don't recall if it has an API and can be run as a JavaBean, though.
 
reply
    Bookmark Topic Watch Topic
  • New Topic