Error while opening source stream

При установки обновлений в облаке магазин перестал работать Магазин находится в облаке. Сегодня зашла в инсталлер и увидела много обновлений. Нажала кнопку обновить, обновления пошли по шагам последовательно. На обновлении Shop-Script (последнем) выдало ошибку , после которой магазин перестал работать не только на франтэнде, но и в бэкэнде : Установка «Shop-Script 6» Sat, 26 […]

Содержание

  1. При установки обновлений в облаке магазин перестал работать
  2. Установка «Shop-Script 6»
  3. Не устанавливается обновление шаблона
  4. Поиск: «Произошла ошибка Error while opening source stream »
  5. После запуска обновлений сайт перестал работать
  6. 12 ответов
  7. Установка «Multi-Shop (Блог)», «Multi-Shop (Сайт)»
  8. FFmpeg — Error while opening encoder for output stream #0:0
  9. 1 Answer 1
  10. Error while opening encoder
  11. The cause
  12. How to fix
  13. What you requested

При установки обновлений в облаке магазин перестал работать

Магазин находится в облаке. Сегодня зашла в инсталлер и увидела много обновлений. Нажала кнопку обновить, обновления пошли по шагам последовательно.

На обновлении Shop-Script (последнем) выдало ошибку , после которой магазин перестал работать не только на франтэнде, но и в бэкэнде :

Установка «Shop-Script 6»

Sat, 26 Sep 2015 21:56:36 +0300 Shop-Script 6 Подготовка к установке

Sat, 26 Sep 2015 21:56:36 +0300 Shop-Script 6 Резервное копирование текущей версии

При установке произошла ошибка

Вот содержание файла лога, которое предлагается при этом скачать:

2015-09-26T21:56:41+03:0000001 A63 ERROR 2,95Mb 3,02Mb download_heartbeat
Invalid server response with code 404
2015-09-26T21:56:42+03:0000002 A63 WARNING 2,95Mb 3,04Mb download_error
Error while opening source stream [http://www.webasyst.com/download/archive/wa-apps/shop/?hash=b8d08e91265b4a925ea11af7d14df3fc&domain=czE1MDcyNS02NDQuaG9zdC53ZWJhc3lzdC5jb20%3D&signature=eyJwaHAiOiI1LjQuMzciLCJjIjo4LCJhcGkiOiJhcGFjaGUyaGFuZGxlciIsIm9zIjoiTGludXgiLCJyIjoiMi42LjMyLTUwNC44LjEuZWw2Lng4Nl82NCJ9&locale=ru_RU]. Hint: for details see update log;
<————————————————————
array (
‘update_list’ =>
array (
‘wa-apps/shop’ =>
array (
‘source’ => ‘http://www.webasyst.com/download/archive/wa-apps/shop/?hash=b8d08e91265b4a925ea11af7d14df3fc&domain=czE1MDcyNS02NDQuaG9zdC53ZWJhc3lzdC5jb20%3D&signature=eyJwaHAiOiI1LjQuMzciLCJjIjo4LCJhcGkiOiJhcGFjaGUyaGFuZGxlciIsIm9zIjoiTGludXgiLCJyIjoiMi42LjMyLTUwNC44LjEuZWw2Lng4Nl82NCJ9&locale=ru_RU’,
‘target’ => ‘wa-apps/shop/’,
‘slug’ => ‘shop’,
‘md5’ => NULL,
‘pass’ => false,
‘name’ => ‘Shop-Script 6’,
‘icon’ => ‘//www.webasyst.com/wa-data/public/updates/img/29/129/icon.png’,
‘update’ => true,
‘subject’ => ‘app’,
‘edition’ => true,
‘extract_path’ => ‘wa-data/protected/wa-installer/A63/update/wa-apps/shop/’,
‘skipped’ => false,
‘dependent’ => false,
‘current_size’ => 11790010,
),
),
)
>————————————————————

Подозреваю, что рухнул целиком Shop-Script
Что делать в этой ситуации?

Источник

Не устанавливается обновление шаблона

При установке обновления возникла ошибка скачивания, вот скриншот http://take.ms/NxWP7

В целях безопасности не «светите» свой хеш в публичных местах.
Убрал его в вашем комментарии выше.

По сути проблемы – к сожалению, не знаю чем вам помочь, т.к. ошибка возникает в процессе обновления внутри Инсталлера.
Вам нужно обратиться к разработчику Инсталлера, т.е. в службу поддержки Webasyst.

У меня тоже не обновляется — Error while opening source stream [http://www.webasyst.com/download/archive/wa-apps/site/themes/prostore/? ну и куча всего разного.

Hint: for details see update log; 404 Not Found;

Верю. не вы один и не только эта тема.
Думаю, что проблема где-то в недрах инсталлера или серверов Webasyst.

Продублируйте сообщение в службу поддержки Webasyst.

Супер)))) Ну, что — ждёмс.

Так что? Обновляется?

Все ок, только что нормально обновился!

Разработка тем дизайна для Webasyst Shop-Script

119049 , Россия , Москва , Крымский вал, д.3, стр.2 , офис 308 , Карта проезда

Источник

Поиск: «Произошла ошибка Error while opening source stream »

Добрый день! Помогите понять в чем проблема: Произошла ошибка Error while opening source stream.

Добрый день! Купили плагин для установки международной доставки, а он не устанавливается, пишет ошибку: Загрузка файлов Произошла ошибка Error while opening source stream.

Добрый день, купил сегодня тему, начал ее устанавливать, он выдает ошибку, что делать:

Установка «Дизайн со вкусом PRO (Shop-Script)», «Дизайн со вкусом PRO (Сайт)» Fri, 15 Mar 2019 10:28:30 +0300 Дизайн со вкусом PRO (Сайт) Подготовка к установке Fri, 15 Mar 2019 10:28:30 +0300 Дизайн со вкусом PRO.

Здравствуйте!У меня магазин в облаке.Появилось обновление Shop-Script 6. Но установить не могу, есть 2 ошибки:1) в списке обновлений на Shop-Script 6 висит сообщение: Лицензия для этого приложения либо истекла, либо недействительна для данного.

Пытался обновить плагин SUPREME и при установке произошла ошибка: Error while opening source stream [http://www.webasyst.com/*]. Hint: for details see update log;

После запуска обновлений сайт перестал работать, выдает ERROR

Добрый день! проблема на сайте http://lr-shop.com.ua предлагает купить новую лицензию, сама лицензия у нас куплена, выдает ошибкуFatal error: Access level to shopPlugin::$settings_config must be protected (as in class waPlugin) or weaker in.

Здравствуйте!Магазин находится в облаке. Сегодня зашла в инсталлер и увидела много обновлений. Нажала кнопку обновить, обновления пошли по шагам последовательно.На обновлении Shop-Script (последнем) выдало ошибку , после которой магазин перестал.

Здравствуйте! Купили плагин «Плиточная галерея» инсталируем через инсталер, используя код активации, а он выдает ошибку и отказывается инсталироваться:Wed, 31 Jan 2018 13:03:25 +0400 Плиточная галерея (Shop-Script 7) Подготовка к установке.

При Обновление вот такой ошибка Загрузка файлов Произошла ошибка Error while opening source stream.

Оплатил приложение «задачи» но оно почему то не устанавливается. Кто подскажет в чем дело ?Пишет вот чего:Thu, 24 Dec 2015 21:18:14 +0300 Задачи (предзаказ) Подготовка к установке Thu.

Оплатила и пустила установку этого плагина,в конце появилась запись- Загрузка файлов Произошла ошибка Error while opening source stream.

Thu, 26 Oct 2017 00:25:22 +0600 Shop-Script 7 Подготовка к установке Thu, 26 Oct 2017 00:25:22 +0600 Shop-Script 7 Загрузка файлов Произошла ошибка Error while opening source stream.

Купил плагин в вашем магазине, а он не устанавливается.Tue, 19 Jun 2018 13:08:15 +1100 Скидки и наклейки для категорий (Shop-Script 7) Подготовка к установке Tue, 19 Jun 2018 13:08:15 +1100 Скидки и наклейки для категорий (Shop-Script 7) Загрузка.

Приобрел и устанавливаю через инсталлер. Выпадает ошибка:Произошла ошибка Error while opening source stream.

Добрый день, уважаемые .Возникла следующая ошибка .Unable to load template file ‘/home2/nv560538/public_html/wa-data/public/shop/themes/dsv2/searchform.html’ in ‘file:index.html’Ссылка на страницу http://mymoll.com/shop/ . Также.

Здравствуйте. Оплатил лицензию и шаблон. Мне предложило установить архив на сайт. Шоп-скрипт установился на сайт но пишет что лицензия недействительна, а так же непонятно как установить шаблон. Прошу помочь в этой ситуации. Заранее спасибо.

Источник

После запуска обновлений сайт перестал работать

После запуска обновлений сайт перестал работать, выдает ERROR

12 ответов

Обновил все, но некоторые обновления не устанавливаются, выдает ошибку, сайт продолжает не работать

Установка «Multi-Shop (Блог)», «Multi-Shop (Сайт)»

Mon, 04 Apr 2016 11:22:36 +0300 Multi-Shop (Сайт) Подготовка к установке

Mon, 04 Apr 2016 11:22:36 +0300 Multi-Shop (Блог) Подготовка к установке

Mon, 04 Apr 2016 11:22:37 +0300 Multi-Shop (Сайт) Резервное копирование текущей версии

Mon, 04 Apr 2016 11:22:42 +0300 Multi-Shop (Блог) Резервное копирование текущей версии

Mon, 04 Apr 2016 11:22:42 +0300 Multi-Shop (Сайт) Загрузка файлов Произошла ошибка Error while opening source stream [http://www.webasyst.com/download/archive/wa-apps/site/themes/multishop/?hash=afe57412012f4cdd75d7bd0e87894f13&domain=cGVyZm9ybWFuY2UuY29tLnJ1&signature=eyJwaHAiOiI1LjIuMTciLCJjIjo4LCJhcGkiOiJhcGFjaGUiLCJvcyI6IkZyZWVCU0QiLCJyIjoiOS4yLUJFVEEyIn0%3D&locale=ru_RU]. Hint: for details see update log;

При установке произошла ошибка

Нет лицензии, вот и ошибка.

Еще раз обозначу проблему. После запуска обновлений и установки бесплатного плагина сайт перестал работать. Вы написали, что нужно установить все обновления и тогда сайт заработает. Я установил все обновления, которые установились, но не установил обновления, по которым выдает ошибку и получил от Вас сейчас ответ, что не установленные обновления выдает ошибку, потому что нет лицензии. лицензия есть 5 версии, делаю вывод, что эти не устанавливаемые обновления нужны для 6 версии, но главный вопрос не решается — сайт не работает с учетом того, что по Вашим ответам я установил все обновления, которые могут установиться. Что делать?

Смотрите, вот на эту штуку у вас нет лицензии: Multi-Shop.
Версия фреймворка/магазина у вас не самая свежая. Если не вдаваться в подробности (это долго, муторно и ни к чему), то установите обновления по одному а не все сразу. Начните с фреймворка. Затем Магазин, затем еще то что обновить надо. Ну и в качестве жирной точки удалите все на что лицензии нет 🙂

Или я вас неправильно понял и вы уже все описанное мной проделали, за исключением жирной точки?

Да, все уже проделал, за исключением «жирной точки») Ща попробую

Захожу в раздел «установлено», далее на против установленного приложения «Тема дизайна «Multishop» нажимаю кнопку «удалить», после приложение не удаляется, а меня перенаправляет на раздел » Темы дизайна» — вообщем ничего не удаляет.

Приложение «Тема дизайна «Multishop» единственное, что не обновляется и которое я хочу удалить, что бы с Ваших слов сайт у меня заработал.

Для начала отключите ее для всех приложений, а вместо нее назначьте другую.
Очистите кеш.
Если есть не установленные обновления — установите их.
Очистите кеш.
Потом удаляйте.

Вообще — если дизайн нужен, почему бы не купить на него лицензию и не обновить?

Можно Вас попросить, что бы не тратить Ваше время и быстрее решить мой вопрос писать четкий путь — алгоритм, иначе мне приходится задавать Вам по 100 вопросов. Данный подход к ответам будет эффективным инструментом для оперативного решения проблем для всех(Вы, я и другие, кто столкнется с такой проблемой)

Как отключить? Как назначить? Как очистить КЭШ? Что нужно делать в будущем, что бы подобного не случалось, не устанавливать обновления? Зачем мне покупать дизайн, если меня сегодняшний устраивает и вопрос соверешнно в другом?

Напишите пжл четкий путь того, что мне нужно проделать( куда зайти, что нажать, что должно появиться, куда потом зайти и т.д

Или расскажите пжл как установить бесплатно 6 версию имея лицензию 5 версии, может это решит вопрос?

6 версию чего и лицензию 5-й версии чего?
Если Вы про Shop-Script 5 и Shop-Script 6 — то лицензий Shop-Script 5 уже не существует.
Все лицензии Shop-Script 5 автоматически и бесплатно превратились в лицензии Shop-Script 6.
Соответственно — если у Вас есть любая лицензия нового Shop-Script, то это лицензия Shop-Script 6 и обновление устанавливается через инсталлер сайта также как и все другие обновления.
Если Вы обновили фреймворк / Сайт до последней версии, а Shop-Script у вас установлен 5-й версии и не обновлен — сайт работать не будет.

Источник

FFmpeg — Error while opening encoder for output stream #0:0

What’s wrong about this command?
I want to convert a .avi format video to «video=h.264/.mp4, audio=.mp3» video.

1 Answer 1

Error while opening encoder

This message states which output stream is having an issue. In your case it is #0:0 which, according to the console output, is the video.

Also, when you get this message you can usually scroll up to see another error message that is more specific. In your output it is:

The cause

Your command is using two rate control methods: -qp and -b:v . These are mutually exclusive, and -qp is not compatible with 2pass.

How to fix

  • Don’t use 2pass, or
  • Don’t use -qp or -crf with 2pass (unless you know what you’re doing)

2pass does not mean better quality. 2pass is mostly used when you are trying to output within a specific file size limitation.

What you requested

  1. «What I want is to re-encode the video that keep the original quality»

You can’t keep the «original quality» with a lossy encoder. You’ll have to use lossless settings:

The output file will be huge, but lossless.

  1. «Could you make changes on the command to re-encode the video that keep quality as much as possible»

A -crf value of around 18 is considered to be roughly «visually lossless». It is not technically lossless, but will likely appear to be so depending on your input and how you view quality.

This can be interpreted two ways. Do you want the audio and video together in one output?

  1. «Anyway, could you pls add a aac example together?»

Источник

Following the advice here: http://drupal.org/node/990906#comment-3797942 I modified the html5_mp4.inc preset to use the -y overwrite flag. That got around the access denied error but caused a new one:

Error while opening encoder for output stream #0.0 — maybe incorrect parameters such as bit_rate, rate, width or height nice: /tmp/myvideo.mp4: Permission denied

Anyone run into this and have any suggestions?

Comments

Saoirse1916’s picture

I found a link that suggested adding «-r 29.97» to the command:

‘!cmd_path -i !videofile -an -pass 1 -vcodec libx264 -vpre slow_firstpass -b 500k -r 29.97 -threads 0 !convertfile’,
‘!cmd_path -y -i !videofile -acodec libfaac -ab 128k -pass 2 -vcodec libx264 -vpre slow -b 500k -r 29.97 -threads 0 !convertfile’

But I still have the same problem.

  • Log in or register to post comments

Saoirse1916’s picture

Here’s my latest update:

Video conversion failed for preset html5_mp4. FFMPEG reported the following output: FFmpeg version SVN-r25837, Copyright (c) 2000-2010 the FFmpeg developers built on Nov 28 2010 00:27:04 with gcc 4.1.2 20080704 (Red Hat 4.1.2-48) configuration: —enable-version3 —enable-libopencore-amrnb —enable-libopencore-amrwb —enable-libvpx —enable-libfaac —enable-libmp3lame —enable-libtheora —enable-libvorbis —enable-libx264 —enable-libxvid —disable-ffplay —enable-shared —enable-gpl —enable-postproc —enable-nonfree —enable-avfilter —enable-pthreads —extra-cflags=-fPIC libavutil 50.33. 0 / 50.33. 0 libavcore 0.14. 0 / 0.14. 0 libavcodec 52.97. 2 / 52.97. 2 libavformat 52.87. 1 / 52.87. 1 libavdevice 52. 2. 2 / 52. 2. 2 libavfilter 1.65. 0 / 1.65. 0 libswscale 0.12. 0 / 0.12. 0 libpostproc 51. 2. 0 / 51. 2. 0 Seems stream 0 codec frame rate differs from container frame rate: 59.94 (60000/1001) -> 29.97 (2997/100) Input #0, mov,mp4,m4a,3gp,3g2,mj2, from ‘sites/default/files/videos/original/Butterfly iPhone 720p.mp4’: Metadata: major_brand : M4V minor_version : 1 compatible_brands: M4V mp42isom creation_time : 2011-02-21 02:23:12 Duration: 00:02:23.72, start: 0.000000, bitrate: 1122 kb/s Stream #0.0(eng): Video: h264, yuv420p, 1280×720 [PAR 1:1 DAR 16:9], 994 kb/s, 29.97 fps, 29.97 tbr, 29970 tbn, 59.94 tbc Metadata: creation_time : 2011-02-21 02:23:12 Stream #0.1(eng): Audio: aac, 48000 Hz, stereo, s16, 125 kb/s Metadata: creation_time : 2011-02-21 02:23:12 [buffer @ 0x12105da0] w:1280 h:720 pixfmt:yuv420p [libx264 @ 0x12102270] using SAR=1/1 [libx264 @ 0x12102270] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2 [libx264 @ 0x12102270] ratecontrol_init: can’t open stats file Output #0, mp4, to ‘/tmp/Butterfly_iPhone_720p.mp4’: Stream #0.0(eng): Video: libx264, yuv420p, 1280×720 [PAR 1:1 DAR 16:9], q=10-51, pass 2, 994 kb/s, 90k tbn, 29.97 tbc Metadata: creation_time : 2011-02-21 02:23:12 Stream #0.1(eng): Audio: libfaac, 48000 Hz, stereo, s16, 128 kb/s Metadata: creation_time : 2011-02-21 02:23:12 Stream mapping: Stream #0.0 -> #0.0 Stream #0.1 -> #0.1 Error while opening encoder for output stream #0.0 — maybe incorrect parameters such as bit_rate, rate, width or height nice: /tmp/Butterfly_iPhone_720p.mp4: Permission denied

This is based on the following ffmpeg command:

‘!cmd_path -i !videofile -an -pass 1 -vcodec libx264 -vpre slow_firstpass -b 994k -r 29.97 -threads 0 !convertfile’,
‘!cmd_path -y -i !videofile -acodec libfaac -ab 128k -pass 2 -vcodec libx264 -vpre slow -b 994k -r 29.97 -threads 0 !convertfile’

I tried -b 994k because I saw that the input video listed that as its bitrate, though really the source is itself a 2-pass VBR file.

  • Log in or register to post comments

virtuali1151’s picture

I have the same error… anybody have a fix for this???

Cheers.

  • Log in or register to post comments

heshanlk’s picture

Comment #4

heshanlk

Primary language Singhalese

Location New York City

CreditAttribution: heshanlk commented 24 February 2011 at 10:44

Can you please run them by manually? cause this is depends on the FFMPEG version your using, and please check the advanced FFMPEG transcoding settings, like padding etc

  • Log in or register to post comments

virtuali1151’s picture

Heshan… do you mean the advanced settings in the UI…?? Or ffmpeg itself..??

  • Log in or register to post comments

diricia’s picture

I used the following switches for ffmpeg.

!cmd_path -y -i !videofile -acodec aac -ar 48000 -ab 128k -ac 2 -vcodec libx264 -b 1200k -cmp 256 -subq 7 -trellis 1 -refs 5 -coder 0 -me_range 16 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -bt 1200k -maxrate 1200k -bufsize 1200k -rc_eq ‘blurCplx^(1-qComp)’ -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4 -level 30 -aspect 16:9 -r 30 -g 90 !convertfile

This works on the command line to create a file, but when I create a new preset file only 2 commands execute (not 4 as is expected). No errors are shown.

  • Log in or register to post comments

heshanlk’s picture

Comment #8

heshanlk

Primary language Singhalese

Location New York City

CreditAttribution: heshanlk commented 5 May 2011 at 01:33

Status: Active » Postponed (maintainer needs more info)
  • Log in or register to post comments

jantoine’s picture

Status: Postponed (maintainer needs more info) » Active

I am having similar issues with the html5_mp4 preset.

Here is the specific error message I am receiving when trying to convert an flv to and mp4:

Video conversion failed for preset html5_mp4. FFMPEG reported the following output: FFmpeg version SVN-r0.5.1-4:0.5.1-1ubuntu1.1, Copyright (c) 2000-2009 Fabrice Bellard, et al. configuration: --extra-version=4:0.5.1-1ubuntu1.1 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --disable-stripping --disable-vhook --enable-runtime-cpudetect --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --enable-shared --disable-static libavutil 49.15. 0 / 49.15. 0 libavcodec 52.20. 1 / 52.20. 1 libavformat 52.31. 0 / 52.31. 0 libavdevice 52. 1. 0 / 52. 1. 0 libavfilter 0. 4. 0 / 0. 4. 0 libswscale 0. 7. 1 / 0. 7. 1 libpostproc 51. 2. 0 / 51. 2. 0 built on Mar 31 2011 18:59:37, gcc: 4.4.3 Seems stream 0 codec frame rate differs from container frame rate: 1000.00 (1000/1) -> 29.97 (30000/1001) Input #0, flv, from 'sites/drupal6.com/files/videos/original/nike-thread-trailer.flv': Duration: 00:02:29.18, start: 0.000000, bitrate: 547 kb/s Stream #0.0: Video: vp6f, yuv420p, 400x226, 451 kb/s, 29.97 tbr, 1k tbn, 1k tbc Stream #0.1: Audio: mp3, 44100 Hz, stereo, s16, 96 kb/s File for preset 'slow' not found 

I am running a stock ubuntu 10.04 server. Below is output from a few ffmpeg commands.
«ffmpeg -version»:

FFmpeg version SVN-r0.5.1-4:0.5.1-1ubuntu1.1, Copyright (c) 2000-2009 Fabrice Bellard, et al.
  configuration: --extra-version=4:0.5.1-1ubuntu1.1 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --disable-stripping --disable-vhook --enable-runtime-cpudetect --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --enable-shared --disable-static
  libavutil     49.15. 0 / 49.15. 0
  libavcodec    52.20. 1 / 52.20. 1
  libavformat   52.31. 0 / 52.31. 0
  libavdevice   52. 1. 0 / 52. 1. 0
  libavfilter    0. 4. 0 /  0. 4. 0
  libswscale     0. 7. 1 /  0. 7. 1
  libpostproc   51. 2. 0 / 51. 2. 0
  built on Mar 31 2011 18:59:37, gcc: 4.4.3

«ffmpeg -formats»

File formats:
  E 3g2             3GP2 format
  E 3gp             3GP format
 D  4xm             4X Technologies format
 D  IFF             IFF format
 D  ISS             Funcom ISS format
 D  MTV             MTV format
 DE RoQ             raw id RoQ format
 D  aac             raw ADTS AAC
 DE ac3             raw AC-3
  E adts            ADTS AAC
 DE aiff            Audio IFF
 DE alaw            PCM A-law format
 DE alsa            ALSA audio output
 DE amr             3GPP AMR file format
 D  apc             CRYO APC format
 D  ape             Monkey's Audio
 DE asf             ASF format
  E asf_stream      ASF format
 DE ass             SSA/ASS format
 DE au              SUN AU format
 DE avi             AVI format
  E avm2            Flash 9 (AVM2) format
 D  avs             AVS format
 D  bethsoftvid     Bethesda Softworks VID format
 D  bfi             Brute Force & Ignorance
 D  c93             Interplay C93
 D  cavsvideo       raw Chinese AVS video
  E crc             CRC testing format
 DE daud            D-Cinema audio format
 DE dirac           raw Dirac
 DE dnxhd           raw DNxHD (SMPTE VC-3)
 D  dsicin          Delphine Software International CIN format
 DE dts             raw DTS
 DE dv              DV video format
 D  dv1394          DV1394 A/V grab
  E dvd             MPEG-2 PS format (DVD VOB)
 D  dxa             DXA
 D  ea              Electronic Arts Multimedia Format
 D  ea_cdata        Electronic Arts cdata
 DE eac3            raw E-AC-3
 DE f32be           PCM 32 bit floating-point big-endian format
 DE f32le           PCM 32 bit floating-point little-endian format
 DE f64be           PCM 64 bit floating-point big-endian format
 DE f64le           PCM 64 bit floating-point little-endian format
 DE ffm             FFM (FFserver live feed) format
 D  film_cpk        Sega FILM/CPK format
 DE flac            raw FLAC
 D  flic            FLI/FLC/FLX animation format
 DE flv             FLV format
  E framecrc        framecrc testing format
  E gif             GIF Animation
 D  gsm             raw GSM
 DE gxf             GXF format
 DE h261            raw H.261
 DE h263            raw H.263
 DE h264            raw H.264 video format
 D  idcin           id Cinematic format
 DE image2          image2 sequence
 DE image2pipe      piped image2 sequence
 D  ingenient       raw Ingenient MJPEG
 D  ipmovie         Interplay MVE format
  E ipod            iPod H.264 MP4 format
 D  libdc1394       dc1394 v.2 A/V grab
 D  lmlm4           lmlm4 raw format
 DE m4v             raw MPEG-4 video format
 DE matroska        Matroska file format
 DE mjpeg           raw MJPEG video
 D  mlp             raw MLP
 D  mm              American Laser Games MM format
 DE mmf             Yamaha SMAF
  E mov             MOV format
 D  mov,mp4,m4a,3gp,3g2,mj2 QuickTime/MPEG-4/Motion JPEG 2000 format
  E mp2             MPEG audio layer 2
 DE mp3             MPEG audio layer 3
  E mp4             MP4 format
 D  mpc             Musepack
 D  mpc8            Musepack SV8
 DE mpeg            MPEG-1 System format
  E mpeg1video      raw MPEG-1 video
  E mpeg2video      raw MPEG-2 video
 DE mpegts          MPEG-2 transport stream format
 D  mpegtsraw       MPEG-2 raw transport stream format
 D  mpegvideo       raw MPEG video
  E mpjpeg          MIME multipart JPEG format
 D  msnwctcp        MSN TCP Webcam stream
 DE mulaw           PCM mu-law format
 D  mvi             Motion Pixels MVI format
 DE mxf             Material eXchange Format
  E mxf_d10         Material eXchange Format, D-10 Mapping
 D  nc              NC camera feed format
 D  nsv             Nullsoft Streaming Video
  E null            raw null video format
 DE nut             NUT format
 D  nuv             NuppelVideo format
 DE ogg             Ogg
 D  oma             Sony OpenMG audio
 DE oss             Open Sound System playback
  E psp             PSP MP4 format
 D  psxstr          Sony Playstation STR format
 D  pva             TechnoTrend PVA file and stream format
 D  r3d             REDCODE R3D format
 DE rawvideo        raw video format
  E rcv             VC-1 test bitstream
 D  redir           Redirector format
 D  rl2             RL2 format
 DE rm              RealMedia format
 D  rpl             RPL/ARMovie format
  E rtp             RTP output format
 D  rtsp            RTSP input format
 DE s16be           PCM signed 16 bit big-endian format
 DE s16le           PCM signed 16 bit little-endian format
 DE s24be           PCM signed 24 bit big-endian format
 DE s24le           PCM signed 24 bit little-endian format
 DE s32be           PCM signed 32 bit big-endian format
 DE s32le           PCM signed 32 bit little-endian format
 DE s8              PCM signed 8 bit format
 D  sdp             SDP
 D  shn             raw Shorten
 D  siff            Beam Software SIFF
 D  smk             Smacker video
 D  sol             Sierra SOL format
  E svcd            MPEG-2 PS format (VOB)
 DE swf             Flash format
 D  thp             THP
 D  tiertexseq      Tiertex Limited SEQ format
 D  tta             True Audio
 D  txd             Renderware TeXture Dictionary
 DE u16be           PCM unsigned 16 bit big-endian format
 DE u16le           PCM unsigned 16 bit little-endian format
 DE u24be           PCM unsigned 24 bit big-endian format
 DE u24le           PCM unsigned 24 bit little-endian format
 DE u32be           PCM unsigned 32 bit big-endian format
 DE u32le           PCM unsigned 32 bit little-endian format
 DE u8              PCM unsigned 8 bit format
 D  vc1             raw VC-1
 D  vc1test         VC-1 test bitstream format
  E vcd             MPEG-1 System format (VCD)
 D  video4linux     Video4Linux device grab
 D  video4linux2    Video4Linux2 device grab
 D  vmd             Sierra VMD format
  E vob             MPEG-2 PS format (VOB)
 DE voc             Creative Voice file format
 DE wav             WAV format
 D  wc3movie        Wing Commander III movie format
 D  wsaud           Westwood Studios audio format
 D  wsvqa           Westwood Studios VQA format
 D  wv              WavPack
 D  x11grab         X11grab
 D  xa              Maxis XA File Format
 DE yuv4mpegpipe    YUV4MPEG pipe format

Codecs:
 D V    4xm             4X Movie
 D V D  8bps            QuickTime 8BPS video
 D A    8svx_exp        8SVX exponential
 D A    8svx_fib        8SVX fibonacci
 D A    aac             Advanced Audio Coding
 D V D  aasc            Autodesk RLE
 DEA    ac3             ATSC A/52A (AC-3)
 D A    adpcm_4xm       ADPCM 4X Movie
 DEA    adpcm_adx       SEGA CRI ADX ADPCM
 D A    adpcm_ct        ADPCM Creative Technology
 D A    adpcm_ea        ADPCM Electronic Arts
 D A    adpcm_ea_maxis_xa ADPCM Electronic Arts Maxis CDROM XA
 D A    adpcm_ea_r1     ADPCM Electronic Arts R1
 D A    adpcm_ea_r2     ADPCM Electronic Arts R2
 D A    adpcm_ea_r3     ADPCM Electronic Arts R3
 D A    adpcm_ea_xas    ADPCM Electronic Arts XAS
 D A    adpcm_ima_amv   ADPCM IMA AMV
 D A    adpcm_ima_dk3   ADPCM IMA Duck DK3
 D A    adpcm_ima_dk4   ADPCM IMA Duck DK4
 D A    adpcm_ima_ea_eacs ADPCM IMA Electronic Arts EACS
 D A    adpcm_ima_ea_sead ADPCM IMA Electronic Arts SEAD
 D A    adpcm_ima_iss   ADPCM IMA Funcom ISS
 DEA    adpcm_ima_qt    ADPCM IMA QuickTime
 D A    adpcm_ima_smjpeg ADPCM IMA Loki SDL MJPEG
 DEA    adpcm_ima_wav   ADPCM IMA WAV
 D A    adpcm_ima_ws    ADPCM IMA Westwood
 DEA    adpcm_ms        ADPCM Microsoft
 D A    adpcm_sbpro_2   ADPCM Sound Blaster Pro 2-bit
 D A    adpcm_sbpro_3   ADPCM Sound Blaster Pro 2.6-bit
 D A    adpcm_sbpro_4   ADPCM Sound Blaster Pro 4-bit
 DEA    adpcm_swf       ADPCM Shockwave Flash
 D A    adpcm_thp       ADPCM Nintendo Gamecube THP
 D A    adpcm_xa        ADPCM CDROM XA
 DEA    adpcm_yamaha    ADPCM Yamaha
 DEA    alac            ALAC (Apple Lossless Audio Codec)
 D V    amv             AMV Video
 D A    ape             Monkey's Audio
 DEV D  asv1            ASUS V1
 DEV D  asv2            ASUS V2
 D A    atrac3          Atrac 3 (Adaptive TRansform Acoustic Coding 3)
 D V D  avs             AVS (Audio Video Standard) video
 D V    bethsoftvid     Bethesda VID video
 D V    bfi             Brute Force & Ignorance
 DEV    bmp             BMP image
 D V D  c93             Interplay C93
 D V D  camstudio       CamStudio
 D V D  camtasia        TechSmith Screen Capture Codec
 D V D  cavs            Chinese AVS video (AVS1-P2, JiZhun profile)
 D V D  cinepak         Cinepak
 D V D  cljr            Cirrus Logic AccuPak
 D A    cook            COOK
 D V D  cyuv            Creative YUV (CYUV)
 D A    dca             DCA (DTS Coherent Acoustics)
 DEV D  dnxhd           VC3/DNxHD
 D A    dsicinaudio     Delphine Software International CIN audio
 D V D  dsicinvideo     Delphine Software International CIN video
 DES    dvbsub          DVB subtitles
 DES    dvdsub          DVD subtitles
 DEV D  dvvideo         DV (Digital Video)
 D V    dxa             Feeble Files/ScummVM DXA
 D A    eac3            ATSC A/52B (AC-3, E-AC-3)
 D V D  eacmv           Electronic Arts CMV video
 D V D  eatgq           Electronic Arts TGQ video
 D V    eatgv           Electronic Arts TGV video
 D V D  eatqi           Electronic Arts TQI Video
 D V D  escape124       Escape 124
 DEV D  ffv1            FFmpeg codec #1
 DEVSD  ffvhuff         Huffyuv FFmpeg variant
 DEA    flac            FLAC (Free Lossless Audio Codec)
 DEV D  flashsv         Flash Screen Video
 D V D  flic            Autodesk Animator Flic video
 DEVSD  flv             Flash Video (FLV)
 D V D  fraps           Fraps
 DEA    g726            G.726 ADPCM
 DEV    gif             GIF (Graphics Interchange Format)
 DEV D  h261            H.261
 DEVSDT h263            H.263 / H.263-1996
 D VSD  h263i           Intel H.263
  EV    h263p           H.263+ / H.263-1998 / H.263 version 2
 D V D  h264            H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
 D V D  h264_vdpau      H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 (VDPAU acceleration)
 DEVSD  huffyuv         Huffyuv / HuffYUV
 D V D  idcinvideo      id Quake II CIN video
 D A    imc             IMC (Intel Music Coder)
 D V D  indeo2          Intel Indeo 2
 D V    indeo3          Intel Indeo 3
 D A    interplay_dpcm  DPCM Interplay
 D V D  interplayvideo  Interplay MVE video
 DEV D  jpegls          JPEG-LS
 D V    kmvc            Karl Morton's video codec
 DEA    libgsm          libgsm GSM
 DEA    libgsm_ms       libgsm GSM Microsoft variant
 DEV    libschroedinger libschroedinger Dirac 2.2
 D A    libspeex        libspeex Speex
  EV    libtheora       libtheora Theora
  EA    libvorbis       libvorbis Vorbis
  EV    ljpeg           Lossless JPEG
 D V D  loco            LOCO
 D A    mace3           MACE (Macintosh Audio Compression/Expansion) 3:1
 D A    mace6           MACE (Macintosh Audio Compression/Expansion) 6:1
 D V D  mdec            Sony PlayStation MDEC (Motion DECoder)
 D V D  mimic           Mimic
 DEV D  mjpeg           MJPEG (Motion JPEG)
 D V D  mjpegb          Apple MJPEG-B
 D A    mlp             MLP (Meridian Lossless Packing)/TrueHD
 D V D  mmvideo         American Laser Games MM Video
 D V D  motionpixels    Motion Pixels video
 D A    mp1             MP1 (MPEG audio layer 1)
 DEA    mp2             MP2 (MPEG audio layer 2)
 D A    mp3             MP3 (MPEG audio layer 3)
 D A    mp3adu          ADU (Application Data Unit) MP3 (MPEG audio layer 3)
 D A    mp3on4          MP3onMP4
 D A    mpc7            Musepack SV7
 D A    mpc8            Musepack SV8
 DEVSDT mpeg1video      MPEG-1 video
 D V DT mpeg1video_vdpau MPEG-1 video (VDPAU acceleration)
 DEVSDT mpeg2video      MPEG-2 video
 DEVSDT mpeg4           MPEG-4 part 2
 D VSDT mpegvideo       MPEG-1 video
 D V DT mpegvideo_vdpau MPEG-1/2 video (VDPAU acceleration)
 D VSDT mpegvideo_xvmc  MPEG-1/2 video XvMC (X-Video Motion Compensation)
 DEVSD  msmpeg4         MPEG-4 part 2 Microsoft variant version 3
 DEVSD  msmpeg4v1       MPEG-4 part 2 Microsoft variant version 1
 DEVSD  msmpeg4v2       MPEG-4 part 2 Microsoft variant version 2
 D V D  msrle           Microsoft RLE
 D V D  msvideo1        Microsoft Video 1
 D V D  mszh            LCL (LossLess Codec Library) MSZH
 DEA    nellymoser      Nellymoser Asao
 D V D  nuv             NuppelVideo/RTJPEG
 DEV    pam             PAM (Portable AnyMap) image
 DEV    pbm             PBM (Portable BitMap) image
 DEA    pcm_alaw        PCM A-law
 D A    pcm_dvd         PCM signed 20|24-bit big-endian
 DEA    pcm_f32be       PCM 32-bit floating point big-endian
 DEA    pcm_f32le       PCM 32-bit floating point little-endian
 DEA    pcm_f64be       PCM 64-bit floating point big-endian
 DEA    pcm_f64le       PCM 64-bit floating point little-endian
 DEA    pcm_mulaw       PCM mu-law
 DEA    pcm_s16be       PCM signed 16-bit big-endian
 DEA    pcm_s16le       PCM signed 16-bit little-endian
 D A    pcm_s16le_planar PCM 16-bit little-endian planar
 DEA    pcm_s24be       PCM signed 24-bit big-endian
 DEA    pcm_s24daud     PCM D-Cinema audio signed 24-bit
 DEA    pcm_s24le       PCM signed 24-bit little-endian
 DEA    pcm_s32be       PCM signed 32-bit big-endian
 DEA    pcm_s32le       PCM signed 32-bit little-endian
 DEA    pcm_s8          PCM signed 8-bit
 DEA    pcm_u16be       PCM unsigned 16-bit big-endian
 DEA    pcm_u16le       PCM unsigned 16-bit little-endian
 DEA    pcm_u24be       PCM unsigned 24-bit big-endian
 DEA    pcm_u24le       PCM unsigned 24-bit little-endian
 DEA    pcm_u32be       PCM unsigned 32-bit big-endian
 DEA    pcm_u32le       PCM unsigned 32-bit little-endian
 DEA    pcm_u8          PCM unsigned 8-bit
 DEA    pcm_zork        PCM Zork
 D V    pcx             PC Paintbrush PCX image
 DEV    pgm             PGM (Portable GrayMap) image
 DEV    pgmyuv          PGMYUV (Portable GrayMap YUV) image
 DEV    png             PNG image
 DEV    ppm             PPM (Portable PixelMap) image
 D V    ptx             V.Flash PTX image
 D A    qcelp           QCELP / PureVoice
 D A    qdm2            QDesign Music Codec 2
 D V D  qdraw           Apple QuickDraw
 D V D  qpeg            Q-team QPEG
 DEV D  qtrle           QuickTime Animation (RLE) video
 DEV    rawvideo        raw video
 D A    real_144        RealAudio 1.0 (14.4K)
 D A    real_288        RealAudio 2.0 (28.8K)
 D V D  rl2             RL2 video
 DEA    roq_dpcm        id RoQ DPCM
 DEV D  roqvideo        id RoQ video
 D V D  rpza            QuickTime video (RPZA)
 DEV D  rv10            RealVideo 1.0
 DEV D  rv20            RealVideo 2.0
 D V D  rv30            RealVideo 3.0
 D V D  rv40            RealVideo 4.0
 DEV    sgi             SGI image
 D A    shorten         Shorten
 D A    smackaud        Smacker audio
 D V    smackvid        Smacker video
 D V D  smc             QuickTime Graphics (SMC)
 DEV    snow            Snow
 D A    sol_dpcm        DPCM Sol
 DEA    sonic           Sonic
  EA    sonicls         Sonic lossless
 D V D  sp5x            Sunplus JPEG (SP5X)
 D V    sunrast         Sun Rasterfile image
 DEV D  svq1            Sorenson Vector Quantizer 1
 D VSD  svq3            Sorenson Vector Quantizer 3
 DEV    targa           Truevision Targa image
 D V    theora          Theora
 D V D  thp             Nintendo Gamecube THP video
 D V D  tiertexseqvideo Tiertex Limited SEQ video
 DEV    tiff            TIFF image
 D V D  truemotion1     Duck TrueMotion 1.0
 D V D  truemotion2     Duck TrueMotion 2.0
 D A    truespeech      DSP Group TrueSpeech
 D A    tta             True Audio (TTA)
 D V    txd             Renderware TXD (TeXture Dictionary) image
 D V D  ultimotion      IBM UltiMotion
 D V    vb              Beam Software VB
 D V    vc1             SMPTE VC-1
 D V D  vc1_vdpau       SMPTE VC-1 VDPAU
 D V D  vcr1            ATI VCR1
 D A    vmdaudio        Sierra VMD audio
 D V D  vmdvideo        Sierra VMD video
 D V    vmnc            VMware Screen Codec / VMware Video
 DEA    vorbis          Vorbis
 D V    vp3             On2 VP3
 D V D  vp5             On2 VP5
 D V D  vp6             On2 VP6
 D V D  vp6a            On2 VP6 (Flash version, with alpha channel)
 D V D  vp6f            On2 VP6 (Flash version)
 D V D  vqavideo        Westwood Studios VQA (Vector Quantized Animation) video
 D A    wavpack         WavPack
 DEA    wmav1           Windows Media Audio 1
 DEA    wmav2           Windows Media Audio 2
 DEVSD  wmv1            Windows Media Video 7
 DEVSD  wmv2            Windows Media Video 8
 D V    wmv3            Windows Media Video 9
 D V D  wmv3_vdpau      Windows Media Video 9 VDPAU
 D V D  wnv1            Winnov WNV1
 D A    ws_snd1         Westwood Audio (SND1)
 D A    xan_dpcm        DPCM Xan
 D V D  xan_wc3         Wing Commander III / Xan
 D V D  xl              Miro VideoXL
 D S    xsub            XSUB
 DEV D  zlib            LCL (LossLess Codec Library) ZLIB
 DEV    zmbv            Zip Motion Blocks Video

Bitstream filters:
 text2movsub remove_extra noise mov2textsub mp3decomp mp3comp mjpegadump imxdump h264_mp4toannexb dump_extra
Supported file protocols:
 file: gopher: http: pipe: rtp: tcp: udp:
Frame size, frame rate abbreviations:
 ntsc pal qntsc qpal sntsc spal film ntsc-film sqcif qcif cif 4cif

Note, the names of encoders and decoders do not always match, so there are
several cases where the above table shows encoder only or decoder only entries
even though both encoding and decoding are supported. For example, the h263
decoder corresponds to the h263 and h263p encoders, for file formats it is even
worse.

I have tried both padding options with the same results. What additional information would you like?

Cheers,

Antoine

  • Log in or register to post comments

jantoine’s picture

Found out that my issues was a little different than the original. In my case, the html5_mp4 preset assumes the machine has a ffmpeg preset ‘slow’. Apparently Ubuntu 10.04 does not come with this ffmpeg preset as the text «File for preset ‘slow’ not found» from my error indicates. I now understand that the module has presets and ffmpeg has its own presets as well!

Cheers,

Antoine

  • Log in or register to post comments

naeluh’s picture

  • Log in or register to post comments

Jorrit’s picture

Status: Active » Closed (works as designed)

Try compiling ffmpeg yourself. Recent release notes have links to guides to achieve this. You can also try to not use 2-pass encoding.

  • Log in or register to post comments

kourosh.a’s picture

I have the same issue. Has anyone found a solution ?!

  • Log in or register to post comments

Jorrit’s picture

Please post the entire output of FFmpeg.

  • Log in or register to post comments

kourosh.a’s picture

Hi Jorrit,

Thanks for your reply. Here is the full output:

ffmpeg version git-N-30656-g23a29a3-Sherpya, Copyright (c) 2000-2011 the FFmpeg developers
built on Jun 9 2011 03:51:14 with gcc 4.2.5 20090330 (prerelease) [Sherpya]
libavutil 51. 7. 0 / 51. 7. 0
libavcodec 53. 6. 1 / 53. 6. 1
libavformat 53. 2. 0 / 53. 2. 0
libavdevice 53. 1. 1 / 53. 1. 1
libavfilter 2. 14. 1 / 2. 14. 1
libswscale 0. 14. 1 / 0. 14. 1
libpostproc 51. 2. 0 / 51. 2. 0

Seems stream 0 codec frame rate differs from container frame rate: 180000.00 (180000/1) -> 90000.00 (180000/2)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from ‘D:9633_vid_20120403_104740.mp4’:
Metadata:
major_brand : isom
minor_version : 0
compatible_brands: isom3gp4
Duration: 00:02:43.05, start: 0.000000, bitrate: 8115 kb/s
Stream #0.0(eng): Video: h264 (Baseline), yuv420p, 1280×720, 8004 kb/s, PAR 65536:65536 DAR 16:9, 30 fps, 90k tbr, 90k tbn, 180k tbc
Stream #0.1(eng): Audio: aac, 48000 Hz, mono, s16, 96 kb/s
[buffer @ 01d179a0] w:1280 h:720 pixfmt:yuv420p tb:1/1000000 sar:65536/65536 sws_param:
[scale @ 01daaec0] w:1280 h:720 fmt:yuv420p -> w:480 h:270 fmt:yuv420p flags:0x4
[libx264 @ 01e00760] using SAR=1/1
[libx264 @ 01e00760] MB rate (45900000) > level limit (983040)
[libx264 @ 01e00760] using cpu capabilities: MMX2 SSE2 SSE3 Cache64
[libx264 @ 01e00760] MB-tree doesn’t support different resolution than 1st pass (480×270 vs 480×360)
Output #0, mp4, to ‘D:media/convert/9633_vid_20120403_104740.mp4’:
Stream #0.0(eng): Video: libx264, yuv420p, 480×270 [PAR 1:1 DAR 16:9], q=10-51, pass 2, 256 kb/s, 90k tbn, 90k tbc
Stream #0.1(eng): Audio: libfaac, 22500 Hz, 2 channels, s16, 128 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Stream #0.1 -> #0.1
Error while opening encoder for output stream #0.0 — maybe incorrect parameters such as bit_rate, rate, width or height

  • Log in or register to post comments

Jorrit’s picture

Thanks. There seems to be a problem where the resolution for your first pass command is different from the resolution for your second pass command («MB-tree doesn’t support different resolution than 1st pass (480×270 vs 480×360)»).

Please post your Video module version and the commands that you have entered.

  • Log in or register to post comments

kourosh.a’s picture

Hi Jorrit, This is the commands:

IF «%4» == «» SET RA= -r 25
IF NOT «%4» == «» SET RA= -r %4

IF «%5» == «» SET FR= -g 50
IF NOT «%5» == «» SET FR= -g %5

c:ffmpegffmpeg.exe -i %1 -vcodec libx264 -b 256000 -coder 1 -flags +loop -cmp +chroma -partitions -parti8x8-parti4x4-partp8x8-partp4x4-partb8x8 -me_method dia -subq 3 -me_range 16%RA%%FR% -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -b_strategy 1 -qcomp 0.7 -qmin 10 -qmax 51 -qdiff 4 -bf 16 -refs 6 -directpred 3 -bidir_refine 0 -trellis 2 -flags2 +bpyramid-wpred-mixed_refs-dct8x8+fastpskip -deblockalpha 0 -deblockbeta 0 -threads 6 -pass 1 -s 480×270 -aspect 480:270 -an -f rawvideo -y NUL 2>%2.txt

c:ffmpegffmpeg.exe -y -i %1 -vcodec libx264 -b 256000 -coder 1 -flags +loop -cmp +chroma -partitions +parti8x8+parti4x4+partp8x8+partb8x8 -me_method umh -subq 7 -me_range 16%RA%%FR% -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -b_strategy 1 -qcomp 0.7 -qmin 10 -qmax 51 -qdiff 4 -bf 16 -refs 6 -directpred 3 -bidir_refine 1 -trellis 2 -flags2 +bpyramid+wpred+mixed_refs-dct8x8+fastpskip -deblockalpha 0 -deblockbeta 0 -threads 6 -pass 2 -s 480×270 -aspect 480:270 -acodec libfaac -ac 2 -ar 22050 -ab 128k %2 2>%2-2.txt

  • Log in or register to post comments

Jorrit’s picture

Please post your Video module version

  • Log in or register to post comments

agarwal.sudhanshu’s picture

Version: 6.x-4.2-beta2 » 7.x-2.9

Hi,

I am facing the same issue on drupal module video-7.x-2.10

PHPVideoToolkit error: Execute error. It was not possible to encode «/public_html/drupal/sites/default/files/videos/original/MVI_0572.AVI» as FFmpeg returned an error. Note, however the error was encountered on the second pass of the encoding process and the first pass appear to go fine. The error is with the video codec of the input file. FFmpeg reports the error to be «Error while opening encoder for output stream #0.0 — maybe incorrect parameters such as bit_rate, rate, width or height».

/usr/bin/ffmpeg -i '/public_html/drupal/sites/default/files/videos/original/MVI_0572.AVI' -strict experimental -vcodec 'flv' -s '320x240' -acodec 'aac' -ac '2' -pass '1' -passlogfile '/public_html/drupal/sites/default/files/tmp/1368955969-51989c41d7245-multipass'  -y //public_html/drupal/sites/default/files/tmp/1368955969-51989c41d7136.flv
FFmpeg version 0.6.5, Copyright (c) 2000-2010 the FFmpeg developers
  built on Jan 29 2012 17:52:15 with gcc 4.4.5 20110214 (Red Hat 4.4.5-6)
  configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --incdir=/usr/include --disable-avisynth --extra-cflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fPIC' --enable-avfilter --enable-avfilter-lavf --enable-libdc1394 --enable-libdirac --enable-libfaac --enable-libfaad --enable-libfaadbin --enable-libgsm --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libx264 --enable-gpl --enable-nonfree --enable-postproc --enable-pthreads --enable-shared --enable-swscale --enable-vdpau --enable-version3 --enable-x11grab
  libavutil     50.15. 1 / 50.15. 1
  libavcodec    52.72. 2 / 52.72. 2
  libavformat   52.64. 2 / 52.64. 2
  libavdevice   52. 2. 0 / 52. 2. 0
  libavfilter    1.19. 0 /  1.19. 0
  libswscale     0.11. 0 /  0.11. 0
  libpostproc   51. 2. 0 / 51. 2. 0
[avi @ 0x84b670]non-interleaved AVI
Input #0, avi, from '/public_html/drupal/sites/default/files/videos/original/MVI_0572.AVI':
  Metadata:
    ISFT            : CanonMVI06
  Duration: 00:00:00.99, start: 0.000000, bitrate: 5773 kb/s
    Stream #0.0: Video: mjpeg, yuvj422p, 320x240, 30 tbr, 30 tbn, 30 tbc
    Stream #0.1: Audio: pcm_s16le, 44100 Hz, 1 channels, s16, 705 kb/s
Output #0, flv, to '/public_html/drupal/sites/default/files/tmp/1368955969-51989c41d7136.flv':
  Metadata:
    encoder         : Lavf52.64.2
    Stream #0.0: Video: flv, yuv420p, 320x240, q=2-31, pass 1, 200 kb/s, 1k tbn, 30 tbc
    Stream #0.1: Audio: libfaac, 44100 Hz, 2 channels, s16, 64 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
Press [q] to stop encoding
frame=   19 fps=  0 q=18.9 size=      90kB time=0.60 bitrate=1226.1kbits/s    
frame=   30 fps=  0 q=21.5 Lsize=     109kB time=1.00 bitrate= 891.2kbits/s
video:102kB audio:5kB global headers:0kB muxing overhead 1.402682%
/usr/bin/ffmpeg -i '/public_html/drupal/sites/default/files/videos/original/MVI_0572.AVI' -strict experimental -vcodec 'flv' -s '320x240' -acodec 'aac' -ac '2' -pass '2' -passlogfile '/public_html/drupal/sites/default/files/tmp/1368955969-51989c41d7245-multipass'  -y /public_html/drupal/sites/default/files/tmp/1368955969-51989c41d7136.flv
FFmpeg version 0.6.5, Copyright (c) 2000-2010 the FFmpeg developers
  built on Jan 29 2012 17:52:15 with gcc 4.4.5 20110214 (Red Hat 4.4.5-6)
  configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --incdir=/usr/include --disable-avisynth --extra-cflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fPIC' --enable-avfilter --enable-avfilter-lavf --enable-libdc1394 --enable-libdirac --enable-libfaac --enable-libfaad --enable-libfaadbin --enable-libgsm --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libx264 --enable-gpl --enable-nonfree --enable-postproc --enable-pthreads --enable-shared --enable-swscale --enable-vdpau --enable-version3 --enable-x11grab
  libavutil     50.15. 1 / 50.15. 1
  libavcodec    52.72. 2 / 52.72. 2
  libavformat   52.64. 2 / 52.64. 2
  libavdevice   52. 2. 0 / 52. 2. 0
  libavfilter    1.19. 0 /  1.19. 0
  libswscale     0.11. 0 /  0.11. 0
  libpostproc   51. 2. 0 / 51. 2. 0
[avi @ 0xc63670]non-interleaved AVI
Input #0, avi, from '/public_html/drupal/sites/default/files/videos/original/MVI_0572.AVI':
  Metadata:
    ISFT            : CanonMVI06
  Duration: 00:00:00.99, start: 0.000000, bitrate: 5773 kb/s
    Stream #0.0: Video: mjpeg, yuvj422p, 320x240, 30 tbr, 30 tbn, 30 tbc
    Stream #0.1: Audio: pcm_s16le, 44100 Hz, 1 channels, s16, 705 kb/s
[flv @ 0xc67ad0][lavc rc] Error: bitrate too low for this video with these parameters.
Output #0, flv, to '/public_html/drupal/sites/default/files/tmp/1368955969-51989c41d7136.flv':
    Stream #0.0: Video: flv, yuv420p, 320x240, q=2-31, pass 2, 200 kb/s, 90k tbn, 30 tbc
    Stream #0.1: Audio: libfaac, 44100 Hz, 2 channels, s16, 64 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
Error while opening encoder for output stream #0.0 - maybe incorrect parameters such as bit_rate, rate, width or height

please help.

Thanks
Sudhanshu

  • Log in or register to post comments

Current behavior:

Tests doesn’t run without the GUI because of the error with video capture.

$ DEBUG=cypress:server:video node_modules/.bin/cypress run

====================================================================================================

  (Run Starting)

  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  │ Cypress:    3.1.4                                                                              │
  │ Browser:    Electron 59 (headless)                                                             │
  │ Specs:      1 found (ordering.spec.js)                                                         │
  │ Searched:   cypress/integration/ordering.spec.js                                               │
  └────────────────────────────────────────────────────────────────────────────────────────────────┘


────────────────────────────────────────────────────────────────────────────────────────────────────

  Running: ordering.spec.js...                                                             (1 of 1)
  cypress:server:video capture started { command: 'ffmpeg -n 20 /home/yuri/.cache/Cypress/3.1.4/Cypress/resources/app/packages/server/node_modules/@ffmpeg-installer/linux-x64/ffmpeg -f image2pipe -use_wallclock_as_timestamps 1 -i pipe:0 -y -vcodec libx264 -preset ultrafast /srv/http/s1/cypress/videos/ordering.spec.js.mp4' } +0ms
  cypress:server:video capture stderr log { message: 'ffmpeg version N-45896-g19c3df0cd-static https://johnvansickle.com/ffmpeg/  Copyright (c) 2000-2018 the FFmpeg developers' } +3ms
  cypress:server:video capture stderr log { message: '  built with gcc 6.3.0 (Debian 6.3.0-18+deb9u1) 20170516' } +1ms
  cypress:server:video capture stderr log { message: '  configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc-6 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gray --enable-libaom --enable-libfribidi --enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-libsoxr --enable-libspeex --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg' } +0ms
  cypress:server:video capture stderr log { message: '  libavutil      56. 17.100 / 56. 17.100' } +0ms
  cypress:server:video capture stderr log { message: '  libavcodec     58. 19.100 / 58. 19.100' } +1ms
  cypress:server:video capture stderr log { message: '  libavformat    58. 13.100 / 58. 13.100' } +0ms
  cypress:server:video capture stderr log { message: '  libavdevice    58.  4.100 / 58.  4.100' } +0ms
  cypress:server:video capture stderr log { message: '  libavfilter     7. 20.100 /  7. 20.100' } +0ms
  cypress:server:video capture stderr log { message: '  libswscale      5.  2.100 /  5.  2.100' } +0ms
  cypress:server:video capture stderr log { message: '  libswresample   3.  2.100 /  3.  2.100' } +0ms
  cypress:server:video capture stderr log { message: '  libpostproc    55.  2.100 / 55.  2.100' } +13ms
  cypress:server:video capture stderr log { message: '[mjpeg @ 0x6883000] EOI missing, emulating' } +370ms


  ordering
  cypress:server:video capture stderr log { message: 'Input #0, image2pipe, from 'pipe:0':' } +7s
  cypress:server:video capture stderr log { message: '  Duration: N/A, start: 1550258710.960000, bitrate: N/A' } +0ms
  cypress:server:video capture stderr log { message: '    Stream #0:0: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 1023x575 [SAR 1:1 DAR 1023:575], 25 fps, 25 tbr, 25 tbn, 25 tbc' } +0ms
  cypress:server:video capture stderr log { message: 'Stream mapping:' } +1ms
  cypress:server:video capture codec data: { format: 'image2pipe', audio: '', video: 'mjpeg', duration: 'N/A', video_details: [ 'mjpeg', 'yuvj420p(pc', 'bt470bg/unknown/unknown)', '1023x575 [SAR 1:1 DAR 1023:575]', '25 fps', '25 tbr', '25 tbn', '25 tbc' ] } +0ms
  cypress:server:video capture stderr log { message: '  Stream #0:0 -> #0:0 (mjpeg (native) -> h264 (libx264))' } +3ms
  cypress:server:video capture stderr log { message: '[libx264 @ 0x6887a00] width not divisible by 2 (1023x575)' } +3ms
  cypress:server:video capture stderr log { message: 'Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height' } +0ms
  cypress:server:video capture stderr log { message: 'Conversion failed!' } +2ms
  cypress:server:video capture stderr log { message: '' } +1ms
  cypress:server:video capture errored: { error: 'ffmpeg exited with code 1: Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or heightnConversion failed!n', stdout: '', stderr: 'ffmpeg version N-45896-g19c3df0cd-static https://johnvansickle.com/ffmpeg/  Copyright (c) 2000-2018 the FFmpeg developersn  built with gcc 6.3.0 (Debian 6.3.0-18+deb9u1) 20170516n  configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc-6 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gray --enable-libaom --enable-libfribidi --enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-libsoxr --enable-libspeex --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimgn  libavutil      56. 17.100 / 56. 17.100n  libavcodec     58. 19.100 / 58. 19.100n  libavformat    58. 13.100 / 58. 13.100n  libavdevice    58.  4.100 / 58.  4.100n  libavfilter     7. 20.100 /  7. 20.100n  libswscale      5.  2.100 /  5.  2.100n  libswresample   3.  2.100 /  3.  2.100n  libpostproc    55.  2.100 / 55.  2.100n[mjpeg @ 0x6883000] EOI missing, emulatingnInput #0, image2pipe, from 'pipe:0':n  Duration: N/A, start: 1550258710.960000, bitrate: N/An    Stream #0:0: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 1023x575 [SAR 1:1 DAR 1023:575], 25 fps, 25 tbr, 25 tbn, 25 tbcnStream mapping:n  Stream #0:0 -> #0:0 (mjpeg (native) -> h264 (libx264))n[libx264 @ 0x6887a00] width not divisible by 2 (1023x575)nError initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or heightnConversion failed!n' } +1ms
Warning: We failed to record the video.

This error will not alter the exit code.

Error: ffmpeg exited with code 1: Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
Conversion failed!

    at ChildProcess.<anonymous> (/home/yuri/.cache/Cypress/3.1.4/Cypress/resources/app/packages/server/node_modules/fluent-ffmpeg/lib/processor.js:182:22)
    at emitTwo (events.js:125:13)
    at ChildProcess.emit (events.js:213:7)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)

{ Error: ffmpeg exited with code 1: Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
Conversion failed!

    at ChildProcess.<anonymous> (/home/yuri/.cache/Cypress/3.1.4/Cypress/resources/app/packages/server/node_modules/fluent-ffmpeg/lib/processor.js:182:22)
    at emitTwo (events.js:125:13)
    at ChildProcess.emit (events.js:213:7)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
 recordingVideoFailed: true }
Error: ffmpeg exited with code 1: Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
Conversion failed!

    at ChildProcess.<anonymous> (/home/yuri/.cache/Cypress/3.1.4/Cypress/resources/app/packages/server/node_modules/fluent-ffmpeg/lib/processor.js:182:22)
    at emitTwo (events.js:125:13)
    at ChildProcess.emit (events.js:213:7)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
$ xrandr
Screen 0: minimum 8 x 8, current 1024 x 576, maximum 32767 x 32767
eDP1 connected primary 1024x576+0+0 (normal left inverted right x axis y axis) 290mm x 170mm
   1920x1080     60.00 +  59.93    40.00  
   1680x1050     59.88  
   1400x1050     59.98  
   1600x900      60.00    59.95    59.82  
   1280x1024     60.02  
   1400x900      59.96    59.88  
   1280x960      60.00  
   1368x768      60.00    59.88    59.85  
   1280x800      59.81    59.91  
   1280x720      59.86    60.00    59.74  
   1024x768      60.00  
   1024x576      60.00*   59.90    59.82  
   960x540       60.00    59.63    59.82  
   800x600       60.32    56.25  
   864x486       60.00    59.92    59.57  
   640x480       59.94  
   720x405       59.51    60.00    58.99  
   640x360       59.84    59.32    60.00  
DP1 disconnected (normal left inverted right x axis y axis)
HDMI1 disconnected (normal left inverted right x axis y axis)
HDMI2 disconnected (normal left inverted right x axis y axis)
VIRTUAL1 disconnected (normal left inverted right x axis y axis)

Desired behavior:

Tests run.

And by the way, isn’t it supposed to run all the tests even if it can’t record the video?

Steps to reproduce: (app code and test code)

Run the following test without GUI:

describe('My First Test', function() {
  it('Visits the Kitchen Sink', function() {
    cy.wait(3000);   // or more to make it finish abnormally (prematurely)
    // low values still produce an error, but tests continue to run
  })
})

If your screen resolution is greater than 1280×720. Otherwise:

$ xvfb-run -s '-screen 0 1280x720x24' npx cypress run

electron bug: Screen dimensions are off by one pixel in offscreen mode.

Workarounds

$ xvfb-run -s '-screen 0 1280x800x24' npx cypress run

Add .outputOptions("-vf pad=ceil(iw/2)*2:ceil(ih/2)*2") after the following line. Based on the following Stack Overflow answer. This fixes it for me.

Or probably .videoFilter('pad=ceil(iw/2)*2:ceil(ih/2)*2').

Versions

cypress-3.1.4, Arch Linux, Electron 59 (headless)

Понравилась статья? Поделить с друзьями:
  • Error while opening sound device audacity что делать
  • Error while opening registry key equalizer apo
  • Error while opening mysql settings file error code 1
  • Error while opening activation file ошибка при декодировании заполнения oaep
  • Error while open source file