Log in

View Full Version : Problem with FFMpegSource2


AlonP
6th March 2014, 01:16
Hi.

Been 2-3 hours that I've been trying to solve this, but no luck: I can't use ffmpegsource2 to encode or even reproduce audio(when it's with video, audio on its own is ok, video on its own is ok, audio and video and it dies). Here's a list of things I tried to do to discern where the problem is:

1)If I do FFaudiosource("x.avi") and open it with mpc, it produces the correct audio
2)If I feed this .avs file which has ffaudiosource in it, to megui, it will encode this audio
3)If I do FFMPEGSOURCE2("x.avi") it opens the video, but there's no audio
4)If I feed the .avs from 3) to megui it'll freeze.
5)I've read that ffmpegsource2 is particular about the order in which it opens video/audio. I tried doing ffvideosource, ffaudiosource, and then audiodubbing them. In different combinations. No luck. I tried creating a copy of the video file, and opened one for its audio, one for its video, and used audiodub to combine. no luck there either.
6)I've downloaded a "c plugin" version of mpegsource2, and loaded it with loadcplugin. no luck
7)I tried difrent files avi/mkv/mp4 - same results
8)uninstalled CCCP, rebooted, reinstalled with LAV, same procedure without LAV, came back to WITH LAV in the end as this did not seem to matter. (did this since I've read haali is related to audio in ffmpegsource2)

I think I tried a bunch of other stuff, but I don't remember. I really want this to work out between me and ffmpegsource2... but it just doesn't communicate... keeps being passive agressive with me :(. Help, suggestions, anything - really, would be appreciated...

Gavino
6th March 2014, 02:03
3)If I do FFMPEGSOURCE2("x.avi") it opens the video, but there's no audio
You need FFMPEGSOURCE2("x.avi", atrack=-1) to get audio.

manolito
6th March 2014, 06:52
Or edit ffms2.avsi and change the default for atrack from -2 (no audio) to -1 (first audio track). This makes the behavior consistent with other source filters like DirectShowSource.


Cheers
manolito

AlonP
6th March 2014, 11:59
I saw it in a script a girl showed me, and I tried using it, but it still broke! It didnt work I swear! I think...

Now it works T.T

Thanks guy! ;).

Edit:

Sorry Neuron! ;).