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. Problem with decoding AAC internet stream on Linux using QtMultimedia

Problem with decoding AAC internet stream on Linux using QtMultimedia

Scheduled Pinned Locked Moved General and Desktop
7 Posts 2 Posters 2.9k Views 1 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.
  • C Offline
    C Offline
    Cosik
    wrote on last edited by
    #1

    Hi,

    I tried to play Internet radio stream on my Debian using QMediaPlayer in Qt5.3. But when I tried to play radio from http://217.74.72.4:9000 I get information from application that could not decode stream.

    Maybe some one had the same problem. I'm using Debian x64 and QtSDK from qt-project.org.

    Information from http://217.74.72.4:9000 :
    @
    ICY 200 OK
    icy-notice1:<BR>This stream requires <a href="http://www.winamp.com/">Winamp</a><BR>
    icy-notice2:SHOUTcast Distributed Network Audio Server/Linux v1.9.8<BR>
    icy-name:RMF FM
    icy-genre:POP
    icy-url:http://www.rmf.fm
    content-type:audio/aac
    icy-pub:0
    icy-br:48
    @

    My code:
    @
    QMediaPlayer *player;
    player = new QMediaPlayer;
    player->setMedia(QUrl("http://217.74.72.4:9000"));
    player->setVolume(50);
    player->play();
    qDebug() << player->errorString();
    qDebug() << player->state();
    qDebug() << player->error();
    @

    Cosik.

    1 Reply Last reply
    0
    • A Offline
      A Offline
      andreyc
      wrote on last edited by
      #2

      Welcome to DevNet!
      Do you see any error messages in a console?

      1 Reply Last reply
      0
      • C Offline
        C Offline
        Cosik
        wrote on last edited by
        #3

        Hi,

        Here is output in console:
        @
        "http://217.74.72.4:9000"
        Error: "Nie udało się zdekodować strumienia."
        "http://217.74.72.4:9000"
        ""
        QMediaPlayer::PlayingState
        QMediaPlayer::NoError
        Error: "Nie udało się zdekodować strumienia."
        @

        "Nie udało się zdekodować strumienia." - mean that could not decode stream.

        I don't know, maybe something is missing in my OS? Before I start application I run:
        @
        jackd -d alsa
        @

        1 Reply Last reply
        0
        • A Offline
          A Offline
          andreyc
          wrote on last edited by
          #4

          Looks like some decoder is missing.
          Do you have all gstreamer0.10 packages installed?

          1 Reply Last reply
          0
          • C Offline
            C Offline
            Cosik
            wrote on last edited by
            #5

            No,

            Only this packages
            @
            ii gstreamer0.10-alsa:amd64
            ii gstreamer0.10-ffmpeg
            ii gstreamer0.10-gconf:amd64
            ii gstreamer0.10-plugins-base:amd64
            ii gstreamer0.10-plugins-good:amd64
            ii gstreamer0.10-plugins-ugly:amd64
            ii gstreamer0.10-pulseaudio:amd64
            ii gstreamer0.10-x:amd64
            ii libgstreamer0.10-0:amd64
            ii libgstreamer0.10-0:i386
            @

            1 Reply Last reply
            0
            • A Offline
              A Offline
              andreyc
              wrote on last edited by
              #6

              Try to run in a terminal
              @
              gst-launch-0.10 playbin uri="http://217.74.72.4:9000"
              @

              It should say what plugin is missing.

              1 Reply Last reply
              0
              • C Offline
                C Offline
                Cosik
                wrote on last edited by
                #7

                Here is output from gst-launch-0.10:
                @
                Failed to create secure directory (/run/user/1000/pulse): No access
                ERROR: from element /GstPlayBin:playbin0/GstDecodeBin:decodebin0/ffdec_aac:ffdec_aac0: Could not decode stream.
                Additional diagnostic information:
                gstffmpegdec.c(2213): gst_ffmpegdec_audio_frame (): /GstPlayBin:playbin0/GstDecodeBin:decodebin0/ffdec_aac:ffdec_aac0:
                Decoding of AAC stream by FFMPEG failed.
                @

                ADD:
                Installed gstreamer0.10-plugins-bad solved problem.

                Thank you for help.

                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