Конвертация фильмов для бытовых DVD-плееров

Страницы :   Пред.  1, 2, 3 ... 18, 19, 20 ... 27, 28, 29  След.
Ответить
 

CrocoZavr

Стаж: 16 лет 1 месяц

Сообщений: 240

CrocoZavr · 28-Янв-10 16:18 (14 лет 7 месяцев назад)

436
Приходилось перекодировать видео для просмотра на плеерах.
От "Video Convert Mastera" отказался. Несколько раз получал жестокий рассинхров видео-аудио (имеено с х264 кодеком).
А еще он не дает возможности выбора звуковой дорожки (если их несколько) и не может ее просто скопировать, только пережимает.
Для быстрого решения проблемы остановился, для себя, на "Format Factory". Настроек немного, работает быстро...
[Профиль]  [ЛС] 

megiltura

Стаж: 15 лет 4 месяца

Сообщений: 6


megiltura · 28-Янв-10 16:38 (спустя 19 мин.)

вообще пока для всех конвертов использовал VDM в связке с AviSynth, в частности частенько пережимаю матрешки с несколькими дорогами и сабами в avi который потом кушается бытовым плеером, сабы же ложатся в папку с видеофайлом.
единственная преграда это vfr в матрешке, но его я уже почти победил, если все подтвердится то потом могу помочь.
[Профиль]  [ЛС] 

drtom

Top Loader 01* 100GB

Стаж: 17 лет 7 месяцев

Сообщений: 967

drtom · 28-Янв-10 17:41 (спустя 1 час 2 мин.)

Цитата:
единственная преграда это vfr в матрешке
Здесь, по-моему, было об этом пару раз. Но с ходу не нашел. Полистай. И свои рецепты не забудь скинуть
[Профиль]  [ЛС] 

lopatochku

Стаж: 14 лет 8 месяцев

Сообщений: 2


lopatochku · 28-Янв-10 19:27 (спустя 1 час 46 мин.)

Как создать диск в двд-формате чтоб он был как магазинский, т.е. вставлешь диск и появляется меню, несколько картнок, каждая соответствует отдельному фильму?? чтобы на диске было 3-4 фильма?
[Профиль]  [ЛС] 

drtom

Top Loader 01* 100GB

Стаж: 17 лет 7 месяцев

Сообщений: 967

drtom · 29-Янв-10 02:13 (спустя 6 часов)

Цитата:
Как создать диск в двд-формате чтоб он был как магазинский
Если как качественный магазинский:
1. Взять из исходника видеодорожку, аудиодорожки, субтитры. Как именно и какой программой - зависит от того, какой исходник.
2. Собрать все это в программе ДВД-авторинга, наиболее рекомендуемые - ДВДЛаб (попроще) и Сценарист (посложнее), там же создается анимированное меню.
3. Записать на болванку, напечатать на диске коврик, на бумаге - обложку и вставить её в футляр.
Если
Цитата:
чтобы на диске было 3-4 фильма?
:
Засунуть исходники в VSO ConvertX, подобрать шаблон анимированного меню, запустить конвертацию. Качество будет хреновое, но это вопрос вкуса. При нынешних ценах на болванки вполне можно себе позволить 1 фильм - 1 диск.
[Профиль]  [ЛС] 

436

Стаж: 17 лет 1 месяц

Сообщений: 1687


436 · 29-Янв-10 02:42 (спустя 28 мин.)

drtom
[Профиль]  [ЛС] 

lopatochku

Стаж: 14 лет 8 месяцев

Сообщений: 2


lopatochku · 29-Янв-10 10:30 (спустя 7 часов)

в том то и вопрос что у меня валяется самописный диск дома, на нем 5 фильмов, и качество хорошее, как это возможно??
[Профиль]  [ЛС] 

ВТБ

Стаж: 15 лет 9 месяцев

Сообщений: 453

ВТБ · 29-Янв-10 11:02 (спустя 32 мин.)

lopatochku
Критерии оценки качества у всех разные.
[Профиль]  [ЛС] 

drtom

Top Loader 01* 100GB

Стаж: 17 лет 7 месяцев

Сообщений: 967

drtom · 29-Янв-10 11:15 (спустя 12 мин.)

ВТБ
[Профиль]  [ЛС] 

megiltura

Стаж: 15 лет 4 месяца

Сообщений: 6


megiltura · 29-Янв-10 11:22 (спустя 7 мин.)

lopatochku писал(а):
в том то и вопрос что у меня валяется самописный диск дома, на нем 5 фильмов, и качество хорошее, как это возможно??
качество хорошее - это как? или когда? когда смотришь на трубке с двд? по таким меркам и VHS рипы будут нормальными, а попробуй хотя бы на писюке это глянуть, я уж промолчу про панели.
[Профиль]  [ЛС] 

drtom

Top Loader 01* 100GB

Стаж: 17 лет 7 месяцев

Сообщений: 967

drtom · 29-Янв-10 11:28 (спустя 5 мин.)

ВТБ
как говорил мессир - если осетрина второй свежести, значит, она тухлая...
lopatochku
Под качеством ДВД я понимаю (вместе со многими) видеобитрейт не менее 4000 кб/с, а оптимально 5-6 мбит/с (это только про видео). 5 фильмов на диске с таким битрейтом в полном кадре разместить нереально - простая арифметика. Максимум на один ДВД9 можно иногда с неплохим качеством засунуть два фильма по 4 гига каждый. Пиратские сборники относятся не к категории "качество", а к категории - "можно смотреть", по битрейту такие фильмы примерно как ДВДрипы, то есть 1300-1500 кбит/с, но при этом, как правило, уступают последним по четкости. Так что тут просто речь о разных вещах, о чем гораздо короче высказался ВТБ
[Профиль]  [ЛС] 

JlopeH1

Стаж: 15 лет 11 месяцев

Сообщений: 352

JlopeH1 · 29-Янв-10 12:57 (спустя 1 час 29 мин.)

drtom
Очень часто, авторы релизов, AVI склеивают с аудио АС-3!Скажите пож-та,как конвертировать дорожку АС-3 в МР-3 с помощью VirtualDubMod ?Заранее благодарю!
[Профиль]  [ЛС] 

megiltura

Стаж: 15 лет 4 месяца

Сообщений: 6


megiltura · 29-Янв-10 13:12 (спустя 14 мин., ред. 29-Янв-10 13:12)

Так, вообщем после долгих мыканий и рысканья по инету в поисках инфы и способов побороть vfr в матрешке у меня есть первые сдвиги. Опишу порядок действий
после которых мне таки удалось получить на выходе avi (для бытового плеера) с несколькими дорогами и сабами (не хардсаб) и при этом нет рассинхрона
для этого нам понадобится:
1. MKVtoolnix (инструмент для работы с контейнером MKV)
2. MKVExtractGUI-1.6.4.1Wizard-1.2 (GUI для первого пункта)
3. Avc2Avi (мелкая утилита командной строки конвертирует raw-потоки avc/h.264 в avi контейнер, без перекодировки)
3. avi_tc_package (для сведения таймкодов и avi)
4. VirtualDubMod (собственно для самой конвертации и мукса аудиодорог)
Начнем по порядку.
1. Извлечение из контейнера
Файлы из первого и второго архивов ложим в одну папку и запускаем MKVextractGUI.
Открываем наш MKV внизу в Content увидим содержимое контейнера.
Далее в Options>Tabs ставим галочку TimeCode.
Выбираем в Content что хотим извлечь, я извлекаю сразу все (видео,все аудио дороги и сабы)
и нажимаем Extract (процедура недлительная, в зависимости от файла).
На выходе получаем много файликов но нас интересуют вот эти
файл_Track1.h264
TimeCode_Track1.txt
2. Конвертация h264 в avi
Собственно для этого нам и надо avc2avi (я для нее GUI не искал, но вроде где-то есть)
Можете написать bat-ник или прямо из командной строки выполнить следующее
avc2avi.exe -i файл.h264 -o файл.avi
(процедура тоже не длительная, пара минут на файлике в 300 метров)
3. Далее запускаем tc-GUI.exe (из 3 пункта) переходим на закладку tc2cfr указываем в Input AVI файл который получился во втором пункте
Input TC - текстовый файлик с таймкодами из первого пункта (обязательно обратите внимание чтобы совпадали Track# видео и файла таймкодов)
и Output AVI - указываем файл-результат и жмем Run (процедура тоже довольно быстрая, около минуты)
4. Запускаем VDM открываем файл-результат из 3 пункта
обязательно заходим в Video > Frame Rate и устанавливаем в Frame rate conversion > Convert to fps: 23.976
Далее уже на ваше усмотрение фильтры, кодеки + аудиодороги
Я обычно все аудиодороги из первого пункта (AAC, OGG) конвертирую MediaCoder в MP3 и в 4 пункте уже добавляю в VDM
Видео же пережимаю Xvid в два прохода.
Файлы с субтитрами (ASS, SRT) кушаются железными плеерами обычно (ну или как вариант DSRT для проверки и конвертации сабов)
Входящий MKV MediaInfo
скрытый текст
Общее
Формат : Matroska
Размер файла : 289 Мегабайт
Продолжительность : 24 м.
Общий поток : 1670 Кбит/сек
Дата кодирования : UTC 2009-07-25 02:19:24
Программа-кодировщик : mkvmerge v2.5.3 ('Boogie') built on Mar 7 2009 15:00:41
Библиотека кодирования : libebml v0.7.7 + libmatroska v0.8.1
Видео
Идентификатор : 1
Формат : AVC
Формат/Информация : Advanced Video Codec
Профайл формата : High@L5.1
Параметры CABAC формата : Да
Параметры ReFrames формата : 16 кадры
Режим смешивания : Container profile=Unknown@5.1
Идентификатор кодека : V_MPEG4/ISO/AVC
Продолжительность : 24 м.
Номинальный битрейт : 1565 Кбит/сек
Ширина : 640 пикс.
Высота : 480 пикс.
Соотношение кадра : 4:3
Частота кадров : 23,976 кадр/сек
Разрешение : 24 бит
Колориметрия : 4:2:0
Тип развёртки : Прогрессивная
Бит/(Пиксели*Кадры) : 0.212
Заголовок : H264/AVC
Библиотека кодирования : x264 core 47 svn-530M
Настройки программы : cabac=1 / ref=16 / deblock=1:1:1 / analyse=0x3:0x133 / me=umh / subme=7 / brdo=1 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / chroma_qp_offset=0 / slices=1 / nr=0 / decimate=0 / bframes=3 / b_pyramid=1 / b_adapt=1 / b_bias=0 / direct=3 / wpredb=1 / bime=1 / keyint=250 / keyint_min=25 / scenecut=40 / rc=2pass / bitrate=1565 / ratetol=1.0 / rceq='blurCplx^(1-qComp)' / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / pb_ratio=1.30
Аудио #1
Идентификатор : 2
Формат : Vorbis
Параметры Floor формата : 1
Идентификатор кодека : A_VORBIS
Продолжительность : 24 м.
Вид битрейта : Постоянный
Битрейт : 137 Кбит/сек
Канал(ы) : 2 канала(ов)
Частота : 44,1 КГц
Разрешение : 16 бит
Размер потока : 23,6 Мегабайт (8%)
Заголовок : 2x2
Библиотека кодирования : libVorbis 1.0.1 (UTC 2003-09-09)
Язык : Russian
Аудио #2
Идентификатор : 3
Формат : AAC
Формат/Информация : Advanced Audio Codec
Версия формата : Version 4
Профайл формата : LC
Параметры SBR формата : Нет
Идентификатор кодека : A_AAC
Продолжительность : 24 м.
Канал(ы) : 2 канала(ов)
Расположение каналов : L R
Частота : 48,0 КГц
Разрешение : 16 бит
Заголовок : TV Saitama
Язык : Japanese
Текст
Идентификатор : 4
Формат : ASS
Идентификатор кодека : S_TEXT/ASS
Идентификатор кодека/Информация : Advanced Sub Station Alpha
Заголовок : steelunicorn
Язык : Russian
Меню
00:00:00.000 : :Chapter 1
00:00:01.500 : :Chapter 2
00:01:31.500 : :Chapter 3
00:02:32.000 : :Chapter 4
00:07:12.933 : :Chapter 5
00:12:33.933 : :Chapter 6
00:17:33.933 : :Chapter 7
00:22:25.167 : :Chapter 8
00:23:55.167 : :Chapter 9
Результат AVI MediaInfo
скрытый текст
Общее
Формат : AVI
Формат/Информация : Audio Video Interleave
Размер файла : 253 Мегабайт
Продолжительность : 24 м.
Общий поток : 1465 Кбит/сек
Программа-кодировщик : VirtualDubMod 1.5.10.2 (build 2542/release)
Библиотека кодирования : VirtualDubMod build 2542/release
Видео
Идентификатор : 0
Формат : MPEG-4 Visual
Профайл формата : AdvancedSimple@L5
Параметры BVOP формата : Да
Параметры QPel формата : Нет
Параметры GMC формата : Без точки перехода
Параметры матрицы формата : Default (H.263)
Режим смешивания : Сжатый битовый поток
Идентификатор кодека : XVID
Идентификатор кодека/Подсказка : XviD
Продолжительность : 24 м.
Битрейт : 1195 Кбит/сек
Ширина : 640 пикс.
Высота : 480 пикс.
Соотношение кадра : 4:3
Частота кадров : 23,976 кадр/сек
Разрешение : 24 бит
Колориметрия : 4:2:0
Тип развёртки : Прогрессивная
Бит/(Пиксели*Кадры) : 0.162
Размер потока : 207 Мегабайт (82%)
Библиотека кодирования : XviD 1.2.1 (UTC 2008-12-04)
Аудио #1
Идентификатор : 1
Формат : MPEG Audio
Версия формата : Version 1
Профайл формата : Layer 3
Идентификатор кодека : 55
Идентификатор кодека/Подсказка : MP3
Продолжительность : 24 м.
Вид битрейта : Постоянный
Битрейт : 128 Кбит/сек
Канал(ы) : 2 канала(ов)
Частота : 44,1 КГц
Разрешение : 16 бит
Размер потока : 22,1 Мегабайт (9%)
Выравнивание : Разделение по промежуткам
Продолжительность промежутка : 42 мс. (1,00 видеокадр)
Время предзагрузки промежутка : 500 ms
Библиотека кодирования : LAME3.98r
Настройки программы : -m s -V 4 -q 2 -lowpass 17 -b 128
Аудио #2
Идентификатор : 2
Формат : MPEG Audio
Версия формата : Version 1
Профайл формата : Layer 3
Идентификатор кодека : 55
Идентификатор кодека/Подсказка : MP3
Продолжительность : 24 м.
Вид битрейта : Постоянный
Битрейт : 128 Кбит/сек
Канал(ы) : 2 канала(ов)
Частота : 48,0 КГц
Разрешение : 16 бит
Размер потока : 22,1 Мегабайт (9%)
Выравнивание : Соединение по промежуткам
Продолжительность промежутка : 42 мс. (1,00 видеокадр)
Время предзагрузки промежутка : 504 ms
Библиотека кодирования : LAME3.98r
Настройки программы : -m s -V 4 -q 2 -lowpass 17 -b 128
[Профиль]  [ЛС] 

drtom

Top Loader 01* 100GB

Стаж: 17 лет 7 месяцев

Сообщений: 967

drtom · 30-Янв-10 04:17 (спустя 15 часов, ред. 30-Янв-10 04:17)

Цитата:
как конвертировать дорожку АС-3 в МР-3 с помощью VirtualDubMod
Меню-Stream-Потоки-Выбрать поток-Правый клик на потоке-FullProcessingMode-снова правый клик на потоке -появляется Compression-MPEGLayer-3-выбираем битрейт и частоту-ОК, Меню-Файл-Save as-имя файла-Ок.
Но не рекомендую, всегда лучше видео и аудио разделить, отдельно переконвертить ас3 в мп3 (хоть ffmpeg, хоть тем же BeSweet)/
Цитата:
я для нее GUI не искал, но вроде где-то есть
на самой первой странице этой темы
Там же (и еще в паре мест) ссылка и на решение проблемы VFR в целом.
Поэкспериментируй еще с TIVTC ;
Попробуй
DirectShowSource("D:\Video\Hybrid\vfr_file.mkv", fps=119.88, convertfps=true)
FDecimate(29.97) # или FDecimate(23.976)
[Профиль]  [ЛС] 

JlopeH1

Стаж: 15 лет 11 месяцев

Сообщений: 352

JlopeH1 · 01-Фев-10 15:55 (спустя 2 дня 11 часов)

Спасибо!drtom
[Профиль]  [ЛС] 

drtom

Top Loader 01* 100GB

Стаж: 17 лет 7 месяцев

Сообщений: 967

drtom · 03-Фев-10 03:39 (спустя 1 день 11 часов, ред. 07-Фев-10 03:20)

Цитата:
...убрать эту H-DTS из TS и заново собрать уже в MKV
eac3to "X:\XXXXX\xxxxx.ts" "X:\XXXXX\xxxxx.mkv" программа демуксит TS и выдаст видео в mkv и все аудиопотоки отдельными файлами. Ненужный английский H-DTS на 2,5 гига убиваем, открываем MKVToolnix и собираем остальные потоки. Все.
Цитата:
аудио с расширением eac3 кодер не узнает
значит, перегоняем его в ас3 отдельно
eac3to х:\путькфайлу\имяфайла.eac3 х:\путькфайлу\имяфайла.ac3 можно сразу в команде задать дополнительные параметры (битрейт и пр.) - на усмотрение.
[Профиль]  [ЛС] 

Vitamin1978

Стаж: 16 лет 2 месяца

Сообщений: 1096

Vitamin1978 · 03-Фев-10 16:35 (спустя 12 часов)

подскажите, пожалуйста, как можно запустить скрипт AviSynth в VirtualDubMod?
[Профиль]  [ЛС] 

CrocoZavr

Стаж: 16 лет 1 месяц

Сообщений: 240

CrocoZavr · 03-Фев-10 17:44 (спустя 1 час 9 мин.)

Vitamin1978
Просто открыть его, вместо видеофайла...
[Профиль]  [ЛС] 

Vitamin1978

Стаж: 16 лет 2 месяца

Сообщений: 1096

Vitamin1978 · 03-Фев-10 17:56 (спустя 12 мин.)

CrocoZavr писал(а):
Vitamin1978
Просто открыть его, вместо видеофайла...
хахаха, вот я не догадался
СПАСИБО БОЛЬШОЕ!!!!
[Профиль]  [ЛС] 

drtom

Top Loader 01* 100GB

Стаж: 17 лет 7 месяцев

Сообщений: 967

drtom · 04-Фев-10 14:20 (спустя 20 часов, ред. 07-Фев-10 06:50)

Появился очень интересный инструмент, позволяющий более корректно брать матрешку на кодирование. Раньше требовалось для бережного отношения к фреймам брать её на фреймсервер в скрипте через DGAVCDec. Новый инструмент называется FFMpegSource, лежит здесь, в скрипте прописывается так же, как и Directshowsource:
LoadPlugin("C:\Program Files\FFMpegSource\ffms2.dll")
FFVideoSource("Х:\имяфайла.mkv")

или
Синтаксис:
Цитата:
function FFmpegSource2(string source, int "vtrack", int "atrack", bool "cache", \
string "cachefile", int "fpsnum", int "fpsden", string "pp", int "threads", \
string "timecodes", int "seekmode", bool "overwrite", int "width", int "height", \
string "resizer", string "colorspace", int "rffmode", int "adjustdelay") {
vtrack = default(vtrack,-1)
atrack = default(atrack,-2)
cache = default(cache,true)
cachefile = default(cachefile,source+".ffindex")
fpsnum = default(fpsnum,-1)
fpsden = default(fpsden,1)
pp = default(pp,"")
threads = default(threads,-1)
timecodes = default(timecodes,"")
seekmode = default(seekmode,1)
overwrite = default(overwrite,false)
width = default(width,-1)
height = default(height,-1)
resizer = default(resizer,"BICUBIC")
colorspace = default(colorspace,"")
rffmode = default(rffmode,0)
adjustdelay = default(adjustdelay,-1)
((cache == true) && (atrack <= -2)) ? ffindex(source=source, cachefile=cachefile, \
indexmask=0, overwrite=overwrite) : (cache == true) ? ffindex(source=source, \
cachefile=cachefile, indexmask=-1, overwrite=overwrite) : nop
v = ffvideosource(source=source, track=vtrack, cache=cache, cachefile=cachefile, \
fpsnum=fpsnum, fpsden=fpsden, pp=pp, threads=threads, timecodes=timecodes, \
seekmode=seekmode, rffmode=rffmode, width=width, height=height, resizer=resizer, \
colorspace=colorspace)
a = (atrack <= -2) ? blankclip(audio_rate=0) : ffaudiosource(source=source, \
track=atrack, cache=cache, cachefile=cachefile, adjustdelay=adjustdelay)
return audiodubex(v,a)
}
function FFImageSource(string source, int "width", int "height", string "resizer", string "colorspace") {
width = default(width,-1)
height = default(height,-1)
resizer = default(resizer,"BICUBIC")
colorspace = default(colorspace,"")
return FFVideoSource(source, cache=false, seekmode=-1, width=width, height=height, resizer=resizer, colorspace=colorspace)
}
function FFCopyrightInfringement(string source) {
################################################################
# Violates copyright
# * With audio
# * No annoying lawyers
# * Simple syntax
# * Do not use on Britney Spears' music videos or sex tapes
#
# And whatever you do:
# DO NOT TELL NEURON2 THAT YOU USED THIS FUNCTION
################################################################
FFIndex(source=source)
return audiodubex(FFVideoSource(source=source), FFAudioSource(source=source))
}
function FFFormatTime(int ms) {
s = ms / 1000
ms = ms % 1000
m = s / 60
s = s % 60
h = m / 60
m = m % 60
return string(h) + ":" + string(m,"%02.0f") + ":" + string(s,"%02.0f") + "." + string(ms,"%03.0f")
}
function FFInfo(clip c, bool "framenum", bool "frametype", bool "cfrtime", bool "vfrtime") {
framenum = default(framenum,true)
frametype = default(frametype,true)
cfrtime = default(cfrtime,true)
vfrtime = default(vfrtime,true)
global fftempclip = c
fftempclip = frameevaluate(fftempclip, """ fftempstring = "" """)
fftempclip = framenum ? frameevaluate(fftempclip, """fftempstring = fftempstring + "Frame Number: " + string(current_frame) + " of " + string(fftempclip.framecount) + "\n" """, after_frame=true) : fftempclip
fftempclip = frametype ? frameevaluate(fftempclip, """fftempstring = fftempstring + "Picture Type: " + chr(FFPICT_TYPE) + "\n" """, after_frame=true) : fftempclip
fftempclip = cfrtime ? frameevaluate(fftempclip, """fftempstring = fftempstring + "CFR Time: " + FFFormatTime(int((current_frame * 1000) / fftempclip.framerate)) + "\n" """, after_frame=true) : fftempclip
fftempclip = vfrtime ? frameevaluate(fftempclip, """fftempstring = fftempstring + "VFR Time: " + FFFormatTime(FFVFR_TIME) + "\n" """, after_frame=true) : fftempclip
return scriptclip(fftempclip, "subtitle(fftempclip, fftempstring, lsp = 1)", after_frame=true)
Мануал
Цитата:
FFmpegSource2 User Manual
Opens files using FFmpeg and nothing else. May be frame accurate on good days. The source is MIT licensed and can be obtained from http://code.google.com/p/ffmpegsource/source/checkout. The precompiled binary is GPL3 licensed. If you are religious you may consider this the second coming.
Limitations
Requires Haali's Media Splitter if ogm or mpeg ps/ts is to be opened.
Haali's splitter requires transport streams to be cut at packet boundaries. Use TsRemux to fix the stream before trying to open it.
Because of LAVF's demuxer most raw streams will fail to work properly such as elementary h264 and other mpeg video streams.
FFAudioSource() will have to remake any index implicitly created by FFVideoSource() and therefore code like
AudioDub(FFVideoSource(X), FFAudioSource(X))
will require two indexing passes. Apart from the time consumed this is harmless. To work around it open the audio first
A = FFAudioSource(X)
V = FFVideoSource(X)
AudioDub(V, A)
or use FFIndex().
FFIndex(X)
AudioDub(FFVideoSource(X), FFAudioSource(X))
Known issues
There will appear decoding artifacts on h264 in transport streams.
FFIndex() will silently ignore fatal decoding errors when indexing. This means that indexing a specific track may have failed even if FFIndex() succeeds.
Compatibility
AVI, MKV, MP4, FLV: Frame accurate
WMV: Frame accurate(?) but avformat seems to pick keyframes relatively far away
OGM: Frame accurate(?)
VOB: No rff flags applied
MPG: Seeking seems to be off by one or two frames now and then
M2TS, TS: Seeking seems to be off a few frames here and there
Image files: Most formats can be opened if seekmode=-1 is set, no animation support
Functions in FFMS2.dll
FFIndex(string source, string cachefile = source + ".ffindex", int indexmask = -1, int dumpmask = 0, string audiofile = "%sourcefile%.%trackzn%.w64", int errorhandling = 3, bool overwrite = false)
Used to invoke indexing separately with a few additional options and to write audio tracks to disk as wave64 files. It can be useful to use to avoid remaking the index twice or if some audio tracks are unsupported/broken and cannot be indexed properly.
FFVideoSource(string source, int track, bool cache = true, string cachefile = source + ".ffindex", int fpsnum = -1, int fpsden = 1, string pp, int threads = -1, string timecodes, int seekmode = 1, int rffmode = 0, int width = -1, int height = -1, string resizer = "BICUBIC", string colorspace = "")
Opens video, will invoke indexing of all video tracks if no usable index is found.
FFAudioSource(string source, int track, bool cache = true, string cachefile = source + ".ffindex", int adjustdelay = -1)
Opens audio, will invoke indexing of all tracks if no index exists or the requested track is not present in the index.
FFPP(clip, string pp)
Separate postprocessing which also seems to include a few simple deinterlacers. Use the pp argument in FFVideoSource whenever possible as it will also have access to the video quantizers and thus adapt better to the video.
SWScale(clip, int width = -1, int height = -1, string resizer = "BICUBIC", string colorspace = "")
A resizing/colorspace conversion filter that does nothing special at all. May be useful in some cases just because it does not do things exactly like avisynth.
FFSetLogLevel(int Level = -8)
Sets the log FFmpeg logging level. Defaults to quiet (-8) and the FFmpeg default is 16. All possible different values can be found in avutil/log.h.
FFGetLogLevel()
Returns the current level of logging as an int.
Functions in FFMS2.avsi
FFmpegSource2(string source, int vtrack = -1, int atrack = -2, bool cache = true, string cachefile = source + ".ffindex", int fpsnum = -1, int fpsden = 1, string pp, int threads = -1, string timecodes, int seekmode = 1, bool overwrite = false, int width = -1, int height = -1, string resizer = "BICUBIC", string colorspace = "", int rffmode = 0, int adjustdelay = -1)
Approximates the syntax later versions of the 1.x series. Can be convenient to use with atrack=-1 to load both audio and video at the same time. Note that the adjustdelay parameter may need to be specified for the expected behavior if a video track other than the first is selected.
FFImageSource(string source, int width = -1, int height = -1, string resizer = "BICUBIC", string colorspace = "")
Another alias for FFVideoSource with the options set optimally for using it as an image reader. Disables caching and seeking for maximum compatiblity.
FFFormatTime(int ms)
A helper function to format time given in milliseconds into a h:mm:ss.ttt string.
FFInfo(clip c, bool framenum = true, bool frametype = true, bool cfrtime = true, bool vfrtime = true)
A helper function to show general information about the current frame. Note that not all values are exported in all source modes and will therefore not always be shown.
Function arguments
source: Source file.
indexmask & dumpmask: Which audio tracks to index/write to disk. Dumping a track also implies indexing since the same work has to be done anyway. It is a binary mask meaning that 7 corresponds to writing tracks 1-3. Non-audio tracks are ignored. -1 writes all tracks.
audiofile: The filename to use for dumped audio tracks. Make sure to include a track number variable to avoid multiple file access errors. The variables are case sensitive. The available variables are:
%sourcefile% - same as the source argument, the file the audio is decoded from
%trackn% - the track number
%trackzn% - the track number zero padded to 2 digits
%samplerate% - self explanatory
%channels% - self explanatory
%bps% - bits per sample
%delay% - delay, or more exactly the first timestamp encountered in the audio stream
overwrite: Forces reindexing even if a valid index already exists. May be useful for trackmask changes or testing.
track: Track number as seen by the relevant demuxer. Starts from 0, -1 means it will pick the first suitable track. This may however NOT be the first video/audio track found if it is not indexed but a later one is.
fpsnum & fpsden: For VFR -> CFR conversion. Setting fpsnum <= 0 means a 1:1 relation with the encoded frames.
timecodes: File to output timecodes to. If the file exists it will be overwritten.
cache: Write indexing information to a file for later use. This setting controls both loading of existing indices and the writing of new ones.
cachefile Where to write the cache information.
pp: See the table below for a full description, an empty string means no processing. It is recommended to avoid the autoq option since it's currently unknown what effect it will have on the processing.
threads: Sets the number of decoder threads used. Defaults to the number of logical cpus reported by windows. Ignored by lavc if the used decoder doesn't implement it.
seekmode: Control how seeking is handled, has no effect on matroska or haali splitter opened files which always use the equivalent of seekmode=1.
-1: linear access without rewind, will throw an error if each successive requested frame number isn't bigger than the last one, only intended for opening images but might work on well with some obscure video format
0: linear access, the definition of slow but should make some formats "usable"
1: safe normal, bases seeking decisions on the reported keyframe positions
2: unsafe normal, same as 1 but no error will be thrown if the exact destination has to be guessed
3: aggressive, seek in the forward direction even if no closer keyframe is known to exist, only useful for testing and containers where avformat doesn't report keyframes properly
rffmode: Controls how RFF flags in the video stream is treated.
0: Ignore all flags
1: Honor all pulldown flags
2: Equivalent to force film
Note that setting rffmode > 0 will throw an error if the video stream has no RFF flags at all. When engaged it will also make the output be assumed as CFR, disallow vertical scaling and setting the output colorspace. FFPICT_TYPE will also not be set as the output is a combination of several frames. Other subtle behavior changes may also exist.
width & height: Width and height to resize to. Value below or equal to 0 is the same as specifying the input dimensions.
resizer: Selects the resizer used for resampling the chroma planes and normal resizing. The available methods are: FAST_BILINEAR, BILINEAR, BICUBIC, X, POINT, AREA, BICUBLIN, GAUSS, SINC, LANCZOS and SPLINE.
colorspace: The colorspace to convert to. The names are YV12, YUY2, RGB24, RGB32 and the empty string for same as input.
errorhandling: Controls what happens when an audio decoding error is encountered.
0: Abort indexing
1: Clear the affected track and continue
2: Stop indexing the track but keep all the index entries so far
3: Continue anyway
adjustdelay: Try to apply a suitable delay to the audio track. -1 is the default mode and should produce correct results in most cases
-3: No delay adjustment
-2: Adjust relative to time 0
-1: Adjust relative to the first video track, adjusts the delay relative to time 0 if no video track is present
Any valid track number: Adjust relative to the specified track
Exported Avisynth variables
FFSAR_NUM, FFSAR_DEN, FFSAR: The playback aspect ratio specified by the container. FFSAR_NUM and FFSAR_DEN make up the rational number of the ratio and FFSAR is only provided for convenience and may not be set in case it cannot be calculated (FFSAR_DEN=0).
FFCROP_LEFT, FFCROP_RIGHT, FFCROP_TOP, FFCROP_BOTTOM: The on playback cropping specified by the container.
FFCOLOR_SPACE: The output colorimetry. Matches the values used by ColorMatrix() as input.
FFCOLOR_RANGE: The range used by the output.
0: Unknown/unspecified
1: Limited-range
2: Full-range
FFPICT_TYPE: The picture type of the most recently requested frame as the ascii number of the character listed below. Use Chr() to convert it to an actual letter in avisynth. Use after_frame=true in Avisynth's conditional scripting for proper results. Only set when rffmode=0. The FFmpeg source definition of the characters:
I: Intra
P: Predicted
B: Bi-dir predicted
S: S(GMC)-VOP MPEG4
i: Switching Intra
p: Switching Predicted
b: FF_BI_TYPE (no good explanation available)
?: Unknown
FFVFR_TIME: The actual time of the source frame in milliseconds. Only set when no type of CFR conversion is being done (rffmode and fpsnum left at their defaults).
PP string format
Available postprocessing filters:
Filters Options
short long name short long option Description
* * a autoq CPU power dependent enabler
c chrom chrominance filtering enabled
y nochrom chrominance filtering disabled
n noluma luma filtering disabled
hb hdeblock (2 threshold) horizontal deblocking filter
1. difference factor: default=32, higher -> more deblocking
2. flatness threshold: default=39, lower -> more deblocking
the h & v deblocking filters share these
so you can't set different thresholds for h / v
vb vdeblock (2 threshold) vertical deblocking filter
ha hadeblock (2 threshold) horizontal deblocking filter
va vadeblock (2 threshold) vertical deblocking filter
h1 x1hdeblock experimental h deblock filter 1
v1 x1vdeblock experimental v deblock filter 1
dr dering deringing filter
al autolevels automatic brightness / contrast
f fullyrange stretch luminance to (0..255)
lb linblenddeint linear blend deinterlacer
li linipoldeint linear interpolating deinterlace
ci cubicipoldeint cubic interpolating deinterlacer
md mediandeint median deinterlacer
fd ffmpegdeint ffmpeg deinterlacer
l5 lowpass5 FIR lowpass deinterlacer
de default hb:a,vb:a,dr:a
fa fast h1:a,v1:a,dr:a
ac ha:a:128:7,va:a,dr:a
tn tmpnoise (3 threshold) temporal noise reducer
1. <= 2. <= 3. larger -> stronger filtering
fq forceQuant <quantizer> force quantizer
Usage:
<filterName>[:<option>[:<option>...]][[,|/][-]<filterName>[:<option>...]]...
long form example:
vdeblock:autoq/hdeblock:autoq/linblenddeint default,-vdeblock
short form example:
vb:a/hb:a/lb de,-vb
more examples:
tn:64:128:256
Цитата:
дайте совет по выбору "беспроигрышной" ... конвертации MKV в ДВД с минимальными потерями по картинке и с сохранением звука
Кратко:
Максимальное качество пережатия в мпег 2 дают профессиональные кодеры: Cinema Craft Encoder, Canopus Procoder, Rhozet Carbon Coder - перечислены по возрастающей в плане качества. На примере CCE вкратце:
1. Отделили потоки МКВЭкстрактом - аудопотоки отложили, с видеопотоком (назовем его Track1.h264) будем работать дальше.
2. Установили DGAVCDec (в теме есть еще ссылки), распаковали архив в директорию, запустили DGAVCIndex.exe. File - Open-Track1.h264-ОК. Затем File - Save project-C:\имяпапки\project.dga.
3. Так как кодер напрямую файл не возьмет - необходимо подготовить исходник. Для этого в Блокноте пишем скрипт (обычный текстовый файл, просто расширение будет не *.txt, а *.avs).(У нас должен быть установлен Avisynth.)
loadplugin("C:\Program Files\AviSynth 2.5\plugins\DGAVCDecode.dll")# в скобках и в кавычках прописываем полные пути к DGAVCDecode.dll. Обычно эта библиотека находится в архиве с DGAVCDec, лучше её скопировать в папку с плагинами Avisynth
AVCSource("С:\HD\video.dga", deblock=false) #-прописываем путь к полученному после обработки DGAVCDec фреймсерверу:
ConvertToYUY2() #смена цветового пространства
Lanczos4Resize(720,404,0,0,1280,720) # - обрезка краев и ресайз, пример приведен для исходника 1280х720, в теме есть ссылки на подробности расчета размера для PAL и NTSC.
4. Полученный скрипт открываем в CCE. Задаем параметры кодирования. Здесь же в граф Area setting можем задать размер, то есть если мы сделали ресайз в скрипте, тут ничего не трогаем. Но если хотите (или заморочились с расчетом правильного разрешения)- строку Lanczos4Resize(720,404,0,0,1280,720) из скрипта убираем, а тут ставим размер 720х576 или 720х480 - в зависимости от системы.
5. Запускаем Encode Now. Ждем - на выходе готовый файл для авторинга.
детально и подробно:
Цитата:
Где-нибудь есть простой мануал по настройкам MeGui?
например
[Профиль]  [ЛС] 

436

Стаж: 17 лет 1 месяц

Сообщений: 1687


436 · 10-Фев-10 02:35 (спустя 5 дней, ред. 10-Фев-10 02:35)

может кто-то в конкретный форматах при покупке видео шарит просто тут сериал один http://www.amazon.com/Spellbinder-Dragon-Complete-NON-USA-Australia/dp/B000WZSLZ4 Format: Import, PAL, Box set, Widescreen какое примерно качество картинки ?
[Профиль]  [ЛС] 

drtom

Top Loader 01* 100GB

Стаж: 17 лет 7 месяцев

Сообщений: 967

drtom · 10-Фев-10 05:31 (спустя 2 часа 56 мин., ред. 12-Фев-10 03:37)

По формату качество не определишь. А вот другой показатель говорит о вполне достойном качестве: 650 минут на 4 DVD. Даже если это DVD5 - 2,7 часа на диск все равно очень хорошо для сериала
[Профиль]  [ЛС] 

drtom

Top Loader 01* 100GB

Стаж: 17 лет 7 месяцев

Сообщений: 967

drtom · 18-Фев-10 17:22 (спустя 8 дней)

Перенесено в начало топика, на первую страницу.
[Профиль]  [ЛС] 

rikon

Стаж: 16 лет 4 месяца

Сообщений: 52

rikon · 22-Фев-10 09:48 (спустя 3 дня)

скачал вот это ... https://rutr.life/forum/viewtopic.php?t=1043744
Видео: MPEG4 Video (H264) 608 x 448 25.00fps 1457 kbps
Аудио: AAC 24000Hz stereo 768Kbps
мне надо перекодировать так чтоб двд плеер ВВК понимал ...но чем тока не пробовал не что не получается
хочу на выходе вот это
Формат: AVI
Видео кодек: XviD
Аудио кодек: AC3
подскажите пжлст.
[Профиль]  [ЛС] 

drtom

Top Loader 01* 100GB

Стаж: 17 лет 7 месяцев

Сообщений: 967

drtom · 22-Фев-10 15:22 (спустя 5 часов, ред. 23-Фев-10 06:08)

Программой Yamb (по ссылке, правда, обратная задача описана) разбираешь mp4 на видео в h264 и аудио в aac.
Видео подхватываешь VirtualDubMod через Открыть файл-Use Directshowsourcce. (Желательно иметь установленный ffdshow и в его настройках VFW codec configuration-vfw decoding options->decoder->codecs->h264->libavcodec)
В VDM - video->compression->Xvid->config-> "target bitrate"= битрейту исходника. Кодируешь в два прохода.
AAC конвертишь с помощью eac3to. Просто через
eac3to source.aac destination.ac3
Опции
eac3to sourcefile[+sourcefile2] [trackno:] [destfile|stdout] [-options]
Examples:
eac3to source.pcm destination.flac
eac3to source.thd destination.flac destination.ac3
eac3to source.evo 1: chapters.txt 2: video.mkv 3: audio.flac 5: subtitle.sup
eac3to feature_1.evo+feature_2.evo movie.mkv
eac3to blurayMovieFolder movie.mkv
Options:
-448 use e.g. "192", "448" or "640" kbps for AC3 encoding
-768 use "768" or "1536" kbps for DTS encoding
-core extract the DTS core of a DTS-HD track
+/-100ms apply a positive or negative audio delay
+/-3dB apply a positive or negative audio gain (volume change)
-0,1,2,3,4,5 remap the channels to the specified order
-edit=0:00:00,0ms loops or removes audio data at the specified runtime
-silence/-loop forces usage of silence (or looping) for audio edits
-down6 downmix 7 or 8 channels to 6 channels
-down2 downmix multi channel audio to stereo (Dolby Pro Logic II)
-phaseShift shift phase (when doing stereo downmixing, see "down2")
-mixlfe mix LFE in (when doing stereo downmixing, see "down2")
-down16 downconvert decoded audio data to 14..23 bit
-slowdown convert 25.000 and 24.000 content to 23.976 fps
-speedup convert 23.976 and 24.000 content to 25.000 fps
-23.976/... define source fps to be "23.976", "24.000", "25.000", ...
-changeTo24.000 change source fps to "23.976", "24.000", "25.000", ...
-resampleTo48000 resample audio to "44100", "48000" or "96000" Hz
-r8brain use r8brain resampler instead of SSRC
-quality=0.50 Nero AAC encoding quality (0.00 = lowest; 1.00 = highest)
-8 define PCM file to be "1".."8" channels
-16 define PCM file to be "16" or "24" bit
-little define PCM file to be "little" or "big" endian
-96000 define PCM file to be 44100, 48000, 96000 or 192000 Hz
-override forcefully overrides PCM auto detection with manual values
-sonic/nero/... force the use of a specific decoder (not recommended)
-keepDialnorm disables dialog normalization removal (not recommended)
-decodeHdcd decodes HDCD source track (usually 16 -> 20 bit)
-demux demuxes 1st video track and all audio and subtitle tracks
-stripPulldown strips the pulldown from MPEG2 video tracks
-keepPulldown disable removal of pulldown for MPEG2, h264 and VC-1 tracks
-seekToIFrames make all h264/AVC "I" frames seekable
-check checks if the source EVO/(M2)TS file is clean.
-test checks if the external filters are installed & working
-lowPriority moves processing to background/idle priority
-shutdown automatically shutdown the PC after processing is done
Для кодировки маст хэв Nero AAC encoder.
Можно также перекодить через Faad, Besweet или Graphedit. По теме можно посмотреть - ссылки были - здесь и здесь.
Потом видео и звук склеиваем в ВиртуалДубМод в режиме Direct Stream Copy.
Можно попробовать в одну строку
через ffmpeg:
c:\ffmpeg.exe -i "c:\movie.mp4" -ac 6 -ab 384k -acodec ac3 -vcodec mpeg4 -vb 999k "movie.avi"
Как менять в это йтсроке и какие параметры - читаем тему - много про то, как с ffmpeg с аас работать здесь есть.
Программой Yamb (по ссылке, правда, обратная задача описана) разбираешь mp4 на видео в h264 и аудио в aac.
Видео подхватываешь VirtualDubMod через Открыть файл-Use Directshowsourcce. (Желательно иметь установленный ffdshow и в его настройках VFW codec configuration-vfw decoding options->decoder->codecs->h264->libavcodec)
В VDM - video->compression->Xvid->config-> "target bitrate"= битрейту исходника. Кодируешь в два прохода.
AAC конвертишь с помощью eac3to. (И еще [url=И еще вариант]вариант[/url] архива с полным набором)
Просто через
eac3to source.aac destination.ac3
Опции
eac3to sourcefile[+sourcefile2] [trackno:] [destfile|stdout] [-options]
Examples:
eac3to source.pcm destination.flac
eac3to source.thd destination.flac destination.ac3
eac3to source.evo 1: chapters.txt 2: video.mkv 3: audio.flac 5: subtitle.sup
eac3to feature_1.evo+feature_2.evo movie.mkv
eac3to blurayMovieFolder movie.mkv
Options:
-448 use e.g. "192", "448" or "640" kbps for AC3 encoding
-768 use "768" or "1536" kbps for DTS encoding
-core extract the DTS core of a DTS-HD track
+/-100ms apply a positive or negative audio delay
+/-3dB apply a positive or negative audio gain (volume change)
-0,1,2,3,4,5 remap the channels to the specified order
-edit=0:00:00,0ms loops or removes audio data at the specified runtime
-silence/-loop forces usage of silence (or looping) for audio edits
-down6 downmix 7 or 8 channels to 6 channels
-down2 downmix multi channel audio to stereo (Dolby Pro Logic II)
-phaseShift shift phase (when doing stereo downmixing, see "down2")
-mixlfe mix LFE in (when doing stereo downmixing, see "down2")
-down16 downconvert decoded audio data to 14..23 bit
-slowdown convert 25.000 and 24.000 content to 23.976 fps
-speedup convert 23.976 and 24.000 content to 25.000 fps
-23.976/... define source fps to be "23.976", "24.000", "25.000", ...
-changeTo24.000 change source fps to "23.976", "24.000", "25.000", ...
-resampleTo48000 resample audio to "44100", "48000" or "96000" Hz
-r8brain use r8brain resampler instead of SSRC
-quality=0.50 Nero AAC encoding quality (0.00 = lowest; 1.00 = highest)
-8 define PCM file to be "1".."8" channels
-16 define PCM file to be "16" or "24" bit
-little define PCM file to be "little" or "big" endian
-96000 define PCM file to be 44100, 48000, 96000 or 192000 Hz
-override forcefully overrides PCM auto detection with manual values
-sonic/nero/... force the use of a specific decoder (not recommended)
-keepDialnorm disables dialog normalization removal (not recommended)
-decodeHdcd decodes HDCD source track (usually 16 -> 20 bit)
-demux demuxes 1st video track and all audio and subtitle tracks
-stripPulldown strips the pulldown from MPEG2 video tracks
-keepPulldown disable removal of pulldown for MPEG2, h264 and VC-1 tracks
-seekToIFrames make all h264/AVC "I" frames seekable
-check checks if the source EVO/(M2)TS file is clean.
-test checks if the external filters are installed & working
-lowPriority moves processing to background/idle priority
-shutdown automatically shutdown the PC after processing is done
Для кодировки маст хэв Nero AAC encoder. NeroAACenc должен лежать в одной директории с eac3to.exe.
Можно также перекодить через Faad, Besweet или Graphedit. По теме можно посмотреть - ссылки были - здесь и здесь.
Потом видео и звук склеиваем в ВиртуалДубМод в режиме Direct Stream Copy.
Можно попробовать в одну строку
через ffmpeg:
c:\ffmpeg.exe -i "c:\movie.mp4" -ac 6 -ab 384k -acodec ac3 -vcodec mpeg4 -vb 999k "movie.avi"
Как менять в это йтсроке и какие параметры - читаем тему - много про то, как с ffmpeg с аас работать здесь есть.
Если надо с фреймрейтом работать - загляни сюда.
[Профиль]  [ЛС] 

t-3402

Стаж: 16 лет 11 месяцев

Сообщений: 1


t-3402 · 22-Фев-10 21:38 (спустя 6 часов)

если попроще хочется перегнать MKV в AVI, xVID, DIVx можно попробовать Kingdia Video Converter есть возможность выбора формата аудио в выходном файле.
[Профиль]  [ЛС] 

drtom

Top Loader 01* 100GB

Стаж: 17 лет 7 месяцев

Сообщений: 967

drtom · 23-Фев-10 05:39 (спустя 8 часов)

Цитата:
есть возможность выбора формата аудио в выходном файле.
а параметры видео вручную задать и обработать его отдельно от аудио - есть возможность?
Цитата:
если попроще хочется
Да это тот же самый ffmpeg. Все параметры задаются в нем и так проще некуда, а проблемы автоматических конвертеров в том, что часто пытаются увязать несколько разных программ в один гуй. В итоге - лаги. Лучше уж тогда взять под тот же ffmpeg графический интерфейс - он тут несколько раз приводился ссылкой.
[Профиль]  [ЛС] 

rikon

Стаж: 16 лет 4 месяца

Сообщений: 52

rikon · 23-Фев-10 15:44 (спустя 10 часов, ред. 23-Фев-10 21:30)

drtom
это ты мне так объяснил ?????
у меня это не получится я думал можно как то проще !
ну а проще оказалось с помощью программы Xilisoft !
[Профиль]  [ЛС] 

drtom

Top Loader 01* 100GB

Стаж: 17 лет 7 месяцев

Сообщений: 967

drtom · 24-Фев-10 03:11 (спустя 11 часов)

Цитата:
у меня это не получится
Сначала все пугаются - но глаза боятся, а руки делают - выясняется, что все очень просто, и результат того стоит.
Ну, Xilisoft так Xilisoft
[Профиль]  [ЛС] 

Kirovec II

Стаж: 15 лет 10 месяцев

Сообщений: 121

Kirovec II · 28-Фев-10 17:21 (спустя 4 дня)

drtom
Чем и как корректно уменьшить размер mkv-файла с 14 до 8,5 Гб? Наверное, придется ещё и лишние потоки убирать
[Профиль]  [ЛС] 
 
Ответить
Loading...
Error