Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved Stream sound file over network

    General and Desktop
    multimedia streaming
    2
    4
    1656
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Phoenox
      Phoenox last edited by

      Hey everybody,

      I'm trying to open a sound file (e.g. mp3 or ogg vorbis) and stream it over the network to a client (such as VLC, which can play network streams).

      I already got a file playing with QMediaPlayer (which is ridicilously easy), but cannot figure out how to get a data stream from this.

      QAudioInput on the other hand provides some kind of streaming (which I didn't yet fully understand), but seems to take only AudioDevices as input, no files.

      All in all I have the impression that I'm going at this all wrong, so if there is some QMultimedia guru reading this, please be so kind to point me in the right direction.

      Cheers
      PhoeNox

      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        Hi and welcome to devnet,

        Just to be sure I understand you correctly, are you trying to build a streaming server for local files ?

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply Reply Quote 0
        • Phoenox
          Phoenox last edited by

          Just to be sure I understand you correctly, are you trying to build a streaming server for local files ?

          I guess it's best if I give you a bit more context:
          In the long run, the goal is to develop an application where the user can mix multiple sound files together and stream them, so a client can listen in on this stream.
          For this, the UI will have multiple buttons, each associated with a sound file. If the user presses a button, the corresponding sound is "played", either via a normal audio playback device or sent to a stream. If the user selects multiple sounds, they should be mixed together.

          But for the sake of simplicity, I want to limit this topic to the converting of a sound file to an audio stream that a client can listen on. My hope is that I can figure out the rest myself once I get my bearings.

          1 Reply Last reply Reply Quote 0
          • SGaist
            SGaist Lifetime Qt Champion last edited by

            Then I'd recommend using a dedicated library to do that. Qt already uses GStreamer for it's backend on Linux so that might be a possibility. You also have the QtGstreamer module that can help with that.

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply Reply Quote 0
            • First post
              Last post