Re: [Semi-OT] Cropping a letterbox MPEG-2 file is easy enough...
On 2010-12-11 10:52:02 -0600, Ron Johnson wrote:
> On 12/11/2010 02:31 AM, Phil Requirements wrote:
> >On 2010-12-10 22:03:55 -0600, Ron Johnson wrote:
> >>But how do I save the output?
> >>
> >>After reading the mplayer and ffmpeg man page and Googling, these
> >>are the three methods I tried, but none of them work.
> >>
> >>$ mplayer foo.mpeg -vf crop=720:352:0:64 \
> >> -dumpstream -dumpfile bar.mpeg
> >>
> >>$ mplayer foo.mpeg -vf crop=720:352:0:64 -o bar.mpeg
> >>
> >>$ mencoder foo.mpeg -vf crop=720:352:0:64 \
> >> -ovc copy -oac copy -o bar.mpeg
> >>
> >>$ ffmpeg -i foo.mpeg -vf crop=720:352:0:64 \
> >> -vcodec copy -acodec copy bar.mpeg
> >
> >How about this one:
> >
> > mencoder foo.mpeg \
> > -vf crop=720:352:0:64 \
> > -oac copy \
> > -ovc lavc \
> > -lavcopts vcodec=mpeg2video \
> > -o newfile.avi
> >
>
> Does mencoder peek at the outfile extension to determine container type?
Sorry! The avi thing is a typo. I had written my example command, then
I changed it to match your example command, but I forgot to change the
name of the output file. It should have read:
mencoder foo.mpeg \
-vf crop=720:352:0:64 \
-oac copy \
-ovc lavc \
-lavcopts vcodec=mpeg2video \
-o bar.mpeg
Sorry for the confusion,
Phil
Reply to: