Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
23rd February 2015, 23:57 | #4 | Link |
...?
Join Date: Nov 2005
Location: Florida
Posts: 1,420
|
Code:
#!/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. |
24th February 2015, 11:07 | #6 | Link |
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
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/
__________________
I sometimes post sober. StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace "Some infinities are bigger than other infinities", but how many of them are infinitely bigger ??? |
24th February 2015, 14:33 | #9 | Link | |
Registered User
Join Date: Jan 2015
Posts: 44
|
Quote:
|
|
24th February 2015, 14:42 | #10 | Link | |
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
|
Quote:
Edit: If you are not sure which playlist you should pick, the guide you linked to is probably fine. Last edited by Groucho2004; 24th February 2015 at 14:45. |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|