Discussion Forums > Technology

Hardsubbing video using Avisynth

<< < (3/3)

Pentium100:
As I understand, you have video, audio and subtitles all as separate files.

In that case, why not just process the video and subtitles and mux in the audio later?

If you are making an actual DVD-Video (not HD), resize the video and add subs, saving it as mpeg2 file, then convert the audio to LPCM (.wav) and then leave it as is or convert it to Dolby Digital or DTS. Now mux the video and audio and record to DVD.

Bob2004:
Well, I need to make an actual DVD-video, and therein lies the problem - I obviously need to convert the audio to a supported format, regardless of whether I do it through Avisynth or a separate encoder. The problem is that neither is working.

That said, I guess I'll try encoding it to DTS and LPCM as well. Since no other format I've tried has worked, I'm assuming they won't either, but it's worth a try I suppose.

EDIT: Yep, DTS didn't work either.

EDIT 2: Weirdly, encoding to a wav file actually did work! I can play the resulting audio fine in Windows Media Player and Clementine, which I couldn't with the original flac file. Unfortunately, FFAudioSource doesn't like it, and just outputs a load of static when I load it thrugh my AVS script. On the other hand, just loading the video file through AVS and having MPC load the audio itself works perfectly. So I guess my next step is to try and encode it to DVD like this, and see if it works.

Pentium100:

--- Quote from: Bob2004 on August 18, 2012, 12:28:00 PM ---I can play the resulting audio fine in Windows Media Player and Clementine, which I couldn't with the original flac file.
--- End quote ---
So, you do not have a flac source filter, which is probably why DirectShowSource failed.


--- Quote ---Unfortunately, FFAudioSource doesn't like it, and just outputs a load of static when I load it thrugh my AVS script.
--- End quote ---
Most likely the file got encoded to DTS format, so it appears as stereo to software that does not support DTS. If you have FFDshow (CCCP), you can set the audio decoder to process .wav files and it should make it work in Windows Media Player or as DirectShowSource.

Bob2004:

--- Quote from: Pentium100 on August 18, 2012, 04:17:41 PM ---
--- Quote from: Bob2004 on August 18, 2012, 12:28:00 PM ---I can play the resulting audio fine in Windows Media Player and Clementine, which I couldn't with the original flac file.
--- End quote ---
So, you do not have a flac source filter, which is probably why DirectShowSource failed.

--- End quote ---

No, I do. And I can play other flac files fine; it was just that one.


--- Quote ---
--- Quote ---Unfortunately, FFAudioSource doesn't like it, and just outputs a load of static when I load it thrugh my AVS script.
--- End quote ---
Most likely the file got encoded to DTS format, so it appears as stereo to software that does not support DTS. If you have FFDshow (CCCP), you can set the audio decoder to process .wav files and it should make it work in Windows Media Player or as DirectShowSource.

--- End quote ---

FFDShow is already set to process LPCM files, and it already works in WMP. It's only when loaded through Avisynth that it fails to work - whether using FFDAudioSource or DirectShowSource.

EDIT: Finally had a chance to try encoding the DVD, and lo and behold, it failed when it got to the audio (using the wav file). Didn't give me a particularly helpful error message, just "Unable to encode audio". I then tried converting the wav to another format, and it had the same problems as the original flac file - except for when I tried converting it back into flac, which worked fine.

So I then tried encoding the DVD audio again using this flac file, and it didn't work either. It got as far as calculating the audio delay, then I got a Windows error message telling me that it was unable to find the file C:\Program Files (x86)\DVD Flick\delaycut\delaycut.exe because "Access Denied, or File Not Found". Of course, that file is right there, and both me and DVD Flick have complete access to it, so I have no idea what caused it.

Anyway, TL;DR: It still won't work. I'm at the point where I figure it'd be easier just to give up and download a 480p release without this stupid flac audio and burn that instead.

Navigation

[0] Message Index

[*] Previous page

Go to full version