SnapStream Forums

Go Back   SnapStream Forums > SnapStream Discussion
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #16 (permalink)  
Old 01-21-2004, 11:40 AM
Cayars's Avatar
Senior Beta Tester
 
Join Date: Oct 2003
Location: Southern New Jersey
Posts: 836
Here another site with win32 binarier. You can download just the mencoder.

I found a binary copy at the following website http://armory.nicewarrior.org/projects/cygmp/

You can find download link down towards the bottom of the page. Now off to try it. I suspect however that it won't like the headers very much in the mpg files the way SS writes them.

Carlo

Last edited by Cayars; 01-21-2004 at 12:42 PM.
Reply With Quote
  #17 (permalink)  
Old 01-21-2004, 03:01 PM
Registered User
 
Join Date: Jan 2004
Location: Ottawa
Posts: 32
Send a message via ICQ to zealot
mencoder handles the mpeg2 files SS creates just fine. I use it now to re-encode the recordings to Xvid format.

For those interested, here is the script I wrote to do my mencoder encoding on Linux. It brings a 2 gb/hour file down to about 400mb without any perceptible loss of quality (atleast to me :))

Code:
#!/bin/bash
BITRATE=750
MOTIONEST=6
VHQ=4
QUANTIZER=h263
CARTOON=1
TWOPASS=1
RAND="$(dd if=/dev/urandom bs=1 count=8 2>/dev/null | od -An -tx8 | tr -d ' ')"
TMPDIR="mpg2avi.tmp${RAND}"

if [ -z "$@" ]; then
   echo "$0 <filename>"
   exit 1
elif [ ! -f "$1" ]; then
   echo "Doesn't exist: $1 - check the file name"
   exit 1
fi

ENCOPTS="bitrate=${BITRATE}:me_quality=${MOTIONEST}:vhq=${VHQ}:quant_type=${QUANTIZER}:cartoon=${CARTOON}"

ARGS="-ovc xvid -vf scale=640:480 -sws 2"


if [ $TWOPASS -eq 1 ]; then
   mencoder ${ARGS} -xvidencopts ${ENCOPTS}:pass=1 -oac copy "$1" -o /dev/null && mencoder ${ARGS} -xvidencopts ${ENCOPTS}:pass=2 -oac copy "$1" -o "${1/.mpg/.avi}" && rm -f xvid-twopass.stats
else
   mencoder ${ARGS} -xvidencopts ${ENCOPTS} -oac copy "$1" -o "${1/.mpg/.avi}"
fi
Reply With Quote
  #18 (permalink)  
Old 01-21-2004, 03:02 PM
Registered User
 
Join Date: Jan 2004
Location: Ottawa
Posts: 32
Send a message via ICQ to zealot
In file format
Attached Files
File Type: txt mpeg2avi.txt (818 Bytes, 96 views)
Reply With Quote
  #19 (permalink)  
Old 01-21-2004, 03:16 PM
Registered User
 
Join Date: Jan 2004
Location: Ottawa, Ontario
Posts: 11
Great. It least mencoder works on Windows.

Of course, you can use SmartSqueeze to transcode to other formats. The real question is can mencoder cut commercials without introducing any problems (ie, audio is out of sync from the video). I am not worried about keeping the TV guide data associated with the recording, since I use my PRISMIQ box to play the BTV recorded file. All I see is the name of the MPEG file. This is why I need the cutting tool, the cut list generated by SmartChapters is useless to me on the PRISMIQ box.

I will try tonight. Not sure if I can reminder enough Perl to write the script to extract the cut times from the XML formated SmartChapters file. But I will try!
Reply With Quote
  #20 (permalink)  
Old 01-24-2004, 10:30 PM
Registered User
 
Join Date: Nov 2003
Posts: 248
I had the whole mplayer to work. Mmencoder could be a nice command mpeg2 cutter. Did any one test it ?

PS , the other mpeg2 cutter "mpgtx" worked ok to me in under 2 gig files . I did not test Mmencoder .

This thread got burried. I used search for mplayer to find it.
Reply With Quote
  #21 (permalink)  
Old 01-25-2004, 11:13 AM
Registered User
 
Join Date: Sep 2003
Posts: 196
Quote:
Not sure if I can reminder enough Perl to write the script to extract the cut times from the XML formated SmartChapters file. But I will try!
impeyr,

The script I posted at the beginning of this thread parses the XML files and translates that into an asfcut command line. You can just modify that code for mencoder.

Soundman
Reply With Quote
  #22 (permalink)  
Old 01-25-2004, 03:28 PM
Cayars's Avatar
Senior Beta Tester
 
Join Date: Oct 2003
Location: Southern New Jersey
Posts: 836
Quote:
Originally posted by BenH
I had the whole mplayer to work. Mmencoder could be a nice command mpeg2 cutter. Did any one test it ?

PS , the other mpeg2 cutter "mpgtx" worked ok to me in under 2 gig files . I did not test Mmencoder .

This thread got burried. I used search for mplayer to find it.
mpgtx is what I've been using.
Reply With Quote
  #23 (permalink)  
Old 01-26-2004, 11:41 PM
Registered User
 
Join Date: Sep 2003
Posts: 196
Hi, All.

I have posted Version 2 of Cutads in this new thread:
http://discuss2.snapstream.com/vb/sh...threadid=12421

In addition to alot of cleanup, it can now copy the program description & other attributes by POSTing to Beyond TV's web server.

I have not yet added MPEG-2 support via mencoder, but I hope to do so later. If someone else wants to contribute this, please feel free.

Enjoy!
Soundman
Reply With Quote
  #24 (permalink)  
Old 10-08-2009, 10:36 AM
Registered User
 
Join Date: Sep 2009
Posts: 6
Re: Automatically cut commercials! Cutads script posted here.

I ended up with all my ads still in the tmp file First line of output after my command line was
Use of uninitialized value $_ in pattern match (m//) at cutads.pl line 123

My command line was perl cutads.pl -i "Alfred.wmv"

Initially had problems with longfilenames even when using quotes so simply renamed both the wmv file and it xml counterpart. Output file was smaller but had all the ads tested on a half hour alfred hitchcock just for a quick test
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Automatically removing commercials from Mpeg files look30 Beyond TV and Beyond TV Link 4 02-28-2005 04:46 PM
Automatically cutting commercials in mpeg2? salama Beyond TV and Beyond TV Link User-to-User Troubleshooting & Support Forum 7 02-23-2005 08:13 AM
Remove commercials automatically Hipster421 Beyond TV and Beyond TV Link User-to-User Troubleshooting & Support Forum 11 01-11-2005 12:43 PM
Any way to automatically delete commercials? loudog3114 Beyond TV and Beyond TV Link User-to-User Troubleshooting & Support Forum 1 10-18-2004 12:42 PM
automatically cutting out commercials msgon2002 Beyond TV and Beyond TV Link User-to-User Troubleshooting & Support Forum 5 09-21-2004 06:56 PM


All times are GMT -6. The time now is 04:21 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.0 RC1
©2004-2006 Snapstream Media