LINUX.ORG.RU

Соотношение сторон при кодировании видео


0

0

Такая проблема. Кодирую фильм и DVD. Записываю на RW. Вставляю в проигрыватель, смотрб... а там фильм 16:9 смотрится как 4:3. Колёса у пашин как яйца, лица людей -- как морды лошадей... УЖС ;) да и только ;) Покурил маны, нашёл:

-force-avi-aspect <0.2-3.0>

Override the aspect stored in the AVI OpenDML vprp header. This can be used to change the aspect ratio with '-ovc copy'.

Попробовал.

$ mencoder FAN.avi -o FANTOM.avi -ss 20 -endpos 5932 -ovc copy -force-avi-aspect 1.7777 -oac copy

не помогло, хотя и выдало:

Writing AVI index...

Fixing AVI header...

ODML: vprp aspect is 16:9.

Чем тут можно помочь? А то смотреть так невозможно :(((

На всякий, привожу параметры кодирования:

$ mencoder dvd://1 -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell:cbp:vhq=4:mv0:v4mv:vbitrate=1700:vqmin=2:vqmax=9:mpeg_q uant:vlelim=-3:vcelim=5:lumi_mask=0.02:dark_mask=0.06:p_mask=0.05:psnr:vpass=1 -vf filmdint=crop=704:416:8:80,hqdn3d -oac mp3lame -lameopts br=128:vbr=1:mode=1:q=2:aq=2 -o /dev/null

★★★★★

Вот это читал?...

------------cut of MPlayer manual----------------

7.9. Preserving aspect ratio

DVDs and SVCDs (i.e. MPEG-1/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

MPEG-4 has an unique feature: the video stream can contain its needed aspect ratio. Yes, just like MPEG-1/2 (DVD, SVCD) and H.263 files. Regretfully, there are no video players outside which support this attribute of MPEG-4, 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

au
()
Ответ на: комментарий от au

Я английский с очень плохо понимаю. Кодировал первый раз я с параметром autoaspect. Потом исключил его, когда перекодирова второй раз. Ничего не изменилось :(

vovans ★★★★★
() автор топика
Ответ на: комментарий от vovans

Переведу - кроме mplayer и bsplayer больше никто aspect ratio в avi не понимает. Поэтому когда кодируешь, задавай сразу правильные соотношения сторон.

jackill ★★★★★
()
Ответ на: комментарий от jackill

Вот чёрт! :( А как его правильно задать? Пробовал задать как -aspect 1.7777, но выдаёт то же самое :(

vovans ★★★★★
() автор топика
Ответ на: комментарий от jackill

Всё, спасибо, вроде получилось после того как я поставил в параметры кодека (не фильтра) aspect=1.98

vovans ★★★★★
() автор топика
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.