Skip to main content

Topic: A video codec with the best compression (Read 7152 times) previous topic - next topic

0 Members and 1 Guest are viewing this topic.
  • MusicLover
  • [*][*][*][*]
A video codec with the best compression
I'm choosing a video codec for storing of my family videos (and sharing some of them in the Inernet as well) which format provides the best compression? I don't care about processor time and the quality should be avarage or just below (I have a cheap cam)

  • smok3
  • [*][*][*][*][*]
  • Moderator
A video codec with the best compression
Reply #1
a. x246 (which is h.264 implementation) would be my recommendation for quality, it is possible to encode (mp4) in sort of quicktime compatible way, you will just need to tell ppl to install qt then, and add some server mime types for mp4 (video/quicktime   qt mov mp4).

b. Another option is flash video, using vp6 video codec, quality is not on par with x264, but it should be supported better on the web (has better 'penetration'), there are free flash players which can be used for embeding on the page.

pretty cool solution for vp6 encoding:
http://sh0dan.blogspot.com/2006/09/command...v-encoding.html
  • Last Edit: 20 April, 2007, 03:25:35 PM by smok3
PANIC: CPU 1: Cache Error (unrecoverable - dcache data) Eframe = 0x90000000208cf3b8
NOTICE - cpu 0 didn't dump TLB, may be hung

  • MusicLover
  • [*][*][*][*]
A video codec with the best compression
Reply #2
smok3
Thanks a lot. What about file sizes in both cases?

What is the best x246 codec? Where can I find it and read how to encode with  it?

  • Mangix
  • [*][*][*][*][*]
A video codec with the best compression
Reply #3
erm. x264 is an encoder. H.264(or AVC) is the standard. as for where you can find it, http://www.videolan.org/developers/x264.html

  • smok3
  • [*][*][*][*][*]
  • Moderator
A video codec with the best compression
Reply #4
MusicLover, file sizes are directly proportional to the selected bitrate (thought there is another quality based way of encoding with x264).

here you should find plenty of info (including latest windows builds):
http://forum.doom9.org/forumdisplay.php?f=77

command line overview (bit out of date):
http://somestuff.org/x264_qt/h264_in_quicktime7.html
(you can skip -hint mp4box command)

and some batch scripts iam using most of the time:
http://somestuff.org/bat/index.php?path=x264_ng_batch/
  • Last Edit: 21 April, 2007, 12:40:30 PM by smok3
PANIC: CPU 1: Cache Error (unrecoverable - dcache data) Eframe = 0x90000000208cf3b8
NOTICE - cpu 0 didn't dump TLB, may be hung

  • MusicLover
  • [*][*][*][*]
A video codec with the best compression
Reply #5
smok3

Thanks again! So, all the x264 encoders are about the same? Or are there some that are much better than the others?

  • smok3
  • [*][*][*][*][*]
  • Moderator
A video codec with the best compression
Reply #6
x264 is only one (the implementation of h.264), h.264 is the standard (another encoder is ateme for example, build into nero recode...).
PANIC: CPU 1: Cache Error (unrecoverable - dcache data) Eframe = 0x90000000208cf3b8
NOTICE - cpu 0 didn't dump TLB, may be hung

  • MusicLover
  • [*][*][*][*]
A video codec with the best compression
Reply #7
which one of h.264 encoders is the best for low bitrates?

  • smok3
  • [*][*][*][*][*]
  • Moderator
A video codec with the best compression
Reply #8
well, i cant speak generally, with my tests, and with my material ; x264 with medium encoding speed delivers decent or good results at 500 kbps - 512x384/25 fps. For very low bitrates i imagine that higher inloop filtering would be helpfull.

edit: generally speaking h.264 (and x264) is designed to scale well, i do use it for low-res web clips and also for HD.
  • Last Edit: 22 April, 2007, 04:37:20 AM by smok3
PANIC: CPU 1: Cache Error (unrecoverable - dcache data) Eframe = 0x90000000208cf3b8
NOTICE - cpu 0 didn't dump TLB, may be hung

  • Mangix
  • [*][*][*][*][*]
A video codec with the best compression
Reply #9
i'd personally say x264 even though there are a couple of other H.264 encoders. the ammount of commandline options that x264 has is just enormous.

  • smok3
  • [*][*][*][*][*]
  • Moderator
A video codec with the best compression
Reply #10
you cant beat the price anyway.

edit: just playing around, here is a random clip from my disk encoded with 100 kbps (that would be super-low-bitrate), mute:

http://tmp.somestuff.org/random.mp4

well, hard to say it looks great, but one can still see whats going on i guess 

full log:
Code: [Select]
started ned 22.04.2007 / 11:04:51,50
ECHO is off.
x264 0.54.600
x264 --pass 1 --bitrate 100    --stats "F:\DIPLOMA\HD\prezentacijaHD_Diploma_spica.stats" --bframes 1 --subme 1 --analyse none --me dia --progress --no-psnr --filter "-2,-1"    --output NUL "F:\DIPLOMA\HD\templateWEB_prezentacijaHD_Diploma_spica.avs"
x264 --pass 2 --bitrate 100    --stats "F:\DIPLOMA\HD\prezentacijaHD_Diploma_spica.stats" --ref 5 --bframes 1 --subme 6 --b-rdo --analyse p8x8,b8x8,i4x4,p4x4 --progress --no-psnr --filter "-2,-1"    --output "F:\DIPLOMA\HD\prezentacijaHD_Diploma_spica.avi.mp4" "F:\DIPLOMA\HD\templateWEB_prezentacijaHD_Diploma_spica.avs"

MP4Box - GPAC version 0.4.1-DEV Jun 12 2006 compiled by Kurtnoise
GPAC Copyright: (c) Jean Le Feuvre 2000-2005
        (c) ENST 2005-200X

ended ned 22.04.2007 / 11:06:55,64

Some info about the 1st track in container, usually video:
Track # 1 Info - TrackID 1 - TimeScale 25 - Duration 00:00:19.000
Media Info: Language "Undetermined" - Type "vide" - Sub Type "avc1" - 475 samples
Handler name: GPAC ISO Video Handler
MPEG-4 Config
    Visual Stream - ObjectTypeIndication 0x21
    AVC/H264 Video - Visual Size 512 x 288 - Profile Main @ Level 5.1
    Decoding Buffer size 2838 - Average bitrate 95 kbps - Max Bitrate 228 kbps
    No stream dependencies for decoding
    StreamPriority 0

Computed info from media:
    Total size 233187 bytes - Total samples duration 19000 ms
    Average rate 95 kbps - Max Rate 228 kbps

Some info about the 2nd track in container, usually audio:
No track with ID 2 found
  • Last Edit: 22 April, 2007, 05:36:55 AM by smok3
PANIC: CPU 1: Cache Error (unrecoverable - dcache data) Eframe = 0x90000000208cf3b8
NOTICE - cpu 0 didn't dump TLB, may be hung

  • MusicLover
  • [*][*][*][*]
A video codec with the best compression
Reply #11
WOW! that's cool! now I only need to master comandline parameters of x264

PS maybe its possible to use some graphic interface? Megui?

  • smok3
  • [*][*][*][*][*]
  • Moderator
A video codec with the best compression
Reply #12
yes, megui is one of them (comes with some nice command line presets).
  • Last Edit: 22 April, 2007, 07:09:30 AM by smok3
PANIC: CPU 1: Cache Error (unrecoverable - dcache data) Eframe = 0x90000000208cf3b8
NOTICE - cpu 0 didn't dump TLB, may be hung

  • MusicLover
  • [*][*][*][*]
A video codec with the best compression
Reply #13
I'm now using SUPER... Megui refused to work somehow... Nero recode didn't want to encode... So now I'm using SUPER - the results are very good.

  • smok3
  • [*][*][*][*][*]
  • Moderator
A video codec with the best compression
Reply #14
I'm now using SUPER... Megui refused to work somehow... Nero recode didn't want to encode... So now I'm using SUPER - the results are very good.

what license is that under? (i cant find any sources...)
PANIC: CPU 1: Cache Error (unrecoverable - dcache data) Eframe = 0x90000000208cf3b8
NOTICE - cpu 0 didn't dump TLB, may be hung

  • MusicLover
  • [*][*][*][*]
A video codec with the best compression
Reply #15

  • MusicLover
  • [*][*][*][*]
A video codec with the best compression
Reply #16
smok3
how do you find it?

  • MusicLover
  • [*][*][*][*]
A video codec with the best compression
Reply #17
I'm puzzled: I cannot encode Sony DV files in AVI container with StaxRip... It cannot read them... Which program should I use?

  • penvzila
  • [*][*][*]
A video codec with the best compression
Reply #18
The h264 section of this guide is very good:

http://www.mplayerhq.hu/DOCS/HTML/en/

the man pages for mencoder have a lot of info as well.  You have to try it for yourself to come up with a good combination of speed and what is acceptable quality to you.  I've just finished a full 22 episode season of a show onto a single DVD-R, and I could never have dreamed of doing that with XVID and still have watchable files.
  • Last Edit: 24 April, 2007, 10:20:28 PM by penvzila
地獄

  • MusicLover
  • [*][*][*][*]
A video codec with the best compression
Reply #19
My problem is that none of the programs that encode h264 recoginzes DV files in avi container. However, Windows media player plays them ok.

  • MusicLover
  • [*][*][*][*]
A video codec with the best compression
Reply #20
Done! Nero Recode regonizes it! I'm happy!

  • smok3
  • [*][*][*][*][*]
  • Moderator
A video codec with the best compression
Reply #21
it is explained on the link i posted few posts up (it is actually a dv example), but Nero is pretty user friendly if you are a noob to video compression (and gives good results without a lot of thinkering).
  • Last Edit: 25 April, 2007, 03:08:47 AM by smok3
PANIC: CPU 1: Cache Error (unrecoverable - dcache data) Eframe = 0x90000000208cf3b8
NOTICE - cpu 0 didn't dump TLB, may be hung