(2014-12-05, 12:19)negge Wrote: You can take the stream URL from tvheadend and add it as a channel in the remuxer, then add the necessary parameters to get the stream working in Logitech Media server. That's assuming the latter can play stuff from HTTP.
Hello
Before I involved Tvh I did som test from Swedish Radio. This stream plays fine in LMS. My sources file:
PHP Code:
[
{
"name": "P3",
"provider": "SR",
"url": "/P3.mp3",
"source": "http://sverigesradio.se/topsy/direkt/164-hi-mp3",
"avconvOptions": {
"input": [
],
"output": [
"-f", "mp3"
]
}
}
]
This plays fine in VLC but in LMS it stops after a while, why ? Isn't it just a "copy" of the input file ? The log file for LMS says nothing. Here is from node-proxy:
2015-01-08T22:01:11.904Z - info: Server listening on port 9128
2015-01-08T22:01:15.994Z - debug: Got request for /P3.mp3 from ::ffff:192.168.0.100
2015-01-08T22:01:15.995Z - silly: Options passed to avconv: -re,-i,http://sverigesradio.se/topsy/direkt/164-hi-mp3,-vcodec,copy,-acodec,copy,-metadata,service_provider=SR,-metadata,service_name=P3,-f,mpegts,-f,mp3,pipe:1
2015-01-08T22:01:16.013Z - silly: avconv version 9.16-6:9.16-0ubuntu0.14.04.1, Copyright © 2000-2014 the Libav developers
built on Aug 10 2014 18:16:02 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
2015-01-08T22:01:16.557Z - silly: [mp3 @ 0x174da60] max_analyze_duration reached
[mp3 @ 0x174da60] Estimating duration from bitrate, this may be inaccurate
2015-01-08T22:01:16.557Z - silly: Guessed Channel Layout for Input Stream #0.0 : stereo
Input #0, mp3, from 'http://sverigesradio.se/topsy/direkt/164-hi-mp3':
Duration: N/A, start: 0.000000, bitrate: 192 kb/s
Stream #0.0: Audio: mp3, 48000 Hz, stereo, s16p, 192 kb/s
2015-01-08T22:01:16.559Z - silly: Output #0, mp3, to 'pipe:1':
Metadata:
service_provider: SR
service_name : P3
TSSE : Lavf54.20.4
Stream #0.0: Audio: libmp3lame, 48000 Hz, stereo, 192 kb/s
Stream mapping:
2015-01-08T22:01:16.560Z - silly: Stream #0:0 -> #0:0 (copy)
Press ctrl-c to stop encoding
2015-01-08T22:01:17.064Z - silly: size= 12kB time=0.50 bitrate= 202.6kbits/s
2015-01-08T22:01:17.568Z - silly: size= 24kB time=1.01 bitrate= 197.3kbits/s
2015-01-08T22:01:18.072Z - silly: size= 36kB time=1.51 bitrate= 195.5kbits/s
2015-01-08T22:01:18.576Z - silly: size= 48kB time=2.02 bitrate= 194.6kbits/s
2015-01-08T22:01:19.080Z - silly: size= 60kB time=2.52 bitrate= 194.1kbits/s
2015-01-08T22:01:19.584Z - silly: size= 72kB time=3.02 bitrate= 193.8kbits/s
2015-01-08T22:01:20.088Z - silly: size= 83kB time=3.53 bitrate= 193.5kbits/s
2015-01-08T22:01:20.592Z - silly: size= 95kB time=4.03 bitrate= 193.3kbits/s
2015-01-08T22:01:21.096Z - silly: size= 107kB time=4.54 bitrate= 193.2kbits/s
2015-01-08T22:01:21.600Z - silly: size= 119kB time=5.04 bitrate= 193.1kbits/s
2015-01-08T22:01:22.017Z - info: ::ffff:192.168.0.100 disconnected, stopping avconv
2015-01-08T22:01:22.032Z - silly: size= 129kB time=5.47 bitrate= 193.0kbits/s
video:0kB audio:129kB global headers:0kB muxing overhead 0.068990%
2015-01-08T22:01:22.032Z - silly: Received signal 15: terminating.
2015-01-08T22:01:22.037Z - error: avconv exited with code 255