[MEncoder-users] Trimming video
Pete Davis
pete at petedavis.net
Fri Jun 24 23:26:30 CEST 2005
> From: mencoder-users-bounces at mplayerhq.hu [mailto:mencoder-users-
> bounces at mplayerhq.hu] On Behalf Of Oded Shimon
> Sent: Friday, June 24, 2005 4:00 PM
> To: MEncoder usage discussions
> Subject: Re: [MEncoder-users] Trimming video
>
> 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
>
As for Rich's question about why pullup and pp=md, that was based on this
page:
http://www.ee.oulu.fi/~tuukkat/mplayer/tests/deinttest2/readme.html
And I have to say, the result sure seem better than pullup by itself. I
don't really understand how the filters operate, but like I tried pullup by
itself and pullup with pp=md and it was much nicer.
I'm encoding mpegs that are coming straight from my Hauppauge PVR 150. (cat
/dev/video > myfile.mpg)
You're right, removing the - at the end fix it.
I can't remember who told me to put those in. Some forum somewhere when I
was first playing with mencoder. Maybe Linuxforums.org. I don't recall.
Someone said I needed them, as I recall.
Unfortunately, it's encoding less than a second of video, it looks like.
Here's the output:
ODML: Aspect information not (yet?) available or unspecified, not writing
vprp h
eader.
1 duplicate frame(s)!
Pos: 0.2s 8f ( 0%) 0fps Trem: 0min 0mb A-V:0.023 [0:0]
1 duplicate frame(s)!
Pos: 0.4s 17f ( 0%) 0fps Trem: 0min 0mb A-V:0.020 [0:0]
1 duplicate frame(s)!
EDL SKIP: Start: 1.00 End: 2.50 Current: V: 2.47 A: 2.49 :0]
Flushing video frames
CBR audio: 16000 bytes/sec, 384 bytes/block
Writing AVI index...
Fixing AVI header...
ODML: Aspect information not (yet?) available or unspecified, not writing
vprp h
eader.
Video stream: 1576.276 kbit/s (197034 bps) size: 118339 bytes 0.601 secs
22
frames
Audio stream: 128.000 kbit/s (16000 bps) size: 15744 bytes 0.984 secs
Pete
More information about the MEncoder-users
mailing list