Hi,

I've tested it with
.m2t
.vdr
.m2p
.ts
.pva
.mpg
(created by kaffeine, ProjectX, dvbcut)

the updated scripts are attached.

Dominik


Michael Riepe schrieb:
> Hi!
>
> m...@kabelfunk.de wrote:
>
>   
>> 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.
>>     
>
> Nice.
>
>   
>> Both scripts work only for videos with 25fps!
>>     
>
> There probably are some other restrictions, too - like the requirement
> to use GNU sed.
>
> Did you test the scripts with .mpg and .ts files, by the way?
>
>   
>> 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.
>>     
>
> If you add a copyright notice similar to that in setversion.sh, but with
> your own name, I'll add them.
>
>   

#!/bin/sh

# Copyright (c) 2009 Dominik Kopp
# This program is free software; see COPYING for details.


# 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
#!/bin/sh

# Copyright (c) 2009 Dominik Kopp
# This program is free software; see COPYING for details.


# 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
------------------------------------------------------------------------------
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
DVBCUT-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dvbcut-user

Reply via email to