Directshowplayerservice doseturlsource unresolved error code 0x80040216

HI! I'm new to QT and I'm trying to understand how to play video. I'm trying to play a video on a dialog that I open throught "Menubar" in my MainWindow. When I click on the voice, that it should show my dialog with window, it shows this message on the co...

This topic has been deleted. Only users with topic management privileges can see it.

  • HI! I’m new to QT and I’m trying to understand how to play video.

    I’m trying to play a video on a dialog that I open throught «Menubar» in my MainWindow.
    When I click on the voice, that it should show my dialog with window, it shows this message on the console: DirectShowPlayerService::doSetUrlSource: Unresolved error code 0x80040216 ()
    This is the code in video.cpp:

    #include "video.h"
    #include "ui_video.h"
    
    #include <QMediaPlayer>
    #include <QVideoWidget>
    
    Video::Video(QWidget *parent) :
        QDialog(parent),
        ui(new Ui::Video)
    {
        ui->setupUi(this);
        setWindowTitle("Video");
    
        QMediaPlayer *player = new QMediaPlayer;
        QVideoWidget *vw = new QVideoWidget;
    
        player->setVideoOutput(vw);
        player->setMedia(QUrl::fromLocalFile("Strada.mp4"));
    
        vw->setGeometry(400,300,300,400);
        vw->show();
    
        player->play();
    }
    
    Video::~Video()
    {
        delete ui;
    }
    

    And this how I open the dialog in MainWindows.cpp:

    void MainWindow::on_actionVideo_triggered()
    {
        Video vd;
        vd.exec();
    }
    

    What am I doing wrong?

  • @aim0d said in Show Video on dialog:

    player->setMedia(QUrl::fromLocalFile("Strada.mp4"));

    Replace "Strada.mp4" with the full path to that file, and try again. See e.g. https://stackoverflow.com/questions/65886167/how-to-solve-qt-unresolved-error-code-0x80040216

  • @JonB I’m gonna try it, thanks
    I just wrote the name of the video because I put it in the project directory and thought it was enought.

  • @aim0d said in Show Video on dialog:

    I put it in the project directory and thought it was enought

    No, it needs to be in the current working directory of your application if you only wantr to use the file name. By default the build folder where the executable is will be the working directory. But you should never trust such assumptions! So, do not use relative paths but construct the path, see https://doc.qt.io/qt-6/qstandardpaths.html

  • @jsulm I tried changing the path, as u told me (also trying the one in the stackoverflow answer) but still same error :(

  • I dont get it; even if I try this example i get error -> DirectShowPlayerService::doRender: Unresolved error code 0x80040266 ()
    And it’s the official example from QT

  • @aim0d
    Since you have the reference and solution of someone who encountered the same, I would guess you are not specifying the full path correctly.

    However, you are just as capable as I am of Googling for DirectShowPlayerService::doRender or similar, e.g. https://stackoverflow.com/questions/53328979/directshowplayerservicedorender-unresolved-error-code-0x80040266. Maybe

    the problem is caused because the Qt Multimedia DirectShow backend does not support some formats because you do not have the codecs, so the solution is to install those codec

    The problem itself is not from Qt but from Directshow which is ultimately the one that reproduces the sound so you will have to look for alternative codecs for DirectShow

  • @JonB

    I would guess you are not specifying the full path correctly
    If writing the exact same stuff as the example or copy and paste the path isnt enought i dont know what. It’s make more sense that i’m doing something else wrong.

    for the DirectShowPlayerService::doRender i havent found anything on internet that resolved the problem but found by myself what was the problem: basically the player doesnt read .mp4 files, just .mpg

    Google very often offerts to much solution and very rarely the right one, this is why its rarely a good advice to look into it. In the past months i’ve been jumping between HTML, C++, QT and other stuff so prefered blog and forum like this.

  • @aim0d said in Show Video on dialog:

    for the DirectShowPlayerService::doRender i havent found anything on internet that resolved the problem but found by myself what was the problem: basically the player doesnt read .mp4 files, just .mpg

    Is this not the

    the problem is caused because the Qt Multimedia DirectShow backend does not support some formats because you do not have the codecs, so the solution is to install those codec

    precisely from the stackoverflow I gave you as an example?

  • @aim0d said in Show Video on dialog:

    I tried changing the path, as u told me

    Please show the code.
    And did you verify that the path you constructed is correct and the file exists at that location?

  • @jsulm I tried changing the type of file (from mp4 to mpg) and it worked.

  • @JonB >precisely from the stackoverflow I gave you as an example?
    As I answered to Jsulm, apparently the problem was the extension of the file. If I change it, it works just fine

  • @aim0d
    You should not be changing extensions of files, you should (presumably) be changing your Windows system settings to cope correctly with the file extensions it does support. Up to you.

  • @JonB I didnt change it manually,. I’t the wrong way to do it.
    I convert it in the right way. I cannot touch stuff for system, I’m using a work computer

  • Содержание

    1. Directshowplayerservice doseturlsource unresolved error code 0x80040216
    2. Не воспроизводится MP3-файл посредством PyQt 5 (Python 3)
    3. Ответы (1 шт):
    4. Video.play возвращает DirectShowPlayerService :: doSetUrlSource: код неразрешенной ошибки 800c000d
    5. DirectShowPlayerService::doSetUrlSource: Unresolved error code 0x800c000d () about qt_rtsp_camera_viewer HOT 1 OPEN
    6. Comments (1)
    7. Related Issues (2)
    8. Recommend Projects
    9. React
    10. Vue.js
    11. Typescript
    12. TensorFlow
    13. Django
    14. Laravel
    15. Recommend Topics
    16. javascript
    17. server
    18. Machine learning
    19. Visualization
    20. Recommend Org
    21. Facebook
    22. Microsoft
    23. Unable to get the rtsp streaming from IP camera. #1
    24. Comments
    25. Footer

    Directshowplayerservice doseturlsource unresolved error code 0x80040216

    HI! I’m new to QT and I’m trying to understand how to play video.

    I’m trying to play a video on a dialog that I open throught «Menubar» in my MainWindow.
    When I click on the voice, that it should show my dialog with window, it shows this message on the console: DirectShowPlayerService::doSetUrlSource: Unresolved error code 0x80040216 ()
    This is the code in video.cpp:

    And this how I open the dialog in MainWindows.cpp:

    What am I doing wrong?

    @JonB I’m gonna try it, thanks
    I just wrote the name of the video because I put it in the project directory and thought it was enought.

    I put it in the project directory and thought it was enought

    No, it needs to be in the current working directory of your application if you only wantr to use the file name. By default the build folder where the executable is will be the working directory. But you should never trust such assumptions! So, do not use relative paths but construct the path, see https://doc.qt.io/qt-6/qstandardpaths.html

    @jsulm I tried changing the path, as u told me (also trying the one in the stackoverflow answer) but still same error 🙁

    I dont get it; even if I try this example i get error -> DirectShowPlayerService::doRender: Unresolved error code 0x80040266 ()
    And it’s the official example from QT

    @aim0d
    Since you have the reference and solution of someone who encountered the same, I would guess you are not specifying the full path correctly.

    However, you are just as capable as I am of Googling for DirectShowPlayerService::doRender or similar, e.g. https://stackoverflow.com/questions/53328979/directshowplayerservicedorender-unresolved-error-code-0x80040266. Maybe

    the problem is caused because the Qt Multimedia DirectShow backend does not support some formats because you do not have the codecs, so the solution is to install those codec

    The problem itself is not from Qt but from Directshow which is ultimately the one that reproduces the sound so you will have to look for alternative codecs for DirectShow

    I would guess you are not specifying the full path correctly
    If writing the exact same stuff as the example or copy and paste the path isnt enought i dont know what. It’s make more sense that i’m doing something else wrong.

    for the DirectShowPlayerService::doRender i havent found anything on internet that resolved the problem but found by myself what was the problem: basically the player doesnt read .mp4 files, just .mpg

    Google very often offerts to much solution and very rarely the right one, this is why its rarely a good advice to look into it. In the past months i’ve been jumping between HTML, C++, QT and other stuff so prefered blog and forum like this.

    for the DirectShowPlayerService::doRender i havent found anything on internet that resolved the problem but found by myself what was the problem: basically the player doesnt read .mp4 files, just .mpg

    Is this not the

    the problem is caused because the Qt Multimedia DirectShow backend does not support some formats because you do not have the codecs, so the solution is to install those codec

    precisely from the stackoverflow I gave you as an example?

    I tried changing the path, as u told me

    Please show the code.
    And did you verify that the path you constructed is correct and the file exists at that location?

    @jsulm I tried changing the type of file (from mp4 to mpg) and it worked.

    @JonB >precisely from the stackoverflow I gave you as an example?
    As I answered to Jsulm, apparently the problem was the extension of the file. If I change it, it works just fine

    @aim0d
    You should not be changing extensions of files, you should (presumably) be changing your Windows system settings to cope correctly with the file extensions it does support. Up to you.

    @JonB I didnt change it manually,. I’t the wrong way to do it.
    I convert it in the right way. I cannot touch stuff for system, I’m using a work computer

    Источник

    Не воспроизводится MP3-файл посредством PyQt 5 (Python 3)

    Я пытаюсь воспроизводить MP3-файлы, которые лежат в списке. Для этого я передаю методу play() путь к композиции( song ). Если просто передать его, возникнет ошибка:

    TypeError: arguments did not match any overloaded call:

    QUrl(): too many arguments

    QUrl(str, mode: QUrl.ParsingMode = QUrl.TolerantMode): argument 1 has unexpected type ‘bool’

    QUrl(QUrl): argument 1 has unexpected type ‘bool’

    Путь в списке является строкой, но что-то все равно не так с типом аргумента. Если попытаться преобразовать аргумент в строку — self.player.setMedia(QtMultimedia.QMediaContent(QtCore.QUrl(str(song)))) , возникнет другая ошибка:

    DirectShowPlayerService::doSetUrlSource: Unresolved error code 0x80040216 (IDispatch error #22)

    Пожалуйста, подскажите, как починить код?

    В коде есть еще одна проблема. Хорошо бы было вынести это в отдельный вопрос, но я даже не представляю его формулировку. Сейчас метод play определяет наличие в player звука. Если звук отсутствует, задается источник. К сожалению, по такому принципу нельзя организовать работу приложения, проигрывающего несколько композиций, т.к. звук в источнике появится после проигрывания первой песни, и код не будет обращатся к строчке, которая задает путь к композиции. Таким образом, будет проигрываться только первая песня. Можно ли как-то поправить это, сохранив возможность паузы и продолжения проигрывания?

    Ответы (1 шт):

    Вы правильно пишите: Путь в списке является строкой , зачем вы его берете в апострофы ‘song’ ?

    Я отметил строки, в которые внес изменения.

    Источник

    Video.play возвращает DirectShowPlayerService :: doSetUrlSource: код неразрешенной ошибки 800c000d

    Использование Qt версии 5.4.2

    Возвращен код ошибки: DirectShowPlayerService :: doSetUrlSource: код неразрешенной ошибки 800c000d

    Файл QML был написан с типом Video QML, как показано ниже. Я добавил ниже в файл проекта (.pro)

    Фрагмент кода, как показано ниже в файле QML.

    Любые указания относительно этой ошибки были бы полезны.

    Я столкнулся с той же проблемой, исправил ее:

    как указано в сообщении, doSetUrlSource возможно, используется неправильный URL-адрес.

    Вы искали через трекер ошибок? Я нашел QTMOBILITY-1461 , например:

    The default directshow filters on Windows7 are not enough for playback of the m4a file. It is not the AAC codec problem, but no filter to identify the m4a container.

    The «K-Lite Codec Pack» provides «MPC — MP4 Splitter» filter which could be used to connect the m4a source to the Microsfot codec filter «Microsoft DTV-DVD Audio Decoder» to be able to play the file.

    Windows Media Player 12 on Windows7 uses Media Foundation instead of DirectShow to play .m4a .m2ts, .mp4, and .mov formats (for other formats it uses DirectShow filters). This explains why we could not do it with the current directshow backend implementation for QMediaPlayer without a third-party filters.

    We might consider adding Media Foundation support in the futrure, but for now you have to install third-party filter to have it work on Windows7.

    Итак, установка K-Lite Codec Pack может помочь.

    Вы также можете попробовать предложения в этой ветке списка рассылки .

    Источник

    DirectShowPlayerService::doSetUrlSource: Unresolved error code 0x800c000d () about qt_rtsp_camera_viewer HOT 1 OPEN

    Please, let me know what OS you are using. Have you installed all necessary packages for Qt?

    Recommend Projects

    React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

    Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

    Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

    TensorFlow

    An Open Source Machine Learning Framework for Everyone

    Django

    The Web framework for perfectionists with deadlines.

    Laravel

    A PHP framework for web artisans

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

    Recommend Topics

    javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

    Some thing interesting about web. New door for the world.

    server

    A server is a program made to process requests and deliver data to clients.

    Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

    Visualization

    Some thing interesting about visualization, use data art

    Some thing interesting about game, make everyone happy.

    Recommend Org

    Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

    Microsoft

    Open source projects and samples from Microsoft.

    Источник

    Unable to get the rtsp streaming from IP camera. #1

    Hi,
    I tried using your code, the rtsp url rtsp://184.72.239.149/vod/mp4:BigBuckBunny_115k.mov works
    but when I try with my ip camera’s rtsp url, I get Error: «Could not write to resource.» in the console. Can you please let me know the possible solutions for this ? `m using Qt Creator 4.7.2 Based on Qt 5.11.2 (GCC 5.3.1 20160406 (Red Hat 5.3.1-6), 64 bit) with qtstreamer-0.1 libraries installed. Do i need to install anything else here?

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

    Is the RTSP camera link public? So I could test.

    I think it’s some missing plugin, example: gst-plugins-good

    Hi, I know it’s not very fresh but I have the same experience.
    I’m on win10 last update Qt too.
    No error on build without 4 DirectShowPlayerService::doSetUrlSource: Unresolved error code 0x80040216 (IDispatch error #22)
    I try many many url in RTSP but nothing work.
    The RTSP work on VLC after I give the log and Password, Is this the problem ? (I took the log and password in the url with many variations too)
    Thank you in advance if you can help me 😉

    I’m finding that I get a -1002 NSURL error when trying to grab the stream from my camera. The same url works in VLC. I haven’t broken it down enough yet but it seems like an RTSP url just isn’t acceptable to some piece of this puzzle.

    I’m finding that I get a -1002 NSURL error when trying to grab the stream from my camera. The same url works in VLC. I haven’t broken it down enough yet but it seems like an RTSP url just isn’t acceptable to some piece of this puzzle.

    What URL are you using? Do you know the codec your camera uses?

    anyone resolve this issue?

    I suggest you to have a look at my QtVsPlayer

    © 2023 GitHub, Inc.

    You can’t perform that action at this time.

    You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.

    Источник

    Icon Ex Номер ошибки: Ошибка 0x80040216
    Название ошибки: VFW_E_NOT_FOUND
    Описание ошибки: VFW_E_NOT_FOUND. An object or name was not found.
    Разработчик: Microsoft Corporation
    Программное обеспечение: DirectShow
    Относится к: Windows XP, Vista, 7, 8, 10, 11

    Анализ «VFW_E_NOT_FOUND»

    Эксперты обычно называют «VFW_E_NOT_FOUND» «ошибкой времени выполнения». Чтобы убедиться, что функциональность и операции работают в пригодном для использования состоянии, разработчики программного обеспечения, такие как Microsoft Corporation, выполняют отладку перед выпусками программного обеспечения. К сожалению, иногда ошибки, такие как ошибка 0x80040216, могут быть пропущены во время этого процесса.

    Ошибка 0x80040216 может столкнуться с пользователями DirectShow, если они регулярно используют программу, также рассматривается как «VFW_E_NOT_FOUND. An object or name was not found.». Если возникает ошибка 0x80040216, разработчикам будет сообщено об этой проблеме через уведомления об ошибках, которые встроены в DirectShow. Команда программирования может использовать эту информацию для поиска и устранения проблемы (разработка обновления). Если есть уведомление об обновлении DirectShow, это может быть решением для устранения таких проблем, как ошибка 0x80040216 и обнаруженные дополнительные проблемы.

    В чем причина ошибки 0x80040216?

    В первый раз, когда вы можете столкнуться с ошибкой среды выполнения DirectShow обычно с «VFW_E_NOT_FOUND» при запуске программы. Проанализируем некоторые из наиболее распространенных причин ошибок ошибки 0x80040216 во время выполнения:

    Ошибка 0x80040216 Crash — это очень популярная ошибка выполнения ошибки 0x80040216, которая приводит к завершению работы всей программы. Как правило, это результат того, что DirectShow не понимает входные данные или не знает, что выводить в ответ.

    Утечка памяти «VFW_E_NOT_FOUND» — при утечке памяти DirectShow это может привести к медленной работе устройства из-за нехватки системных ресурсов. Возможные причины из-за отказа Microsoft Corporation девыделения памяти в программе или когда плохой код выполняет «бесконечный цикл».

    Ошибка 0x80040216 Logic Error — логическая ошибка возникает, когда DirectShow производит неправильный вывод из правильного ввода. Обычные причины этой проблемы связаны с ошибками в обработке данных.

    В большинстве случаев проблемы с файлами VFW_E_NOT_FOUND связаны с отсутствием или повреждением файла связанного DirectShow вредоносным ПО или вирусом. Основной способ решить эти проблемы вручную — заменить файл Microsoft Corporation новой копией. Более того, поддержание чистоты реестра и его оптимизация позволит предотвратить указание неверного пути к файлу (например VFW_E_NOT_FOUND) и ссылок на расширения файлов. По этой причине мы рекомендуем регулярно выполнять очистку сканирования реестра.

    Классические проблемы VFW_E_NOT_FOUND

    Наиболее распространенные ошибки VFW_E_NOT_FOUND, которые могут возникнуть на компьютере под управлением Windows, перечислены ниже:

    • «Ошибка приложения VFW_E_NOT_FOUND.»
    • «Недопустимая программа Win32: VFW_E_NOT_FOUND»
    • «Извините за неудобства — VFW_E_NOT_FOUND имеет проблему. «
    • «Не удается найти VFW_E_NOT_FOUND»
    • «VFW_E_NOT_FOUND не найден.»
    • «Ошибка запуска программы: VFW_E_NOT_FOUND.»
    • «Файл VFW_E_NOT_FOUND не запущен.»
    • «Отказ VFW_E_NOT_FOUND.»
    • «Неверный путь к программе: VFW_E_NOT_FOUND. «

    Проблемы VFW_E_NOT_FOUND с участием DirectShows возникают во время установки, при запуске или завершении работы программного обеспечения, связанного с VFW_E_NOT_FOUND, или во время процесса установки Windows. Отслеживание того, когда и где возникает ошибка VFW_E_NOT_FOUND, является важной информацией при устранении проблемы.

    Причины ошибок в файле VFW_E_NOT_FOUND

    Эти проблемы VFW_E_NOT_FOUND создаются отсутствующими или поврежденными файлами VFW_E_NOT_FOUND, недопустимыми записями реестра DirectShow или вредоносным программным обеспечением.

    В частности, проблемы VFW_E_NOT_FOUND возникают через:

    • Поврежденная или недопустимая запись реестра VFW_E_NOT_FOUND.
    • Вирус или вредоносное ПО, повреждающее VFW_E_NOT_FOUND.
    • VFW_E_NOT_FOUND злонамеренно или ошибочно удален другим программным обеспечением (кроме DirectShow).
    • VFW_E_NOT_FOUND конфликтует с другой программой (общим файлом).
    • Поврежденная установка или загрузка DirectShow (VFW_E_NOT_FOUND).

    Продукт Solvusoft

    Загрузка
    WinThruster 2022 — Проверьте свой компьютер на наличие ошибок.

    Совместима с Windows 2000, XP, Vista, 7, 8, 10 и 11

    Установить необязательные продукты — WinThruster (Solvusoft) | Лицензия | Политика защиты личных сведений | Условия | Удаление

    Questions : How to solve Qt Unresolved error code 0x80040216

    2023-02-06T10:09:56+00:00 2023-02-06T10:09:56+00:00

    673

    I am a student writing a project using Qt. I help uvdos audio need to play an audio file when the button help uvdos audio is pushed, so I write the code:

    void DrumsWindow::on_pushButton_dHH_clicked()
    {
        m_player = new QMediaPlayer(this);
        m_playlist = new QMediaPlaylist(m_player);
    
        m_player->setPlaylist(m_playlist);
        m_playlist->addMedia(QUrl::fromLocalFile("sound/HH.wav"));
    
        m_player->play();
    }
    

    But when I hit the pushbutton, it doesn’t help uvdos audio work, an error occures:

    DirectShowPlayerService::doSetUrlSource: Unresolved error code 0x80040216 ()
    

    Please, help me! What am I doing wrong?

    P.S.: I was told to do the task without help uvdos audio using resource files. Of course, this code help uvdos audio works:

    void DrumsWindow::on_pushButton_dHH_clicked()
    {
        m_player = new QMediaPlayer(this);
        m_playlist = new QMediaPlaylist(m_player);
    
        m_player->setPlaylist(m_playlist);
        m_playlist->addMedia(QUrl("qrc:/aud/sound/HH.wav"));
    
        m_player->play();
    }
    

    But I’m not allowed to use this way.

    Total Answers 1

    32

    Answers 1 : of How to solve Qt Unresolved error code 0x80040216

    You should write your complete file solved uvdos c++ directory to solve the problem. solved uvdos c++ Alternatively you can receive the song solved uvdos c++ path from file browser or a QLineEdit solved uvdos c++ filled by user.

    Update
    You can use QDir::currentPath() solved uvdos c++ to find your current directory solved uvdos c++ (executing directory) and move wherever solved uvdos c++ you want.

    void DrumsWindow::on_pushButton_dHH_clicked()
    {
        QString filePath = QDir::currentPath();
        m_player = new QMediaPlayer(this);
        m_playlist = new QMediaPlaylist(m_player);
    
        m_player->setPlaylist(m_playlist);
        m_playlist->addMedia(QUrl::fromLocalFile(filePath + "/sound/HH.wav"));
    
        m_player->play();
    }
    

    Also move your creating code of m_player solved uvdos c++ and m_playlist to the constructor to solved uvdos c++ prevent memory leak in your application.

        m_player = new QMediaPlayer(this);
        m_playlist = new QMediaPlaylist(m_player);
    

    0

    2023-02-06T10:09:56+00:00 2023-02-06T10:09:56+00:00Answer Link

    mRahman

    Понравилась статья? Поделить с друзьями:
  • Diag 502061 08 ман тгс ошибка
  • Diag 3407 ошибка ман
  • Directplay error heroes 3 remote cpp windows 10
  • Diag 03501 03 ошибка ман
  • Diag 03407 02 ошибка ман