Hello,
I have the confirmation that for now the command line version of
Stereotool doesn't handle properly all wav file structure, so metadata
are lost.
Liquidsoap have some options like on_metadata or store_metadata, I will
try to understand how to store metadata somehwere and rewrite them.
Let me know if you have some news!
Il 05/01/2017 11:11, Simone Dal Maso ha scritto:
> Yes, I confirm, unfortunately it doesn't work.
> On my opinion the process is right, I will ask to stereotool staff is
> they have some metadata options somewhere.
> I suspect that saving to wav/pcm file metadata are lost.
>
> Il 04/01/2017 18:30, Markus Koller ha scritto:
>> I'm not sure, but it sees like stereotool deletes the metadatda. Maybe
>> we can save the metadata before processing and then reapply after
>> processing. Note, I have no radio object, I just have s.
>>
>> I tried the following, but without success
>>
>> #preserve meta
>> pattern = "$(title)"
>>
>> # stereo-tool write to output
>> output.file(%wav(stereo=true, channels=2, samplesize=16, header=true,
>> duration=1.), "/tmp/audioin.pcm", s)
>>
>> # put all stream in the s object using the dd command
>> s = mksafe(input.external("dd if=/tmp/audioout.pcm 2>/dev/null"))
>>
>> # re-apply metadata that got lost by stereo-tool
>> # pattern = '"$(title)"'
>> s = rewrite_metadata([("title",pattern)], s)
>>
>> Have a good evening.
>>
>> 2017-01-04 18:13 GMT+01:00 Simone Dal Maso <[email protected]
>> <mailto:[email protected]>>:
>>
>>
>> Il 04/01/2017 17:48, Markus Koller ha scritto:
>>
>> $(title) seems to empty...i only get " - radiostation name"
>>
>>
>> Hum, not good.
>> So Stereo_tool destroy metadata? It is possible that the problem is
>> in the preset file, tomorrow morning I will investigate about this.
>> Have a nice day!
>>
>>
>>
>>
>> Markus
>>
>> 2017-01-04 17:09 GMT+01:00 Simone Dal Maso
>> <[email protected] <mailto:[email protected]>
>> <mailto:[email protected]
>> <mailto:[email protected]>>>:
>>
>> Hello Markus,
>> Thank you very much for pointing out this.
>> I didn't realize this problem with metadata.
>>
>> Well, I think we can try to insert metadata on the "s"
>> object,
>> instead of radio.
>> Since I must go out from the office, can you try to insert
>> this line
>> before the icecast streaming?
>>
>> s = rewrite_metadata([("title", "$(title) - NvRadio")], s)
>>
>> and then put the #enable icecast streaming section.
>>
>> Replace NvRadio with the name of your radio.
>> If it doesn't work let me knowm we can ask support on the
>> stereotool
>> forum.
>>
>> Thank you!
>>
>>
>>
>> Il 04/01/2017 16:58, Markus Koller ha scritto:
>>
>> Hey Simone
>>
>> Thanks for the tutorial with stereo_tool, it works fine.
>>
>> Just one small problem, the metadata gets lost by
>> processing with
>> stereo_tool. How do I get them back?
>>
>> Best
>>
>> Markus
>>
>> 2017-01-04 11:50 GMT+01:00 Simone Dal Maso
>> <[email protected]
>> <mailto:[email protected]>
>> <mailto:[email protected]
>> <mailto:[email protected]>>
>> <mailto:[email protected]
>> <mailto:[email protected]>
>>
>> <mailto:[email protected]
>> <mailto:[email protected]>>>>:
>>
>>
>> Hello,
>> Finally I decided to follow the stereo_tool solution.
>> I put here the code snippet, also if you can find it
>> on the
>> web in some
>> forum.
>>
>> So:
>> The concept is using stereo_tool that process the
>> sound and
>> really give
>> a super sound!
>> Now I can see that my webradio has a professional
>> audio.
>> Use stereo_tool command line version, I'm using
>> version 800
>> because from
>> 812 I have error with c++ libraries. It seems Debian
>> Jessie
>> is too old
>> for version 814...
>>
>> You should download a setting preset from the
>> stereotool
>> forum section.
>> It's really easy and there is a good choice.
>>
>> Then create 2 files:
>>
>> mkfifo /tmp/audioin.pcm
>> mkfifo /tmp/audioout.pcm
>>
>> There are the files that must be read and write by
>> liquidsoap and
>> stereotool.
>> The stereotool side is really easy, you can give a
>> simple:
>> ./stereo_tool_cmd_64_800 /tmp/audioin.pcm
>> /tmp/audioout.pcm -s
>> ./mySettings.sts &
>>
>> The liquidsoap section instead:
>>
>>
>> I have a "radio" object that contain all playlists
>> and
>> scheduling
>> options. So we must generate a wav file that will be
>> read by
>> stereotool,
>> and then take the output file and stream by
>> icecast. The
>> piece of code
>> is follow:
>>
>> output.file(%wav(stereo=true, channels=2,
>> samplesize=16,
>> header=true,
>> duration=1.),
>> "/tmp/audioin.pcm",
>> radio
>> )
>>
>> # put all stream in the s object using the dd command
>> s = mksafe(input.external("dd if=/tmp/audioout.pcm
>> 2>/dev/null"))
>>
>> #enable icecast streaming passing the S object
>> output.icecast(%mp3(
>> samplerate=44100,
>> stereo=true,
>> bitrate=128),
>> mount="/stream",
>> name="NvRadio",
>> host="127.0.0.1",
>> port=8000,
>> password="CipCipCipCipCipCipCip",
>> genre="70's, 80's, 90's, easy listening, oldies,
>> top 40/pop",
>> url="http://www.nvapple.it/",
>> icy_metadata="true",description = "radio a tema
>> accessibilita' !!",
>> public=true,s)
>>
>>
>> Remember, start liquidsoap before, you will hear a
>> silent
>> streaming,
>> then start stereo_tool and the magic sound will
>> appear.
>>
>> I think it is useful to check with monit or
>> similar the
>> stereo_tool
>> process, because if it dies for some reason, you
>> lost the
>> streaming.
>> So at least it is a good idea to implement a
>> script that
>> notify you by
>> email, put down liquidsoap and start the emergency
>> streaming
>> of icecast.
>>
>> On some circumstance you should kill also the "dd"
>> process,
>> but in my
>> server it was not necessary.
>>
>>
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>>
>> 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
>> [email protected]
>> <mailto:[email protected]>
>> <mailto:[email protected]
>> <mailto:[email protected]>>
>> <mailto:[email protected]
>> <mailto:[email protected]>
>> <mailto:[email protected]
>> <mailto:[email protected]>>>
>>
>> https://lists.sourceforge.net/lists/listinfo/savonet-users
>> <https://lists.sourceforge.net/lists/listinfo/savonet-users>
>>
>> <https://lists.sourceforge.net/lists/listinfo/savonet-users
>> <https://lists.sourceforge.net/lists/listinfo/savonet-users>>
>>
>> <https://lists.sourceforge.net/lists/listinfo/savonet-users
>> <https://lists.sourceforge.net/lists/listinfo/savonet-users>
>>
>> <https://lists.sourceforge.net/lists/listinfo/savonet-users
>> <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
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users