Video compression

Video compression

Re: Video compression Posted by DrGlass on Thu Jun 22nd 2006 at 7:17am
DrGlass
1825 posts
Posted 2006-06-22 7:17am
DrGlass
member
1825 posts 632 snarkmarks Registered: Dec 12th 2004 Occupation: 2D/3D digital artist Location: USA
I've got a 3GB 15 minute movie that I'd like to share with the "world" anyone know much about video compression? I can't do better than 300mb at half resolution.
Re: Video compression Posted by OtZman on Thu Jun 22nd 2006 at 7:28am
OtZman
1890 posts
Posted 2006-06-22 7:28am
OtZman
member
1890 posts 218 snarkmarks Registered: Jul 12th 2003 Occupation: Student Location: Sweden
I used VirtualDub to compress a few HL2 videos I had recorded with
fraps. This program can be found here: http://www.virtualdub.org/

I just followed instructions from a friend on how to use the program,
but the result was pretty good, and the size a lot smaller.
What the Snarkpitters listen to!
Re: Video compression Posted by Crono on Thu Jun 22nd 2006 at 7:34am
Crono
6628 posts
Posted 2006-06-22 7:34am
Crono
super admin
6628 posts 700 snarkmarks Registered: Dec 19th 2003 Location: Oregon, USA
Half resolution? Please tell me you're not encoding the video as a standard AVI.

You need to choose a codec! Xvid is pretty damn good. Open Source too.
There's also some alternatives that use some nice algorithms too (I can't remember the names right now).

If you want to make it Xvid, here are some resources:

http://www.xvid.org/
http://www.doom9.org/index.html?/xvid.htm

The second link is a tutorial on ripping a movie and encoding, but it doesn't go too deep into the ripping movie part. So, just pay attention to the encoding.

They use virtual dub to work around in. It isn't a bad program and it's free. (and linked above. But it is only an EDITOR, nothing more!)

Your file size should be very small once this is done. If you did everything right it should "look" exactly the same. I would also suggest doing this from source and not a previous encoding that failed! (that's very important)

Don't encode it as a WMV, MPG, standard AVI, RM, MOV, or any of those disgusting formats. You want it to look good: use a good codec which is made for quality and size rather than streaming (Excluding AVI, of course. They're just huge.)

Any questions?
Blame it on Microsoft, God does.
Re: Video compression Posted by Forceflow on Thu Jun 22nd 2006 at 8:13am
Forceflow
2420 posts
Posted 2006-06-22 8:13am
2420 posts 451 snarkmarks Registered: Nov 6th 2003 Occupation: Engineering Student (CS) Location: Belgium
http://www.snarkpit.net/editing.php?page=tutorials&game=HL&id=94

Last section may be helpful: load it up in Virtualdub, select codec, and export it again.
:: Forceflow.be :: Nuclear Dawn developer
Re: Video compression Posted by DrGlass on Thu Jun 22nd 2006 at 6:37pm
DrGlass
1825 posts
Posted 2006-06-22 6:37pm
DrGlass
member
1825 posts 632 snarkmarks Registered: Dec 12th 2004 Occupation: 2D/3D digital artist Location: USA
Thanks Crono, I'll give this a try a little bit later only question; will people need a special codec to play the movie? I would like to be able to stream this from my website, but thats only if I can get it at-least under 100mb.
Re: Video compression Posted by Tracer Bullet on Thu Jun 22nd 2006 at 6:44pm
Tracer Bullet
2271 posts
Posted 2006-06-22 6:44pm
2271 posts 445 snarkmarks Registered: May 22nd 2003 Occupation: Graduate Student (Ph.D) Location: Seattle WA, USA
I agree with Crono. Xvid is quite good, but you can also get a free Divx codec that might be a bit more ubiquitous.

For the encoding front-end I like flaskMPEG
Re: Video compression Posted by Crono on Thu Jun 22nd 2006 at 8:04pm
Crono
6628 posts
Posted 2006-06-22 8:04pm
Crono
super admin
6628 posts 700 snarkmarks Registered: Dec 19th 2003 Location: Oregon, USA
Well. Doc, they'll need whatever codec you're using. Xvid, Divx, whatever. Just say what you used to encode it and people should understand how to play it.
But that should be a downloadable version.

If you want a streaming version then make it quicktime (mov). Destroy the quality and get it down to 20-40 MB at most. It's a little larger than wmv, for instance, but it's the best when it comes to streaming because you can pause and let it finish downloading.

You'll need two different videos, I suppose is the short answer if you want good quality, it has to be larger, if you want speed it has to have low quality, them's the trade offs.

The final movie, even in Xvid, divx, whatever, shouldn't be more than 75MB or so (that's winging it based on a 2 hour movie being 600MB)

I wish I could remember that alternative. In any case, just have a link to the codecs needed. Also, feel free to do more research on codecs in general so all this will make more sense!

http://free-codecs.com/
http://www.doom9.org/

have lots of good information.
Blame it on Microsoft, God does.
Re: Video compression Posted by Forceflow on Thu Jun 22nd 2006 at 8:28pm
Forceflow
2420 posts
Posted 2006-06-22 8:28pm
2420 posts 451 snarkmarks Registered: Nov 6th 2003 Occupation: Engineering Student (CS) Location: Belgium
Streaming it from your website could work if you stream it using the Flash Video format.
:: Forceflow.be :: Nuclear Dawn developer
Re: Video compression Posted by Pvt.Scythe on Thu Jun 22nd 2006 at 10:03pm
Pvt.Scythe
730 posts
Posted 2006-06-22 10:03pm
730 posts 113 snarkmarks Registered: Sep 19th 2004 Occupation: student Location: Finland
If you get complaints of codecs not working direct people towards this
media player that has it all built-in(well the most used ones):
VLC media player.

And I also recommend using XviD, I've always gotten nice results with it. :smile:
''Everyone wades in s**t until they're competent enough to walk on it. Jesus style.''
Dystopia - Empires
Re: Video compression Posted by DrGlass on Thu Jun 22nd 2006 at 10:45pm
DrGlass
1825 posts
Posted 2006-06-22 10:45pm
DrGlass
member
1825 posts 632 snarkmarks Registered: Dec 12th 2004 Occupation: 2D/3D digital artist Location: USA
is VLC media player better than media player classic?
Re: Video compression Posted by Orpheus on Thu Jun 22nd 2006 at 10:52pm
Orpheus
13860 posts
Posted 2006-06-22 10:52pm
Orpheus
member
13860 posts 2024 snarkmarks Registered: Aug 26th 2001 Occupation: Long Haul Trucking Location: Long Oklahoma - USA
Listen to everyone but, keep Tracers advice in your mind too. Xvid is a bit more... taboo than DIVX is.

To my knowledge, both will give you superb results but, if you are going represent your web site with this video, you might want to chose the lesser evil..

I know that you are prolly only scanning these posts but Tracer has a valid point and you need to listen.

My point is, using DIVX will cause you a tiny bit less grief since its more... legal?

(I dunno how legal, legal is when making vids.)

The best things in life, aren't things.
Re: Video compression Posted by DrGlass on Thu Jun 22nd 2006 at 11:03pm
DrGlass
1825 posts
Posted 2006-06-22 11:03pm
DrGlass
member
1825 posts 632 snarkmarks Registered: Dec 12th 2004 Occupation: 2D/3D digital artist Location: USA
I'm running FlashKMPEG and it wont open .mov which is how my source is saved. Am I going about this wrong? [edit] oh noes, after looking into this all I'm a bit overwhelmed... I'll pick this up when I get my new computer.
Re: Video compression Posted by Crono on Thu Jun 22nd 2006 at 11:30pm
Crono
6628 posts
Posted 2006-06-22 11:30pm
Crono
super admin
6628 posts 700 snarkmarks Registered: Dec 19th 2003 Location: Oregon, USA
What exactly is illegal about the Xvid codec?

It's a codec. I could have said use the x264 codec, since it gives nice performance and size with MPG4, but it's obscure and rare. Xvid is commonly used and commonly found by it self. Divx is difficult for most people (not myself included) to find a stand alone codec. (They're everywhere, but you need to know where to look)

Quicktime is something of a protected format. Like I said, you want to get the video from source! Raw, so to speak. Encoding from one format to another is not what you want to do. Ever. Anyway, you'd probably need an editor that supports it (that wont be free).

As far as players go. There is plenty. WMPC is alright. It can't use some codecs with it, I've noticed. The best all round, I've found, is MPlayer. It recently was brought to a Windows environment and given a GUI (can all be found at free-codecs.com). Everything is still controlled with keys though. Not to worry, it's simple, fast, and uses little resources.

To get classic to run properly now, I have to give it a higher priority and that's uncalled for.

Where's this video coming from anyway? Did someone else already edit it and encode it as quicktime or what?
Blame it on Microsoft, God does.
Re: Video compression Posted by ReNo on Thu Jun 22nd 2006 at 11:32pm
ReNo
5457 posts
Posted 2006-06-22 11:32pm
ReNo
member
5457 posts 1991 snarkmarks Registered: Aug 22nd 2001 Occupation: Level Designer Location: Scotland
The codec you use to compress your video file doesn't have any effect on its legality - you could have perfectly legal xvid files, or completely illegal mpegs. It's all down the what the video is of. If you own the copyright or have rights to the video, then you can put it in whatever format you want. The only reason xvid might be considered less legal is because it is so often used for pirated media, but thats just because it is a good, free, open source codec.
[img]http://card.mygamercard.net/sig/Default/reno84.png[/img]
Designer @ Haiku Interactive | ReNo-vation.net
Re: Video compression Posted by Orpheus on Fri Jun 23rd 2006 at 12:40am
Orpheus
13860 posts
Posted 2006-06-23 12:40am
Orpheus
member
13860 posts 2024 snarkmarks Registered: Aug 26th 2001 Occupation: Long Haul Trucking Location: Long Oklahoma - USA
Crono said:
What exactly is illegal about the Xvid codec?
I have absolutely no clue but I still felt the need to say something since... We have so many opinions of the legality of video's.

None of us (I assume) are lawyer's that specialize in topics of this nature.

I'd rather be totally wrong, than be one of those people who says nothing at all.

I had heard once that Xvid was a hacked version of Divx... Hence the transposed lettering..

shrugs

hacked=illegal.. even if what I heard is inaccurate, I still heard it.

The best things in life, aren't things.
Re: Video compression Posted by Crono on Fri Jun 23rd 2006 at 12:49am
Crono
6628 posts
Posted 2006-06-23 12:49am
Crono
super admin
6628 posts 700 snarkmarks Registered: Dec 19th 2003 Location: Oregon, USA
hacked != illegal, actually. You can legally reverse engineer things as long as you use the white room method.

But. in any case, that isn't what it is. Also ... they're just algorithms. I have yet to run across one that is absolutely unusable due to legalities. Code is another matter, of course.
Blame it on Microsoft, God does.
Re: Video compression Posted by G.Ballblue on Fri Jun 23rd 2006 at 1:08am
G.Ballblue
1511 posts
Posted 2006-06-23 1:08am
1511 posts 211 snarkmarks Registered: May 16th 2004 Occupation: Student Location: A secret Nuclear Bunker on Mars
Calvin already beat me to divX, but I will at least recommend it! I currently have a 1024x768, 3:30 or so long video at about 200 kbs, and the file size is roughly 8 megs. It's gotta be the best codec on the planet.

I will warn, though, that divX has a slight... color loss problem. I find that videos that I make that I encode with divX, seem to lose a lot of their color. They don't become black and white, but they do appear a bit bland.
Breaking the laws of mapping since 2003 and doing a damn fine job at it
Re: Video compression Posted by Pvt.Scythe on Fri Jun 23rd 2006 at 6:31am
Pvt.Scythe
730 posts
Posted 2006-06-23 6:31am
730 posts 113 snarkmarks Registered: Sep 19th 2004 Occupation: student Location: Finland
The better version of Divx codec costs money and as far as I know there
are some limitations to its use(nowadays it's also used commercially, like WH40K:DOW intro). Xvid is completely free and as far
as I know it doesn't have any hidden quirks or limitations.

As for VLC, I wouldn't go saying that it's better than Media Player
Classic as they are a bit different programs. VLC has codecs
build-in(it also uses external ones) while MPC uses completely external
codecs. The only bad thing I've noticed in VLC is that the sound
quality isn't always the best, but since I don't want to install
Quicktime(last time I installed it I got a s**tload of ads and other
s**t that slowed my computer to crawl, I don't know what the current
situation is but I'll still steer away) it's a good program for
watching the occasional .mp4 or .mov.
''Everyone wades in s**t until they're competent enough to walk on it. Jesus style.''
Dystopia - Empires
Re: Video compression Posted by Rumple on Fri Jun 23rd 2006 at 7:05am
Rumple
518 posts
Posted 2006-06-23 7:05am
Rumple
member
518 posts 72 snarkmarks Registered: Aug 22nd 2001 Occupation: Web Dev Location: NSW, Australia
Pvt.Scythe said:
but since I don't want to install
Quicktime(last time I installed it I got a s**tload of ads and other
s**t that slowed my computer to crawl, I don't know what the current
situation is but I'll still steer away) it's a good program for
watching the occasional .mp4 or .mov.
I use VLC for just about all vid files now, and quite like it, but there is a program called Quicktime Alternative which works quite well without all the bloat. (there is also Real Alternative)
SourDough2.0 - With Strawberry Jam
Re: Video compression Posted by DrGlass on Fri Jun 23rd 2006 at 4:24pm
DrGlass
1825 posts
Posted 2006-06-23 4:24pm
DrGlass
member
1825 posts 632 snarkmarks Registered: Dec 12th 2004 Occupation: 2D/3D digital artist Location: USA
Well the video is all mine, I shot it, edited it, and exported it as quicktime. Sadly I didn't have time/harddrive space to keep the source! :sad:

So the only thing I've got to work from is the 3gig .mov I just got a new mac book, so if anyone knows editing software for a mac (omfgroflosry!) thats what I'm working with now.

As far as Divx... I've had alot of trouble with it in the past but I fall into the not-crono category of not knowing much about anything. I'm going to give iMovie a try, if that doesn't work I'll just wait till I buy the final-cut suite and work on it again.
Re: Video compression Posted by reaper47 on Fri Jun 23rd 2006 at 4:36pm
reaper47
2827 posts
Posted 2006-06-23 4:36pm
reaper47
member
2827 posts 1921 snarkmarks Registered: Feb 16th 2005 Location: Austria
I just got a new mac book, so if anyone knows editing software for a mac (omfgroflosry!) thats what I'm working with now.
Now look at that, another gamer who has an Apple laptop. I'm afraid I can't help you, though :sad:

All I can say is that DivX is an excellent format that never failed me. It's near DVD quality at a 5th of the filesize. I wish I had one of the DivX/Xvid compatible DVD players. Also I only use it for legal purposes. OF COURSE.

Google for DivX converters. Mov files are difficult because Apple is pretty harsh with the format (there are hardly any non Quicktime viewers for the files, too so no fullscreen without paying.) But try it. I'd actually download a DivX movie but a fully compressed *.mov file (still of GB size) is a bit off-turning.
Re: Video compression Posted by Jamel-The-Camel on Sat Jun 24th 2006 at 4:25pm
Jamel-The-Camel
23 posts
Posted 2006-06-24 4:25pm
23 posts 2 snarkmarks Registered: May 31st 2006
3gigs for a 15 minute vid? That must be very high quality, since I have a 17 minute video which is 5 megs big, and is perfectly watchable, and quite a large size.
'The ability to quote is a serviceable substitute for wit.' - Somerset Maugham
Re: Video compression Posted by DrGlass on Sun Jun 25th 2006 at 6:39am
DrGlass
1825 posts
Posted 2006-06-25 6:39am
DrGlass
member
1825 posts 632 snarkmarks Registered: Dec 12th 2004 Occupation: 2D/3D digital artist Location: USA
3gigs for a 15 minute vid? That must be very high quality, since I have a 17 minute video which is 5 megs big, and is perfectly watchable, and quite a large size.
what?! Do you have any information on that? I've tried a lot of things and nothing goes under 100 mb, and its only 720x480.
Re: Video compression Posted by Crono on Sun Jun 25th 2006 at 7:22am
Crono
6628 posts
Posted 2006-06-25 7:22am
Crono
super admin
6628 posts 700 snarkmarks Registered: Dec 19th 2003 Location: Oregon, USA
720 x 480 is DVD quality video. That stuff is very large. Don't be surprised that it doesn't go below 100MB.

It isn't that difficult to understand how file size gets effected based on video attributes. Perhaps you're over complicating it when you think about it?

If you understand how size relates to an image or an audio file ... just put them together. (Of course there are varying differences when dealing with actual video, but it still fits)
Blame it on Microsoft, God does.
Re: Video compression Posted by Nickelplate on Sun Jun 25th 2006 at 7:49am
Nickelplate
2770 posts
Posted 2006-06-25 7:49am
2770 posts 346 snarkmarks Registered: Nov 23rd 2004 Occupation: Prince of Pleasure Location: US
man. DIVX.

And I just tried to copy a DVD and it effed up AGAIN!
I tried sniffing coke, but the ice cubes kept getting stuck in my nose.
http://www.dimebowl.com
Re: Video compression Posted by Orpheus on Sun Jun 25th 2006 at 10:38am
Orpheus
13860 posts
Posted 2006-06-25 10:38am
Orpheus
member
13860 posts 2024 snarkmarks Registered: Aug 26th 2001 Occupation: Long Haul Trucking Location: Long Oklahoma - USA
Nickelplate said:
And I just tried to copy a DVD and it effed up AGAIN!
I'm ready, you?

The best things in life, aren't things.
Re: Video compression Posted by habboi on Sun Jun 25th 2006 at 11:54am
habboi
782 posts
Posted 2006-06-25 11:54am
habboi
The Spammer of Snarkpit
member
782 posts 178 snarkmarks Registered: Dec 11th 2004 Location: United Kingdom
Hey thanks for asking this question Dr Glass...I'm making a video myself and I was wondering how to make it smaller near release date. Cheerio!
Re: Video compression Posted by DrGlass on Mon Jun 26th 2006 at 10:13pm
DrGlass
1825 posts
Posted 2006-06-26 10:13pm
DrGlass
member
1825 posts 632 snarkmarks Registered: Dec 12th 2004 Occupation: 2D/3D digital artist Location: USA
Well I had a full on 160gb harddrive crash (this was my backup mind you so there is no back up of the back up :sad: ) and I think I lost the .mov, so I'll have to wait untill I get back to school and see if the source is still on the computers up there, which I doubt. All I'm left with is the DVD I made, any one know how to rip a DVD burnt on iDVD?
Re: Video compression Posted by Orpheus on Mon Jun 26th 2006 at 10:58pm
Orpheus
13860 posts
Posted 2006-06-26 10:58pm
Orpheus
member
13860 posts 2024 snarkmarks Registered: Aug 26th 2001 Occupation: Long Haul Trucking Location: Long Oklahoma - USA
First, what is iDVD?

and, there are a s**tload of ripping software out there.

Try googling these.

DVD Decrypter
DVD Shrink
DVD Fab
ImTOO DVD Ripper
Magic DVD Ripper
Super DVD Ripper

and, if its not copy protected you can just copy it straight across with:

DVD Santa
Nero
DVD Pizza
DVD Clone

I have all these and have used them at one time or another.

The best things in life, aren't things.
Re: Video compression Posted by DrGlass on Tue Jun 27th 2006 at 7:21am
DrGlass
1825 posts
Posted 2006-06-27 7:21am
DrGlass
member
1825 posts 632 snarkmarks Registered: Dec 12th 2004 Occupation: 2D/3D digital artist Location: USA
thanks