need advice concerning encoding

If you have questions about compression/encoding/converting look here.
User avatar
Zarxrax
Joined: Sun Apr 01, 2001 6:37 pm
Contact:
Org Profile

Re: need advice concerning encoding

Post by Zarxrax » Mon Jan 26, 2009 7:20 pm

crf 18 shouldn't be too tough to play on hardly any system. My eeepc with a crappy atom processor can play them. It can even almost play 720p vids.

User avatar
Scintilla
(for EXTREME)
Joined: Mon Mar 31, 2003 8:47 pm
Status: Quo
Location: New Jersey
Contact:
Org Profile

Re: need advice concerning encoding

Post by Scintilla » Mon Jan 26, 2009 9:50 pm

I meant with all the crazy options that keep bitrate down. I don't know them all off the top of my head, but I'm talking about the things like B-frame pyramid and so on.
ImageImage
:pizza: :pizza: Image :pizza: :pizza:

User avatar
Zarxrax
Joined: Sun Apr 01, 2001 6:37 pm
Contact:
Org Profile

Re: need advice concerning encoding

Post by Zarxrax » Tue Jan 27, 2009 11:14 am

Most options don't effect decoding speed, or only effect it slightly. Cabac is usually the biggest offender, but it gives like 10% bitrate reduction, so its generally considered mandatory unless you want to suck.

User avatar
Qyot27
Surreptitious fluffy bunny
Joined: Fri Aug 30, 2002 12:08 pm
Status: Creepin' between the bullfrogs
Location: St. Pete, FL
Contact:
Org Profile

Re: need advice concerning encoding

Post by Qyot27 » Tue Jan 27, 2009 11:44 am

Actually, generally speaking, I've observed that even with the crazy options, as long as the bitrate doesn't spike too high playback is relatively okay. The newest builds of ffdshow can almost play back some of my own encodes on real time on my computer, which is ancient (it's an eMachines T1110 that was bought back in 2001 - 1.0 GHz Celeron Coppermine, 256 MB of RAM, 100 MHz FSB). The only exception are a couple of videos that are 60fps, but it only barely handles 60fps Xvid files at 640x352, let alone trying to do 60fps SD H.264.

But like I said, the bitrate has to be kept down. And those options help that end a lot, even if they are well past the point of diminishing returns.

For reference, this is the actual commandline I use for distro encodes (note, the videos I have on Local don't necessarily use some of these options because they were added to x264 after those videos were released, and I update x264 at every new build revision I notice on doom9):

Code: Select all

x264.exe --crf 18.0 --ref 16 --mixed-refs --no-fast-pskip --bframes 16 --b-adapt 2 --b-pyramid --weightb --direct auto --deblock 1:1 --subme 9 --trellis 2 --partitions all  --8x8dct --scenecut 100 --threads auto --thread-input --sar 1:1 --aud --progress --no-dct-decimate --no-psnr --no-ssim --output "output.mp4" "input.avs"
The archive encode is virtually the same, except switch out hexagon for SATD ESA, deblock is disabled, an ME Range of 32 instead of 16, and --crf 10. That one would take days on a 4-minute video if I used my own comp to do it.
My profile on MyAnimeList | Quasistatic Regret: yeah, yeah, I finally got a blog

User avatar
Qyot27
Surreptitious fluffy bunny
Joined: Fri Aug 30, 2002 12:08 pm
Status: Creepin' between the bullfrogs
Location: St. Pete, FL
Contact:
Org Profile

Re: need advice concerning encoding

Post by Qyot27 » Tue Jan 27, 2009 11:48 am

Qyot27 wrote:but it only barely handles 60fps Xvid files at 640x352
To be specific, these are heavily-compressed Xvid files that look rather crappy. The LQ Xvid version of Fate Against Will is the test vid there. WMP6.4 with ffdshow can just barely manage it, and I might see a couple jerks in the playback. Media Player Classic with the same build of ffdshow, however, jerks like crazy.
My profile on MyAnimeList | Quasistatic Regret: yeah, yeah, I finally got a blog

Myouh
Joined: Sun Dec 24, 2006 7:55 am
Location: England
Org Profile

Re: need advice concerning encoding

Post by Myouh » Tue Feb 03, 2009 2:01 pm

Quantizer 0 doesn't seem to work on your program Zarxax.

Is there a way to make a MP4 video produced by your software readable by VirtualDubMod?

User avatar
Zarxrax
Joined: Sun Apr 01, 2001 6:37 pm
Contact:
Org Profile

Re: need advice concerning encoding

Post by Zarxrax » Tue Feb 03, 2009 2:51 pm

Myouh wrote:Quantizer 0 doesn't seem to work on your program Zarxax.

Is there a way to make a MP4 video produced by your software readable by VirtualDubMod?
Hmm yea, I've noticed that. I'll get it fixed in the next version.

Virtualdubmod is mainly designed to read avi files. You can open an mp4 through avisynth using FFMPEGSource.

Myouh
Joined: Sun Dec 24, 2006 7:55 am
Location: England
Org Profile

Re: need advice concerning encoding

Post by Myouh » Wed Feb 04, 2009 7:15 am

Zarxrax,

Quantizer 1 with constant quantizer doesn't seem to be working either. (1 is the only one I tried).

wouldn't a quantizer 1 with constant quantizer give better results (in terms of image quality) than quantizer 1 with constant quality? (we don't care about the size here).

I produced a video with quantizer 1, constant quality, insane mode, I got a video a little smaller than with quantizer 1, constant quality, normal mode. is that normal?

what are the instructions to modify brightness contrast with avisynth, please?

Myouh
Joined: Sun Dec 24, 2006 7:55 am
Location: England
Org Profile

Re: need advice concerning encoding

Post by Myouh » Wed Feb 04, 2009 8:24 am

also,
I can't use a avisynth script as the input video in your software.

I receive this message: avis [error]: unsupported input format (DIB)

the file is a .avs one. what's the problem?

User avatar
SenTrix
Joined: Mon Jun 23, 2008 8:25 am
Status: Editing
Location: South East England
Org Profile

Re: need advice concerning encoding

Post by SenTrix » Wed Feb 04, 2009 10:18 am

Myouh wrote:also,
I can't use a avisynth script as the input video in your software.

I receive this message: avis [error]: unsupported input format (DIB)

the file is a .avs one. what's the problem?
Then you need to try and opening it using AviSynth's DirectShowSource or ffmpegsource, you'll need to add ffmpegsource if you dont have it.
Image <<..:: Click Me ::..>> Image

Locked

Return to “Conversion / Encoding Help”