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.

 
Create A Final Video, Problem With Audio
« Next Oldest | Next Newest » Track this topic | Email this topic | Print this topic
Samu
Posted: Jun 22 2012, 07:53 PM


Newbie


Group: Members
Posts: 8
Member No.: 26047
Joined: 21-August 09



Hi. My version of VDub is VirtualDub 1.10.2 AMD64, running on a Intel Core i5 2500 with Windows 7 Ultimate 64-bit.

I am recording raw video from a game on my PC in uncompressed RGB and uncompressed 48kHZ Stereo PCM with MSI Afterburner at a resolution of 1280x720 and at a rate of 30 fps. It generates a huge avi file, sometimes over 40 GB in size.

I wanted to convert that uncompressed avi into H.264 x264 for video and HE-AAC v2 for audio. How am I supposed to do it?

This is what I've tried:
- HandBrake can do H.264 x264 and AAC by itself, but not HE-AAC v2. I would like it to PassThru HE-AAC v2 when providing a source video already with the audio portion in HE-AAC v2.
- I used VirtualDub to extract .wav and then NeroAacEnc comand line to create the desired HE-AAC v2 audio file.
- Now VDub doesn't want to use this audio file via "audio from other file"

I don't know what to do sad.gif
 
     Top
ale5000
Posted: Jun 23 2012, 02:23 AM


Advanced Member


Group: Members
Posts: 1114
Member No.: 22180
Joined: 30-September 07



Remux the HE-AAC audio to .mka with MKVToolNix then import it through "audio from other file" using the Matroska input plugin.

--------------------
New VirtualDub forum
VirtualDub AIO (All-in-One installer for VirtualDub and plugins)
Codec Toolbox RS (A tool to read/change merit of codecs and many other things)
Input plugins for VirtualDub / ACM codecs / VFW codecs
 
     Top
Samu
Posted: Jun 23 2012, 07:15 PM


Newbie


Group: Members
Posts: 8
Member No.: 26047
Joined: 21-August 09



QUOTE
Thank you. I think I managed to do it, but it was quite confusing and I'm not sure if the audio is in stereo or if it's just a wrong info retrieval. It says Mono when playing on Windows Media Player, but it says Stereo (SBR) on virtualdub properties.

This is what I did:

Installed mkvtoolnix and run mkvmerge GUI.
I add an avi file, but it only contain PCM audio, it didn't detect the video. I got confused here. Then I add the already converted AAC file, and the list gets updated saying chapter and audio.
- PCM (ID 1, type: audio) from nfsw_2012_06_22_00_10_53_778 crop rgb888.avi
- mp4a (ID 0, type: audio) from aodiu.wav
- chapters (1 entries) from aodiu.wav

I click Start muxing and it creates a .mka file

The video disappeared... sad.gif

Then installed the plugin into the plugins64 folder. Running virtual dub, I had to select audio from other file, but it only accepted the .mka file, and not the .wav file. Is this normal?

Saved again as AVI.

Now on HandBrake, I picked the newly saved AVI and selected the android high preset while on the audio section I selected AAC Passthru.

Windows Media Player properties on the avi file says 119 kbps Stereo 48 kHz for the audio portion, but on the mp4 file generated on HandBrake it says 120 kbps Mono 24 kHz.

Is something that I did wrong? In the end , both .avi and .mp4 video files do contain video. The .mka file does not.


EDIT: Nevermind the text above, I managed to find out it's playing in Stereo. I used an easier-to-identify-for-my-ears audio sound sample. Also found out the details about SBR and PS. It's okay that the information retrieved is mono. But I still have the question about colorspace below unsolved...

PS: I have some other question, about colorspace. When I capture video with MSI Afterburner, it comes in RGB 24-bit. What would be the ideal color space conversion for H.264 x264? My goal is to upload the video to Microsoft Skydrive, which doesn't change the file at all, to share with others, and at least, to natively playback on Windows Media Player.

This post has been edited by Samu on Jun 25 2012, 06:49 PM
 
     Top
Samu
Posted: Jul 4 2012, 05:11 PM


Newbie


Group: Members
Posts: 8
Member No.: 26047
Joined: 21-August 09



I have a problem again. Or maye I'm doing this wrong:

I use the Crop to Selection in some videos I have captured but when I extract the .wav (File - Save WAV...), convert it with another program, and then use Audio From Other File... in a .mka, the audio doesn't match the video at all, it's like it's "double cropping" the audio part.

How do I fix this?
 
     Top
Samu
Posted: Jul 4 2012, 07:05 PM


Newbie


Group: Members
Posts: 8
Member No.: 26047
Joined: 21-August 09



I just don't know how to do the whole thing at once without user input. Wanted it to be done automatically sad.gif Really need your help!

1 - Capture video with MSI Afterburner (1st avi file created)
2 - Crop video and audio with VirtualDub and 'Save as AVI' (2nd avi file created)
3 - Open 2nd AVI file and 'Save WAV...' with VirtualDub (wav file created)
4 - Encode audio to HE-AAC v2 with NeroAACEnc (1st mp4 file created)
5 - Create MKA with MKVMerge (mka file created)
6 - Open 2nd AVI file and use the MKA file as 'Audio from other file...' with VirtualDub and 'Save as AVI' (3rd avi file created)
7 - Encode 3rd AVI file into MP4 using HandBrake preset Android High with AAC Passthru enabled (2nd mp4 file created)

The 2nd mp4 file is the final one.

How do I do all of this?
 
     Top
Samu
Posted: Jul 30 2012, 10:32 AM


Newbie


Group: Members
Posts: 8
Member No.: 26047
Joined: 21-August 09



Hello all again. I found out I can create a .bat batch file to carry out some of the steps in the above reply. I found out how to do it for steps 4 and 5. I understand that steps 1 and 2 require my intervention, but what about steps 3, 6 and 7? What would be the command line I should write?

Thanks in advance.
 
     Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
5 replies since Jun 22 2012, 07:53 PM Track this topic | Email this topic | Print this topic

<< Back to Codec Discussion