Hi there,
finished.
I've written two small shell scripts changing the aspect ratio of MPEG-2
videos.
One to change the video to 4:3 and the second for 16:9.
Both scripts work only for videos with 25fps!
I prefer to have them on my desktop and everytime I need to convert a
video I just drag and drop them over the icons.
@Michael Riepe: Would you mind adding them to your dvbcut package?
Licence: Whatever you what.
regards
Dominik
#!/bin/sh
# call programm with movies as arguments
# it will create the sub folder good169 and put the converted movie there.
for X in "$@"
do
file=`basename "$X"`
path=`dirname "$X"`
mkdir "$path/good169"
sed -r 's/(\x00\x00\x01\xB3...)\x23/\1\x33/g' $X > "$path/good169/$file"
# example of a MPEG2 movie:
# 00 00 01 B3 2D 02 40 23
# for more information about the structure
# see http://dvd.sourceforge.net/dvdinfo/mpeghdrs.html
#
# how the sed command works:
# 's/search/replace/g' g = global and not only one
# \x00 = hex code 00
# . = one character
# () = group pattern and \1 for reference
done
#!/bin/sh
# call programm with movies as arguments
# it will create the sub folder good43 and put the converted movie there.
for X in "$@"
do
file=`basename "$X"`
path=`dirname "$X"`
mkdir "$path/good43"
sed -r 's/(\x00\x00\x01\xB3...)\x33/\1\x23/g' $X > "$path/good43/$file"
# example of a MPEG2 movie:
# 00 00 01 B3 2D 02 40 33
# for more information about the structure
# see http://dvd.sourceforge.net/dvdinfo/mpeghdrs.html
#
# how the sed command works:
# 's/search/replace/g' g = global and not only one
# \x00 = hex code 00
# . = one character
# () = group pattern and \1 for reference
done
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
DVBCUT-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dvbcut-user