Now the soundthing is in place.. I hope this is my last question.. Where should I put the code?
I found out were to put it but got an error

I don't really use MeGUI. But as far as I know you just open the AVS script in MeGUI. I forgot, you'll probably need the seekmode=0 argument in the ffmpegsource2("sample.ts", atrack=1, seekmode=0) line. Don't expect MeGUI to preview the video smoothly. But the video you make should play smoothly.

ffvideosource() won't give you sound. You need to use ffmpegsource2("video.ts", atrack=1) if you want both video and audio. It's in the AVSI file, that's why I told you to put it in your plugins folder along with the dll.

ffvideosource() won't give you sound. You need to use ffmpegsource2("video.ts", atrack=1) if you want both video and audio. It's in the AVSI file, that's why I told you to put it in your plugins folder along with the dll.

Your video is AVC, not MPEG 2. So you must use DgAvcIndex. DgAvcIndex and libavcodec.dll must be in the same folder, anywhere you want to put them. DgAvcDecode.dll goes in the AviSynth plugins folder (or you can use LoadPlugin() in your script to load it from elsewhere). When you want to open a file using DgAvcdecode you use AvcSource("filename.dga"). So you script would be:

His is actually MBAFF stream, not PAFF. It fails on many PAFF streams. Well documented issue dating back years, but it occassionally has issues with MBAFF streams as well . I would check in more detail on longer samples to be sure

Sure, but he's probably only going to watch this video once. A few errors here and there may not matter. The sample was two minutes long and I saw no problems with AvcSource(). Since it was a soccer game I doubt the rest of the game is any different.

I have tried anything I cant get sound in Megui i use this:
Load_Stdcall_plugin("C:\Users\Daniel\Desktop\MeGUI \tools\avisynth_plugin\yadif.dll")
ffmpegsource2("soccer.ts", atrack=1, seekmode=0)
Yadif(mode=1, order=1)
LanczosResize(1280,720)

When I open the script in VDUB there is sound.. Last thing I need sound in my MeGUI then I am done asking when it succeeds. Thank you all for the help..