Script for Converting video to Zune format

Filed under Linux, Web
Tagged as , , ,

A script I wrote to re-encode videos for use on the Zune.

 
    #!/bin/bash
 
    ##############################
    # ZUNE VIDEO CONVERTER       #
    # gi_james@strickstuff.com   #
    # www.strickstuff.com        #
    ##############################
 
    # all files that start with .m (eg mpeg mpg mod)
    # change to whatever you want...
    for file in ./*.m*;
 
    # encode files and rename them to wmv
      do ffmpeg -i $file -deinterlace -pix_fmt yuv420p -g 15 -qmin 3  \
-maxrate 628000 -bufsize 628k -async 50 -vcodec wmv2 -b 500000  \
-r 29.97 -s 320x240 -ar 4x3 -acodec wmav2 -ar 44100  \
-ac 2 -ab 128k ${file%.m*}.wmv;
 
    # all done!
    done

Post a Comment

You must be logged in to post a comment.