[MEncoder-users] need to add audio to movie question

DEF shaker_doc at yahoo.com
Wed Feb 21 21:50:01 CET 2007


--- Tom Poe <tompoe at fngi.net> wrote:
> $ mencoder mf://*.png -mf w=320:h=240:fps=1:type=png
> -ovc copy 
> -audiofile Open_Studios_theme.ogg -oac copy -o
> test.avi
> then
> $ mencoder test.avi -o new5.mpg -ofps 25 -vf
> scale=352:288,harddup -of 
> mpeg -mpegopts format=vcd -oac lavc -lavcopts
> acodec=mp2:abitrate=224 
> -ovc lavc -lavcopts 
>
vcodec=mpeg1video:vrc_buf_size=327:keyint=15:vrc_maxrate=1152:vbitrate=1152:vmax_b_frames=0
> then,
> opened Cinelerra, brought up a terminal, ran:
> $ midentify new5.mpg
> ID_VIDEO_ID=0
> ID_AUDIO_ID=0
> ID_FILENAME=new5.mpg
> ID_DEMUXER=mpegps
> ID_VIDEO_FORMAT=0x10000001
> ID_VIDEO_BITRATE=1152000
> ID_VIDEO_WIDTH=352
> ID_VIDEO_HEIGHT=288
> ID_VIDEO_FPS=25.000
> ID_VIDEO_ASPECT=0.0000
> ID_AUDIO_CODEC=mp3
> ID_AUDIO_FORMAT=80
> ID_AUDIO_BITRATE=224000
> ID_AUDIO_RATE=44100
> ID_AUDIO_NCH=2
> ID_LENGTH=83.64
> ID_VIDEO_CODEC=mpegpes
> and set format options in Cinelerra, and VOILA! 
> Ready to discover the 
> wide, wide world of video editing.
> 
> What is so extraordinary for me, as a
> computer-challenged user, is the 
> frame rate concept.  I created 91 .png images, in
> order to have the 
> screens display for the length of the audio file. 
> When I created the 
> test.avi file, that seemed to work, using 1fps. 
> When I ran the next 
> command, to create new5.mpg file, it automagically
> set the fps setting 
> to 25fps, but displayed each frame for 1 second. 
> Can you point me to 
> info on how that works?
> Tom

Just assume that you want each image to show on the
screen for x seconds, then you would do something
like,
$mencoder mf://*.png -mf -mf w=320:h=240:fps=1/x:
type=png ...etc ... -ofps 25 ........ etc. 

DEF


 
____________________________________________________________________________________
Expecting? Get great news right away with email Auto-Check. 
Try the Yahoo! Mail Beta.
http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html 



More information about the MEncoder-users mailing list