Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Stream sound file over network
Forum Updated to NodeBB v4.3 + New Features

Stream sound file over network

Scheduled Pinned Locked Moved Unsolved General and Desktop
multimediastreaming
4 Posts 2 Posters 2.0k Views 2 Watching
  • 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.
  • PhoenoxP Offline
    PhoenoxP Offline
    Phoenox
    wrote on last edited by
    #1

    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
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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
      0
      • PhoenoxP Offline
        PhoenoxP Offline
        Phoenox
        wrote on last edited by
        #3

        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
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          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
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved