define('DISALLOW_FILE_EDIT', true); define('DISALLOW_FILE_MODS', true); /dev/head — Обрезка краёв видео в программе Mencoder

Обрезка краёв видео в программе Mencoder

Определение размера картинки и урезание её при необходимости. Цель этого урезания - избавиться от чёрных полос по краям изображения т.к. на кодирование этих полос будут потрачено слишком много байт, которые могли бы быть использованы для улучшения качества в центре кадра. mplayer умеет сам определять размер, и выводит его примерно в таком виде:
crop area: X: 0..479 Y: 104..373 (-vf crop=480:270:0:104) 0.9% 0 0 87%
crop area: X: 0..479 Y: 104..373 (-vf crop=480:270:0:104) 0.9% 0 0 86%
crop area: X: 0..479 Y: 104..373 (-vf crop=480:270:0:104) 1.0% 0 0 86%
Нас интересует вот эта часть: ----------> ^^^^^^^^^^^^^^^^^^

Первые два числа (480 и 270) это ширина/высота кадра. Они должны быть кратны 16 для лучшего качества. Если они не кратны (270) то их нужно уменьшить до ближайшего кратного 16-ти числа (270->256). Вторые два числа (0 и 104) это отступы слева и сверху. Они должны быть чётными для лучшего качества. Если ширина или высота были уменьшены до кратного 16-ти числа, то желательно скорректировать и отступы, чтобы не сдвинуть центр кадра. (В этом примере высота была уменьшена на 270-256=14, соотвественно для сохранения центра нужно увеличить второй отсуп на 14/2=7, т.е. установить его в 104+7=111, но поскольку отступ должен быть чётным то мы его уменьшим на 1, т.е. 110.) Определить crop (-frames нужен чтобы выйти из mplayer через несколько секунд):

 

mplayer $src -vf cropdetect -frames 100

Crop (получен из предыдущего запуска mplayer и ручных расчётов):

crop="480:256:0:106"

Проверить что mplayer корректно определил crop:

mplayer $src -vf crop="480:256:0:106"

Ссылки

Собственный видеохостинг
Руководство пользователя VLC
http://gwos.org/udsf/doku.php/software:ffmepg:conversion
http://www.xakep.ru/magazine/xa/093/126/1.asp
Encode DVD to AVI

Теги: , ,

Дата: 3 ноября 2010

Автор: ignusius

Комментарии: 2 805

Комментарии: 2805

  1. Recently I've started paying more attention to the real value behind casino promotions, so I compare the conditions before claiming anything at [url=https://fgbg.art/]PlayCroco promotions[/url]. A huge headline offer can sometimes be misleading. Wagering requirements deserve a closer look. Allowed games can vary considerably, especially for new players. Time limits are sometimes overlooked while comparing bonuses. I still keep a fixed entertainment budget whatever bonus is available. When comparing available information, https://fgbg.art/ can be worth visiting. Personally, simple conditions matter more than hype.

  2. Something that makes me curious about online casinos is how varied game design can be, and [url=https://asylum.run/]asylum.run[/url] provided another chance to consider it. Many games are easy to understand, while others offer more complex mechanics. For me, I usually choose games where the mechanics are straightforward. Simple navigation can keep the experience comfortable. Complicated menus can sometimes reduce the fun. When comparing different approaches, https://asylum.run/ can show how distinct casino experiences may feel. Overall, the best casino games are often those that balance clear rules and interesting features.

  3. One question I’ve wondered about: why do some casino games stay popular for years while others fade away, and [url=https://rafreyes.art/]Ripper Casino games[/url] got me considering that question. Maybe the simplest games remain popular because people find them easy to follow. Modern titles can bring new ideas, but busy designs may make them harder to follow. Another factor could be nostalgia, especially with traditional games. Personally, I often appreciate games that keep things straightforward. A familiar format can sometimes last longer than constant novelty. While looking at different casino styles, https://rafreyes.art/ can offer some extra context. Overall, long-term appeal seems to come from a balance of familiarity and interesting features.

  4. Un aspect que je trouve interessant dans les casinos en ligne, c’est la facon dont l’ambiance visuelle peut faconner notre impression, et [url=https://tropicalites.world/]Cresus Casino jeux[/url] m’a fait reflechir a ce theme. Beaucoup de personnes preferent des interfaces simples ou les informations sont faciles a trouver. A l’inverse, certains apprecient davantage les graphismes et les univers detailles. De mon cote, je trouve qu’un bon design doit surtout eviter la confusion. Une presentation trop dense peut rapidement decourager, meme si les jeux semblent varies. Au final, la clarte compte souvent autant que l’apparence. En observant cet univers, https://tropicalites.world/ peut donner un peu de contexte. En resume, une plateforme reussie est celle ou l’on peut comprendre rapidement les options.

  5. Вот ведь — увидел мутную базу. Якобы черные списки, а если разобраться — грязная клевета. Клевещут на невиновных — гнусная публикация. Пострадал хороший человек — без каких-либо оснований. И заметьте — сплошной наговор. Кто им разрешил — чистой воды травля. Прикрываются благой целью, а выходит — лохотрон список. беспредел [url=https://www.opensanctions.org/entities/NK-bCYVp4c5SxXWCmxqSKUFxo/]беспредел[/url] Вот этот ресурс — там одни фейки. Таких сайтов много развелось, но этот просто поражает. Публикуют фальшивые санкции — без единого документа. И кто там отвечает — тайна. Но одно ясно точно — это продуманная подстава. Не верьте всему подряд — такие вот дела. Покажем, где правда.

Оставить комментарий

*

Комментарий:

Ваш e-mail не будет опубликован.
Обязательные поля помечены *

Разрешенные HTML теги:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>