[MEncoder-users] What's wrong with this script (encoding x264 in mkv-container)

Kerry Kirk my1kwords at gmail.com
Sun Mar 22 21:51:55 CET 2009


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`.

k

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:pass=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:threads=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
>


More information about the MEncoder-users mailing list