Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
27th December 2002, 22:10 | #1 | Link |
C64
Join Date: Apr 2002
Location: Austria
Posts: 830
|
MPASource: direct MP2 MP3 reading
Hi!
I made an AviSynth 2.0 plugin which can read mp2 and mp3. (the decoding is based on mpg123 in a version from the lame project) You simply put MPASource("filename.mp3", normalize=false) and get the audio. Trimming and seeking is supported, although it may be a little slow. When opening a script the whole file is scanned (fast without normalize, 5x slower with normalize) which can take 20-120 sec for one hour video, but this is the only way to always get the exact sample count (don't use it while preparing the video filters). MPASource Last edited by WarpEnterprises; 20th February 2008 at 22:48. |
27th December 2002, 22:18 | #2 | Link |
Moderator
Join Date: Oct 2001
Location: Germany
Posts: 4,454
|
Hu, I can't imagine what it's all good for, but I think the purpose is to feed it with i.e. an avi+it's dewmuxed soundtrack to create a SVCD or something similar.
In that matter, since I only use ogg in ogm (and sometimes find avi+ac3), would it be possible to extend that plugin with that? Like a general "CompressedAudioSource()"? Cheers, Koepi
__________________
Koepi's new media development site |
29th December 2002, 15:59 | #5 | Link |
Jetzt nochmal auf Deutsch
Join Date: Oct 2001
Location: Berlin, Germany
Posts: 411
|
Hi WarpEnterprises,
thanks alot. This is the most useful Plugin that I have seen for a while as a Newbie in avisynth. Now I am able to cut out the commercials of my DVB caps without pvacut and at the frame I like to, very easy to use, 100 % in sync. Great.
__________________
Hochachtungsvoll BaronVlad Deutsch >> Capture FAQ - Capture Guide Englisch >> Capture FAQ - Capture Guide |
30th December 2002, 21:35 | #6 | Link |
C64
Join Date: Apr 2002
Location: Austria
Posts: 830
|
Compiled a version for AviSynth 2.5
mpasource for AviSynth2.5 Last edited by WarpEnterprises; 10th January 2004 at 00:00. |
31st December 2002, 17:22 | #8 | Link |
Jetzt nochmal auf Deutsch
Join Date: Oct 2001
Location: Berlin, Germany
Posts: 411
|
@Warpenterprises:
As you are from Austria, you may be able to read something in German language I have implemented your great plugin in my little DVB guide here: http://doom9.de/extern_guides/digiCa...de/Inhalt.html Happy new year.
__________________
Hochachtungsvoll BaronVlad Deutsch >> Capture FAQ - Capture Guide Englisch >> Capture FAQ - Capture Guide |
2nd January 2003, 04:38 | #10 | Link |
The Digital Soul
Join Date: Jun 2002
Location: Nebraska, USA
Posts: 114
|
Great plugin WarpEnterprises, this saves me from having to convert my TV caps MP2 audio tracks into WAVS.
It's worked great as far as I can tell. No bugs or crashes to report on my end. I do have a question though. How can I handle delayed audio? When I demux an audio track with DVD2AVI and I get something that has a delay of 10ms, does this filter compensate for that? Do I need to delay the audio by some other method? |
2nd January 2003, 06:09 | #11 | Link |
Matroska Dev
Join Date: Sep 2002
Location: Texas, USA
Posts: 230
|
You use a script like this
Code:
video = mpeg2source("masterpiece_part3_vd.d2v") audio = MPASource("MASTERPIECE_PART3_VD MPA T01 DELAY -123ms.mpa", normalize=false) DelayAudio(audio,-0.123) AudioDub(video, audio) Select an MPEG-2 file Create a d2v project with DVD2AVI commandline Decode the mpa to wav with MADPlay, use DirectShow Decoder, or Use the MPASource AviSynth plugin Write a AviSynth script Open the script in VirtualDub Download Put the mpasource.dll in your AviSynth Plugin dir. @WarpEnterprises: Is it ok for me to distribute the .dll with my program? |
2nd January 2003, 10:56 | #12 | Link |
Simply me
Join Date: Aug 2002
Location: Lancashire, England
Posts: 610
|
@jcsston
Brilliant The simplest way yet to get a normal MPEG-2 into an avi that doesn't need a degree in video processing. Is there an existing thread/forum to discuss your program - you've made a killer app. And should be easier/quicker if you use WarpEnterprises plugin regards Simon
__________________
http://www.geocities.com/siwalters_uk/fnews.html |
2nd January 2003, 19:43 | #14 | Link | |
miau
Join Date: May 2002
Location: Lisbon
Posts: 594
|
Quote:
Thanks
__________________
"... but where are those missing pieces of eternal soul, I can feel them but I can't reach them with my vision" Petition for a software patent free Europe Another vision of what happened at 9/11
|
|
3rd January 2003, 17:27 | #15 | Link | |
Registered User
Join Date: Oct 2002
Location: The Pandorica
Posts: 527
|
Sometimes there are clicks. To eliminate them I'm currently
using Winamp to convert the mp2 file into a wav using the MAD plugin. The MAD plugin has a feature to remove this kind of clicks and pops. Any utility to remove clicks should replace them possibly with silence, so that audio sync is not lost. It would be useful if mpasource would handle this automatically. Thank you anyway. I will be experimenting with mpasource. Quote:
|
|
3rd January 2003, 17:47 | #16 | Link | |
Jetzt nochmal auf Deutsch
Join Date: Oct 2001
Location: Berlin, Germany
Posts: 411
|
Quote:
I have my avs created from GKnot or written on my own and add the audio with mpasource. After this I load the new avs with VDub Mod and cut there. After this compress to divx: http://doom9.de/extern_guides/digiCa.../Avisynth.html (example for avisynth script, explanation in German) DVB and audio: I have a problm with my source (antenna = DVB-T). The most interesting channels have not much power yet and because of this I have damaged mpeg streams from time to time (like a broken SVCD). And then there are also the probs with the audio. But they will fix it in March I think, no other audio problems apart from that occured
__________________
Hochachtungsvoll BaronVlad Deutsch >> Capture FAQ - Capture Guide Englisch >> Capture FAQ - Capture Guide |
|
3rd January 2003, 18:25 | #17 | Link |
miau
Join Date: May 2002
Location: Lisbon
Posts: 594
|
Oops
I don't want to put down the work being done but wouldn't make more sense to use an universal language, which is english, so that useful information wouldn't spread out for just some guides? Cheers
__________________
"... but where are those missing pieces of eternal soul, I can feel them but I can't reach them with my vision" Petition for a software patent free Europe Another vision of what happened at 9/11
|
3rd January 2003, 18:41 | #18 | Link | |
Jetzt nochmal auf Deutsch
Join Date: Oct 2001
Location: Berlin, Germany
Posts: 411
|
Quote:
__________________
Hochachtungsvoll BaronVlad Deutsch >> Capture FAQ - Capture Guide Englisch >> Capture FAQ - Capture Guide |
|
3rd January 2003, 21:14 | #19 | Link | |
C64
Join Date: Apr 2002
Location: Austria
Posts: 830
|
Quote:
peche at aon dot at. |
|
30th January 2003, 22:59 | #20 | Link |
Jetzt nochmal auf Deutsch
Join Date: Oct 2001
Location: Berlin, Germany
Posts: 411
|
hi WarpEnterprises,
let me allow one short question... would it be possible for you to update your great plugin to avisynth2.5 beta ... that would be very nice and highly appreciated... thanks for your efforts regards BaronVlad
__________________
Hochachtungsvoll BaronVlad Deutsch >> Capture FAQ - Capture Guide Englisch >> Capture FAQ - Capture Guide |
Thread Tools | Search this Thread |
Display Modes | |
|
|