User User name Password  
   
Saturday 16.8.2025 / 02:11
Search AfterDawn Forums:        In English   Suomeksi   På svenska
afterdawn.com > forums > digital video > video - everything else > avisynth / dgindex question...
Show topics
 
Forums
Forums
avisynth / DGindex question...
  Jump to:
 
Posted Message
dlindner
Newbie
_
9. June 2008 @ 20:38 _ Link to this message    Send private message to this user   
So I've downloaded some content off my tivo box, converted it to mpg using direct show dump, and now I want to dork around with it. Perhaps serve up some content to my xbox360 via media player, whatever, the details are about me learning what I'm doing, so answers along the lines of "poke around on this site", or "take a look at this tool", are exactly what I'm looking for.

My first pothole is around using dgindex to create an avs script that I can use to load into VirtualDub. My script is simple enough:

LoadPlugin("C:\Program Files\DGDecode\DGDecode.dll")
MPEG2Source("Firefly.d2v")

(love that show)

I load it up into Virtual dub, and the aspect is stuck in 1:1 (480x480). I tried editing the d2v file, I tried tweaking it in VirtualDub. No joy. Any hints? The mpg looks and plays fine in media player so the source is ok I think, but curiously video inspector lists the AR as 1:1 (480x480), so perhaps my problem is in the source mpg itself? Any tips for modifying that? Or should I use avisynth to fix it??
Advertisement
_
__
dlindner
Newbie
_
10. June 2008 @ 10:24 _ Link to this message    Send private message to this user   
Bad form to respond to my own post and all, but...

Avisynth rocks. All kinds of very cool rezise functions in avisynth that fix the problem nicely. BilinearResize seemed to be the ideal one for my use case.
AfterDawn Addict
_
10. June 2008 @ 11:24 _ Link to this message    Send private message to this user   
@dlindner
Answer as many as you please and can you post the script that you used.

Quote:
video inspector lists the AR as 1:1
BTW does it indicate the DAR as being 16:9 or 4:3?
I ask because 480x480 is 2/3? of D1 and if the player sees the correct flag, it displays properly.
dlindner
Newbie
_
10. June 2008 @ 20:17 _ Link to this message    Send private message to this user   
Sure, so here's the script (plus some extra tweaks), that produces some a nice output:

# load video via dgindex
LoadPlugin("C:\Program Files\DGDecode\DGDecode.dll")
MPEG2Source("Firefly.d2v").BiLinearResize(640,480)

# deinterlace
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\decomb.dll")
# DoubleWeave
FieldDeinterlace

# resize to fix AR of original
video = MPEG2Source("Firefly.d2v").BiLinearResize(640,480)

# original audio vs. extracted wav file
audio = MPASource("Firefly.mp2", normalize = false)
# audio = WAVSource("Firefly.wav")

# mux it up
AudioDub(video, audio)

# sync audio
DelayAudio(0.4)
dlindner
Newbie
_
10. June 2008 @ 20:22 _ Link to this message    Send private message to this user   
BTW I found no indication of DAR, but perhaps I was looking in the wrong place. The only thing video inspector shows is the AR which is listed as (1.00:1). Is there another tool that will analyze the mpeg stream and tell me more about it?
Advertisement
_
__
 
_
AfterDawn Addict
_
10. June 2008 @ 20:40 _ Link to this message    Send private message to this user   
Thank you for the script.


'GSpot' generally used to verify codecs, displays aspect ratios and other information.

http://www.afterdawn.com/software/video_...tools/gspot.cfm
afterdawn.com > forums > digital video > video - everything else > avisynth / dgindex question...
 

Digital video: AfterDawn.com | AfterDawn Forums
Music: MP3Lizard.com
Gaming: Blasteroids.com | Blasteroids Forums | Compare game prices
Software: Software downloads
Blogs: User profile pages
RSS feeds: AfterDawn.com News | Software updates | AfterDawn Forums
International: AfterDawn in Finnish | AfterDawn in Swedish | AfterDawn in Norwegian | download.fi
Navigate: Search | Site map
About us: About AfterDawn Ltd | Advertise on our sites | Rules, Restrictions, Legal disclaimer & Privacy policy
Contact us: Send feedback | Contact our media sales team
 
  © 1999-2025 by AfterDawn Ltd.

  IDG TechNetwork