[mythtv-users] why are the mythtv stream files different fromstandard codecs?

Rob Snow lists at dympna.com
Sat Apr 5 21:39:15 UTC 2003


Here is what I use for one of my scripts, this one is designed to put 3hr's 
of DIVX on one CD.  You might want to adjust the audio/video ratio's if you 
are doing something with nice audio.

I have 2hr/3hr/4hr/6hr scripts that I use to convert my 2Kbps MPEG4 .nuv 
default captures to something that I can actually carry around on the 
laptop, burn to CD for my wife or family since .nuv is useless to them.

I use a cron job with a find /e/store -mtime +2 to get anything I haven't 
already deleted in 2 days and convert it and rename it using the other 
script I previously posted to name it by extracting the Title:subtitle from 
the database. 
(ie. 1059_213412431432_243132412314.nuv --> SG-1:Emancapation.avi)

I just need to write another script to delete the .nuv and database entries 
from Myth once it's done.

I should probably up the 2Kbps MPEG4 to around 4Kbps (~2GB/hr) since they 
are going to be converted pretty quickly to something else.

-Rob


########## INCLUDE 2hr-2pass ##########

#!/bin/sh
rm -f *.log
echo got $1
path=$1
echo path=${path}
root=${path%.*}
echo root=${root}
noroot=${root##/*/}
echo noroot=${noroot}

# First pass, note it's without vhq and v4mv
./mencoder-cvs -idx $root.nuv -fps 30 -oac mp3lame -lameopts 
vbr=3:br=80:mode=1 -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=464:vpa
ss=1 -vop lavcdeint,scale=320:240 -aspect 4:3 -o $noroot.avi

# Second pass with vhq and v4mv
./mencoder-cvs -idx $root.nuv -fps 30 -oac mp3lame -lameopts 
vbr=3:br=80:mode=1 -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=464:vhq
:v4mv:vpass=2 -vop lavcdeint,scale=320:240 -aspect 4:3 -o $noroot.avi

############# end include #############


On Sat, 05 Apr 2003 09:44:05 -0400, Greg wrote
> Update, I've gotten a format playable in windows by:
> 
> mencoder -ovc lavc -lavcopts vcodec=mpeg4 -oac copy source.avi -o
> test.avi
> 
> Winamp3 and DivX player can play the file, but windows media player
> cannot, which is probably a windows media player problem... Next I need
> to figure how to set the aspect ratio so my 480x480 files look right
> with having to setting the aspect ratio in the player. Then maybe 
> get a SVCD burnt....
> 
> Greg
> 
> On Sat, 2003-04-05 at 09:07, Greg wrote:
> > Well I patch mplayer 0.90rc5 and now can view the video in mplayer, so I
> > guess that means the mpeg4 is modified... Next I tried converting it to
> > a format that windows can play by:
> > 
> > mencoder -ovc copy -oac copy source.nuv -o test.avi
> > 
> > the resulting test.avi is playable in mplayer, but I only get the sound
> > in windows. Seen mention in the archives about getting a black video in
> > windows, but it was suggested that a patch was needed so mplayer can
> > play this files, which it can now do.
> > 
> > Greg
> 
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at snowman.net
> http://lists.snowman.net/cgi-bin/mailman/listinfo/mythtv-users




More information about the mythtv-users mailing list