[MEncoder-users] What's wrong with this script (encoding x264 in mkv-container)
Kerry Kirk
my1kwords at gmail.com
Sun Mar 22 23:48:13 CET 2009
On Sun, Mar 22, 2009 at 6:30 PM, Al Bogner <mencoder at ml082.pinguin.uni.cc>wrote:
> Am Sonntag 22 März 2009 21:51:55 schrieb Kerry Kirk:
> > I've never tried encoding multiple vids with a single output like you are
> > trying to but have put the code in a nested for loop for individual
> > recordings which I then later combined.
> >
> > The first thing I would try is changing *.mpg to `ls *.mpg`.
>
> Ok, it won't be a problem to encode each mpg-file in a loop, but how do I
> add
> all the encoded files to a single file?
>
> Al
>
>
> > On Sun, Mar 22, 2009 at 4:10 PM, Al Bogner
> <mencoder at ml082.pinguin.uni.cc>wrote:
> > > If I replace *.mpg with 1 existing filename, the script works. What do
> I
> > > have
> > > to do to encode a few mpg-files to 1 mkv-file? Any improvement of the
> > > options
> > > are welcome of course!
> > >
> > >
> > >
> > > #!/bin/sh
> > >
> > > mencoder *.mpg -aspect 16/9 -vf yadif=0,softskip,harddup -nosound -ovc
> > > x264 -
> > > x264encopts
> > >
> bitrate=3500:subq=5:bframes=3:b_pyramid:weight_b:turbo=1:threads=auto:pas
> > >s=1 -
> > > of rawvideo -o /dev/null
> > >
> > > mencoder *.mpg -aspect 16/9 -vf yadif=0,softskip,harddup -nosound -ovc
> > > x264 -
> > > x264encopts
> > >
> > >
> bitrate=3500:subq=5:8x8dct:frameref=2:bframes=3:b_pyramid:weight_b:thread
> > >s=auto:pass=2 -of rawvideo -o movie.264
> > >
> > > mencoder *.mpg -of rawaudio -oac mp3lame -lameopts preset=standard -ovc
> > > copy -
> > > o movie.mp3
> > >
> > > mkvmerge -o movie.mkv movie.264 movie.mp3
> > >
> > > rm movie.mp3
> > > rm movie.264
> > > rm divx2pass.log
> > >
> > >
> > >
> > > Al
> > >
> > > _______________________________________________
> > > MEncoder-users mailing list
> > > MEncoder-users at mplayerhq.hu
> > > https://lists.mplayerhq.hu/mailman/listinfo/mencoder-users
> >
> > _______________________________________________
> > MEncoder-users mailing list
> > MEncoder-users at mplayerhq.hu
> > https://lists.mplayerhq.hu/mailman/listinfo/mencoder-users
>
> _______________________________________________
> MEncoder-users mailing list
> MEncoder-users at mplayerhq.hu
> https://lists.mplayerhq.hu/mailman/listinfo/mencoder-users
>
Here is what I use to combine xvid encoded avi files to a single avi. I
don't know anything about mkv files and don't separate out the audio so
ymmv.
mencoder -ovc copy -oac copy -o output.avi input1.avi input2.avi input3.avi
If you make sure that you name the input files in such a way as to get the
order right, you can use the following
mencoder -ovc copy -oac copy -o pathto/output.mpg `ls *.mpg`
More information about the MEncoder-users
mailing list