Log in

View Full Version : How to open .mp4 via ffmpegsource with DGAVC?


KowalPl
6th December 2014, 18:35
Hello
I`m trying to open a .mp4 (h.264) file with ffmpegsource filter and I know I should use DGAVC first but I`m not sure how to do this. When I try to load file in DGAVCindex I receive an error like this "Found NALU type 0, lens 0 undefined, ignoring NALU, moving on". I cant use directshowsource because I noticed there is no frame accuracy when using DSS.
Does anyone have idea how to fix it?

Greetings and sorry for my english
Piotr

Stormborec
6th December 2014, 19:54
I think, you must to put dll from the DGAVC into plugins folder of avisynth, then you can open the .h264 file created by the tool.

qwerty1983
6th December 2014, 22:06
You don't have to use DGAVC
Try one of these (xx----> fps of your video) :

FFmpegSource2("video.mp4",atrack=-1).assumefps(xx)

a=FFAudioSource("video.mp4")
v=FFVideoSource("video.mp4").assumefps(xx)
audiodub(a,v)

DSS2("video.mp4", fps=xx, preroll=15) # only video

a=LSMASHAudioSource("video.mp4")
v=LSMASHVideoSource("video.mp4").assumefps(xx)
audiodub(a,v)

If your video is interlaced you could also try using assumetff() or assumebff()
You need the plugins though :
FFmpegSource (http://avisynth.nl/index.php/FFmpegSource) ---- DSS2 (http://forum.doom9.org/showthread.php?p=1699301#post1699301) ------ LSMASHSource (http://avisynth.nl/index.php/LSMASHSource)

KowalPl
7th December 2014, 12:28
Thank you guys for fast response!! :thanks:
Especially thank you qwerty1983, your advice turned out to be working.

(apart from LSMASHSource. Despite putting .dll files in my plugins folder a "There is no function named "LSMASHAudioSource" error occured - I dont know why)

But FFMpegsource is working as well as DSS2.

Thank you very much.

qwerty1983
7th December 2014, 12:50
Yes, i noticed i have the same problem.

You can also use (see the LSMASHSource (http://avisynth.nl/index.php/LSMASHSource) documentation) :
a=LWLibavAudioSource("video.mp4")
v=LWLibavVideoSource("video.mp4").assumefps(xx)
audiodub(a,v)

or just replace LSMASHAudioSource with LWLibavAudioSource

KowalPl
25th December 2014, 17:30
Hi guys one more question

If I dont need an audio in my work, what I should do? Because sometimes i got error like this "Avisynth read error: FFAudioSource: Seeking is severly broken" I think it is caused by audio source. I dont have an idea how to fix it.

My code is:
a=FFAudioSource("C:\...\1brak.mp4")
v=FFVideoSource("C:\...\1brak.mp4").assumefps(30)
audiodub(a,v)


I dont really need audio source in my work, just video.

Merry Christmas! :)

Reel.Deel
25th December 2014, 18:13
Hi guys one more question

If I dont need an audio in my work, what I should do?

Simply do not use FFAudioSource:

FFVideoSource("C:\...\1brak.mp4").assumefps(30)
# then process as you normally would

KowalPl
25th December 2014, 18:47
Thank you! I was so stupid trying this (and much more weird combinations :D) v=FFVideoSource(...) instead of this FFVideoSource(...)

Thank you, merry Christmas and happy New Year :)