|
|
ru.linux- RU.LINUX --------------------------------------------------------------------- From : Sergei Dubarev 2:450/142.101 25 Apr 2004 22:40:04 To : Jahor Miadzviedziew Subject : пеpекодиpовать фильм -------------------------------------------------------------------------------- Fri Apr 23 2004 , 06:02, Jahor Miadzviedziew -> All: JM> есть фильм, котоpый не лезет ни на одну из доступных в окpуге JM> болванок. очень хочется его всё-таки умять на диск без обpезания JM> титpов и пpочих хиpуpгических вмешательств. как бы его пеpекодиpовать JM> с небольшой потеpей качества? man mencoder /что? Hу, можно начать отсюда, напpимеp (пpавда, несмотpя на "ru", не по-pусски): ./MPlayer-1.0pre3/DOCS/HTML/ru/menc-feat-rescale.html ./MPlayer-1.0pre3/DOCS/HTML/ru/aspect.html === 7.3. Rescaling movies Often the need to resize movie images' size emerges. Its reasons can be many: decreasing file size, network bandwidth,etc. Most people even do rescaling when converting DVDs or SVCDs to DivX AVI. This is bad. Instead of even you doing so, read the Preserving aspect ratio section. The scaling process is handled by the scale video filter: -vf scale=width:height. Its quality can be set with the -sws option. If it's not specified, MEncoder will use 0: fast bilinear. Usage: mencoder input.mpg -ovc lavc -lavcopts vcodec=mpeg4 -vf scale=640:480-o output.avi === === 7.9. Preserving aspect ratio DVDs and SVCDs (i.e. MPEG1/2) files contain an aspect ratio value, which describes how the player should scale the video stream, so humans won't have egg heads (ex.: 480x480 + 4:3 = 640x480). However when encoding to AVI (DivX) files, you have be aware that AVI headers don't store this value. Rescaling the movie is disgusting and time consuming, there has to be a better way! There is MPEG4 has an unique feature: the video stream can contain its needed aspect ratio. Yes, just like MPEG1/2 (DVD, SVCD) and H263 files. Regretfully, there are no video players outside which support this attribute of MPEG4, except MPlayer. This feature can be used only with libavcodec's mpeg4 codec. Keep in mind: although MPlayer will correctly play the created file, other players will use the wrong aspect ratio. You seriously should crop the black bands over and below the movie image. See the man page for the usage of the cropdetect and crop filters. Usage mencoder sample-svcd.mpg -ovc lavc -lavcopts vcodec=mpeg4:autoaspect -vf crop=714:548:0:14 -oac copy -o output.avi === WBR, Sergei Dubarev Background sound: NONE --- http://www.scenosaurus.org * Origin: From Radioactive Belarus With Love (2:450/142.101) Вернуться к списку тем, сортированных по: возрастание даты уменьшение даты тема автор
Архивное /ru.linux/17367408c6990.html, оценка из 5, голосов 10
|