Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
dis astranagant
Dec 14, 2006

Nidoking posted:

In Avisynth, you can either pad the audio track with silence (Blankclip) to the right length and AudioDub that onto the video from the original clip, or cut the silent frames from the video and AudioDub the original audio onto that - it's probably best to AudioDub either way to avoid some weird case where cutting the silent video also somehow cuts into the audio from prior to that. You could also just AlignedSplice a one-frame Blankclip onto the end to force it to pad with silence.

Trimmed the silent frames out (and a few extra to be safe) and dubbed the audio on and the latest attempt will sometimes go out of sync by a second or so then resynch somehow :psyduck:

Adbot
ADBOT LOVES YOU

Nidoking
Jan 27, 2009

I fought the lava, and the lava won.

dis astranagant posted:

Trimmed the silent frames out (and a few extra to be safe) and dubbed the audio on and the latest attempt will sometimes go out of sync by a second or so then resynch somehow :psyduck:

I'm going to suspect that the editing you've done has gotten out of order. Could you post the script you're using, just for reference?

Also, are you sure that didn't happen before making this change?

dis astranagant
Dec 14, 2006

Just figured it out. Didn't hit something right in MeGUI and it never actually muxed in the new audio track. Probably never would have noticed if I hadn't just said gently caress it and started uploading, only for youtube to throw a fit about the raw pcm audio.

GruntyThrst
Oct 9, 2007

*clang*

Okay so I have literally no idea what I'm doing and despite reading through the thread I'm sort of stuck at step 0 here.

I recorded a thing with OBS because it's free and easy and I can capture the game directly instead of fiddling with window capture. It encodes video with x264 and audio with AAC and dumps out a .mp4 file. I want to cut some dead air so it's super simple editing, and I'm using AviSynth because the OP say's it's basically the second coming of video editing Jesus. Since it's a .mp4 file and not an .avi file I assume I am correct in thinking I need a plugin for AviSynth to be able to do whatever it does so I can open the .avs script properly.

So I've downloaded ffmpegsource from github as pentioned on page 16 and... what exactly do I do with it? Just extract the whole thing into the AviSynth plugin folder? The user documentation helpfully leaves out any and all information related to actually installing the drat thing.

dis astranagant
Dec 14, 2006

You extract it into the plugin folder and then use FFMpegSource2() to load your video instead of AVISource.

GruntyThrst
Oct 9, 2007

*clang*

dis astranagant posted:

You extract it into the plugin folder and then use FFMpegSource2() to load your video instead of AVISource.

Alright, I got the video to load in VirtualDub but no audio. Do I need to specifically point it to the file again for audio?

dis astranagant
Dec 14, 2006

Most of the video editing guis don't run audio in the previews.

Admiral H. Curtiss
May 11, 2010

I think there are a bunch of people who can create trailing images. I know some who could do this as if they were just going out for a stroll.
VDub does. I thought FFMpegSource2() was supposed to load the audio too, but try FFAudioSource() on the same file and AudioDub()ing them together.

dis astranagant
Dec 14, 2006

Well, you might have to fiddle with your atrack parameter, though usually things hang if that's wrong. Try opening your avs script in your favorite video player.

GruntyThrst
Oct 9, 2007

*clang*

dis astranagant posted:

Well, you might have to fiddle with your atrack parameter, though usually things hang if that's wrong. Try opening your avs script in your favorite video player.

VLC doesn't do anything with .avs files.

Admiral H. Curtiss posted:

VDub does. I thought FFMpegSource2() was supposed to load the audio too, but try FFAudioSource() on the same file and AudioDub()ing them together.

What could this script be? Something like
code:
a = FFAudioSource("recording.mp4")
v = FFMpegSource2("recording.mp4")
clip = Audiodub(v,a)
?

Edit: Needed to remove that bit assigning the clip variable. I'm sort of hacking stuff into things previously posted in the thread if that's not obvious. :v:

It has audio now but I'm confused because as far as I am reading FFMpegSource2() is supposed to do both video and audio. Oh well, at least it's working now.

GruntyThrst fucked around with this message at 00:55 on Mar 9, 2014

The Unholy Ghost
Feb 19, 2011
Okay, so I bought a 3-Way AV Splitter so that I could simultaneously connect my PS2 to my Laptop and my TV in order to record LPs. I'm using a USB Live 2 Recording Device, and when I use it just with my laptop, I get a few seconds of lag, thus why I must use the Splitter so that I can record and play at same time.

Here's where the problem comes in. I'm trying to connect everything together, but the USB Live 2 Device only has female AV Cord Inputs. The 3-Way Splitter also has female AV cord inputs, so there's no way to connect the thing. It did come with a dual male AV Cord, but I have to use that to connect the TV. Is there something else I need to buy now, or is there some complicated wiring technique I need to learn?

dis astranagant
Dec 14, 2006

FFMS2 needs an atrack=x parameter after the video file, where x tends to be 0, 1 or -1 but I couldn't tell you why it's any one of those without trial and error.

Kinda strange that vlc won't play avs scripts, MPC handles them fine so long as they aren't too complex or convert colorspaces. That way you can make sure your problem is the script and not something further up the chain.

Geemer
Nov 4, 2010



dis astranagant posted:

Kinda strange that vlc won't play avs scripts, MPC handles them fine so long as they aren't too complex or convert colorspaces. That way you can make sure your problem is the script and not something further up the chain.

VLC only uses built-in codecs. This has the advantage of making it seem like It Just Works, but it really means that if it fucks something up you have no way of fixing it without installing a different player.

Nidoking
Jan 27, 2009

I fought the lava, and the lava won.

The Unholy Ghost posted:

Here's where the problem comes in. I'm trying to connect everything together, but the USB Live 2 Device only has female AV Cord Inputs. The 3-Way Splitter also has female AV cord inputs, so there's no way to connect the thing. It did come with a dual male AV Cord, but I have to use that to connect the TV. Is there something else I need to buy now, or is there some complicated wiring technique I need to learn?

Gender changers are pretty standard A/V equipment, and I always have a few spares lying around, particularly when I'm using splitters. Just run out to your local Radio Shack or equivalent and pick up the appropriate connectors. They're cheap.

Artix
Apr 26, 2010

He's finally back,
to kick some tail!
And this time,
he's goin' to jail!
Alright, so I've done a test recording and a few edits, and now I'm ready to encode. Is there a particular bitrate or quality setting to shoot for with 720p footage? Obviously I'm going to experiment up and down a little bit, but I was just wondering if there was a good place to start.

ChaosArgate
Oct 10, 2012

Why does everyone think I'm going to get in trouble?

Artix posted:

Alright, so I've done a test recording and a few edits, and now I'm ready to encode. Is there a particular bitrate or quality setting to shoot for with 720p footage? Obviously I'm going to experiment up and down a little bit, but I was just wondering if there was a good place to start.

Youtube's bitrate for 720p playback is around 2000, so if you want to keep sizes low, aim for around there. If not, 3000-4000 will still look nice.

frozentreasure
Nov 13, 2012

~

ChaosArgate posted:

Youtube's bitrate for 720p playback is around 2000, so if you want to keep sizes low, aim for around there. If not, 3000-4000 will still look nice.

YouTube's encoding guidelines suggest 5,000 for 720p.

Mico
Jan 29, 2011

A billion dollars.
I just let MeGUI target 20 CRF and let it sort out the bitrate for me. (No Target Size/Use Profile Settings)

Artix
Apr 26, 2010

He's finally back,
to kick some tail!
And this time,
he's goin' to jail!
I'm trying to splice together parts of my recording, and it's telling me that the framerates don't match, despite it coming from the same recording. I checked the properties, and they both say 59 FPS (it recorded at 59.94 FPS), so I don't know why it would be spitting that error at me. Regardless of the source of the error, do I want to use ChangeFPS or ConvertFPS to fix it?

Xenoveritas
May 9, 2010
Dinosaur Gum
Presumably they don't have the same framerate. Yes, yes, I know, helpful.

The reason why they wouldn't depends on the source. If the source was originally variable frame rate, then you may need to change how you're loading the video.

In any case, always use ChangeFPS to change the frame rate and never use ConvertFPS. (ConvertFPS frame-blends and looks awful.)

gatz
Oct 19, 2012

Love 'em and leave 'em
Groom 'em and feed 'em
Cid Shinjuku
I have a large number of .RAW audio files (unsigned 8-bit PCM with no-endianness, 41000 Hz) which I want to convert to .WAV files, but also slow them down by %50. Audacity can't batch process raw files. Is there something that can help me? Something called SoX can supposedly do what I need, but I can't make it work correctly.

ChaosArgate
Oct 10, 2012

Why does everyone think I'm going to get in trouble?

Can Foobar2000 recognize .RAW files? If it can, you can most likely use its batch conversion tool on your stuff.

dis astranagant
Dec 14, 2006

MeGUI might let you encode them to flac, which is lossless and should convert to wav fine. It handled the raw PCM MSI Afterburner spits out fine.

Xerxes17
Feb 17, 2011

I have this weird color shifting issue that I cannot work out.

Raw Fraps footage on top, after encoding on the bottom.



My .avs is literally:

quote:

AVISource("C:\Fraps\Movies\AviSynthClip2.avi")
ConvertToYV12()

With the last line added because MeGUI said it should be added and it doesn't seem to make a difference either way from when I have forced it to not add it to the script. I got the exact same issue when I tried windows movie maker as a comparison with the same material. So I'm just absolutely :psyduck: at this. Any help with fixing this would be greatly appreciated.

Aerdan
Apr 14, 2012

Not Dennis NEDry
Whatever you have Fraps set to encode into, it's not Lagarith or h2654 (h265 isn't available yet, I don't think) and therefore wrong (and why you're getting such an awful mess out of it).

Admiral H. Curtiss
May 11, 2010

I think there are a bunch of people who can create trailing images. I know some who could do this as if they were just going out for a stroll.
It's a full/limited range decoding issue. Try this.

MEAT!
Mar 18, 2008

Admiral H. Curtiss posted:

It's a full/limited range decoding issue. Try this.

That should go in the OP.

FYI, CCCP and MeGUI DEV got updates in the past few days, so go for those if you haven't already.

Lunethex
Feb 4, 2013

Me llamo Sarah Brandolino, the eighth Castilian of this magnificent marriage.
What is the best way to record from an emulator, in this case ePSXe? My hard drive is pretty low on space so using Fraps would be an exercise and it will occasionally make the game hitch too much for me to think the recording is going well. Is fraps the only good method and I'm SOL?

MEAT!
Mar 18, 2008

Recording anything is gonna take up a lot of hard drive space no matter what you use.

Artix
Apr 26, 2010

He's finally back,
to kick some tail!
And this time,
he's goin' to jail!
So I have a 40 minute video that I decided to break up into two parts. I set up all my edits in AviSynth, tell it to only render the first few parts of it, feed it into MeGUI, and I get a nice, crisp 20 minute video. Great, exactly what I wanted. Now I go I to render the other half, so I comment out the line that had the stuff for the part 1 video and add in a line with the stuff for part 2. I have not changed anything else about the script aside from adding this line. Now, VirtualDub crashes every time I try to load the script. If I go back and try to load the entire video from the beginning it's perfectly fine, including the part of the video that I want in the second half. It just absolutely refuses to load anything that doesn't start from the beginning. The script in question:

code:
FFVideoSource
FFAudioSource
Audiodub

vid = Trim(vid, 42, 0)

#vid1 = Trim(vid, 0, 18494) 
#vid2 = Trim(vid, 19117, 26292) 
#vid3 = Trim (vid, 26956, 27603)
#vid4 = Trim (vid, 28689, 31291)
#vid5full = Trim (vid, 32841, 56279)
#vid5part1 = Trim(vid, 32841, 38526)
vid5part2 = Trim(vid, 38373, 56279)
vid6 = Trim (vid, 57380, 57722)
vid7 = Trim (vid, 59046, 0)

#vidfinal = FadeOut(vid1, 37) + FadeIO(vid2, 36) + FadeIO(vid3, 35) + FadeIO(vid4, 36) + FadeIO(vid5, 36) + FadeIO(vid6, 36) + FadeIn(vid7,36)

#vidpart1 = FadeOut(vid1, 37) + FadeIO(vid2, 36) + FadeIO(vid3, 35) + FadeIO(vid4, 36) + FadeIn(vid5part1, 36)

vidpart2 = FadeOut(vid5part2, 36) + FadeIO(vid6, 36) + FadeIn (vid7, 36)

return vidpart2
The stuff I've commented out was for the first video. Help? I thought it might be trying to re-index the video or something but the ffindex files are still in there so I dunno. Would it be easier to just move the stuff I want for the second video into its own script? Would that even matter?

Psion
Dec 13, 2002

eVeN I KnOw wHaT CoRnEr gAs iS

MEAT! posted:

That should go in the OP.

FYI, CCCP and MeGUI DEV got updates in the past few days, so go for those if you haven't already.

It really should, because I think it catches a lot of people. sure made a lot of my early output look washed out or whatever. Colorspace in general is one of those things where I'm not really sure what I'm doing at all.

gatz
Oct 19, 2012

Love 'em and leave 'em
Groom 'em and feed 'em
Cid Shinjuku

ChaosArgate posted:

Can Foobar2000 recognize .RAW files? If it can, you can most likely use its batch conversion tool on your stuff.

I can't find a way for it to recognize them, which is weird because Foobar can do a lot of things that other free audio processors can't.

dis astranagant posted:

MeGUI might let you encode them to flac, which is lossless and should convert to wav fine. It handled the raw PCM MSI Afterburner spits out fine.

What would a avisynth script look like for this?

MEAT!
Mar 18, 2008

Artix posted:

Would it be easier to just move the stuff I want for the second video into its own script? Would that even matter?

I dunno, have you tried it?

gatz posted:

I have a large number of .RAW audio files (unsigned 8-bit PCM with no-endianness, 41000 Hz) which I want to convert to .WAV files, but also slow them down by %50. Audacity can't batch process raw files. Is there something that can help me? Something called SoX can supposedly do what I need, but I can't make it work correctly.

I've never used sox before, but it seems simple enough to use. Just put the file you want to convert (input.raw) in the same folder as the sox .exe and make a new .txt file. Write this in it:

code:
sox -r 44100 -e unsigned -b 8 -c 1 input.raw output.wav
pause
Then change the extension of the .txt to .cmd and run it.

Edit: Oops, you wanted a batch. Then just do this:


code:
sox -r 44100 -e unsigned -b 8 -c 1 "%~f1.raw" "%~f1.wav"
pause
Select all the files you want to convert and drag and drop them onto the .cmd file.

MEAT! fucked around with this message at 18:17 on Mar 10, 2014

gatz
Oct 19, 2012

Love 'em and leave 'em
Groom 'em and feed 'em
Cid Shinjuku
That didn't work for some reason. I'm not a programmer so I can't tell you why it's putting .raw after the first .raw and .wav.

ChaosArgate
Oct 10, 2012

Why does everyone think I'm going to get in trouble?

gatz posted:

That didn't work for some reason. I'm not a programmer so I can't tell you why it's putting .raw after the first .raw and .wav.



Try editing your .cmd so that instead of %~f1.raw or %~f1.wav, it just says %~f1.

gatz
Oct 19, 2012

Love 'em and leave 'em
Groom 'em and feed 'em
Cid Shinjuku
This worked for one file

code:
sox -r 44100 -e unsigned -b 8 -c 1 "%~f1" "%~f1.wav"
pause
The problem is that it only converts one file no matter how many I drag onto it at once.

Admiral H. Curtiss
May 11, 2010

I think there are a bunch of people who can create trailing images. I know some who could do this as if they were just going out for a stroll.
Try:

FOR %%G IN (*.raw) DO sox -r 44100 -e unsigned -b 8 -c 1 "%%G" "%%G.wav"

And run the batch file just like that, no dragging/dropping. Might need to rename it to *.bat instead of *.cmd.

gatz
Oct 19, 2012

Love 'em and leave 'em
Groom 'em and feed 'em
Cid Shinjuku
^ That did the trick. 930 files converted. Now I can batch process them in audacity and slow them down. Thanks!

Quaternion Cat
Feb 19, 2011

Affeline Space

gatz posted:

Now I can batch process them in audacity and slow them down. Thanks!

Are you slowing them down while maintaining pitch, or no? Just a dumb question that the answer to which may make things easier for you...

Adbot
ADBOT LOVES YOU

gatz
Oct 19, 2012

Love 'em and leave 'em
Groom 'em and feed 'em
Cid Shinjuku
Slow them down and change the pitch. Some old dos games have this weird thing where the audio files are sped up by 50%, but played back normally while in-game. I'm guessing in order to save space.

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply