Log in

View Full Version : How to make avs from .mpls ?


Batman007
23rd February 2015, 17:19
Hi guys .....

I am trying to make .avs from .mpls ... But I can't ...
Can anyone tell me proper way to make .avs from .mpls (with or without MeGUI) ?

Thank you ......

Batman007
23rd February 2015, 19:05
Please help....

Asmodian
23rd February 2015, 22:20
I don't think it is possible. I do not know of any filter than can open a bluray playlist in AVISynth. You will need to use the .m2ts files directly.

qyot27
23rd February 2015, 23:57
#!/bin/bash

if test x"$1" = x"-h" -o x"$1" = x"--help" -o x"$1" = x"" ; then
cat <<EOF
Usage: mpls-to-avs <mplsfile> <sourcefilter>

Help:
-h, --help print this message
EOF
exit 1
fi

if [ "$2" = "ffms2" ] ; then
SCRIPTFUNC="FFVideoSource"
elif [ "$2" = "lsmash" ] ; then
SCRIPTFUNC="LwLibavVideoSource"
fi

BASICNAME=$(sed 's/M2TS/M2TS\n/g' "$1" | perl -ne 'print scalar reverse;' | cut -c1-9 | perl -ne 'print scalar reverse;')
echo $BASICNAME | sed 's/M2TS/M2TS\n/g' | grep M2TS | sed -e 's/ //g' -e 's/M2TS/.m2ts/g' | awk '{printf("(\"%s\") ++ \\\n",$1)};' | sed -e "s/^/$SCRIPTFUNC/g" -e '$ s/ ++ \\//' | todos > "$1".avs


This is assuming that .mpls files are simple playlists and don't do weird chapter jumping stuff, and that all of the .m2ts files the .mpls refers to actually work. At any rate, it does show which files the .mpls refers to, so it still has some value, I guess.



Although the easiest way to deal with it is just by running the playlist through mkvmerge and working with the single file it gives you.

Batman007
24th February 2015, 06:52
I have a movie whose length is 01:42 .. But the largest M2TS is still shorter than 01:42 .. That's why I chose to encode with mpls ... But I'm not getting how to encode that .mpls ...

StainlessS
24th February 2015, 11:07
qyot27's script seems to be Linux based, you might be able to run it under eg Cygwin: http://en.wikipedia.org/wiki/Cygwin

https://www.cygwin.com/

Batman007
24th February 2015, 14:07
Please help ...

Groucho2004
24th February 2015, 14:25
Please help ...
I think your best option is to load the playlist in tsmuxer gui, and then create a m2ts that combines all segments (-> m2ts muxing). The resulting m2ts can be loaded in Avisynth with FFMS2 or similar.

Batman007
24th February 2015, 14:33
I think your best option is to load the playlist in tsmuxer gui, and then create a m2ts that combines all segments (-> m2ts muxing). The resulting m2ts can be loaded in Avisynth with FFMS2 or similar.
Is this tutorial fine for me ? http://www.dvd-guides.com/guides/blu-ray-rip/256-remux-blu-ray-to-mkv

Groucho2004
24th February 2015, 14:42
Is this tutorial fine for me ? http://www.dvd-guides.com/guides/blu-ray-rip/256-remux-blu-ray-to-mkv
You don't need to go through all that just to load your BD into Avisynth. Maybe you should tell us first what you want to do with your BD.

Edit: If you are not sure which playlist you should pick, the guide you linked to is probably fine.

ndjamena
24th February 2015, 14:58
That tutorial is fine for nobody. TSMuxer and then MMG? MMG will rip the playlist all by itself, and if you use MakeMKV you can even skip AnyDVD HD. It's WAY out of date.

Reel.Deel
24th February 2015, 14:59
I don't think it is possible. I do not know of any filter than can open a bluray playlist in AVISynth. You will need to use the .m2ts files directly.

DGDecNV can index .mpls files directly. Makes it very easy, especially with some Blu-ray's that are split into a large amount of smaller segments.

Asmodian
24th February 2015, 20:02
DGDecNV can index .mpls files directly. Makes it very easy, especially with some Blu-ray's that are split into a large amount of smaller segments.

Wow, I had no idea. That makes DGDecNV a lot better. Thanks!