Log in

View Full Version : x264vfw and audio encoding


JimmyBarnes
26th June 2017, 05:11
I mainly use x264vfw to encode Blu-rays to x264 backups. The video part is fine - excellent - even, but I can't seem to encode both x264 and audio simultaneously, the audio is always missing - simply not present.

Is there something about x264vfw which precludes simultaneous audio encoding?

Using TMPGEnc Video Mastering Works 6.2.2.29 (latest) and Windows 10 Pro v1607.

sneaker_ger
26th June 2017, 07:44
x264vfw does not handle audio (this includes the file output) but it does not hinder software to encode audio in any way. But it's the job of the encoding software. x264vfw has nothing to do with it.

tebasuna51
26th June 2017, 10:23
Like sneaker_ger say x264vfw is only a video encoder.

I'm not use TMPGEnc but it must do the complete job.

If you want free soft you can use MeGUI, Staxrip, Handbrake, ...
than can use x264 (and x265) video encoders and also audio encoders to do the full job.

JimmyBarnes
26th June 2017, 12:25
I've always accepted its better to encode video separately anyway from audio, esp. for blu-ray backups.

But for short e.g. YouTube clips where one might like to reencode to save space or just cut the relevant bits, its useful to be able to encode x264+MP3 say, then just join the bits.

The answer to my original problem is that x264vfw offers a "VFW" and a "File" Output mode. I invariably used File, but that meant audio was probably sent to TVMW6's "Output File Name", which I would usually discard as a useless stub.

Selecting VFW Output mode results in an "Output File Name" which includes both video and audio. One problem though: In the resulting output file, video start is delayed for a few seconds, whereas audio is not, resulting in them being out-of-sync. Can anyone suggest why this is so?

TIA

sneaker_ger
26th June 2017, 13:01
Try zero latency tuning of x264vfw.

JimmyBarnes
27th June 2017, 05:02
Try zero latency tuning of x264vfw.

Yes, ZL fixes sync but increases final filesize some 30 % as expected.

Anyway worse comes to worse one could resync manually which is a PITA...

Thanks for yer help :thanks:

sneaker_ger
27th June 2017, 07:41
That's why the "File" output mode exists. Basically, you are supposed to use that and then afterwards mux x264vfw's "File" output and the .avi file with the audio (created by TVMW6's "Output File Name") using e.g. mkvmerge.