Log in

View Full Version : Using avisynth with mencoder


Major_Kong
1st September 2009, 22:08
Is there a way to use mencoder as a "source" for avisynth instead of vfw ?

Something like:

mencoder dvd://2 -nosound -ovc raw -of raw -o | wine avs2yuv.exe script.avs - | mencoder ...

Selur
3rd September 2009, 20:44
never tried it but it could work
- make a named pipe (mkfifo) e.g. named test.avi
- don't pipe directly to avs2yuv but set the named pipe as output for the mencoder decoder instance
- open the named pipe in you avs scrip
- open the avs script with avs2yuv and pipe to mencoder (or use a named pipe again)

Major_Kong
4th September 2009, 01:01
What do i use in the avs script to read from the pipe ?

Selur
4th September 2009, 12:35
RawSource might work, you select avi as output in mencoder and use avisource,... (like I said I have never tried this, so any one who can help out is welcome since I use avisynth only under Windows,.. since I don't like the idea of using wine ;))

Gusar
4th September 2009, 13:17
Much simpler that to futz with pipes (which may or may not work) would be to rip the DVD, index it with DGIndex then use DGDecode in avisynth. Or use ffmpegsource.

Selur
4th September 2009, 15:03
didn't know that:
1. ffmpegsource (a. works under Linux and b. can open DVD on hdd)
2. one could use DGIndex&DGDecode (under Linux without a problem)
-> can someone verify this?

Major_Kong
4th September 2009, 19:35
RawSource might work, you select avi as output in mencoder and use avisource,... (like I said I have never tried this, so any one who can help out is welcome since I use avisynth only under Windows,.. since I don't like the idea of using wine ;))

I don't like using wine, but it's a necessity. Ok, maybe not a necessity, i could always boot up windows, but i'm giving wine+avisynth a try first.

RawSource doesn't appear to work, the source filter needs the videofile length.

Or use ffmpegsource.

Ever tried it ?

Gusar
4th September 2009, 23:30
didn't know that:
1. ffmpegsource (a. works under Linux and b. can open DVD on hdd)
2. one could use DGIndex&DGDecode (under Linux without a problem)
-> can someone verify this?
I've used ffmpegsource 1.x successfully, I assume ffmpegsource 2.x works too. I didn't try VOBs though, but x264-produced MKVs (to compare different encoding settings in virtualdub - yes, that one works too in wine).

And yeah, DGIndex&DGDecode work perfectly, I've used them in ripping all my DVDs. For the actual "rip" process, DVDFab works and is pretty much the only option for extra-crippled DVDs (like Weeds; oh boy, that one has everything - fake IFOs, corrupted sectors...)

Major_Kong
6th September 2009, 18:23
Both solutions would rely on non-native parsers, which is not what i was aiming for... :S