LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-31-2013, 08:48 AM   #1
fakie_flip
Senior Member
 
Registered: Feb 2005
Location: San Antonio, Texas
Distribution: Gentoo Hardened using OpenRC not Systemd
Posts: 1,458

Rep: Reputation: 85
Reducing video size for small android devices


I'm trying to resize a video. It is roughly 780 mb. My phone has roughly 600 mb available. I would like to reduce the size of the video by 200 mb approximately, so that it will fit on my android phone. I don't want to reduce the quality of the video more than necessary. I have googled much about this. Most of what I found mentions ffmpeg but not how to determine the parameters. The current specs on the video are as follows:

Codec: H264
Resolution: 1280x536
Frame Rate: 23.97
 
Old 08-31-2013, 10:34 AM   #2
teckk
Senior Member
 
Registered: Oct 2004
Distribution: FreeBSD Arch
Posts: 2,607

Rep: Reputation: 637Reputation: 637Reputation: 637Reputation: 637Reputation: 637Reputation: 637
Try something like this example.
Code:
ffmpeg -i video.mp4 -c:a copy -c:v libx264 -b:v 2500k -s 640x268 output.mp4
That will resize to half size, copy audio, should be good video quality. You can also use one of ffmpeg's presets.
 
Old 08-31-2013, 01:34 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 19,514

Rep: Reputation: 3017Reputation: 3017Reputation: 3017Reputation: 3017Reputation: 3017Reputation: 3017Reputation: 3017Reputation: 3017Reputation: 3017Reputation: 3017Reputation: 3017
Quality is very subjective. In a real sense you can't reduce that file anymore than it is. Maybe a different file format but it won't get much smaller. You however don't need that large of a resolution, you don't need that good of sound, you may not even need all the colors. You need to loose something in order to reduce the size, period.

Sound quality and video quality and color and screen size or any combination could result in a much much smaller file. You'll see many of the windows apps make mention of how they can convert videos for use in phones and tablet and even computers.

As teckk points out there are some linux apps that can do that, usually from command line.


I have to admit I cheated and used a windows app in wine.

I'd think you could reduce that to maybe 20M or so and still be watchable.

Last edited by jefro; 08-31-2013 at 01:39 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
reducing size of WAV file hydraMax Linux - Software 11 09-28-2014 06:08 AM
Reducing size in LVM SBN Linux - General 8 07-28-2009 07:30 AM
LXer: One Small Step Toward Reducing License Proliferation LXer Syndicated Linux News 0 04-21-2009 10:00 PM
Reducing kernel size Kholnuu Slackware 6 01-22-2005 03:57 AM
reducing the size of linux partitions cybergir Linux - Newbie 1 02-04-2003 04:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration