Discussion:
[Savonet-users] mp3 files over http
Tony Miller
2017-03-24 06:48:09 UTC
Permalink
Hi, I'm using request.dynamic to play files from http. I can see these are
downloaded to /tmp like I expect.

```

2017/03/24 06:25:12 [lang:3] annotate_line:
annotate:liq_fade_in=0,liq_fade_out=0,liq_cue_in=0:
https://dongles.streampusher-relay.club/datafruits/Datafruits-7thAug2016-VRClubwithCaliforniaGamesandVanillaSnickers.mp3?1480408652

2017/03/24 06:25:18 [decoder:3] Method "MAD" accepted "/tmp/liq71c9f6.osb".

2017/03/24 06:25:19 [requests:3] Finished with "/tmp/liqd101c8.osb".

2017/03/24 06:25:19 [requests:3] Prepared "/tmp/liq71c9f6.osb" (RID 6).
```

I noticed that now the extension is .osb, which I believe is confusing the
metadata parsing mechanism. There is no metadata on my final icecast
stream.

I googled a bit and found this pretty old post, where Romain seems to
suggest using a configuration option named "taglib.force_mp3" (now renamed
to force_mpeg).

Is this what I need, or am I making some other mistake?

Thanks,
--
-Tony Miller
github.com/mcfiredrill
@freedrull
freedrool.us
Tony Miller
2017-03-24 08:22:15 UTC
Permalink
For the record I tried `taglib.force_mpeg` and it seems to help, not sure
if this has any downsides.
Post by Tony Miller
Hi, I'm using request.dynamic to play files from http. I can see these are
downloaded to /tmp like I expect.
```
2017/03/24 06:25:12 [lang:3] annotate_line: annotate:liq_fade_in=0,liq_
fade_out=0,liq_cue_in=0:https://dongles.streampusher-relay.
club/datafruits/Datafruits-7thAug2016-VRClubwithCaliforniaGamesandVa
nillaSnickers.mp3?1480408652
2017/03/24 06:25:18 [decoder:3] Method "MAD" accepted "/tmp/liq71c9f6.osb".
2017/03/24 06:25:19 [requests:3] Finished with "/tmp/liqd101c8.osb".
2017/03/24 06:25:19 [requests:3] Prepared "/tmp/liq71c9f6.osb" (RID 6).
```
I noticed that now the extension is .osb, which I believe is confusing the
metadata parsing mechanism. There is no metadata on my final icecast
stream.
I googled a bit and found this pretty old post, where Romain seems to
suggest using a configuration option named "taglib.force_mp3" (now renamed
to force_mpeg).
Is this what I need, or am I making some other mistake?
Thanks,
--
-Tony Miller
github.com/mcfiredrill
@freedrull
freedrool.us
--
-Tony Miller
github.com/mcfiredrill
@freedrull
freedrool.us
Romain Beauxis
2017-04-03 14:36:02 UTC
Permalink
Hi Tony,

What version of liquidsoap are you using?

If you are using a recent codebase, I just migrated the download code from
OCaml to liquidsoap script here:

https://github.com/savonet/liquidsoap/blob/master/scripts/protocols.liq#L119

Regardless of the version, extension should be determined by the mim type
as returned by the distant server. This command should tell you what is
being used:
curl -sLI -X HEAD #{uri} | grep -i '^content-type' | tail -n 1 | cut -d':'
-f 2 | cut -d';' -f 1

Romain
Post by Tony Miller
For the record I tried `taglib.force_mpeg` and it seems to help, not sure
if this has any downsides.
Post by Tony Miller
Hi, I'm using request.dynamic to play files from http. I can see these
are downloaded to /tmp like I expect.
```
2017/03/24 06:25:12 [lang:3] annotate_line: annotate:liq_fade_in=0,liq_fad
e_out=0,liq_cue_in=0:https://dongles.streampusher-relay.clu
b/datafruits/Datafruits-7thAug2016-VRClubwithCaliforniaGames
andVanillaSnickers.mp3?1480408652
2017/03/24 06:25:18 [decoder:3] Method "MAD" accepted
"/tmp/liq71c9f6.osb".
2017/03/24 06:25:19 [requests:3] Finished with "/tmp/liqd101c8.osb".
2017/03/24 06:25:19 [requests:3] Prepared "/tmp/liq71c9f6.osb" (RID 6).
```
I noticed that now the extension is .osb, which I believe is confusing
the metadata parsing mechanism. There is no metadata on my final icecast
stream.
I googled a bit and found this pretty old post, where Romain seems to
suggest using a configuration option named "taglib.force_mp3" (now renamed
to force_mpeg).
Is this what I need, or am I making some other mistake?
Thanks,
--
-Tony Miller
github.com/mcfiredrill
@freedrull
freedrool.us
--
-Tony Miller
github.com/mcfiredrill
@freedrull
freedrool.us
------------------------------------------------------------
------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Savonet-users mailing list
https://lists.sourceforge.net/lists/listinfo/savonet-users
Tony Miller
2017-04-04 07:24:37 UTC
Permalink
Hey Romain,

I'm using the latest git version right now.
Thanks for that bash snippet btw that really helps. :)

Looks like I don't have my content-type headers working quite corrrectly, I
will fix that and let you know how it goes.

Thanks,
Post by Romain Beauxis
Hi Tony,
What version of liquidsoap are you using?
If you are using a recent codebase, I just migrated the download code from
https://github.com/savonet/liquidsoap/blob/master/
scripts/protocols.liq#L119
Regardless of the version, extension should be determined by the mim type
as returned by the distant server. This command should tell you what is
curl -sLI -X HEAD #{uri} | grep -i '^content-type' | tail -n 1 | cut
-d':' -f 2 | cut -d';' -f 1
Romain
Post by Tony Miller
For the record I tried `taglib.force_mpeg` and it seems to help, not
sure if this has any downsides.
Post by Tony Miller
Hi, I'm using request.dynamic to play files from http. I can see these
are downloaded to /tmp like I expect.
```
annotate:liq_fade_in=0,liq_fade_out=0,liq_cue_in=0:https://d
ongles.streampusher-relay.club/datafruits/Datafruits-7thAug2
016-VRClubwithCaliforniaGamesandVanillaSnickers.mp3?1480408652
2017/03/24 06:25:18 [decoder:3] Method "MAD" accepted
"/tmp/liq71c9f6.osb".
2017/03/24 06:25:19 [requests:3] Finished with "/tmp/liqd101c8.osb".
2017/03/24 06:25:19 [requests:3] Prepared "/tmp/liq71c9f6.osb" (RID 6).
```
I noticed that now the extension is .osb, which I believe is confusing
the metadata parsing mechanism. There is no metadata on my final icecast
stream.
I googled a bit and found this pretty old post, where Romain seems to
suggest using a configuration option named "taglib.force_mp3" (now renamed
to force_mpeg).
Is this what I need, or am I making some other mistake?
Thanks,
--
-Tony Miller
github.com/mcfiredrill
@freedrull
freedrool.us
--
-Tony Miller
github.com/mcfiredrill
@freedrull
freedrool.us
------------------------------------------------------------
------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Savonet-users mailing list
https://lists.sourceforge.net/lists/listinfo/savonet-users
------------------------------------------------------------
------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Savonet-users mailing list
https://lists.sourceforge.net/lists/listinfo/savonet-users
--
-Tony Miller
github.com/mcfiredrill
@freedrull
freedrool.us
Loading...