Use VLC in tvheadend.
Added by Alexandr Farnosov about 5 years ago
Hello.
Perhaps this topic has been on the forum. But can anyone suggest how to use ' vlc ' inside tvheadend. I have an rtmp stream, when using ffmpeg there is a huge delay and loss of quality.
Or other ways to view 'rtmp' in tvheadend.
Thanks in advance.
Replies (7)
RE: Use VLC in tvheadend. - Added by saen acro about 5 years ago
Use PIPE option via Spawn profile or by iptv input or inside playlist
RE: Use VLC in tvheadend. - Added by Alexandr Farnosov about 5 years ago
Can you help? What exactly to write in mux? I apologize for such stupid questions.
RE: Use VLC in tvheadend. - Added by saen acro about 5 years ago
pipe:///usr/bin/cvlc _commands_urls_etc_ pipe:1
RE: Use VLC in tvheadend. - Added by Alexandr Farnosov about 5 years ago
2019-09-07 14:51:31.427 mpegts: pipe:///usr/bin/cvlc rtmp://10.50.5.110/live/test pipe:1 in TV - tuning on IPTV 2019-09-07 14:51:31.428 subscription: 0023: "scan" subscribing to mux "pipe:///usr/bin/cvlc rtmp://10.50.5.110/live/test pipe:1", weight: 6, adapter: "IPTV", network: "SimaTV", service: "Raw PID Subscription" 2019-09-07 14:51:31.428 spawn: Executing "/usr/bin/cvlc" 2019-09-07 14:51:31.450 spawn: [00000000020d54a8] pulse audio output error: PulseAudio server connection failure: Connection refused 2019-09-07 14:51:31.454 spawn: [00000000020e4ad8] core interface error: no suitable interface module 2019-09-07 14:51:31.454 spawn: [0000000001fdb118] core libvlc error: interface "globalhotkeys,none" initialization failed 2019-09-07 14:51:31.454 spawn: [00000000020e4ad8] dbus interface error: Failed to connect to the D-Bus session daemon: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11 2019-09-07 14:51:31.454 spawn: [00000000020e4ad8] core interface error: no suitable interface module 2019-09-07 14:51:31.454 spawn: [0000000001fdb118] core libvlc error: interface "dbus,none" initialization failed 2019-09-07 14:51:31.454 spawn: [00000000020d7fd8] dummy interface: using the dummy interface module... 2019-09-07 14:51:31.998 spawn: Invalid UE golomb code 2019-09-07 14:51:32.001 spawn: Invalid UE golomb code 2019-09-07 14:51:33.233 spawn: ALSA lib confmisc.c:768:(parse_card) cannot find card '0' 2019-09-07 14:51:33.233 spawn: ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory 2019-09-07 14:51:33.233 spawn: ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings 2019-09-07 14:51:33.233 spawn: ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory 2019-09-07 14:51:33.233 spawn: ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name 2019-09-07 14:51:33.233 spawn: ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory 2019-09-07 14:51:33.233 spawn: ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory 2019-09-07 14:51:33.233 spawn: ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM default 2019-09-07 14:51:33.233 spawn: [00000000020d54a8] alsa audio output error: cannot open ALSA device "default": No such file or directory 2019-09-07 14:51:33.233 spawn: [00000000020d54a8] core audio output error: Audio output failed 2019-09-07 14:51:33.233 spawn: [00000000020d54a8] core audio output error: The audio device "default" could not be used: 2019-09-07 14:51:33.233 spawn: No such file or directory. 2019-09-07 14:51:33.233 spawn: [00000000020d54a8] core audio output error: module not functional 2019-09-07 14:51:33.233 spawn: [00007f8b64c6a8f8] core decoder error: failed to create audio output 2019-09-07 14:51:33.243 spawn: [00007f8b4c001268] xcb vout display error: window not available 2019-09-07 14:51:33.244 spawn: [00007f8b4c001268] xcb vout display error: window not available 2019-09-07 14:51:33.246 spawn: [00007f8b4c001268] xcb vout display error: window not available 2019-09-07 14:51:33.246 spawn: [00007f8b4c001268] xcb vout display error: window not available 2019-09-07 14:51:33.247 spawn: commandline read: vlc 2019-09-07 14:51:33.248 spawn: commandline read: -I 2019-09-07 14:51:33.251 spawn: commandline read: dummy 2019-09-07 14:51:33.251 spawn: commandline read: rtmp://10.50.5.110/live/test 2019-09-07 14:51:33.251 spawn: commandline read: pipe:1 2019-09-07 14:51:33.252 spawn: ~~~~~~~~~~~~~~~~~~~~~~~~~~| DirectFB 1.2.10 |~~~~~~~~~~~~~~~~~~~~~~~~~~ 2019-09-07 14:51:33.252 spawn: (c) 2001-2008 The world wide DirectFB Open Source Community 2019-09-07 14:51:33.252 spawn: (c) 2000-2004 Convergence (integrated media) GmbH 2019-09-07 14:51:33.252 spawn: ---------------------------------------------------------------- 2019-09-07 14:51:33.253 spawn: (*) DirectFB/Core: Single Application Core. (2014-10-21 10:15) 2019-09-07 14:51:33.255 spawn: (*) Direct/Memcpy: Using Generic 64bit memcpy() 2019-09-07 14:51:33.256 spawn: (!) DirectFB/core/vt: Error opening `/dev/tty0'! 2019-09-07 14:51:33.256 spawn: --> Permission denied 2019-09-07 14:51:33.256 spawn: (!) DirectFB/Core: Could not initialize 'system_core' core! 2019-09-07 14:51:33.256 spawn: --> Initialization error! 2019-09-07 14:51:33.256 spawn: [00007f8b4c001268] directfb vout display error: Cannot create primary surface 2019-09-07 14:51:33.259 spawn: Error opening terminal: unknown. 2019-09-07 14:51:33.266 iptv: stdin pipe unexpectedly closed: No data 2019-09-07 14:51:36.427 mpegts: pipe:///usr/bin/cvlc rtmp://10.50.5.110/live/test pipe:1 in TV - scan no data, failed 2019-09-07 14:51:36.427 subscription: 0023: "scan" unsubscribing
RE: Use VLC in tvheadend. - Added by saen acro about 5 years ago
https://wiki.videolan.org/Documentation:Streaming_HowTo/Command_Line_Examples/
something as
vlc -vvv URL --sout '#std{mux=ts,access=file,dst=-}'
RE: Use VLC in tvheadend. - Added by Alexandr Farnosov about 5 years ago
Not work.
Perhaps there are other ways to run rtmp?
RE: Use VLC in tvheadend. - Added by saen acro about 5 years ago
it will not work because command is incomplete.
you need to convert input RTMP stream to compatible HTTP-TS container
ffmpeg -i "rtsp://[ip-address]/[URI-syntax]" -vcodec libx264 -vb 150000 -g 60 -vprofile baseline -level 2.1 -acodec aac -ab 64000 -ar 48000 -ac 2 -vbsf h264_mp4toannexb -strict experimental -f mpegts udp://127.0.0.1:10000?pkt_size=1316