Log in

View Full Version : anamorphic & letterbox detection


Shinobu
13th October 2003, 00:30
hello everybody.
Thanks for this good forum which has help me a lot, and sorry for my realy poor english.
I've a little problem, I want to use avisynth to detect the ratio of an mpeg2 video (or a d2v project) like dvd2avi does, 1:1, 4:3 ,16:9 ,or 2:11:1.
I've found no plugin and no script that can do that.
I don't know if it's realisable, but if it is, it can be very usefull.
I've thought of that to make a full automatized script with b/p.f resize, autocrop, auto ivtc/deinterlace ....
The script works great, but without the ratio information i can't complete it.

thanks for answers (i hope this can be realisable ^^')

++

Shinobu
13th October 2003, 16:55
No one can help me ?

if it's realy impossible to do please tell me ^^'


++

len0x
13th October 2003, 17:16
Afaik, it's impossible since this info is only available in the ifo/vob. So unless some plugins can extract that - nothing we can do
(I'd be interested in this feature too)

Btw, care to share auto ivtc/deinterlace part of the script with us?

Shinobu
13th October 2003, 17:50
I'll post my whole script when it will be finish.
In this actual state tha auto ivtc is very good but the auto deinterlace is not parfect on pal source.

be sure i'll post this script, but i don't want to post a buggy script ^^'.

if a plugin or a script can extract the info of the AR from vob , it will be more than enought because my full auto script will be generate with a little soft (for bitrate calulation) so i can easily extract the vob folder form the d2v file ^^


Or the best thing to do is to ask Nic to mod mpeg2dec3 or mpegdec to add the AR fonction to extract ar from vob or d2v ^^
ar(("c:\test.d2v"),somevalue) put the AR value in "somevalue" or something like that ^^

Please Nic if you read this post tel us if it's realisable , it can be very usefull

++

len0x
13th October 2003, 17:59
Originally posted by Shinobu
I'll post my whole script when it will be finish.
In this actual state tha auto ivtc is very good but the auto deinterlace is not parfect on pal source.


I'm intrigued about deintrelace part... I can imagine automation of IVTC process, because a few guys here actually made an attempt on that, but auto deinterlacing especially on PAL sources? I never thought that was possible!

Originally posted by Shinobu

be sure i'll post this script, but i don't want to post a buggy script ^^'.


heh, may be we can improve on that and moreover you can get very useful feedback (including bug reports).

Shinobu
13th October 2003, 18:32
don't dream, i'm not good enought to made a deinterlace as restore24 for pal, i just try to analyse the fields, and make a TomsMoComp(1,2,1) on traveling or such things or a telecide if not, pal dvd source especialy in animes are realy bad because they're not ivtc and accelerated at 25 fps (4%) but just aquired at 25 fps form the 29.97 fps ntsc video raw, so you can't recover the most of the frames and you get a very hight number of ghosted frames and lagging traveling; but i think you already know that ^^.
i hope you can understand (my english realy very poor).
i'll probably post a private message to Nic in some hour about the eventuality of adding an AR fonction in the next mpeg2dec3 or mpegdec (or may be can you ? you're much skilled so he might lister you more ?)

++ and thanks for you're attention ^^

len0x
13th October 2003, 18:39
Originally posted by Shinobu
i just try to analyse the fields


how exactly, may I ask ?

Originally posted by Shinobu
i'll probably post a private message to Nic in some hour about the eventuality of adding an AR fonction in the next mpeg2dec3 or mpegdec (or may be can you ? you're much skilled so he might lister you more ?)


You can try submitting your request here:
http://forum.doom9.org/showthread.php?s=&threadid=62847

Neuron2 is developing new mpeg2dec3 at the moment, so he's your best bet. I can support your request in that thread if you want :)

Shinobu
13th October 2003, 18:49
excuse my bad expression, i don(t trie to analyse the field ^^' but try to do a little motion estimation just as good to detect traveling (nothing to to with field, i must be too tired ^^).
I'll post this motion estimation (it's basic but works not bad) in some days, i must before found why i've sometime an avisynth violation (not to hard but i've started this ME from 3 days only so it's still not full tested ^^)

i'll post to the thread you mention and if you can suppot my request, that 'll be a great help for me ^^

++

len0x
13th October 2003, 18:56
Looking forward to see you version of the script. In fact I'm working on something similar at the moment as well. But I don't completely rely on avisynth to do the job - just automation is the goal (whatever it takes :) )

Shinobu
13th October 2003, 19:01
^^
if i look for automation it's also for a soft (a real producer gui in fact (if you have any interest in real gui I can send you a prev version but without the auto script that will be designed only fo the d2v part ^^))

thank for your support I'll post my script here as soon as it will be usable (not without bug but usable), and i go post to you'r thread ^^


++