Invalid data found when processing input что делать

Ffmpeg: при обработке ввода обнаружены недопустимые данные

У меня ситуация, когда ffmpeg выдает ошибку:

Я просмотрел здесь другие ответы, но моя ситуация другая. Я создаю в Ruby текстовый файл со списком входных файлов, которые я хочу объединить в одно большое видео.

Я генерирую в Ruby команду, предназначенную для bash, которую я также могу скопировать вручную:

Когда bash запускает его, он жалуется на входной файл randoms.txt, имеющий недопустимые данные. Когда я копирую и вставляю ту же команду в bash, она работает нормально. Я не понимаю, чем они отличаются друг от друга и почему ffmpeg не доволен, когда запускается в shell.

Как я могу заставить это работать? Что мне не хватает? Ваше здоровье

Обновлено: оригинальный код ruby:

Я также пробовал system s с той же ошибкой. Синтаксис генерируется нормально, вывод работает нормально, работает нормально вручную.

Здесь неясно, как влияет Ruby. Вы запускаете это из Ruby? Если да, то где код Ruby?

Я не понимаю, почему ruby является виновником, поскольку это системный вызов от ruby, но я отредактирую сообщение.

Если это не фактор, то безопаснее просто удалить метку. Помните, что в именах файлов могут быть пробелы, поэтому из Ruby вы должен вызываете shellescape при вводе таких аргументов. Вероятно, безопаснее запускать с использованием Открыть3, чем действительно слабый метод обратных кавычек. Таким образом, вы можете указать аргументы конкретно, вместо того, чтобы оставлять их анализировать на усмотрение оболочки.

Хорошо, реализован Shellwords.escape(item) для добавления, но в файлах примеров нет пробелов. Я все еще получаю ту же ошибку.

@tadman Так же использовал open3 с той же ошибкой. stderr — та же ошибка, о которой сообщают.

Хорошая новость о open3 заключается в том, что он дает вам больше контроля над процессом, вы можете видеть, что он делает, до того, как он будет завершен, что полезно, если вы хотите сообщить о статусе. Однако, если у вас плохие входные данные, никакое количество Ruby вам не поможет. Убедитесь, что ваши файлы действительны.

@tadman Да, как я уже сказал, он отлично работает вручную. Тот же самый синтаксис, сгенерированный в самом скрипте ruby. И исходные файлы также действительны. Вот почему это так сбивает с толку.

Источник

rtsp: Invalid data found when processing input

Сообщил: sivaprasanna Владелец:
Приоритет: normal Компонент: undetermined
Версия: unspecified Ключевые слова: rtsp
Копия: Blocked By:
Blocking: Reproduced by developer: нет
Analyzed by developer: нет

Описание

I’m trying to access an RTSP livestream using ffplay. I’m using the following command

But I get an error saying «Invalid data found when processing the input». I tried debugging and this is what I got.

История изменений (15)

comment:1 by Carl Eugen Hoyos , 7 лет ago

Ключевые слова: error ffmpeg ffplay invalid data streaming removed
Компонент: ffplay → undetermined
Краткое описание: Invalid data found when processing input → rtsp: Invalid data found when processing input
Приоритет: important → normal

Is the issue only reproducible with ffplay or also with ffmpeg -i input -qscale 2 out.avi ?

How can I reproduce the issue?
Which application plays the stream?

следующий: 3 comment:2 by sivaprasanna , 7 лет ago

This issue is also with ffmpeg. I tried to save the livestream to a local file. I got the same error. I tried using -loglevel debug , but still the same issue. This is the console output that I got when I tried with debug mode.

And host was not found because you can’t access the link. The stream is available internally(within our local network) for testing purposes.

in reply to: 2 comment:3 by Carl Eugen Hoyos , 7 лет ago

And host was not found because you can’t access the link. The stream is available internally(within our local network) for testing purposes.

So how can I reproduce the issue?

comment:4 by sivaprasanna , 7 лет ago

I’m sorry I don’t know. :/ Maybe you can help me troubleshoot this issue? So that I’ll try that and report back?

comment:5 by Carl Eugen Hoyos , 7 лет ago

Where in the code does the command fail currently?

comment:6 by sivaprasanna , 7 лет ago

Since I’ve just began to work on this, I haven’t written any code so far. I’m just playing around ffplay and ffmpeg. My first command was to play the livestream. I used

It failed then and there. Later just to check whether the issue persists with ffmpeg, I used the following

Again it failed. First, I want to get this simple command working so that I can start writing code to encode the stream with .h264.

Edit: Just to check, can you please try executing this $ host videoqa.alarmnet.com . This one is for another product of us. It also uses a livestream with similar architecture and tech behind it. If that works, I can ask my colleagues to get that rtsp url and give it to you.

следующий: 8 comment:7 by Carl Eugen Hoyos , 7 лет ago

Where in the FFmpeg code does the command fail currently?

in reply to: 7 comment:8 by sivaprasanna , 7 лет ago

Where in the FFmpeg code does the command fail currently?

Sorry, but I don’t quite understand what you’re saying.

comment:9 by Carl Eugen Hoyos , 7 лет ago

You asked above:

Maybe you can help me troubleshoot this issue?

FFmpeg currently returns «Invalid data found when processing input» for your input which corresponds to a return AVERROR_INVALIDDATA; . Where in the FFmpeg source code is this return triggered?

If you can provide to provide a command line that allows me to reproduce the issue, I will try to find out where it fails.

comment:10 by sivaprasanna , 7 лет ago

FFmpeg source code? I’m sorry I don’t know about that. I just downloaded the build from here ​ http://ffmpeg.zeranoe.com/builds/ And I’m using Windows build, if that is of any help. Thank you!

comment:11 by sivaprasanna , 7 лет ago

What do you mean by FFmpeg source code? I just downloaded the windows static build from the link provided in my previous post.

comment:12 by Carl Eugen Hoyos , 7 лет ago

Решение: → needs_more_info
Состояние: new → closed

Please feel free to reopen this ticket if you can either debug the issue yourself (you have to be able to compile FFmpeg yourself to do this) or if you can provide a command line that allows a developer to reproduce the issue.

comment:13 by sivaprasanna , 7 лет ago

Okay. I just found this working live stream link. It is not rtsp though, but this stream also doesn’t work with ffplay and ffmpeg. It also throws the same «Invalid data found when processing input error». You can try out the following command.

I also tried the url with ffmpeg. I get the same «Invalid data»error. Check out the below command.

Источник

Invalid data found when processing input #23

Comments

I’m getting the following error at this line in Decoding.cs:
receivedFrame = this.FillDecodedPictureHolderFrame(&readingPacket, emptyPacket);

Trying to load an MP4 (MOV) and using the latest 32bit shared build ffmpeg build from zeranoe. I’ve also ensured the build is targeted for x86. I’ve also tried a number of various video formats.

The text was updated successfully, but these errors were encountered:

Sometimes using an older build (the one the readme states should be used) helps, as there might be discrepancies between the entry points in the wrapper and the binaries.

I can’t play any videos when running the Test app, always get the same error Invalid data found when processing input.

I’m using the binaries listed in the readme file, also tried various others and always the same exception.

The odd thing is, I can play the files fine when I specify the Source in the .xaml, it renders and plays in the Visual Studio designer xD.

Perhaps there’s an error unboxing the FFMpeg binaries from the resources?

Update: I found that this is related to FFmpeg dll unboxing. If I copy those FFmpeg stuff to the same folder as Unosquare.FFmpegMediaElement.Tests.exe , no exception is shown in VS debugging mode.

I can confirm this issue while using ffmpeg-3.2.4-win32-shared.zip .

However, the same video can be loaded smoothly outside VS (double click on the .exe).

Источник

Invalid data found when processing input #23

Comments

I’m getting the following error at this line in Decoding.cs:
receivedFrame = this.FillDecodedPictureHolderFrame(&readingPacket, emptyPacket);

Trying to load an MP4 (MOV) and using the latest 32bit shared build ffmpeg build from zeranoe. I’ve also ensured the build is targeted for x86. I’ve also tried a number of various video formats.

The text was updated successfully, but these errors were encountered:

Sometimes using an older build (the one the readme states should be used) helps, as there might be discrepancies between the entry points in the wrapper and the binaries.

I can’t play any videos when running the Test app, always get the same error Invalid data found when processing input.

I’m using the binaries listed in the readme file, also tried various others and always the same exception.

The odd thing is, I can play the files fine when I specify the Source in the .xaml, it renders and plays in the Visual Studio designer xD.

Perhaps there’s an error unboxing the FFMpeg binaries from the resources?

Update: I found that this is related to FFmpeg dll unboxing. If I copy those FFmpeg stuff to the same folder as Unosquare.FFmpegMediaElement.Tests.exe , no exception is shown in VS debugging mode.

I can confirm this issue while using ffmpeg-3.2.4-win32-shared.zip .

However, the same video can be loaded smoothly outside VS (double click on the .exe).

Источник

Как записывать веб-камеру и одновременно отображать?

Пытаюсь пристроить веб-камеру к видеонаблюдению и не все получается.

Есть команда записи:

Есть команда просмотра с камеры:

А как сделать, что бы одновременно и записывалось и воспроизводилось?

И еще в терминале каждую секунду повторяется сообщение: unable to decode APP fields: Invalid data found when processing input Оно вроде не ущемляет видео, но забивает сообщения в терминале, можно ли его как убрать?

А как сделать, что бы одновременно и записывалось и воспроизводилось?

Запусти две команды.

Оно вроде не ущемляет видео, но забивает сообщения в терминале, можно ли его как убрать?

Припиши в конец команды ’ 2> /dev/null’

Припиши в конец команды ’ 2> /dev/null’

Но тогда оно совсем ничего не сообщает. А в том и смысл, что из-за этого повторяющегося сообщения не видно других сообщений.

А как сделать, что бы одновременно и записывалось и воспроизводилось?

Через несколько секунд после начала записи, открыть записываемый файл на воспроизведение. Будет только вот эта небольшая задержка.

В принципе такая команда работает:

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

-c:a pcm_s16le не надо, конечно.

В таком виде разбивка на отрезки заработала, но без параметра loglevel, говорит что неправильный. Описание параметра loglevel говорит что немного по другому нужно, но все равно не получилось.

В параметре имени файла идет строка: «%03d» — как это расшифровывается? Если мне нужно в формате:

Можно использовать motion: sudo motion -c /path/to/motion.conf -n

В конфиге прописать

Я, правда, в таком режиме motion не использовал; скорее всего, нужны будут еще настройки. Зато никаких проблем с отдельной записью и просмотром.

Попробуй просто -loglevel fatal . Поведение может от версии ffmpeg зависеть. У тебя какая?

Это значит «три десятичные цифры с префиксными нулями». Типа 000, 001, 002, . 999, 1000, . .

Если мне нужно в формате: Год-Мес-Чис-Час-Мин-Сек

Тогда надо добавить опцию -strftime 1 и в имени использовать форматирование как в функции strftime() из сишной библиотеки: man 3 strftime . Формат для твоего шаблона будет таким: %Y-%m-%d-%H-%M-%S . Потренироваться можно на команде date в шелле. Там только перед форматом ещё + должен стоять: date +%Y-%m-%d-%H-%M-%S .

Все получилось, спасибо.

Тут обнаружилась неприятная особенность. Что при работе в таком режиме камера в итоге зависает через

3 часа. С чем связано не понятно и пока не понятно из-за того ли что в непрерывном режиме. Вебкамера Logitech B525.

при работе в таком режиме камера в итоге зависает через

это косяк «жадных» и «тупых» производителей. они ж не знали, что ты догадаешься web-камеру присобачить под видеонаблюдение… под видеонаблюдение они выпускают другие модели, но там и ценник другой ;)

короче совет такой: демонтируй оригинальный корпус – большая вероятность, что чип перегревается. делать это ты будешь на свой страх и риск. я так думаю, что финал будет один – вебка выйдет из строя. но во-первых я тебя предупредил, а во-вторых очень интересно сколько она выдержит – так, что не забудь отписаться «как и что, а главное когда»…

Источник

Adblock
detector