LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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, 07:48 AM   #1
fakie_flip
Senior Member
 
Registered: Feb 2005
Location: San Antonio, Texas
Distribution: Gentoo Hardened using OpenRC not Systemd
Posts: 1,495

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, 09:34 AM   #2
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,137
Blog Entries: 6

Rep: Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826
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, 12:34 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,978

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
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 12:39 PM.
 
  


Reply



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 05:08 AM
Reducing size in LVM SBN Linux - General 8 07-28-2009 06:30 AM
LXer: One Small Step Toward Reducing License Proliferation LXer Syndicated Linux News 0 04-21-2009 09:00 PM
Reducing kernel size Kholnuu Slackware 6 01-22-2005 02:57 AM
reducing the size of linux partitions cybergir Linux - Newbie 1 02-04-2003 03:58 PM

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

All times are GMT -5. The time now is 09:41 PM.

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
Open Source Consulting | Domain Registration