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-08-30, 20:50   Link #141
MoonLight-
Lucid Light
 
Join Date: May 2008
DVD resolution is 480x704, but when watching it appears like 848x480 res
and same goes to mkv-dvdrip..

How do I do that?
MoonLight- is offline   Reply With Quote
Old 2008-08-30, 22:06   Link #142
Medalist
Infie
*Fansubber
 
 
Join Date: Jul 2006
Location: Texas
Quote:
Originally Posted by MoonLight- View Post
DVD resolution is 480x704, but when watching it appears like 848x480 res
and same goes to mkv-dvdrip..

How do I do that?
I'm sure hope you mean 704x480

And the actual NTSC scan on this resolution is actually 848x480 or something like that, I'm not a major encoder though so I don't know how to explain it exactly, I'd be quite interested to know specifically myself.

It's the same, just ignore it x.x
Medalist is offline   Reply With Quote
Old 2008-08-30, 23:23   Link #143
TheFluff
Excessively jovial fellow
 
 
Join Date: Dec 2005
Location: ISDB-T
Age: 37
Quote:
Originally Posted by MoonLight- View Post
DVD resolution is 480x704, but when watching it appears like 848x480 res
and same goes to mkv-dvdrip..

How do I do that?
Quote:
Originally Posted by Medalist View Post
I'm sure hope you mean 704x480

And the actual NTSC scan on this resolution is actually 848x480 or something like that, I'm not a major encoder though so I don't know how to explain it exactly, I'd be quite interested to know specifically myself.

It's the same, just ignore it x.x
NTSC resolution is 720x480. This is usually cropped to 704x480 for somewhat obscure reasons.

Now, a picture with the resolution 704x480 has an aspect ratio of 3:2 (or 1.5:1), which isn't very common anywhere (4:3 and 16:9 are the by far most common aspect ratios for video). However, NTSC does not have square pixels, and the image is not supposed to be displayed at 3:2. As explained in the page previously linked, NTSC has an x:y PAR (Pixel Aspect Ratio) of 10:11 (to be completely exact it's actually 4320:4739 but seriously who cares), or 1:1.1, which means that to properly display a 704x480 NTSC image on a monitor with square pixels (i.e. PAR 1:1; pretty much all computer monitors have square pixels) it needs to be stretched by 10% in the vertical direction to make the aspect ratio correct. That is to say, it's should be displayed at 704x528, which coincidentally happens to be 4:3. How convenient.

Additionally, NTSC images may also be 16:9, in which case they should be stretched horizontally instead, to a resolution of 853x480 (usually rounded down to 852, since most renderers require a mod2 image).

This stretching can either be done at encoding time (i.e. you stretch the image with a resizing filter and encode it at 704x528 or 848x480 (rounded down to 848 for mod16 reasons)) or at playback time (i.e. you encode the image as 704x480 and set a flag either in the video bitstream or in the container that tells the player to display the image at the given resolution). The latter is usually preferable since the original image is 704x480 anyway and upscaling it before encoding wastes space. Also, if you assume that most people watch in fullscreen or at least in a player window bigger than the original resolution, resizing at playback time lets you get away with one resizing of the image, while resizing at encoding time makes the image get resized twice (once at encoding time and once at playback time).

Further reading:
http://www.hometheaterhifi.com/volum...vember-99.html
http://www.widescreen.org/aspect_ratios.shtml
http://en.wikipedia.org/wiki/Aspect_ratio_(image)
http://en.wikipedia.org/wiki/Anamorphic_widescreen
http://lipas.uwasa.fi/~f76998/video/conversion/




tl;dr:
__________________
| ffmpegsource
17:43:13 <~deculture> Also, TheFluff, you are so fucking slowpoke.jpg that people think we dropped the DVD's.
17:43:16 <~deculture> nice job, fag!

01:04:41 < Plorkyeran> it was annoying to typeset so it should be annoying to read
TheFluff is offline   Reply With Quote
Old 2008-08-31, 03:18   Link #144
comatose
Senior Member
 
Join Date: Dec 2007
Very informative.

But just one question. Is the video you're muxing something*480?
If so, why not set the aspect ratio to 16/9 instead of setting the display width/height to 852x480? That way, you can achieve perfect 16:9 (I don't know if it happens in practice, but hey...)
comatose is offline   Reply With Quote
Old 2008-08-31, 04:02   Link #145
TheFluff
Excessively jovial fellow
 
 
Join Date: Dec 2005
Location: ISDB-T
Age: 37
Quote:
Originally Posted by comatose View Post
But just one question. Is the video you're muxing something*480?
If so, why not set the aspect ratio to 16/9 instead of setting the display width/height to 852x480? That way, you can achieve perfect 16:9 (I don't know if it happens in practice, but hey...)
The renderer will still round to closest mod2 image size. I usually set the display resolution explicitly because then you can at least be sure your softsubs render right (if you only set the AR the player might decide to downscale vertically instead of upscaling horizontally, which can affect subtitle size). It also gives you more freedom to compensate for extra cropping or oddball aspect ratios.
__________________
| ffmpegsource
17:43:13 <~deculture> Also, TheFluff, you are so fucking slowpoke.jpg that people think we dropped the DVD's.
17:43:16 <~deculture> nice job, fag!

01:04:41 < Plorkyeran> it was annoying to typeset so it should be annoying to read
TheFluff is offline   Reply With Quote
Old 2008-08-31, 07:22   Link #146
comatose
Senior Member
 
Join Date: Dec 2007
Meh. Crappy renderers.
Also, I was under the impression that only the width is ever modified. I've never seen a player resize the height, hardware or software.
I guess if you say that then you probably have, though.
comatose is offline   Reply With Quote
Old 2008-08-31, 10:04   Link #147
TheFluff
Excessively jovial fellow
 
 
Join Date: Dec 2005
Location: ISDB-T
Age: 37
Quote:
Originally Posted by comatose View Post
Meh. Crappy renderers.
Also, I was under the impression that only the width is ever modified. I've never seen a player resize the height, hardware or software.
MPlayer (or at least some of its renderers) occasionally decides to resize in the vertical direction, but on the other hand it doesn't care about the display resolution (actually most players don't but don't tell anyone about that, it'd ruin my reasons for having an odd habit); 704x528, 640x480 and AR 4:3 all render the same.
__________________
| ffmpegsource
17:43:13 <~deculture> Also, TheFluff, you are so fucking slowpoke.jpg that people think we dropped the DVD's.
17:43:16 <~deculture> nice job, fag!

01:04:41 < Plorkyeran> it was annoying to typeset so it should be annoying to read
TheFluff is offline   Reply With Quote
Old 2008-08-31, 16:45   Link #148
comatose
Senior Member
 
Join Date: Dec 2007
Ugh. Yeah. I've noticed it was used as a ratio and not as a resolution once, but it didn't really bother me so I didn't test it :X
comatose is offline   Reply With Quote
Old 2008-09-08, 02:38   Link #149
MoonLight-
Lucid Light
 
Join Date: May 2008
Thnaks TheFluff and comatose for helping

just wandering..
How do you encode .ts file exactly ? ;o

starting with .avs and everything :P


thanks in advance !
MoonLight- is offline   Reply With Quote
Old 2008-09-08, 04:34   Link #150
jfs
Aegisub dev
 
 
Join Date: Sep 2004
Location: Stockholm, Sweden
Age: 39
Uh, "encode .ts file", do you mean use whatever as input and produce a TS as output, or use a TS as input and produce whatever as output?
Trust me, you don't want to produce transport streams, it's a format designed for heavy fault tolerance in digital broadcast systems, so it doesn't matter if the signal drops out for several seconds at a time. This means it has a huge overhead; if you mux the same elementary streams as TS and as MP4 you will see that the TS file is significantly larger.

If you want to use a TS as a source, what I prefer is using a program such as ProjectX (there's also another one I can't remember the name of) to demux the transport stream into elementary streams which can then be handled by regular tools, eg. parse an M2V file with DGIndex and then source it into Avisynth with DGDecode.
__________________

Aegisub developer [ Forum | Manual | Feature requests | Bug reports | IRC ]
Don't ask for: More VSFilter changes (I won't), karaoke effects, help in PM's
jfs is offline   Reply With Quote
Old 2008-09-08, 05:38   Link #151
TheFluff
Excessively jovial fellow
 
 
Join Date: Dec 2005
Location: ISDB-T
Age: 37
Quote:
Originally Posted by jfs View Post
If you want to use a TS as a source, what I prefer is using a program such as ProjectX (there's also another one I can't remember the name of) to demux the transport stream into elementary streams which can then be handled by regular tools, eg. parse an M2V file with DGIndex and then source it into Avisynth with DGDecode.
DGIndex can read transport streams directly these days. Which means encoding a TS is pretty much like encoding a DVD:
1) acquire TS
2) create .d2v with DGIndex, and note coding type (interlaced/progressive) and presence of hybrid material
3) write Avisynth script with suitable field matching/deinterlacing/decimating filters depending on state of source video as detected in 2) (alternative: pull source through YMC and do stuff in YATTA)
4) determine suitable cropping and resizing settings and add to Avisynth script
5) add suitable filtering
6) encode to lossless
7) encode lossless with x264
8) mux to MKV
9) release
__________________
| ffmpegsource
17:43:13 <~deculture> Also, TheFluff, you are so fucking slowpoke.jpg that people think we dropped the DVD's.
17:43:16 <~deculture> nice job, fag!

01:04:41 < Plorkyeran> it was annoying to typeset so it should be annoying to read
TheFluff is offline   Reply With Quote
Old 2008-09-08, 09:27   Link #152
Yumi`
Frame burner
 
 
Join Date: May 2007
Or eac3to instead of DGIndex for avc video (and all kinds of very useful HD disc audio conversion/extraction). Or xport and dgavcindex/graphedit, but those are less handy imo.
Yumi` is offline   Reply With Quote
Old 2008-09-08, 11:14   Link #153
comatose
Senior Member
 
Join Date: Dec 2007
DGAVCIndex works great and lets you keep the convenient DGIndex-style workflow
Buuuut I guess if you're dealing with Blu-ray you gotta do what you gotta do >_>

TheFluff: YMC?
comatose is offline   Reply With Quote
Old 2008-09-08, 11:53   Link #154
MoonLight-
Lucid Light
 
Join Date: May 2008
using DGIndex to create d2v file is easier for me.

Quote:
6) encode to lossless
7) encode lossless with x264
I don't get this.. why should I encode to lossless b4 encoding lossless with x264,
why not x264 directly ?

if that very necessary, think 250GB will be enough? <_<
MoonLight- is offline   Reply With Quote
Old 2008-09-08, 12:17   Link #155
Daiz
Pioneer in Fansub 2.0
 
Join Date: Aug 2007
Usually you encode to lossless if you intend to do any filtering, as then you only have to run the filters once, not multiple times (like if you were doing 2-pass encode with x264, you'd have to run your filters twice while doing heavy encoding, slowing the process down).

And regarding the lossless format, I would suggest lossless H.264 with no CABAC (--qp 0 --no-cabac) as it compresses very well for a lossless format and also gives the fastest decoding speeds, especially if you have CoreAVC.
__________________
"A good user is remembered from his posts, not from his 160px tall animated 'pink flying unicorns' signature picture."
---
The Guide for best H.264 playback
Daiz is offline   Reply With Quote
Old 2008-09-08, 12:57   Link #156
TheFluff
Excessively jovial fellow
 
 
Join Date: Dec 2005
Location: ISDB-T
Age: 37
Quote:
Originally Posted by comatose View Post
TheFluff: YMC?
Yatta Metrics Collector

As for lossless sizes, 250 GB is definitely enough. With ffvhuff at fastest settings (worst compression) 25 minutes of anime at NTSC resolution takes 4-5 GB at most; at 720p you're looking at 12-15 GB for the same length.
__________________
| ffmpegsource
17:43:13 <~deculture> Also, TheFluff, you are so fucking slowpoke.jpg that people think we dropped the DVD's.
17:43:16 <~deculture> nice job, fag!

01:04:41 < Plorkyeran> it was annoying to typeset so it should be annoying to read
TheFluff is offline   Reply With Quote
Old 2008-09-09, 00:06   Link #157
MoonLight-
Lucid Light
 
Join Date: May 2008
thanks again..

1st stage encoding to lossless:
I use lagarith to create lossless file

and LanczosResize, TDeint, TDecimate and toon with default setting
*everything goes ok till now*


then, 2nd stage encoding with x264

i use DeVeed, levels and MSmooth!
bitrate: 3700

but.. unfortunately I face some issue *block* :\
like this screen.. everything was ok till I add "ConvertToYV12()"





my .ts source is [justanotherdouche]_Gundam_00_S2_Teaser
+ DeNoise and DeBlock didn't help that much
MoonLight- is offline   Reply With Quote
Old 2008-09-09, 01:29   Link #158
Dark Shikari
x264 Developer
 
 
Join Date: Feb 2008
gradfun2db()
Dark Shikari is offline   Reply With Quote
Old 2008-09-09, 03:19   Link #159
Nagato
幻想郷
 
 
Join Date: Dec 2006
Location: 幻想郷
with low bitrates the blocks will be revived like zombies anyway.
Use gradfun2db() @ postprocessing instead.
__________________
Nagato is offline   Reply With Quote
Old 2008-09-09, 03:21   Link #160
max2k
Member
 
 
Join Date: Jul 2007
I dont think it is blocking. I would say it ist colorbending through over smoothing. So like Dark Shikari sayd use Gradefun() preencoding to get some Grain in the encode, or dont denoise that strong. If u plan to do a xvid encode u have to use some other "Noiser", and encode with more bitrate then the 1pass would sugest to keep it...
max2k is offline   Reply With Quote
Reply


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:58.


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