gamez
20th January 2006, 13:34
Hello,
I am (probably) slightly misusing AVISYNTH for audio processing. I do so cause I have some trouble with BeSweet and AC3's, but that's another story.
For example, the following script
DirectShowSource("file1.mp3")
correctly plays in media player. And when fed into QuEnc, it produces a perfectly clean AC3 audio file.
Even more, the script
DirectShowSource("file1.mp3")++DirectShowSource("file2.mp3")
allows me to concatenate two mp3's into one AC3.
Now comes my problem. I need to work with parts of audio files. To do so, I think I need to use TRIM, but TRIM expects a video track. I manage to do the expected operation with a script like
AudioDub(BlankClip(length=9999,fps=25),DirectShowSource("file1.mp3")).Trim(f1,t1)++/
AudioDub(BlankClip(length=9999,fps=25),DirectShowSource("file2.mp3")).Trim(f2,t2)
ConvertToYV12
which plays the expected parts correctly in media player.
But now there is a (dummy) video track that so far I was not able to remove. QuEnc now also behaves differently and creates an mpg instead of ac3, which is logical.
As shown in the first two examples, AVISYNTH is able to produce output that has no video but only audio. But is there a way to explicitely remove (suppress) video a posteriori?
Is there another way to TRIM clips w/o video track in AVISYNTH?
Do you have a recommandation on how to produce an ac3 from parts of audio files?
Any help is greately appreciated, thank you.
g.
I am (probably) slightly misusing AVISYNTH for audio processing. I do so cause I have some trouble with BeSweet and AC3's, but that's another story.
For example, the following script
DirectShowSource("file1.mp3")
correctly plays in media player. And when fed into QuEnc, it produces a perfectly clean AC3 audio file.
Even more, the script
DirectShowSource("file1.mp3")++DirectShowSource("file2.mp3")
allows me to concatenate two mp3's into one AC3.
Now comes my problem. I need to work with parts of audio files. To do so, I think I need to use TRIM, but TRIM expects a video track. I manage to do the expected operation with a script like
AudioDub(BlankClip(length=9999,fps=25),DirectShowSource("file1.mp3")).Trim(f1,t1)++/
AudioDub(BlankClip(length=9999,fps=25),DirectShowSource("file2.mp3")).Trim(f2,t2)
ConvertToYV12
which plays the expected parts correctly in media player.
But now there is a (dummy) video track that so far I was not able to remove. QuEnc now also behaves differently and creates an mpg instead of ac3, which is logical.
As shown in the first two examples, AVISYNTH is able to produce output that has no video but only audio. But is there a way to explicitely remove (suppress) video a posteriori?
Is there another way to TRIM clips w/o video track in AVISYNTH?
Do you have a recommandation on how to produce an ac3 from parts of audio files?
Any help is greately appreciated, thank you.
g.