[MPlayer-users] Video editor advice?
Dave Botsch
dwb7 at cornell.edu
Sun Jul 27 05:40:51 CEST 2003
Well... you can use a combo of mplayer and other tools to accomplish something
like cutting out commercials (it's how the vcd creation script included with m
player works) and based on that how I can create vcd menus.
So, do something like the followig:
1. Use mplayer to figure out start and end points of each "segment". Dump these
segments to separate audio and video streams (I believe you can use -ss to
specify start time and -frames the number of frames to play... a note... if you
are using the OSD, the time shown and the time you pass to -ss don't match up
for some reason.. some trial and error to get it to start at the right place
will be necessry).
1a. Dump your video segments to some format you can paste together. For
example, you could dump to jpegs or pngs (these will take up a lot of space).
1b. Dump your audio (I think you can dump raw pcm). Can you cat this together?
Dunno....
2. Now use some tools to convert the video and audio to useful formats you can
paste back together. Let's assume we're gonna' make a vcd compliant mpeg (which
you could then convert to divx with mencoder):
2a. video is dumped as jpegs:
jpeg2yuv -b 1 -f 29.97 -j %03d.jpg -I p | mpeg2enc -a 2 -n n -f 1 -r 16 -o
movie.m1v
2b. Audio was dumped as pcm... I forget if this is wav or if you need to
convert it to wav, but once you have it in wav format:
mp2enc -V -o movie.m1a < audiodump.wav
2c. Paste the audio and video back together:
mplex -f 1 -o movie.mpg movie.m1a movie.m1v
3. Now, use mencoder to convert back to divx
of course, th bad thing about doing this is you are losing something by going
to vcd compliant mpeg... but, you can probably modify these steps to get what
you want done.
Hope this helps..
On Sat, Jul 26, 2003 at 06:35:07PM -0700, Alan Murrell wrote:
> [Automatic answer: RTFM (read DOCS, FAQ), also read DOCS/bugreports.html]
> Hello,
>
> I have a few video files I have encoded via MPlayer using '-oac copy' and
> '-ovc rawgrb', which outputs excellently to a 700MB Divx file. However,
> before converting to DIvx, I would like to cut out a few unneeded portions
> (commercials), which I would like to do via a video editor.
>
> I have tried 'cinelerra' and 'avidemux', but it appear the A/V streams are too
> big for these to handle (or perhaps my hardware isn't enough? Athlon 1300,
> 512MB RAM)
>
> Is there another editor I can use that will allow me to open the rawrgb
> stream, indicate where I want the commercials cut out, then encode to DivX?
> Or perhaps there is another way I a can do this?
>
> TIA for your help.
>
> Alan Murrell <alanm at vcn.bc.ca>
>
> _______________________________________________
> RTFM!!! http://www.MPlayerHQ.hu/DOCS
> Search: http://www.MPlayerHQ.hu/cgi-bin/htsearch
> http://mplayerhq.hu/mailman/listinfo/mplayer-users
--
********************************
David William Botsch
dwb7 at cornell.edu
********************************
More information about the MPlayer-users
mailing list