Release IPTV remuxer for tvheadend - make any stream work as IPTV input - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: PVR & Live TV Support (https://forum.kodi.tv/forumdisplay.php?fid=167) +---- Forum: Tvheadend (https://forum.kodi.tv/forumdisplay.php?fid=168) +---- Thread: Release IPTV remuxer for tvheadend - make any stream work as IPTV input (/showthread.php?tid=208817) |
RE: IPTV remuxer for tvheadend - make any stream work as IPTV input - negge - 2014-12-05 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. RE: IPTV remuxer for tvheadend - make any stream work as IPTV input - bema - 2014-12-06 Ok nice . Will upgrade my TvH server soon and will do do some test with the remuxer... RE: IPTV remuxer for tvheadend - make any stream work as IPTV input - noggin - 2014-12-06 Hi negge Trying to get my head round using either your code or TVHeadend on its own if needed to add SVT1/SVT2 etc. as IPTV streams (from the SVT Play Kanaler source) for use within TV Headend (rather than using the SVTPlay plugin) so that I get them integrated with DVB sources. Any guidance gratefully received. Am happy in TV Headend with the DVB stuff, but the IPTV stuff looks very new and different, and as I've built TVHeadend from GIT the IPTV menu appears to have been replaced by Stream menus? When I tried installing your code from github on a Pi, I get the following error on "npm install" http://pastebin.com/51sNzGs1 When I tried running your code after this I get the following error http://pastebin.com/7uZMcvWE This was on a Raspberry Pi running Debian. Clean install, just ran an apt-get update first, installed what was required to run TV Headend and built and installed that. RE: IPTV remuxer for tvheadend - make any stream work as IPTV input - woomg - 2014-12-20 Hi negge I can not configure for rtmp address. Please explain more detail of configuarion for RTMP? Or please test with following rtmp address. rtmp://111.118.21.77:1935/ptv3/phd16 Thanks, woomg RE: IPTV remuxer for tvheadend - make any stream work as IPTV input - negge - 2014-12-20 Enable verbose logging and see where it fails. RTMP should work just fine. RE: IPTV remuxer for tvheadend - make any stream work as IPTV input - woomg - 2014-12-21 (2014-12-20, 11:30)negge Wrote: Enable verbose logging and see where it fails. RTMP should work just fine. I found the error with verbose logging. [mpegts @ 0xd69660] H.264 bitstream malformed, no startcode found, use -vbsf h264_mp4toannexb av_interleaved_write_frame(): Operation not permitted Thanks, RE: IPTV remuxer for tvheadend - make any stream work as IPTV input - negge - 2014-12-21 Glad you figured it out. That option is pretty common, it's even used in an example in the README. RE: IPTV remuxer for tvheadend - make any stream work as IPTV input - bema - 2015-01-09 (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: [ 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 RE: IPTV remuxer for tvheadend - make any stream work as IPTV input - negge - 2015-01-09 It remuxes into an MPEG-TS container so it's not just a copy. RE: IPTV remuxer for tvheadend - make any stream work as IPTV input - bema - 2015-01-10 Ok, how do I "remove" the MPEG-TS container ? Which is what I really want... RE: IPTV remuxer for tvheadend - make any stream work as IPTV input - negge - 2015-01-11 You can't, that's not what this program is for. RE: IPTV remuxer for tvheadend - make any stream work as IPTV input - j1nx - 2015-01-20 Can anyone help me to get this one going? { "name": "ABC News", "provider": "ABC", "url": "/abc_news", "source": "http://abclive.abcnews.com/i/abc_live4@136330/index_1200_av-b.m3u8?sd=10&b=1200&rebase=on", "avconvOptions": { "output": [ "-bsf", "h264_mp4toannexb" ] } } RE: IPTV remuxer for tvheadend - make any stream work as IPTV input - negge - 2015-01-20 Enable verbose logging and see what it says. RE: IPTV remuxer for tvheadend - make any stream work as IPTV input - j1nx - 2015-01-20 Doh! https://gist.github.com/j1nx/e708c66d049806b3fac7 srry And this one without the "avconvOptions": { "output": [ "-bsf", "h264_mp4toannexb" ] } https://gist.github.com/j1nx/620f0d3f352e168170a3 Looks like a FFMPEG bug. # echo "deb http://www.deb-multimedia.org wheezy main non-free" >> /etc/apt/sources.list # echo "deb-src http://www.deb-multimedia.org wheezy main non-free" >> /etc/apt/sources.list # apt-get update # apt-get install deb-multimedia-keyring # apt-get update # apt-get upgrade # apt-get dist-upgrade See if that fixes it. This is the FFMPEG version that is installed with above cmd's # ffmpeg -version ffmpeg version 1.0.10 built on Jul 25 2014 08:30:08 with gcc 4.6 (Debian 4.6.3-14) configuration: --prefix=/usr --extra-cflags='-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security ' --extra-ldflags='-Wl,-z,relro' --cc='ccache cc' --enable-shared --enable-libmp3lame --enable-gpl --enable-nonfree --enable-libvorbis --enable-pthreads --enable-libfaac --enable-libxvid --enable-postproc --enable-x11grab --enable-libgsm --enable-libtheora --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-libspeex --enable-nonfree --disable-stripping --enable-libvpx --enable-libschroedinger --disable-encoder=libschroedinger --enable-version3 --enable-libopenjpeg --enable-librtmp --enable-avfilter --enable-libfreetype --enable-libvo-aacenc --disable-decoder=amrnb --enable-libvo-amrwbenc --enable-libaacplus --libdir=/usr/lib/arm-linux-gnueabihf --disable-vda --enable-libbluray --enable-libcdio --enable-gnutls --enable-frei0r --enable-openssl --enable-libass --enable-libopus --enable-fontconfig --enable-libfdk-aac --enable-libdc1394 --disable-altivec --disable-armv5te --disable-armv6 --disable-vis --shlibdir=/usr/lib/arm-linux-gnueabihf libavutil 51. 73.101 / 51. 73.101 libavcodec 54. 59.100 / 54. 59.100 libavformat 54. 29.104 / 54. 29.104 libavdevice 54. 2.101 / 54. 2.101 libavfilter 3. 17.100 / 3. 17.100 libswscale 2. 1.101 / 2. 1.101 libswresample 0. 15.100 / 0. 15.100 libpostproc 52. 0.100 / 52. 0.100 RE: IPTV remuxer for tvheadend - make any stream work as IPTV input - j1nx - 2015-01-23 Forgot to report back. A newer FFMPEF version solved the above issue. ABC News is running fine now. |