Log in

View Full Version : Combined files to x264+AAC?


hlrsnd
19th December 2009, 20:10
Hello,

I've written a simple Avisynth script to combine various short camera mjpegs into one larger file, with fades in and out. It works flawlessly in Virtualdub. (Camera audio is mono .wav).

I'm trying to find a simple process to use x264 with AAC audio. The GUIs here on Doom9 seem to choke on my script. Apparently they don't like the last line, which is of the form a++b++c.

My current process is to open the script in Virtualdub to extract the audio as a .wav, then open the script in Avidemux using the Avisynth proxy, add the .wav, then encode in Avidemux using x264 and FAAC.

Anyone got a better way? I could use the x264 vfw available in Virtualdub via ffdshow plus mp3 audio, but everything I've read says not to use x264 vfw.

Suggestions welcome. Thanks.

Guest
19th December 2009, 22:06
Post your entire script that the GUIs choke on.

hlrsnd
20th December 2009, 03:07
Here's the script:

AVISource("mvi_2548.avi")
subtitle("12/5/2009\n2:37 PM",x=600,y=425,last_frame=150,size=34,text_color=$ffffff,align=3,lsp=1)
fadeio(30)
a=last
AVISource("mvi_2549.avi")
subtitle("12/5/2009\n2:38 PM",x=600,y=425,last_frame=150,size=34,text_color=$ffffff,align=3,lsp=1)
fadeio(30)
b=last
AVISource("mvi_2550.avi")
subtitle("12/5/2009\n2:41 PM",x=600,y=425,last_frame=150,size=34,text_color=$ffffff,align=3,lsp=1)
fadeio(30)
c=last
AVISource("mvi_2553.avi")
subtitle("12/5/2009\n2:56 PM",x=600,y=425,last_frame=150,size=34,text_color=$ffffff,align=3,lsp=1)
fadeio(30)
d=last
a++b++c++d

I'm using the ffdshow mjpeg decoder.

Guest
20th December 2009, 05:56
What error is produced by that script?

hlrsnd
20th December 2009, 20:26
Using Lord Mulder's Simple x264 Launcher, it stops at "Starting to Encode" and never gets beyond 0% complete. No error message, no progress.

If I simplify the script to just the first line

AVISource("mvi_2548.avi")

it encodes to an mkv file at roughly 23 fps. However, when I play the file in Avidemux, I get nothing but a green screen. That happens with or without audio=false in the Avisynth script.

The green screen is another problem which is probably operator error but suggestions welcome.

Using Windows 7 32 bit RC.