Home of the Squeezebox™ & Transporter® network music players.
Page 1 of 3 123 LastLast
Results 1 to 10 of 25
  1. #1
    Junior Member
    Join Date
    Mar 2015
    Posts
    25

    Streaming (Audio) from Enigma2 Receiver

    Hello i like play Radio Streams over DVB-S from my openPLI Enigma2 Box.

    When i save the URL from Stream under Favorites then is the Problem the empty extension:
    http://enigmabox:8001/1:0:2:3176:459:1:C00000:0:0:0:

    Ok i can get a URL with extension from openwebif, that URL can i save.
    http://user:pass@enigmabox/web/strea...:C00000:0:0:0:

    Then the next Problem, when i start the Audiostream becomes the error:
    Playlist is empty

    On VLC Player run the Audiostream.
    Codec Info from VLC:
    Name:  2015-09-19 16_57_39-Aktuelle Medieninformationen.png
Views: 1804
Size:  8.9 KB

    Is this Codec the Problem ?
    in Log i not see errors

    LMS Version: Logitech Media Server Version: 7.9.0 - 1442495939 @ Fri Sep 18 04:05:04 UTC 2015

  2. #2
    Senior Member
    Join Date
    Oct 2005
    Location
    Ireland
    Posts
    17,997
    The audio format of a stream is determined by LMS from the extension and/or MIME.

    Since you have no extension - what is the MIME type for the http stream that is sent by your enigma2 (i.e. the value of Content-Type in the http header )

  3. #3
    Junior Member
    Join Date
    Mar 2015
    Posts
    25
    my Test with simple wget command:
    Code:
    wget http://enigmabox:8001/1:0:2:3349:45B:1:C00000:0:0:0:
    --2015-09-19 22:31:36--  http://enigmabox:8001/1:0:2:3349:45B:1:C00000:0:0:0:
    Auflösen des Hostnamen »enigmabox (enigmabox)«... 192.168.0.5
    Verbindungsaufbau zu enigmabox (enigmabox)|192.168.0.5|:8001... verbunden.
    HTTP-Anforderung gesendet, warte auf Antwort... 200 OK
    Länge: nicht spezifiziert [video/mpeg]
    In »»1:0:2:3349:45B:1:C00000:0:0:0:«« speichern.
    1:0:2:3349:45B:1:C00000:0:0:0:                         [        <=>           ]       0  --.-KB/s
    ok send false header "video/mpeg".
    this the problem on all radio channels..

    Can this correct via LMS ?

  4. #4
    Junior Member
    Join Date
    Mar 2015
    Posts
    25
    ffmpeg say:

    Code:
    ffmpeg -i http://enigmabox:8001/1:0:2:3349:45B:1:C00000:0:0:0: -vcodec copy -acodec copy output.mpg
    ffmpeg version 0.8.17-6:0.8.17-1, Copyright (c) 2000-2014 the Libav developers
      built on Mar 15 2015 17:00:31 with gcc 4.7.2
    The ffmpeg program is only provided for script compatibility and will be removed
    in a future release. It has been deprecated in the Libav project to allow for
    incompatible command line syntax improvements in its replacement called avconv
    (see Changelog for details). Please use avconv instead.
    [mpegts @ 0x219ad00] max_analyze_duration reached
    [mpegts @ 0x219ad00] Estimating duration from bitrate, this may be inaccurate
    Input #0, mpegts, from 'http://enigmabox:8001/1:0:2:3349:45B:1:C00000:0:0:0:':
      Duration: N/A, start: 46775.073878, bitrate: 160 kb/s
      Program 13101
      Program 13102
      Program 13103
      Program 13104
      Program 13106
      Program 13107
      Program 13110
      Program 13111
      Program 13113
      Program 13121
      Program 13122
      Program 13123
      Program 13124
      Program 13125
      Program 13126
      Program 13127
      Program 13128
      Program 13129
        Stream #0.0[0x1ad](ger): Audio: mp2, 48000 Hz, stereo, s16, 160 kb/s (clean effects)
      Program 13130
      Program 13131
      Program 13133
      Program 13134
      Program 13136
      Program 13140
      Program 13141
    Output #0, mpeg, to 'output.mpg':
      Metadata:
        encoder         : Lavf53.21.1
        Stream #0.0(ger): Audio: mp2, 48000 Hz, stereo, 160 kb/s (clean effects)
    Stream mapping:
      Stream #0.0 -> #0.0
    Press ctrl-c to stop encoding
    size=    3390kB time=171.58 bitrate= 161.9kbits/s
    video:0kB audio:3351kB global headers:0kB muxing overhead 1.161002%
    Received signal 2: terminating.

  5. #5
    Senior Member
    Join Date
    Oct 2005
    Location
    Ireland
    Posts
    17,997
    There are two issues

    1. MIME is video/mpeg
    2. Codec is MP2 in an MPEG-TS container - this is not simple http/MP3 - I think the "proper way " to support this stream would to be to create a plugin

    There are two problems
    1. Supporting MPEG-TS - I think only the LMS MP4 support handles this but not sure if it can handle a non AAC codec.
    2. Supporting MP2 - not sure if all players upport ddcoding MP2 - I know the older IP3K based player such as SB2/SB3/Class/Boom can.

    Suggestions

    Is it not possible to get OpenPLi enigma2 to send a nicer formatted stream (e.g. strip mpeg-ts and use "raw" plain http) ? as I understand it, it is a highly customisable linux box

    To tell LMS the video/mpeg is supported you can create a custom-types.conf file in the same directory as the LMS types.conf. Try creating the custom-types.conf file with ONE of the following lines and restart LMS. And then try to play your stream - personally I don't think ti will work.
    mp4 m4a,mp4,m4b audio/m4a,audio/x-m4a,audio/mp4 audio, video/mpeg
    mp3 mp2,mp3 audio/mpeg,audio/mp3,audio/mp3s,audio/x-mpeg,audio/mpeg3,audio/mpg audio, video/mpeg

    Since VLC can play this stream you could install the playDASH plugin (which uses VLC to play DASH streams) and then modify the PlayDASH custom-types.conf file to support video/mpeg. However I haven't tested playDASH but it is a mod of my playHLS plugin which couldbe similarly modified if your stream can be played with ffmpeg.
    If your

  6. #6
    Junior Member
    Join Date
    Mar 2015
    Posts
    25
    Hello bpa,

    thank you for the details !
    i testet with your posted lines in custom-types.conf, no function, my squeezebox baby radio say not found.

    I found no plugin that streams the radio channels as mp3. All plugins a'la streaming, are clients.

    I search a way over icecast2 that is installed on debian-box.
    Icecast-Relay with on the fly transcode from "audio transport stream" to "mp3".
    Find at the moment but no instructions to this theme.

    Regards

  7. #7
    Senior Member
    Join Date
    Oct 2005
    Location
    Ireland
    Posts
    17,997
    Quote Originally Posted by Simon74 View Post
    Hello bpa,

    thank you for the details !
    i testet with your posted lines in custom-types.conf, no function, my squeezebox baby radio say not found.

    I found no plugin that streams the radio channels as mp3. All plugins a'la streaming, are clients.

    I search a way over icecast2 that is installed on debian-box.
    Icecast-Relay with on the fly transcode from "audio transport stream" to "mp3".
    Find at the moment but no instructions to this theme.

    Regards

    What system does you LMS run on ?
    The modded PlayDASH or PlayHLS seems to be the way the go.

    Can you play your stream with ffmpeg ? If so I can help with changes to playHLS.

  8. #8
    Junior Member
    Join Date
    Mar 2015
    Posts
    25
    LMS run on the self Debian-Box.
    ffmpeg create a correct file, see attachment.
    Code:
     ffmpeg -i http://enigmabox:8001/1:0:2:3349:45B:1:C00000:0:0:0: -vcodec copy -acodec copy output.mp3
    output.zip

  9. #9
    Senior Member
    Join Date
    Oct 2005
    Location
    Ireland
    Posts
    17,997
    Quote Originally Posted by Simon74 View Post
    LMS run on the self Debian-Box.
    ffmpeg create a correct file, see attachment.
    Code:
     ffmpeg -i http://enigmabox:8001/1:0:2:3349:45B:1:C00000:0:0:0: -vcodec copy -acodec copy output.mp3
    output.zip
    The format is still MP2 not MP3 - check if you can play this file on your Squeezebox baby radio ? I think it should work.

  10. #10
    Junior Member
    Join Date
    Mar 2015
    Posts
    25
    yes, the baby radio squeezebox can play this output file.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •