Log in

View Full Version : FFmpegSource2 is cutting the sound of videos


luquinhas0021
30th December 2015, 16:32
I'm using a AMD Phenom X3 processor. I installed well rightly the FFmpegSource.dll, but, when I put it on a Youtube .mp4 (With sound) video, it doesn't opened with audio, only video. This happens in Windows Media Player and MPC-BE (On latest update). This happens too with DirectShowSource2.
With DirectShowSource, the video begins with a color distorted image and moves on with audio and video unsyncronized. I also tried with LSMASH (All it possibilities) and with DirectShowSource2. In first, the AviSynth shown: there's no function called "Lmash", although I installed it right; on second, happended the same problem that had occured with FFmpegSource2.
This doesn' occur on my house's notebook, which has a Intel Core i3 1st gen processor.
Today and yesterday weren't being my lucky days.

wonkey_monkey
30th December 2015, 17:24
:script:

luquinhas0021
30th December 2015, 17:51
FFmpegSource2("C:\...")

wonkey_monkey
30th December 2015, 19:13
By default audio is disabled. Try:

FFmpegSource2("C:\...", atrack=1)

MysteryX
30th December 2015, 19:32
atrack=1 or -1? I believe I was using -1

wonkey_monkey
30th December 2015, 19:49
I've always used 1, but the documentation isn't very clear to me. "Track numbers start from 0", and for some reason -1 takes the first track, while -2 (the default) disables audio...

luquinhas0021
30th December 2015, 19:56
With atrack=1 or atrack=-1, only audio is been reproducted.

MysteryX
30th December 2015, 19:56
With atrack=1 or atrack=-1, only audio is been reproducted.
Post the exact line you're using!

luquinhas0021
30th December 2015, 19:59
FFmpegSource2("C:\Users\Fernando H. Silva\Documents\Lucas\Vídeos\One Direction - Night Changes.mp4", atrack=1)

Overdrive80
30th December 2015, 20:12
Audio=FFAudioSource("", track=-1)
Video=FFVideoSource("", threads=1)

audiodub(video,audio)


int track = -1
The video/audio track number to open, as seen by the relevant demuxer. Track numbers start from zero, and are guaranteed to be countinous (i.e. there must be a track 1 if there is a track 0 and a track 2). -1 means open the first video/audio track. Note that FFMS2's idea about what track has what number may (or may not) be completely different from what some other application might think. Trying to open an audio track with FFVideoSource will naturally fail.

luquinhas0021
30th December 2015, 20:31
Now, worked!