Welcome Guest ( Log In | Register )


Important

The forums will be closing permanently the weekend of March 15th. Please see the notice in the announcements forum for details.

Pages: (9) [1] 2 3 ... Last » ( Go to first unread post )
Frontend Mpeg-2 To Virtualdub, Get the video & audio into VirtualDub
« Next Oldest | Next Newest » Track this topic | Email this topic | Print this topic
jcsston
Posted: Dec 12 2002, 02:40 AM


Matroska Dev


Group: Moderators
Posts: 553
Member No.: 652
Joined: 3-November 02



Hi,
I just got done working on the first release of my MPEG-2 to VirtualDub program.
It takes a MPEG-2 file,
Creates a d2v project with DVD2AVI
Decodes the mpa to wav with LAME
Writes a AviSynth script
Opens the script in VirtualDub

You can try it out at MPEG-2 to VirtualDub Homepage

--------------------
Use the Matroska file format
 
       Top
VideoJedi
Posted: Dec 15 2002, 06:43 AM


Unregistered









This looks like a great start and could ease my video editing. I can't get it to work though. I regularly use the utilities in your program that are called. The thing is.. my mpeg2 video is separate from the mp2 file I get from my sat receiver rips. Maybe your program expects the audio and video to be in the same mpg file? I could mutliplex the a/v and try it then, but I have to deal with an audio offset and I want to do the least amount of work possible to get my vid off the sat receiver and encoded to SVCD or DIVX. I don't suppose you could have a button for "choose video", another for "choose audio" and a third for "choose regular mpg (audio+video)? Anyway... looking good so far anyway. smile.gif
 
  Top
jcsston
Posted: Dec 15 2002, 07:04 AM


Matroska Dev


Group: Moderators
Posts: 553
Member No.: 652
Joined: 3-November 02



I created to ease getting my ATI MPEG-2 captures. I'll look into adding an option to select a separate audio file.
About the audio offset does your separate audio file have the delay in the filename? If so please tell me the complete name of one of the files, so I can create some code to extract the audio delay or I could let you enter the delay manually.

--------------------
Use the Matroska file format
 
       Top
jcsston
Posted: Jan 2 2003, 06:06 PM


Matroska Dev


Group: Moderators
Posts: 553
Member No.: 652
Joined: 3-November 02



I have a newer release.
Now it has more options to decode the .mpa
Decode the mpa to wav with MADPlay, use DirectShow Decoder, or Use the MPASource AviSynth plugin

I have also added support for separate video & audio files.

--------------------
Use the Matroska file format
 
       Top
ChristianHJW
Posted: Jan 2 2003, 10:40 PM


Advanced Member


Group: Moderators
Posts: 1768
Member No.: 2
Joined: 7-July 02



I promise i will look into this mate .... my DVB-S card will be installed soon again and this is what i will need !!

--------------------
Visit the unofficial Virtualdub support forum on http://forums.virtualdub.org - help to reduce the big number of emails Avery Lee is getting every day !!
Support matroska as container and Gstreamer as the only truely open, x-platform multimedia platform ....
 
       Top
Incubuz
Posted: Jan 4 2003, 04:24 AM


Unregistered









Ok I'm totally n00b about avisynth, and minor skilled in virtual dub. So this looked easy=)

Took a svcd file and ran it through, error when entering vdmod some "avisynth open failure" thing.
After some research (an hour or more heh) I found out it properly was the mpeg2dec.dll, after trying to replace it, reading more and having loads of FUN! I reinstalled your frontend and tried again.

This time I got an audio error, so I checked the .d2v file and there was no "audio = xzy" line, so I experimented and put one in, audio = WavSource("X.wav"). Now it seems to work, I can run it in vdmod and mplayer, havent checked if the sound is in synch.

Isnt the frontend supposed to put that audio line in? Or I'm just stupid tongue.gif

Incubuz
 
  Top
jcsston
Posted: Jan 4 2003, 05:31 AM


Matroska Dev


Group: Moderators
Posts: 553
Member No.: 652
Joined: 3-November 02



ph34r.gif It seems whenever you add new features the old ones get broken.
I added the MPAsource plugin which broke the MADPlay and Directshow wav decoding

the MPEG2DEC.dll is supposed to be loaded from the dir you installed 'MPEG-2 to VirtualDub' to prevent version incompatibilities

I will put an update exe on the webpage. This is my first program I have released to the public so please forgive me for all the bugs ohmy.gif .

--------------------
Use the Matroska file format
 
       Top
Incubuz
Posted: Jan 4 2003, 02:46 PM


Unregistered









Working fine now tongue.gif

 
  Top
jcsston
Posted: Jan 5 2003, 01:25 AM


Matroska Dev


Group: Moderators
Posts: 553
Member No.: 652
Joined: 3-November 02



I've released a new version v1.6
CODE
[features added]
* Now you can select which colorspace is outputed by the AviSynth script
* Added keyboard shortcuts
* Commandline support added
Switches:
/l "path\filename" Load MPEG-2 file
/rgb Output AviSynth script in RGB32 colorspace
/yuv Output AviSynth script in YUV colorspace
/a0 Decode mpa audio with MADPlay
/a1 Decode mpa audio with DirectShow decoder
/a2 Decode mpa audio in AviSynth with MPASource plugin
/exit Exit 'MPEG-2 to VirtualDub' when done

Ex. Mpeg2toVirtualDub /l "D:\videos\xmass.mpg" /rgb /a2 /exit
[bug fixes]
* Fixed bug of MADPlay and DirectShow decoders didn't work


--------------------
Use the Matroska file format
 
       Top
donross
Posted: Jan 5 2003, 11:15 AM


Unregistered









How do you fix the Avisynth open failure:Unrecognized exception!in line 5.
eveything works until virtualdub starts and i get this error.

wacko.gif
 
  Top
jcsston
Posted: Jan 5 2003, 04:29 PM


Matroska Dev


Group: Moderators
Posts: 553
Member No.: 652
Joined: 3-November 02



What settings did you use? man this program's getting complex ohmy.gif
Audio decoder
RGB checked or unchecked
the filenames of MPEG-2 file and your separate audio file if you have one

--------------------
Use the Matroska file format
 
       Top
donross
Posted: Jan 5 2003, 04:41 PM


Unregistered









started with a .mpg file.
tryed both rgb checked and unchecked.
no separate audio.
used mad play.

#Created with Jory's Mpeg-2 to VirtualDub 1.6.31
#For updates vist http://www.jory.cjb.net/vb/
LoadPlugin("C:\Program Files\MPEG2toVirtualDub\MPEG2DEC.dll")
LoadPlugin("C:\Program Files\MPEG2toVirtualDub\mpasource.dll")
video = mpeg2source("C:\Documents and Settings\Donald Ross\My Documents\My Videos\libertyx_vd.d2v")
audio = WAVSource("C:\Documents and Settings\Donald Ross\My Documents\My Videos\LIBERTYX._VD MPA T01 DELAY -120ms.mpa.wav")
DelayAudio(audio,-0.123)
AudioDub(video, audio)


ConverttoRGB32()

 
  Top
Incubuz
Posted: Jan 6 2003, 03:24 PM


Unregistered









I think that was the error I got in the beginning, then I did a number of things, like installed avisynth and put the mpeg2dec.dll in the win2k/system32 folder and more (just cant remember the rest) and then I reinstalled Mpeg-2 to VirtualDub.
 
  Top
jcsston
Posted: Jan 6 2003, 04:39 PM


Matroska Dev


Group: Moderators
Posts: 553
Member No.: 652
Joined: 3-November 02



QUOTE (donross @ Jan 5 2003, 10:41 AM)
audio = WAVSource("C:\Documents and Settings\Donald Ross\My Documents\My Videos\LIBERTYX._VD MPA T01 DELAY -120ms.mpa.wav")
DelayAudio(audio,-0.123)

wacko.gif That is wrong. the DelayAudio should be (audio,-0.120) to prevent audio desync.
But you say the error is on line 5
'video = mpeg2source("C:\Documents and Settings\Donald Ross\My Documents\My Videos\libertyx_vd.d2v")'

On my system a very long filename causes an error in AviSynth. If you can try putting the video in a lower level dir. 'C:\something\video.mpg' or "C:\Documents and Settings\Donald Ross\" if you don't have access.

--------------------
Use the Matroska file format
 
       Top
jcsston
Posted: Jan 6 2003, 04:47 PM


Matroska Dev


Group: Moderators
Posts: 553
Member No.: 652
Joined: 3-November 02



I have an EXE update on the site. This time I really fixed MADPlay and DirectShow. Also The newer commandline options are
Switches:
/l "path\filename" Load MPEG-2 file
/a "path\filename" Load MPEG-2 audio file
/rgb Output AviSynth script in RGB32 colorspace
/yuv Output AviSynth script in YUV colorspace
/a0 Decode mpa audio with MADPlay
/a1 Decode mpa audio with DirectShow decoder
/a2 Decode mpa audio in AviSynth with MPASource plugin
/exit Exit 'MPEG-2 to VirtualDub' when done

--------------------
Use the Matroska file format
 
       Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
133 replies since Dec 12 2002, 02:40 AM Track this topic | Email this topic | Print this topic
Pages: (9) [1] 2 3 ... Last »
<< Back to Avisynth Filtering, Processing and Scripts Discussion