[MEncoder-users] Trimming video

Pete Davis pete at petedavis.net
Sat Jun 25 05:25:56 CEST 2005


> On Fri, Jun 24, 2005 at 03:02:18PM -0500, Pete Davis wrote:
> > > From: mencoder-users-bounces at mplayerhq.hu [mailto:mencoder-users-
> > > bounces at mplayerhq.hu] On Behalf Of Oded Shimon
> > > Sent: Friday, June 24, 2005 2:28 PM
> > > To: MEncoder usage discussions
> > > Subject: Re: [MEncoder-users] Trimming video
> > >
> > > On Fri, Jun 24, 2005 at 02:19:54PM -0500, Pete Davis wrote:
> > > > > From: mencoder-users-bounces at mplayerhq.hu [mailto:mencoder-users-
> > > > > bounces at mplayerhq.hu] On Behalf Of Oded Shimon
> > > > > Sent: Friday, June 24, 2005 2:08 PM
> > > > > To: MEncoder usage discussions
> > > > > Subject: Re: [MEncoder-users] Trimming video
> > > > >
> > > > > On Fri, Jun 24, 2005 at 02:00:15PM -0500, Pete Davis wrote:
> > > > > > Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
> > > > > > VDec: vo config request - 720 x 480 (preferred csp: Mpeg PES)
> > > > > > [PP] Using external postprocessing filter, max q = 6.
> > > > > > Could not find matching colorspace - retrying with -vf scale...
> > > > > > Opening video filter: [scale]
> > > > > > The selected video_out device is incompatible with this codec.
> > > > > > VDecoder init failed :(
> > > > > > Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder
> libmpeg2-
> > > > > v0.4.0b
> > > > >
> > > > >
> > > > > There's nothing wrong here, this is standard output from
> > > MPlayer/Mencoder
> > > > > when opening an MPEG file when you don't have a hardware MPEG
> card. Is
> > > > > this
> > > > > the entire output? show -v. show the command line.
> > > > >
> > > >
> > > > Sorry. Here's the whole output from the first encoding pass.
> Obviously
> > > the
> > > > Segmentation fault is a bad sign. I tried it without the -edl
> parameters
> > > > which is exactly the way it was working before under pre6 and I
> still
> > > get
> > > > the same segmentation fault.
> > >
> > > OK, seems you found a bug (in my code..), could you send a small
> sample,
> > > your EDL, and atleast for once, the entire command line? It keeps
> getting
> > > cut.
> > >
> > > - ods15
> > >
> >
> > I was wrong. I guess I didn't save the file when I removed the edl stuff
> > because it worked fine when I removed it and remembered to save the
> file.
> >
> > Anyway, here is the command line with the edl:
> >
> > mencoder $1 -oac mp3lame -lameopts cbr:br=128 -o /dev/null -vf
> pullup,pp=md
> > -ovc lavc -lavcopts
> vcodec=mpeg4:vbitrate=900:mbd=2:vpass=1:vqmin=2:vqmax=31
> > -edl edit.edl -hr-edl-seek -
> 
> Why do you have that '-' at the end all the time? I kept thinking the
> command line was cut because I saw that.
> '-' means read from stdin, hence explaining your problem. I'm pretty sure
> you have no intent of this...
> 
> I think the cause of your crash is a missing 'softskip' after vf_pullup!
> Use '-vf pullup,softskip' ALWAYS, it leads to crashes otherwise.
> 
> Tell me if this helps.
> 
> - ods15
> 

Oded,

Trying to cut the beginning (at 0 seconds), is definitely causing a
segmentation fault. Starting the cut after that works, but it's encoding
less than 1 second of video.

Maybe I'm misunderstanding how it's supposed to work. My edl (that
marginally works for a bit less than a second) is:

1        2.5    0
346      558.5  0
898      964.6  0
1342.6   1366.8 0
1851.7   1889.4 0

So, my understanding is it would encode the first second of video, then skip
the next second and a half, then record the next 343.5 seconds, then skip
until 558.5 seconds at which point it resumes encoding, and so forth.

Am I misunderstanding?

Pete







More information about the MEncoder-users mailing list