UbuntuThis forum is for the discussion of Ubuntu Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Ubuntu,(Feisty Fawn) Windows XP(Home Edition)
Posts: 634
Rep:
Need help compressing video file for uploading
Hey folks!
I have some music videos that I want to upload to my online storage, but they are all 25 to 45MB in size and that would take much too long with my connection speed!
Can someone please tell me how and what to use to make these files smaller?
I am dual-booting Ubuntu 7.04 and Windows XP, so anything that would work on either will be appreciated!
Gzip or Bzip2 are probably the best compression formats.
You can use a GUI like File Roller or Ark...
Gzip has less compression but it's quicker and less memory intensive, Bzip2 has higher compression but more memory usage..
You can not really compress videos as they are usually already compressed using a lossy compression. What is the current format (mpeg2)? I can't advise but maybe someone can advise based on the answer.
Distribution: Ubuntu,(Feisty Fawn) Windows XP(Home Edition)
Posts: 634
Original Poster
Rep:
Quote:
Originally Posted by Wim Sturkenboom
You can not really compress videos as they are usually already compressed using a lossy compression. What is the current format (mpeg2)? I can't advise but maybe someone can advise based on the answer.
Thanks Guy's!
In answer to your question, Wim Sturkenboom, 'MPEG 1' is what the properties of these video's are telling me. Don't know if that helps. I'm not a video person.
I tried right clicking on the files and selecting "Create Archive". You get the choice of creating a tar.gz, tar.bz2, .tar, .zip, .gz, .bz2, .ar, .ear, .jar, or .war. None of these choices get me even CLOSE! (only reduces the file by a couple MB's)
I just want to upload them to my online file storage for safe keeping. 40MB takes much too long to upload when I'm trying to get about 15 files uploaded.
Distribution: Ubuntu,(Feisty Fawn) Windows XP(Home Edition)
Posts: 634
Original Poster
Rep:
Quote:
Originally Posted by binary_y2k2
Gzip or Bzip2 are probably the best compression formats.
You can use a GUI like File Roller or Ark...
Gzip has less compression but it's quicker and less memory intensive, Bzip2 has higher compression but more memory usage..
Code:
gzip --best filename.video
then that will compress as "filename.video.gz"
Code:
bzip2 --best filename.video
then that will compress as "filename.video.bz2"
Hi binary_y2k2!
I did a
Code:
gzip --best videoname.mpg
and that only reduced the size by 2MB.
Isn't there software out there that can do some serious compression?
As I said, video compresses badly as it's already compressed. I'm not a video person either, but I know that the latest mpeg compression is mpeg-4 which compresses far better; I however don't know how wide-spread it currently is and if software tools are available for it (encoding as well as decoding).
As I see it, either encoding using a better compression (preferred; e.g. mpeg-4) or re-encoding to a better compression is the only solution for you.
Suppose the average length of your videos is 5 minutes (it is a rough guess based on the info you gave), that is 300 seconds. Let's say you want each video to be about 10MiB in size (change according to your needs), that is 10000KiB. That would give you a need for (10000/300)*8 kb/s, hence 266kb/s.
For the sound, we'll suppose 64kb/s (we won't actually process it, as it would lead to useless quality loss), which leaves 202kb/s for the video.
That's very approximative calculation, but you get the idea.
That's a single line, split here for better readability. On the "last line", change 25 with the actual frames per seconds you have (25 is for PAL or SECAM, I don't know if it is 30 or 29.xxx with NTSC); if you have a doubt, just remove the "-ofps 25" entirely.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.