[MEncoder-users] CoreAVC not working with MPlayer/MEncoder
James Hastings-Trew
jimht at shaw.ca
Tue Sep 1 06:34:11 CEST 2009
Andrew Berg wrote:
> James Hastings-Trew wrote:
>
>> If graphedit can render the video,
>> you can save the .grf file and use it as input with AviSynth. Then you
>> can use the AVISynth script as input to mencoder.
>>
> Following the instructions in the AVISynth wiki, I've made a graph and a
> script, but I can't get it to work. Media Player Classic says there's
> not a compatible audio pin open (MPlayer treats it like an empty file).
>
> My script is
>
>> V=DirectShowSource("test.grf", audio=False)
>> A=DirectShowSource("test.grf", video=False)
>> AudioDub(V, A)
>>
> And my graph is Haali Media Splitter with the file I want to process
> selected, the video pin is connected to the CoreAVC decoder filter, and
> the audio pin is connected to AC3Filter. I've tried adding the Color
> Space Converter filter after CoreAVC, but it still doesn't work. I can
> do just audio or just video, but not both at the same time. I've used
> these filters in other programs without a problem, so I know they work
Have you tried:
DirectShowSource("test.grf", fps=$fps, audio=false, framecount=$frameno)
From my reading, you need the FPS and the total framecount in there for
it to work. It's ok if the framecount is too many, rather than too few.
Duration in seconds x fps will get you in the right ballpark for framecount.
Anyway, often what I do is to eliminate the audio from the .grf
entirely, and encode that separately, then use the grf to get at the
video, and then mux the two together in the end. It works if your source
stream is a consistent single frame rate.
More information about the MEncoder-users
mailing list