Re: [Semi-OT] Cropping a letterbox MPEG-2 file is easy enough...



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

This one is a little tricky, because mencoder will transcode
your file if you're not careful. So this part...

-ovc lavc -lavcopts vcodec=mpeg2video

...needs to change according to what your source material is.
I think the above might work for DVD material?

(Yes, Handbrake makes the job trivial, but no, I don't want to
transcode the file, just "crop and save". Disk is cheap and I want
to retain DVD quality.)

I also hate to have quality degraded, which happens very easily
with videos.

Hope this helps,

Phil


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx
Archive: http://lists.debian.org/20101211083115.GA9608@xxxxxxxxxxxxx



Relevant Pages

  • Re: Mplayer-gui error
    ... mencoder out.ogv -ovc lavc -oac lavc -o output.avi ... subprocess paste killed, fatal signal (Broken Tubes) ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: [Semi-OT] Cropping a letterbox MPEG-2 file is easy enough...
    ... -ovc lavc \ ... Does mencoder peek at the outfile extension to determine container type? ... I changed it to match your example command, but I forgot to change the ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: Mplayer-gui error
    ... mencoder out.ogv -ovc lavc -oac lavc -o output.avi ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ... Trouble? ...
    (Debian-User)
  • Re: Recording TV with Debian
    ... With mencode I used the following command: ... about the file sizes that transcode produces. ... If the mencoder command is as you have typed it here ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: how to use mencoder to record TV program
    ... how to use mencoder to record TV program ... So now you have video but no audio. ... notice the forceaudio command and the immediatemode. ... with a subject of "unsubscribe". ...
    (Debian-User)