Re: [Semi-OT] Cropping a letterbox MPEG-2 file is easy enough...
On 12/11/2010 05:03 AM, Ron Johnson wrote: Hi, 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 TIA (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.) Hi, I think it is: ffmpeg -i in.mpeg -croptop 10 -cropbottom 20 -cropleft 30 -cropright 40 out.mpeg Numbers are in pixels. I tried with .avi 320x216 and I got 250x186 -- Bye, Goran Dobosevic Hrvatski: www.dobosevic.com English: www.dobosevic.com/en/ Registered Linux User #503414 -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4d0334f4.1080...@dobosevic.com
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-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20101211083115.ga9...@kasploosh.net
Re: [Semi-OT] Cropping a letterbox MPEG-2 file is easy enough...
And I think it is good to put -vcodec copy -acodec copy to preserve video and audio quality. -- Bye, Goran Dobosevic Hrvatski: www.dobosevic.com English: www.dobosevic.com/en/ Registered Linux User #503414 -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4d0339b6.4020...@dobosevic.com
Re: [Semi-OT] Cropping a letterbox MPEG-2 file is easy enough...
Dne, 11. 12. 2010 05:03:55 je Ron Johnson napisal(a): (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.) Are you positive that's possible? Wouldn't cropping necessarily involve transcoding? -- Cheerio, Klistvud http://bufferoverflow.tiddlyspot.com Certifiable Loonix User #481801 Please reply to the list, not to me. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/1292065275.865...@compax
Re: [Semi-OT] Cropping a letterbox MPEG-2 file is easy enough...
On 12/11/2010 05:01 AM, Klistvud wrote: Dne, 11. 12. 2010 05:03:55 je Ron Johnson napisal(a): (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.) Are you positive that's possible? Wouldn't cropping necessarily involve transcoding? I don't know. -- Seek truth from facts. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4d03abb7.30...@cox.net
Re: [Semi-OT] Cropping a letterbox MPEG-2 file is easy enough...
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? 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? I'll try that. -- Seek truth from facts. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4d03ac32.4050...@cox.net
Re: [Semi-OT] Cropping a letterbox MPEG-2 file is easy enough...
On Sat, Dec 11, 2010 at 10:49:59AM -0600, Ron Johnson wrote: On 12/11/2010 05:01 AM, Klistvud wrote: Dne, 11. 12. 2010 05:03:55 je Ron Johnson napisal(a): (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.) Are you positive that's possible? Wouldn't cropping necessarily involve transcoding? I don't know. Avidemux can crop, but it won't let you do that if you choose copy for the codec, unfortunately. -Rob -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20101211221226.ga22...@aurora.owens.net
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 -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20101212015658.ga2...@kasploosh.net
[Semi-OT] Cropping a letterbox MPEG-2 file is easy enough...
Hi, 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 TIA (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.) -- Seek truth from facts. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4d02f82b.70...@cox.net