Mario, I'm attaching a copy of my mpeg2cut. It may be an old version since I haven't checked for anything new since I got it working. I guess i should have commented my code a little more. I just took a look and it's probably impossible to figure out what parameters to pass it :)
Let me know if you need any help getting it working and I can try to comment it better or something. --Harvard On 5/3/05, Mario Limonciello <[EMAIL PROTECTED]> wrote: > Harvard Pan wrote: > > >I found some problems with snipping commercials using avidemux2's > >automated functions when used in conjunction with mpeg2cut. The script > >that is being used for some reason just doesn't work. I did find a > >workaround in terms of script commands that would work instead. > > > >I wrote a little perl script to generate the new avidemux2 cut script > >and use it in mpeg2cut. Using this, I can cut commercials from > >recordings just fine. I've attached the script. If the latest version > >of avidemux hasn't fixed it yet, hope this helps save you some time! > > > >--Harvard > > > >On 5/3/05, Mario Limonciello <[EMAIL PROTECTED]> wrote: > > > > > >>When searching through the archives this afternoon, I saw a mention in a > >>post that Avidemux2 2.38 shouldn't be used when snipping commercials, > >>and instead to use 2.36. Can anyone back this with a reason or verify > >>this is true? I couldn't find it listed anywhere as to why. Also is it > >>possible that this problem that existed in 2.38 has been fixed now as of > >>the latest 2.38 release (.38_rc3 for gentoo). > >>_______________________________________________ > >>mythtv-users mailing list > >>[email protected] > >>http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users > >> > >> > >> > >>------------------------------------------------------------------------ > >> > >>_______________________________________________ > >>mythtv-users mailing list > >>[email protected] > >>http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users > >> > >> > Harvard, I was looking this over, and wondering the easiest way to > actually place this into the mpeg2cut script, and it looks like the > easiest way is to replace all stuff here: > #cat /dev/null > ${BASENAME}.cut2 > > #count=0 > #for i in ${CUTLIST} > #do > # START=`echo $i | cut -d '-' -f 1` > # END=`echo $i | cut -d '-' -f 2` > > # if [ .${START}. = .. ] > # then > # START=0 > # fi > > # if [ ${START} -ge ${LASTFRAME} ] > # then > # continue > # fi > > # if [ .${END}. = .. ] > # then > # END=${LASTFRAME} > # fi > # LENGTH=$((${END} - ${START} + 1)) > # > # cat >> ${BASENAME}.cut2 << EOF > #Start : ${START} > #Size : ${LENGTH} > #Ref : 0 > #EOF > # count=$((${count} + 1)) > #done > #echo ${count} segments >> ${BASENAME}.cut > # > #cat ${BASENAME}.cut2 >> ${BASENAME}.cut > > with a launch of your script with some sort of parameters, but that > doesnt seem right. How exactly do you launch it? >
mpeg2cut
Description: Binary data
_______________________________________________ mythtv-users mailing list [email protected] http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
