View Full Version : Cutting Audio in MeGUI
twolfe18
4th March 2007, 22:38
i noticed that MeGUI has an option in the audio encoding section to add a cuts file so that you can use the avscutter for your video, and be able to carry those cuts over to your audio.
my issue is that i have not been able to get it working :mad:
i have tried just about every input/output combo of audio formats (and video on the input), but nothing has worked.
also, i noticed that the cuts file (created by avs cutter), references frames, so i figured that the audio might have to be muxed in with a video stream. i tried that and it didnt help any. every time i try anything, it just reads error in the progress window.
does this feature work for other people, and does anyone have any tips for getting it to work for me?
naugas
13th March 2007, 01:00
I just tried this, and for me it seemed to work well. I had trimmed of the first 1025 frames of an encode I did (in the aviscript), but then I realized I didn't really knew how to do that for my audio...
But I tried the AVS cutter: opened the avisynth file for my encode without the trimming, set it to remove the first 1025 frames and saved the cut file in no transition mode. Looking at the file I saw that it only had references to framerate and where to cut which seemed appropriate, so I just loaded that file in the megui audio cuts config, and I got no complaints when encoding. And after muxing the audio is in sync too...!
twolfe18
14th March 2007, 18:44
so let me clarify, you are saying that you put the original audio file (tell me what kind of file that was if possible) that was taken from the source video in the conversion input, the cuts file that you created in AVS cutter in the cuts input, and selected the audio output file.
i mean, when i used avs cutter to cut my video, it worked fine, but it didnt work for the audio.
also, did you use a .clt cut file format? because i think there was one other that you can try that i havent tried yet.
so if you can elaborate a bit more, it may help me. :thanks:
naugas
14th March 2007, 22:51
There was a choice to add the cuts to the avisynth script, but only one choice of format to save a file in? (.clt)
And it was an ac3 file from a dvdrip I wanted to to remove the equivalent of 1025 frames from in the beginning. Demuxed with dgindex.
I have never used the avs cutter for or on anything else. For trimming the video I use trim(<start frame>,<end frame>) in the avs - I've never had any need for anything else, no fancy effects or multiple cuts. Before I saw that "Cuts" option in megui, I was thinking of looking for a way to put the ac3 in the avs and provide the framerate (which I think is really easy), and see if that avs2wav-tool is what it sounds like... I'm not knowledgeable at all about these things as you understand, I simply tried the avs cutter and it worked right away.
edit: What is it that doesn't work for you? You never said that.
Also, the cuts file doesn't really address frames directly, but framerate, which is what you want since the length of your audio file is known.
twolfe18
15th March 2007, 02:43
well, to address the issue of what exactly was going wrong for me, when i input all the neccessary fields (including the cuts file) and go to enque the job, it just says error in the progress column and doesnt do anything.
i should say that i havent tried this in a while because my power supply died a week ago and it is being RMAed right now. i dont like to do testing like this on other people's computers, and even if i wanted to i dont think i would have enough time.
also, the file i am trying to encode, is not from a dvd, but from OTA HDTV. i extract an ac3 file (from the mpeg2 raw file) just like a dvd, but i think that it may be different because i grab it off the air, and it may have problems in it (say if i lost reception for a second).
if there is one thing that i would like to know from you is more about how to add a framerate to an avs script. i am, for the most part, a complete n00b in these scripts. i dont do anything by text (dont know any commands), and i only really know how to make them as far as avisynth script creator tells me. do you think that adding a framerate might help, and if so, how would i do this?
basically, i need to do some experimenting on my own about this, but if you can offer any help about the framerate addition to the script, i would greatly appreciate it. i will see (hopefully) this weekend, when i get my psu back. :thanks:
naugas
15th March 2007, 14:29
Well, I suggest you try the megui/cuts way first...
I tried looking into this cutting and encoding audio/ac3 "videoframewise" from an avs just for fun now. I did it by trial and error, and have no idea if it's a good way to do it, but it works for me anyway.
There's a great new plugin called soundout that gives you audio output from an avs script - http://forum.doom9.org/showthread.php?t=120025.
If I used this approach to encode my audio, my script would look something like
video = mpeg2source(<path to .dv2>)
audio = nicac3source(<path to .ac3>,<channels downmix>)
AudioDub(video,audio)
trim(<start frame>,<end frame>)
soundout()
soundout could be configured to encode directly, but you can also save via the gui that pops up.
There's also a plugin for foobar2000 - foo_input_avs at http://www.gotdotnet.com/workspaces/workspace.aspx?id=1bb59ddf-901b-43a5-bd54-b0999e8e223e. foobar2000 is pretty easy to configure to encode to other formats.
I don't know how you make a reference to framerate in an avsscript for doing these kind of things without a video, or if it's even possible. I guess you can include some kind of "fake" empty video with desired properties, but I don't know how to do that either. Normally you have your dv2-file anyway, so you'll just use that.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.