AnimeSuki Forums

Register Forum Rules FAQ Community Today's Posts Search

Go Back   AnimeSuki Forum > Anime Related Topics > General Anime > Fansub Groups

Notices

Reply
 
Thread Tools
Old 2008-05-27, 18:42   Link #1
Dark Shikari
x264 Developer
 
 
Join Date: Feb 2008
Encoders: don't let this be you.

This is from a recent anime encode from a group which will not be named. A number of people were stunned with the incredibly bad quality despite being an x264 encode of reasonable bitrate. Of course, it had the obvious problems: wrong aspect ratio and it was in an AVI file. But a quick look at the x264 header revealed far worse:

Quote:
x264 - core 57 - H.264/MPEG-4 AVC codec - Copyleft 2005 - http://www.videolan.org/x264.html - options: cabac=0 ref=1 deblock=0:0:0 analyse=0x1:0 me=dia subme=7 brdo=0 mixed_ref=0 me_range=4 chroma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 chroma_qp_offset=0 threads=2 nr=0 decimate=1 mbaff=0 bframes=0 keyint=250 keyint_min=25 scenecut=0(pre) rc=abr bitrate=938 ratetol=8.7 rceq='tex^qComp' qcomp=0.50 qpmin=10 qpmax=31 qpstep=3 ip_ratio=1.25
Here's the challenge, encoders: how many things wrong can you spot with this commandline?
Spoiler for Answers:
Scoring:
0-4: Brush up on your x264 documentation and learn more about the encoder you're using!
5-9: Good, you know a bit of your stuff and can spot the obvious errors.
10-14: You're an expert here; you can spot most of what's wrong with what they did.
15+: Why aren't you in #x264dev on Freenode?

Last edited by Dark Shikari; 2008-05-28 at 08:51.
Dark Shikari is offline   Reply With Quote
Old 2008-05-27, 21:48   Link #2
Nagato
幻想郷
 
 
Join Date: Dec 2006
Location: 幻想郷
Now, I need someone doing speed/quality test with --ref
How much using high B-frame, say 16 effect decoding?
Well, even with --bframes 16 I still get low bframes : pframes without raising --b-bias.

More question. Sometimes there's blocking in dark area. Even applying higher aq still doesn't help. Would use zone and allocate more bits to that area solve this problem? I tried this but the blocking still remains, or still more bits are needed?
Yes, I leave the deblocking strength at default.
__________________
Nagato is offline   Reply With Quote
Old 2008-05-27, 22:09   Link #3
Dark Shikari
x264 Developer
 
 
Join Date: Feb 2008
Quote:
Originally Posted by Nagato View Post
Now, I need someone doing speed/quality test with --ref
For anime, huge numbers of refs can help a lot. Its quite surprising, actually.
Quote:
Originally Posted by Nagato View Post
How much using high B-frame, say 16 effect decoding?
Well, even with --bframes 16 I still get low bframes : pframes without raising --b-bias.
--b-bias isn't generally a good idea; its not advisable to try to second-guess x264's B-frame decision process. Too many B-frames isn't a good thing; --bframes 16 just lets x264 use as many is reasonable.

Decoding-speed wise, more B-frames probably actually speeds up decoding because it reduces the bitrate by increasing efficiency. Testing would probably be required to be absolutely sure, since it likely depends on bitrate. I would guess at really really low bitrates more B-frames might lower decoding speed a bit. More refs has minimal effect.

Quote:
Originally Posted by Nagato View Post
More question. Sometimes there's blocking in dark area. Even applying higher aq still doesn't help. Would use zone and allocate more bits to that area solve this problem? I tried this but the blocking still remains, or still more bits are needed?
Yes, I leave the deblocking strength at default.
One thing I've found is that increasing deblocking strength can help quite a bit on anime. AQ reduces quantizer in flat/dark areas--which results in them getting weaker deblocking in addition to getting more bits.
Dark Shikari is offline   Reply With Quote
Old 2008-05-27, 22:34   Link #4
D404
Banned
 
Join Date: Aug 2006
Dark Shikari, I hope you are aware that it is encoded like this on purpose. (Read: DB are Trolls, in particular, timecop) (OSHI- I name dropped!).

Dude actually knows what he's doing.. just likes to be gay to all the db-fans/fags.

I fully condone this.
D404 is offline   Reply With Quote
Old 2008-05-27, 23:01   Link #5
Dark Shikari
x264 Developer
 
 
Join Date: Feb 2008
Quote:
Originally Posted by D404 View Post
Dark Shikari, I hope you are aware that it is encoded like this on purpose. (Read: DB are Trolls, in particular, timecop) (OSHI- I name dropped!).

Dude actually knows what he's doing.. just likes to be gay to all the db-fans/fags.

I fully condone this.
Nope, it wasn't DB... I am 99% certain this encode was serious
Dark Shikari is offline   Reply With Quote
Old 2008-05-27, 23:07   Link #6
D404
Banned
 
Join Date: Aug 2006
Oh, lol. Then this is rather sad then. :P

EDIT: After a quick search on tt, and a few other sites.. it's clear who it is. :F
D404 is offline   Reply With Quote
Old 2008-05-28, 03:14   Link #7
shinjipierre
Computer graphist
 
 
Join Date: Dec 2005
Location: Paris, France
Age: 41
What's sad is that you seem to understand what's typed.
__________________
http://www.remipierre.fr - Some of my computer graphics work
shinjipierre is offline   Reply With Quote
Old 2008-05-28, 04:21   Link #8
checkers
Part 8
*IT Support
 
 
Join Date: Jul 2006
Location: Western Australia
Age: 35
Send a message via MSN to checkers
Quote:
15+: Why aren't you in #x264dev on Freenode?
I got 14. Don't kick me out ;_;

Quote:
Originally Posted by D404 View Post
Dark Shikari, I hope you are aware that it is encoded like this on purpose. (Read: DB are Trolls, in particular, timecop) (OSHI- I name dropped!).

Dude actually knows what he's doing.. just likes to be gay to all the db-fans/fags.

I fully condone this.
Timecop knows nothing. He's not a zen master pretending to be an idiot. He's just an idiot pretending to be a zen master pretending to be an idiot.
checkers is offline   Reply With Quote
Old 2008-05-28, 07:48   Link #9
Heibi
Ancient Fansubber
*Fansubber
 
 
Join Date: Aug 2004
Location: KS
Whew, none of those were in my settings. Though we're guilty of using h264 for our .avi files. Makes the picture better. Though Id like to be doing it the right way.

Maybe you should inform the group about this(if you haven't already). The problem I always see here is - I don't wanna mention names, the show, etc...
Nothing improves unless the people doing it wrong are told. They may not even be reading this forum. And if they don't accept your criticism with a nob and a thank-you, leave them be and sigh.

A note to encoders who are experts - please try to put together a file that pilots can use for encoding. This means, coming from one pilot-type, so easy a monkey/caveman/dummy can do it. I know I'd love something like that. I know threads exist discussing it, but they get long and obtrusive. Dark sounds like he knows his stuff and I'm sure could throw something together.

Heibi
Central Anime
Heibi is offline   Reply With Quote
Old 2008-05-28, 08:04   Link #10
emptyeighty
Senior Member
 
Join Date: Jan 2006
Quote:
Originally Posted by Heibi View Post
Whew, none of those were in my settings. Though we're guilty of using h264 for our .avi files. Makes the picture better.
Containers don't impact visual quality as long as they correctly support all aspects of a codec. Avi can't be used with certain h.264 features, therefore it only decreases video quality over working containers like mp4 or mkv.
emptyeighty is offline   Reply With Quote
Old 2008-05-28, 08:14   Link #11
Heibi
Ancient Fansubber
*Fansubber
 
 
Join Date: Aug 2004
Location: KS
Quote:
Originally Posted by emptyeighty View Post
Containers don't impact visual quality as long as they correctly support all aspects of a codec. Avi can't be used with certain h.264 features, therefore it only decreases video quality over working containers like mp4 or mkv.
We currently use virtuadub with h264 in it. There is no "save as" for mp4 or mkv, unless I'm missing something. Can you recommend a different encoding program for h264?
Heibi is offline   Reply With Quote
Old 2008-05-28, 08:14   Link #12
edogawaconan
Hi
*Fansubber
 
 
Join Date: Aug 2006
Send a message via MSN to edogawaconan Send a message via Yahoo to edogawaconan
Quote:
Originally Posted by Heibi View Post
We currently use virtuadub with h264 in it. There is no "save as" for mp4 or mkv, unless I'm missing something. Can you recommend a different encoding program for h264?
you're missing the fact that bframe in avi is hackery

maybe you can try meGUI. www.x264.nl
it should be straightforward (assuming you're familiar with avisynth - which you should be O.o )
and use mkvmerge (or mp4box) to mux
__________________
edogawaconan is offline   Reply With Quote
Old 2008-05-28, 08:21   Link #13
D404
Banned
 
Join Date: Aug 2006
Quote:
Originally Posted by checkers View Post
Timecop knows nothing. He's not a zen master pretending to be an idiot. He's just an idiot pretending to be a zen master pretending to be an idiot.
Yes, you just continue to believe that.
D404 is offline   Reply With Quote
Old 2008-05-28, 08:23   Link #14
Kristen
Senior Member
*Author
 
 
Join Date: Jul 2007
Location: Virginia Tech
Quote:
Originally Posted by Heibi View Post
We currently use virtuadub with h264 in it. There is no "save as" for mp4 or mkv, unless I'm missing something. Can you recommend a different encoding program for h264?
Megui. It works very nicely, but it has a disadvantage that you have to make a .avs script for video input. You also should never make timing raws/work raws in there, at least for the timer to use, because some people's Aegis won't read the keyframes (pink lines on audio). Though Megui is MUCH better at getting your files to your target size (If you use Auto-encode instead of "Enqueue"). Heck, I always put in 230 MB as my target size (Well, 222 with DCIISS due to the fonts), and the results have come out between 229 and 231 MB. With VDubMod, I put in 137000 kb as my target XVid size, and the end results have varied from 167 MB to 172 MB.
Also, Megui requires less calculations if you use Autoencode. But if you use "Enqueue", I think it requires more...
__________________
Kristen is offline   Reply With Quote
Old 2008-05-28, 08:38   Link #15
emptyeighty
Senior Member
 
Join Date: Jan 2006
Quote:
Originally Posted by Heibi View Post
We currently use virtuadub with h264 in it. There is no "save as" for mp4 or mkv, unless I'm missing something. Can you recommend a different encoding program for h264?
Either the already suggested MeGUI, or the x264 CLI directly. It accepts .avs input (if you're familiar with that) and can output .mp4.
emptyeighty is offline   Reply With Quote
Old 2008-05-28, 08:41   Link #16
dj_tjerk
Ana-chan~
 
 
Join Date: May 2006
Location: Netherlands
Quote:
Originally Posted by ChrissieXD View Post
You also should never make timing raws/work raws in there, at least for the timer to use, because some people's Aegis won't read the keyframes (pink lines on audio).
For gods sake.. please..
  1. open avimuxgui
  2. go to settings
  3. go to Avi File Structure
  4. disable "use Open-DML output"
  5. quit
  6. make 'aegisub-compatible' workraws

This has nothing to do with MeGUI; it's just the settings you use to mux avi's (and MeGUI use AviMuxGUI for that with default settings, so if you THINK for one second and read the replies for your post in that other thread, and change the default settings to output 'aegisub-compatible' avi's, there'd be no problem at all to keep one from using megui and instead use virtualdub. If you still by accident mux with OpenDML.. just remux with OpenDML disabled (again with AviMuxGUI), or do that stuff with virtualdub.
dj_tjerk is offline   Reply With Quote
Old 2008-05-28, 08:46   Link #17
Kristen
Senior Member
*Author
 
 
Join Date: Jul 2007
Location: Virginia Tech
Quote:
Originally Posted by dj_tjerk View Post
For gods sake.. please..
  1. open avimuxgui
  2. go to settings
  3. go to Avi File Structure
  4. disable "use Open-DML output"
  5. quit
  6. make 'aegisub-compatible' workraws

This has nothing to do with MeGUI; it's just the settings you use to mux avi's (and MeGUI use AviMuxGUI for that with default settings, so if you THINK for one second and read the replies for your post in that other thread, and change the default settings to output 'aegisub-compatible' avi's, there'd be no problem at all to keep one from using megui and instead use virtualdub. If you still by accident mux with OpenDML.. just remux with OpenDML disabled (again with AviMuxGUI), or do that stuff with virtualdub.
I know, I read it, and I'm trying that now. I just don't want to explain all of that to him, so I said to not use it for timeraws.
__________________
Kristen is offline   Reply With Quote
Old 2008-05-28, 08:50   Link #18
Heibi
Ancient Fansubber
*Fansubber
 
 
Join Date: Aug 2004
Location: KS
For my purposes all I need to know is how to get the final encode done using the proper program to get an mp4 or mkv output.(Thus, we stop releasing shows encoded using h264 with a .avi). I can get the show timed and edited with no problem.
Heibi is offline   Reply With Quote
Old 2008-05-28, 08:55   Link #19
emptyeighty
Senior Member
 
Join Date: Jan 2006
Heibi: The proper program is, as mentioned, MeGUI or x264 CLI.
emptyeighty is offline   Reply With Quote
Old 2008-05-28, 09:41   Link #20
Kristen
Senior Member
*Author
 
 
Join Date: Jul 2007
Location: Virginia Tech
Quote:
Originally Posted by Heibi View Post
For my purposes all I need to know is how to get the final encode done using the proper program to get an mp4 or mkv output.(Thus, we stop releasing shows encoded using h264 with a .avi). I can get the show timed and edited with no problem.
If you really really wanted, you could encode it to h.264 in a .avi container and then just re-name it to filename.mkv. After all, AVI, MKV, and MP4 are just containers.
__________________
Kristen is offline   Reply With Quote
Reply

Tags
encoding, x264


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 On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 07:34.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
We use Silk.