Project

General

Profile

Help with pipe HTTP video

Added by Cleiton Oppenheimer over 3 years ago

Hi, I have been trying to follow some instructions found here on the forum, to successfully add my USB Webcam to a IPTV Mux.

Basically I'm running motion to stream it over HTTP. I am able to stream the WebCam using VLC using: http://192.168.0.122:8081.

I have tried do pipe this into a MUX, but unfortunatelly it is not working. I'm using:

pipe:///usr/bin/ffmpeg -i http://192.168.0.122:8081 -vcodec copy -acodec copy -f mjpeg pipe:1 

as the URL for the MUX.

Checking the Log on TVH, shows me:

2021-06-16 21:36:50.225 http: X.X.X.X: using ticket DED67F6934D1E2C51450462A44B4C490E366DAB7 for /stream/mux/5c704b09c00578592692dce4440ea3ca
2021-06-16 21:36:50.226 mpegts: Cam in Cam - tuning on IPTV
2021-06-16 21:36:50.231 spawn: Executing "/usr/bin/ffmpeg" 
2021-06-16 21:36:50.231 subscription: 0006: "HTTP" subscribing to mux "Cam", weight: 10, adapter: "IPTV", network: "Cam", service: "Raw PID Subscription", hostname="X.X.X.X", client="VLC/3.0.7.1 LibVLC/3.0.7.1" 
2021-06-16 21:36:50.651 spawn: ffmpeg version 2.8.17-0ubuntu0.1 Copyright (c) 2000-2020 the FFmpeg developers
2021-06-16 21:36:50.651 spawn:   built with gcc 5.4.0 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.12) 20160609
2021-06-16 21:36:50.651 spawn:   configuration: --prefix=/usr --extra-version=0ubuntu0.1 --build-suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/arm-linux-gnueabihf --incdir=/usr/include/arm-linux-gnueabihf --cc=cc --cxx=g++ --enable-gpl --enable-shared --disable-stripping --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal --enable-opengl --enable-x11g
2021-06-16 21:36:50.652 spawn:   libavutil      54. 31.100 / 54. 31.100
2021-06-16 21:36:50.652 spawn:   libavcodec     56. 60.100 / 56. 60.100
2021-06-16 21:36:50.652 spawn:   libavformat    56. 40.101 / 56. 40.101
2021-06-16 21:36:50.652 spawn:   libavdevice    56.  4.100 / 56.  4.100
2021-06-16 21:36:50.652 spawn:   libavfilter     5. 40.101 /  5. 40.101
2021-06-16 21:36:50.652 spawn:   libavresample   2.  1.  0 /  2.  1.  0
2021-06-16 21:36:50.652 spawn:   libswscale      3.  1.101 /  3.  1.101
2021-06-16 21:36:50.652 spawn:   libswresample   1.  2.101 /  1.  2.101
2021-06-16 21:36:50.652 spawn:   libpostproc    53.  3.100 / 53.  3.100
2021-06-16 21:37:06.227 subscription: 0006: service instance is bad, reason: No input detected
2021-06-16 21:37:06.456 spawn: [mjpeg @ 0x6b7b0] Format mjpeg detected only with low score of 25, misdetection possible!
2021-06-16 21:37:06.459 spawn: [mjpeg @ 0x6b7b0] Could not find codec parameters for stream 0 (Video: mjpeg, none(bt470bg/unknown/unknown)): unspecified size
2021-06-16 21:37:06.459 spawn: Consider increasing the value for the 'analyzeduration' and 'probesize' options
2021-06-16 21:37:06.459 spawn: http://192.168.0.122:8081: could not find codec parameters
2021-06-16 21:37:06.459 spawn: Input #0, mjpeg, from 'http://192.168.0.122:8081':
2021-06-16 21:37:06.459 spawn:   Duration: N/A, bitrate: N/A
2021-06-16 21:37:06.459 spawn:     Stream #0:0: Video: mjpeg, none(bt470bg/unknown/unknown), 25 tbr, 1200k tbn, 25 tbc
2021-06-16 21:37:06.460 spawn: Output #0, mjpeg, to 'pipe:1':
2021-06-16 21:37:06.460 spawn: Output file #0 does not contain any stream
2021-06-16 21:37:06.461 spawn: Exiting normally, received signal 15.
2021-06-16 21:37:08.227 subscription: 0006: No input source available for subscription "HTTP" to mux "Cam in Cam" 
2021-06-16 21:37:08.227 webui: Couldn't start streaming /stream/mux/5c704b09c00578592692dce4440ea3ca?ticket=DED67F6934D1E2C51450462A44B4C490E366DAB7, No input detected
2021-06-16 21:37:08.227 subscription: 0006: "HTTP" unsubscribing, hostname="X.X.X.X", client="VLC/3.0.7.1 LibVLC/3.0.7.1" 
2021-06-16 21:37:08.297 http: X.X.X.X: using ticket DED67F6934D1E2C51450462A44B4C490E366DAB7 for /stream/mux/5c704b09c00578592692dce4440ea3ca
2021-06-16 21:37:08.298 mpegts: Cam in Cam - tuning on IPTV
2021-06-16 21:37:08.303 subscription: 0007: "HTTP" subscribing to mux "Cam", weight: 10, adapter: "IPTV", network: "Cam", service: "Raw PID Subscription", hostname="X.X.X.X", client="VLC/3.0.7.1 LibVLC/3.0.7.1" 
2021-06-16 21:37:08.307 spawn: Executing "/usr/bin/ffmpeg" 
2021-06-16 21:37:08.693 spawn: ffmpeg version 2.8.17-0ubuntu0.1 Copyright (c) 2000-2020 the FFmpeg developers
2021-06-16 21:37:08.693 spawn:   built with gcc 5.4.0 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.12) 20160609
2021-06-16 21:37:08.693 spawn:   configuration: --prefix=/usr --extra-version=0ubuntu0.1 --build-suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/arm-linux-gnueabihf --incdir=/usr/include/arm-linux-gnueabihf --cc=cc --cxx=g++ --enable-gpl --enable-shared --disable-stripping --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal --enable-opengl --enable-x11g
2021-06-16 21:37:08.693 spawn:   libavutil      54. 31.100 / 54. 31.100
2021-06-16 21:37:08.693 spawn:   libavcodec     56. 60.100 / 56. 60.100
2021-06-16 21:37:08.694 spawn:   libavformat    56. 40.101 / 56. 40.101
2021-06-16 21:37:08.694 spawn:   libavdevice    56.  4.100 / 56.  4.100
2021-06-16 21:37:08.694 spawn:   libavfilter     5. 40.101 /  5. 40.101
2021-06-16 21:37:08.694 spawn:   libavresample   2.  1.  0 /  2.  1.  0
2021-06-16 21:37:08.694 spawn:   libswscale      3.  1.101 /  3.  1.101
2021-06-16 21:37:08.694 spawn:   libswresample   1.  2.101 /  1.  2.101
2021-06-16 21:37:08.694 spawn:   libpostproc    53.  3.100 / 53.  3.100
2021-06-16 21:37:24.299 subscription: 0007: service instance is bad, reason: No input detected
2021-06-16 21:37:24.528 spawn: [mjpeg @ 0x6b7b0] Format mjpeg detected only with low score of 25, misdetection possible!
2021-06-16 21:37:24.531 spawn: [mjpeg @ 0x6b7b0] Could not find codec parameters for stream 0 (Video: mjpeg, none(bt470bg/unknown/unknown)): unspecified size
2021-06-16 21:37:24.531 spawn: Consider increasing the value for the 'analyzeduration' and 'probesize' options
2021-06-16 21:37:24.531 spawn: http://192.168.0.122:8081: could not find codec parameters
2021-06-16 21:37:24.532 spawn: Input #0, mjpeg, from 'http://192.168.0.122:8081':
2021-06-16 21:37:24.532 spawn:   Duration: N/A, bitrate: N/A
2021-06-16 21:37:24.532 spawn:     Stream #0:0: Video: mjpeg, none(bt470bg/unknown/unknown), 25 tbr, 1200k tbn, 25 tbc
2021-06-16 21:37:24.533 spawn: Output #0, mjpeg, to 'pipe:1':
2021-06-16 21:37:24.533 spawn: Output file #0 does not contain any stream
2021-06-16 21:37:24.534 spawn: Exiting normally, received signal 15.
2021-06-16 21:37:26.299 subscription: 0007: No input source available for subscription "HTTP" to mux "Cam in Cam" 
2021-06-16 21:37:26.299 webui: Couldn't start streaming /stream/mux/5c704b09c00578592692dce4440ea3ca?ticket=DED67F6934D1E2C51450462A44B4C490E366DAB7, No input detected
2021-06-16 21:37:26.300 subscription: 0007: "HTTP" unsubscribing, hostname="X.X.X.X", client="VLC/3.0.7.1 LibVLC/3.0.7.1" 

I have already tried using "-f mpegts" as an argument, but nothing changes.

Also have tried to follow the "Consider increasing the value for the 'analyzeduration' and 'probesize' options", but no changes.

Can someone help me on how to proceed?

BTW, I am using a SBC with relativelly low processing (ARM QuadCore).

Tks


Replies (11)

RE: Help with pipe HTTP video - Added by saen acro over 3 years ago

Transcode stream to some iptv supported format, vp8/h264 for example.

RE: Help with pipe HTTP video - Added by Cleiton Oppenheimer over 3 years ago

Unfortunately, it seems to be too much for my Nano Pi Zero Pi to perform transcoding. CPU usage goes to 300% using h264.

Specs:
Number of Cores: Quad-core
Frequency: 4 x Cortex-A7 Up to 1.2GHz
Memory RAM: 512MB

I will probably try to get a new Cam with h264 output support or move to a raspberry pi to take benefit of hw-transcoding.

If any other suggestion is still available to keep the system with the current devices, please let me know.

Tks

RE: Help with pipe HTTP video - Added by saen acro over 3 years ago

Use hardware transcoder OMX or MMAL

RE: Help with pipe HTTP video - Added by Cleiton Oppenheimer over 3 years ago

Are OMX or MMAL supported by any kind of hardware? I could find few posts referencing only the Raspberry Pi.

If these could work with my FriendlyArm, that could be of great help.

RE: Help with pipe HTTP video - Added by Cleiton Oppenheimer over 3 years ago

Using OMX I am able to transcode live WebCam to a file using:

ffmpeg -f v4l2 -i /dev/video0 -codec:v h264_omx -b:v 2048k webcam.mkv

How can I edit this command to be used as pipe? Changing webcam.mkv to pipe:1 gives me the following error:

service instance is bad, reason: No input detected

Tks

RE: Help with pipe HTTP video - Added by saen acro over 3 years ago

Output as MPEGTS.

RE: Help with pipe HTTP video - Added by Cleiton Oppenheimer over 3 years ago

Using "-f v4l2" produces the following output on the log:

2021-06-30 18:10:55.605 http: 192.168.0.129: using ticket 3CA8B68F424F459A44FA6C658B14548C2446DE1C for /stream/mux/425aab677bd472f8175a4cc3718f1c11
2021-06-30 18:10:55.606 mpegts: WebCam in Camera - tuning on IPTV
2021-06-30 18:10:55.617 spawn: Executing "/usr/bin/ffmpeg" 
2021-06-30 18:10:55.618 subscription: 0003: "HTTP" subscribing to mux "WebCam", weight: 10, adapter: "IPTV", network: "Camera", service: "Raw PID Subscription", hostname="192.168.0.129", client="VLC/3.0.7.1 LibVLC/3.0.7.1" 
2021-06-30 18:10:56.303 spawn: ffmpeg version 4.1.6-1~deb10u1+rpt2 Copyright (c) 2000-2020 the FFmpeg developers
2021-06-30 18:10:56.303 spawn:   built with gcc 8 (Raspbian 8.3.0-6+rpi1)
2021-06-30 18:10:56.303 spawn:   configuration: --prefix=/usr --extra-version='1~deb10u1+rpt2' --toolchain=hardened --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable
2021-06-30 18:10:56.307 spawn:   WARNING: library configuration mismatch
2021-06-30 18:10:56.307 spawn:   avutil      configuration: --prefix=/usr --extra-version='1~deb10u1+rpt2' --toolchain=hardened --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-ope
2021-06-30 18:10:56.320 spawn:   libavutil      56. 22.100 / 56. 22.100
2021-06-30 18:10:56.320 spawn:   libavcodec     58. 35.100 / 58. 35.100
2021-06-30 18:10:56.320 spawn:   libavformat    58. 20.100 / 58. 20.100
2021-06-30 18:10:56.320 spawn:   libavdevice    58.  5.100 / 58.  5.100
2021-06-30 18:10:56.320 spawn:   libavfilter     7. 40.101 /  7. 40.101
2021-06-30 18:10:56.320 spawn:   libavresample   4.  0.  0 /  4.  0.  0
2021-06-30 18:10:56.320 spawn:   libswscale      5.  3.100 /  5.  3.100
2021-06-30 18:10:56.320 spawn:   libswresample   3.  3.100 /  3.  3.100
2021-06-30 18:10:56.320 spawn:   libpostproc    55.  3.100 / 55.  3.100
2021-06-30 18:10:59.468 spawn: Input #0, video4linux2,v4l2, from '/dev/video0':
2021-06-30 18:10:59.468 spawn:   Duration: N/A, start: 115.045855, bitrate: 298598 kb/s
2021-06-30 18:10:59.469 spawn:     Stream #0:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 1920x1080, 298598 kb/s, 9 fps, 9 tbr, 1000k tbn, 1000k tbc
2021-06-30 18:10:59.474 spawn: [NULL @ 0xc87be0] Unable to find a suitable output format for 'pipe:1'
2021-06-30 18:10:59.474 spawn: pipe:1: Invalid argument
2021-06-30 18:10:59.656 spawn: Executing "/usr/bin/ffmpeg" 
2021-06-30 18:11:00.097 spawn: ffmpeg version 4.1.6-1~deb10u1+rpt2 Copyright (c) 2000-2020 the FFmpeg developers
2021-06-30 18:11:00.097 spawn:   built with gcc 8 (Raspbian 8.3.0-6+rpi1)
2021-06-30 18:11:00.097 spawn:   configuration: --prefix=/usr --extra-version='1~deb10u1+rpt2' --toolchain=hardened --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable
2021-06-30 18:11:00.097 spawn:   WARNING: library configuration mismatch
2021-06-30 18:11:00.097 spawn:   avutil      configuration: --prefix=/usr --extra-version='1~deb10u1+rpt2' --toolchain=hardened --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-ope
2021-06-30 18:11:00.098 spawn:   libavutil      56. 22.100 / 56. 22.100
2021-06-30 18:11:00.098 spawn:   libavcodec     58. 35.100 / 58. 35.100
2021-06-30 18:11:00.098 spawn:   libavformat    58. 20.100 / 58. 20.100
2021-06-30 18:11:00.098 spawn:   libavdevice    58.  5.100 / 58.  5.100
2021-06-30 18:11:00.098 spawn:   libavfilter     7. 40.101 /  7. 40.101
2021-06-30 18:11:00.098 spawn:   libavresample   4.  0.  0 /  4.  0.  0
2021-06-30 18:11:00.098 spawn:   libswscale      5.  3.100 /  5.  3.100
2021-06-30 18:11:00.098 spawn:   libswresample   3.  3.100 /  3.  3.100
2021-06-30 18:11:00.098 spawn:   libpostproc    55.  3.100 / 55.  3.100
2021-06-30 18:11:03.070 spawn: Input #0, video4linux2,v4l2, from '/dev/video0':
2021-06-30 18:11:03.070 spawn:   Duration: N/A, start: 118.690921, bitrate: 298598 kb/s
2021-06-30 18:11:03.071 spawn:     Stream #0:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 1920x1080, 298598 kb/s, 9 fps, 9 tbr, 1000k tbn, 1000k tbc
2021-06-30 18:11:03.072 spawn: [NULL @ 0xb82be0] Unable to find a suitable output format for 'pipe:1'
2021-06-30 18:11:03.072 spawn: pipe:1: Invalid argument
2021-06-30 18:11:03.155 spawn: Executing "/usr/bin/ffmpeg" 
2021-06-30 18:11:03.611 spawn: ffmpeg version 4.1.6-1~deb10u1+rpt2 Copyright (c) 2000-2020 the FFmpeg developers
2021-06-30 18:11:03.611 spawn:   built with gcc 8 (Raspbian 8.3.0-6+rpi1)
2021-06-30 18:11:03.611 spawn:   configuration: --prefix=/usr --extra-version='1~deb10u1+rpt2' --toolchain=hardened --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable
2021-06-30 18:11:03.611 spawn:   WARNING: library configuration mismatch
2021-06-30 18:11:03.612 spawn:   avutil      configuration: --prefix=/usr --extra-version='1~deb10u1+rpt2' --toolchain=hardened --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-ope
2021-06-30 18:11:03.612 spawn:   libavutil      56. 22.100 / 56. 22.100
2021-06-30 18:11:03.612 spawn:   libavcodec     58. 35.100 / 58. 35.100
2021-06-30 18:11:03.612 spawn:   libavformat    58. 20.100 / 58. 20.100
2021-06-30 18:11:03.612 spawn:   libavdevice    58.  5.100 / 58.  5.100
2021-06-30 18:11:03.612 spawn:   libavfilter     7. 40.101 /  7. 40.101
2021-06-30 18:11:03.612 spawn:   libavresample   4.  0.  0 /  4.  0.  0
2021-06-30 18:11:03.612 spawn:   libswscale      5.  3.100 /  5.  3.100
2021-06-30 18:11:03.612 spawn:   libswresample   3.  3.100 /  3.  3.100
2021-06-30 18:11:03.612 spawn:   libpostproc    55.  3.100 / 55.  3.100
2021-06-30 18:11:06.591 spawn: Input #0, video4linux2,v4l2, from '/dev/video0':
2021-06-30 18:11:06.591 spawn:   Duration: N/A, start: 122.211974, bitrate: 298598 kb/s
2021-06-30 18:11:06.592 spawn:     Stream #0:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 1920x1080, 298598 kb/s, 9 fps, 9 tbr, 1000k tbn, 1000k tbc
2021-06-30 18:11:06.592 spawn: [NULL @ 0x2399be0] Unable to find a suitable output format for 'pipe:1'
2021-06-30 18:11:06.592 spawn: pipe:1: Invalid argument
2021-06-30 18:11:06.678 spawn: Executing "/usr/bin/ffmpeg" 
2021-06-30 18:11:07.117 spawn: ffmpeg version 4.1.6-1~deb10u1+rpt2 Copyright (c) 2000-2020 the FFmpeg developers
2021-06-30 18:11:07.117 spawn:   built with gcc 8 (Raspbian 8.3.0-6+rpi1)
2021-06-30 18:11:07.117 spawn:   configuration: --prefix=/usr --extra-version='1~deb10u1+rpt2' --toolchain=hardened --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable
2021-06-30 18:11:07.117 spawn:   WARNING: library configuration mismatch
2021-06-30 18:11:07.117 spawn:   avutil      configuration: --prefix=/usr --extra-version='1~deb10u1+rpt2' --toolchain=hardened --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-ope
2021-06-30 18:11:07.118 spawn:   libavutil      56. 22.100 / 56. 22.100
2021-06-30 18:11:07.118 spawn:   libavcodec     58. 35.100 / 58. 35.100
2021-06-30 18:11:07.118 spawn:   libavformat    58. 20.100 / 58. 20.100
2021-06-30 18:11:07.118 spawn:   libavdevice    58.  5.100 / 58.  5.100
2021-06-30 18:11:07.118 spawn:   libavfilter     7. 40.101 /  7. 40.101
2021-06-30 18:11:07.118 spawn:   libavresample   4.  0.  0 /  4.  0.  0
2021-06-30 18:11:07.118 spawn:   libswscale      5.  3.100 /  5.  3.100
2021-06-30 18:11:07.118 spawn:   libswresample   3.  3.100 /  3.  3.100
2021-06-30 18:11:07.118 spawn:   libpostproc    55.  3.100 / 55.  3.100
2021-06-30 18:11:10.091 spawn: Input #0, video4linux2,v4l2, from '/dev/video0':
2021-06-30 18:11:10.091 spawn:   Duration: N/A, start: 125.712015, bitrate: 298598 kb/s
2021-06-30 18:11:10.092 spawn:     Stream #0:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 1920x1080, 298598 kb/s, 9 fps, 9 tbr, 1000k tbn, 1000k tbc
2021-06-30 18:11:10.093 spawn: [NULL @ 0x1c63be0] Unable to find a suitable output format for 'pipe:1'
2021-06-30 18:11:10.093 spawn: pipe:1: Invalid argument
2021-06-30 18:11:10.177 spawn: Executing "/usr/bin/ffmpeg" 
2021-06-30 18:11:10.629 spawn: ffmpeg version 4.1.6-1~deb10u1+rpt2 Copyright (c) 2000-2020 the FFmpeg developers
2021-06-30 18:11:10.630 spawn:   built with gcc 8 (Raspbian 8.3.0-6+rpi1)
2021-06-30 18:11:10.630 spawn:   configuration: --prefix=/usr --extra-version='1~deb10u1+rpt2' --toolchain=hardened --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable
2021-06-30 18:11:10.630 spawn:   WARNING: library configuration mismatch
2021-06-30 18:11:10.631 spawn:   postproc    configuration: --prefix=/usr --extra-version='1~deb10u1+rpt2' --toolchain=hardened --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-ope
2021-06-30 18:11:10.631 spawn:   libavutil      56. 22.100 / 56. 22.100
2021-06-30 18:11:10.631 spawn:   libavcodec     58. 35.100 / 58. 35.100
2021-06-30 18:11:10.631 spawn:   libavformat    58. 20.100 / 58. 20.100
2021-06-30 18:11:10.631 spawn:   libavdevice    58.  5.100 / 58.  5.100
2021-06-30 18:11:10.631 spawn:   libavfilter     7. 40.101 /  7. 40.101
2021-06-30 18:11:10.632 spawn:   libavresample   4.  0.  0 /  4.  0.  0
2021-06-30 18:11:10.632 spawn:   libswscale      5.  3.100 /  5.  3.100
2021-06-30 18:11:10.632 spawn:   libswresample   3.  3.100 /  3.  3.100
2021-06-30 18:11:10.632 spawn:   libpostproc    55.  3.100 / 55.  3.100
2021-06-30 18:11:11.607 subscription: 0003: service instance is bad, reason: No input detected
2021-06-30 18:11:14.607 subscription: 0003: No input source available for subscription "HTTP" to mux "WebCam in Camera" 
2021-06-30 18:11:14.607 webui: Couldn't start streaming /stream/mux/425aab677bd472f8175a4cc3718f1c11?ticket=3CA8B68F424F459A44FA6C658B14548C2446DE1C, No input detected

Changing it to "-f mpegts" produces the following:

2021-06-30 18:16:19.761 http: 192.168.0.129: using ticket 05F6F71C7780FBCA058C2166D3F19FCD4E61AF0C for /stream/mux/425aab677bd472f8175a4cc3718f1c11
2021-06-30 18:16:19.763 mpegts: WebCam in Camera - tuning on IPTV
2021-06-30 18:16:19.774 subscription: 000B: "HTTP" subscribing to mux "WebCam", weight: 10, adapter: "IPTV", network: "Camera", service: "Raw PID Subscription", hostname="192.168.0.129", client="VLC/3.0.7.1 LibVLC/3.0.7.1" 
2021-06-30 18:16:19.774 spawn: Executing "/usr/bin/ffmpeg" 
2021-06-30 18:16:20.247 spawn: ffmpeg version 4.1.6-1~deb10u1+rpt2 Copyright (c) 2000-2020 the FFmpeg developers
2021-06-30 18:16:20.247 spawn:   built with gcc 8 (Raspbian 8.3.0-6+rpi1)
2021-06-30 18:16:20.247 spawn:   configuration: --prefix=/usr --extra-version='1~deb10u1+rpt2' --toolchain=hardened --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable
2021-06-30 18:16:20.247 spawn:   WARNING: library configuration mismatch
2021-06-30 18:16:20.247 spawn:   avutil      configuration: --prefix=/usr --extra-version='1~deb10u1+rpt2' --toolchain=hardened --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-ope
2021-06-30 18:16:20.249 spawn:   libavutil      56. 22.100 / 56. 22.100
2021-06-30 18:16:20.249 spawn:   libavcodec     58. 35.100 / 58. 35.100
2021-06-30 18:16:20.249 spawn:   libavformat    58. 20.100 / 58. 20.100
2021-06-30 18:16:20.249 spawn:   libavdevice    58.  5.100 / 58.  5.100
2021-06-30 18:16:20.249 spawn:   libavfilter     7. 40.101 /  7. 40.101
2021-06-30 18:16:20.249 spawn:   libavresample   4.  0.  0 /  4.  0.  0
2021-06-30 18:16:20.249 spawn:   libswscale      5.  3.100 /  5.  3.100
2021-06-30 18:16:20.249 spawn:   libswresample   3.  3.100 /  3.  3.100
2021-06-30 18:16:20.249 spawn:   libpostproc    55.  3.100 / 55.  3.100
2021-06-30 18:16:23.308 spawn: Input #0, video4linux2,v4l2, from '/dev/video0':
2021-06-30 18:16:23.308 spawn:   Duration: N/A, start: 438.927894, bitrate: 298598 kb/s
2021-06-30 18:16:23.308 spawn:     Stream #0:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 1920x1080, 298598 kb/s, 9 fps, 9 tbr, 1000k tbn, 1000k tbc
2021-06-30 18:16:23.309 spawn: [NULL @ 0x164f020] Unable to find a suitable output format for 'pipe:1'
2021-06-30 18:16:23.309 spawn: pipe:1: Invalid argument
2021-06-30 18:16:23.398 spawn: Executing "/usr/bin/ffmpeg" 
2021-06-30 18:16:23.837 spawn: ffmpeg version 4.1.6-1~deb10u1+rpt2 Copyright (c) 2000-2020 the FFmpeg developers
2021-06-30 18:16:23.838 spawn:   built with gcc 8 (Raspbian 8.3.0-6+rpi1)
2021-06-30 18:16:23.838 spawn:   configuration: --prefix=/usr --extra-version='1~deb10u1+rpt2' --toolchain=hardened --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable
2021-06-30 18:16:23.838 spawn:   WARNING: library configuration mismatch
2021-06-30 18:16:23.838 spawn:   avutil      configuration: --prefix=/usr --extra-version='1~deb10u1+rpt2' --toolchain=hardened --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-ope
2021-06-30 18:16:23.839 spawn:   libavutil      56. 22.100 / 56. 22.100
2021-06-30 18:16:23.839 spawn:   libavcodec     58. 35.100 / 58. 35.100
2021-06-30 18:16:23.839 spawn:   libavformat    58. 20.100 / 58. 20.100
2021-06-30 18:16:23.839 spawn:   libavdevice    58.  5.100 / 58.  5.100
2021-06-30 18:16:23.839 spawn:   libavfilter     7. 40.101 /  7. 40.101
2021-06-30 18:16:23.840 spawn:   libavresample   4.  0.  0 /  4.  0.  0
2021-06-30 18:16:23.840 spawn:   libswscale      5.  3.100 /  5.  3.100
2021-06-30 18:16:23.840 spawn:   libswresample   3.  3.100 /  3.  3.100
2021-06-30 18:16:23.840 spawn:   libpostproc    55.  3.100 / 55.  3.100
2021-06-30 18:16:26.813 spawn: Input #0, video4linux2,v4l2, from '/dev/video0':
2021-06-30 18:16:26.814 spawn:   Duration: N/A, start: 442.433863, bitrate: 298598 kb/s
2021-06-30 18:16:26.814 spawn:     Stream #0:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 1920x1080, 298598 kb/s, 9 fps, 9 tbr, 1000k tbn, 1000k tbc
2021-06-30 18:16:26.815 spawn: [NULL @ 0x18c5020] Unable to find a suitable output format for 'pipe:1'
2021-06-30 18:16:26.815 spawn: pipe:1: Invalid argument
2021-06-30 18:16:26.899 spawn: Executing "/usr/bin/ffmpeg" 
2021-06-30 18:16:27.344 spawn: ffmpeg version 4.1.6-1~deb10u1+rpt2 Copyright (c) 2000-2020 the FFmpeg developers
2021-06-30 18:16:27.344 spawn:   built with gcc 8 (Raspbian 8.3.0-6+rpi1)
2021-06-30 18:16:27.344 spawn:   configuration: --prefix=/usr --extra-version='1~deb10u1+rpt2' --toolchain=hardened --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable
2021-06-30 18:16:27.344 spawn:   WARNING: library configuration mismatch
2021-06-30 18:16:27.345 spawn:   libavutil      56. 22.100 / 56. 22.100
2021-06-30 18:16:27.346 spawn:   libavcodec     58. 35.100 / 58. 35.100
2021-06-30 18:16:27.346 spawn:   libavformat    58. 20.100 / 58. 20.100
2021-06-30 18:16:27.346 spawn:   libavdevice    58.  5.100 / 58.  5.100
2021-06-30 18:16:27.346 spawn:   libavfilter     7. 40.101 /  7. 40.101
2021-06-30 18:16:27.346 spawn:   libavresample   4.  0.  0 /  4.  0.  0
2021-06-30 18:16:27.346 spawn:   libswscale      5.  3.100 /  5.  3.100
2021-06-30 18:16:27.346 spawn:   libswresample   3.  3.100 /  3.  3.100
2021-06-30 18:16:27.346 spawn:   libpostproc    55.  3.100 / 55.  3.100
2021-06-30 18:16:30.320 spawn: Input #0, video4linux2,v4l2, from '/dev/video0':
2021-06-30 18:16:30.321 spawn:   Duration: N/A, start: 445.940866, bitrate: 298598 kb/s
2021-06-30 18:16:30.321 spawn:     Stream #0:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 1920x1080, 298598 kb/s, 9 fps, 9 tbr, 1000k tbn, 1000k tbc
2021-06-30 18:16:30.322 spawn: [NULL @ 0xeac020] Unable to find a suitable output format for 'pipe:1'

Still no video output. Do you have any other hints? Or am I missing something?

Tks

RE: Help with pipe HTTP video - Added by Cleiton Oppenheimer over 3 years ago

That did not help.

I believe I'm close now:

Using:

pipe:///usr/bin/ffmpeg -i /dev/video0 -codec h264_omx -f mpegts pipe:2

Produces:

2021-07-01 18:50:20.166 spawn: Input #0, video4linux2,v4l2, from '/dev/video0':
2021-07-01 18:50:20.166 spawn:   Duration: N/A, start: 88875.786782, bitrate: 298598 kb/s
2021-07-01 18:50:20.166 spawn:     Stream #0:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 1920x1080, 298598 kb/s, 9 fps, 9 tbr, 1000k tbn, 1000k tbc
2021-07-01 18:50:20.167 spawn: Stream mapping:
2021-07-01 18:50:20.168 spawn:   Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (h264_omx))
2021-07-01 18:50:20.168 spawn: Press [q] to stop, [?] for help
2021-07-01 18:50:20.209 spawn: [h264_omx @ 0xfbf1c0] Using OMX.broadcom.video_encode
2021-07-01 18:50:20.214 spawn: Output #0, mpegts, to 'pipe:2':
2021-07-01 18:50:20.214 spawn:   Metadata:
2021-07-01 18:50:20.214 spawn:     encoder         : Lavf58.20.100
2021-07-01 18:50:20.214 spawn:     Stream #0:0: Video: h264 (h264_omx), yuv420p, 1920x1080, q=2-31, 200 kb/s, 9 fps, 90k tbn, 9 tbc
2021-07-01 18:50:20.214 spawn:     Metadata:
2021-07-01 18:50:20.214 spawn:       encoder         : Lavc58.35.100 h264_omx
2021-07-01 18:50:20.463 spawn: G@[mpegts @ 0xfbdd90] Non-monotonous DTS in output stream 0:0; previous: 0, current: 0; changing to 1. This may result in incorrect timestamps in the output file.
2021-07-01 18:50:20.676 spawn: G@frame=    2 fps=0.0 q=-0.0 size=       2kB time=00:00:00.00 bitrate=752000.0kbits/s speed=4.33e-05x    
2021-07-01 18:50:21.182 spawn: GAGAframe=    4 fps=3.9 q=-0.0 size=       2kB time=00:00:00.55 bitrate=  35.2kbits/s speed=0.548x    
2021-07-01 18:50:21.690 spawn: GAGAframe=    6 fps=3.9 q=-0.0 size=       3kB time=00:00:01.11 bitrate=  24.4kbits/s speed=0.73x    
2021-07-01 18:50:22.194 spawn: GAGAframe=    8 fps=3.9 q=-0.0 size=       6kB time=00:00:01.55 bitrate=  29.0kbits/s speed=0.768x    
2021-07-01 18:50:22.699 spawn: GAGAframe=   10 fps=4.0 q=-0.0 size=      10kB time=00:00:02.11 bitrate=  39.2kbits/s speed=0.834x    
2021-07-01 18:50:23.205 spawn: GAGAframe=   12 fps=4.0 q=-0.0 size=      16kB time=00:00:02.66 bitrate=  49.6kbits/s speed=0.878x    
2021-07-01 18:50:23.710 spawn: G@G@frame=   14 fps=4.0 q=-0.0 size=      21kB time=00:00:03.22 bitrate=  54.1kbits/s speed=0.91x    
2021-07-01 18:50:24.213 spawn: GAGAframe=   16 fps=4.0 q=-0.0 size=      26kB time=00:00:03.77 bitrate=  57.3kbits/s speed=0.934x    
2021-07-01 18:50:24.736 spawn: GAGAframe=   18 fps=3.9 q=-0.0 size=      32kB time=00:00:04.22 bitrate=  63.0kbits/s speed=0.924x    
2021-07-01 18:50:25.271 spawn: GAGAframe=   20 fps=3.9 q=-0.0 size=      39kB time=00:00:04.77 bitrate=  67.4kbits/s speed=0.936x    
2021-07-01 18:50:25.806 spawn: GAG@frame=   22 fps=3.9 q=-0.0 size=      46kB time=00:00:05.33 bitrate=  70.5kbits/s speed=0.946x    
2021-07-01 18:50:26.341 spawn: GAGAframe=   24 fps=3.9 q=-0.0 size=      52kB time=00:00:05.88 bitrate=  72.5kbits/s speed=0.954x    
2021-07-01 18:50:26.874 spawn: GAG@�A&bmZ�\�Nw>Kw]T�5@�B�עF6AN��
2021-07-01 18:50:26.876 spawn: Gframe=   26 fps=3.9 q=-0.0 size=      61kB time=00:00:06.44 bitrate=  77.0kbits/s speed=0.961x    
2021-07-01 18:50:27.400 spawn: GAGAframe=   28 fps=3.9 q=-0.0 size=      67kB time=00:00:06.88 bitrate=  79.9kbits/s speed=0.953x    
2021-07-01 18:50:27.934 spawn: GAGAframe=   30 fps=3.9 q=-0.0 size=      74kB time=00:00:07.44 bitrate=  81.0kbits/s speed=0.959x    
2021-07-01 18:50:28.469 spawn: GAGAframe=   32 fps=3.9 q=-0.0 size=      80kB time=00:00:08.00 bitrate=  82.0kbits/s speed=0.964x    
2021-07-01 18:50:29.006 spawn: GAGAframe=   34 fps=3.8 q=-0.0 size=      87kB time=00:00:08.55 bitrate=  83.3kbits/s speed=0.968x    
2021-07-01 18:50:29.530 spawn: GAGAframe=   36 fps=3.8 q=-0.0 size=      94kB time=00:00:09.11 bitrate=  84.2kbits/s speed=0.973x    
2021-07-01 18:50:29.803 spawn: GA���
2021-07-01 18:50:30.066 spawn: |Lj�ď(���)Rt5emi��Fֿ��_9���<@G@y����=/l;òC15uB!v
2021-07-01 18:50:30.066 spawn: d̷�4{6���������Z
2021-07-01 18:50:30.067 spawn: �'%��aHfc*���tE��'Uw0^m���v`Gframe=   38 fps=3.8 q=-0.0 size=     104kB time=00:00:09.55 bitrate=  89.6kbits/s speed=0.965x    
2021-07-01 18:50:30.340 spawn: GA
2021-07-01 18:50:30.340 spawn: ��jo)5��VWQtS(�^��
2021-07-01 18:50:30.604 spawn: >�'СB�\�ݾ71GAframe=   40 fps=3.8 q=-0.0 size=     111kB time=00:00:10.11 bitrate=  90.0kbits/s speed=0.969x    
2021-07-01 18:50:31.139 spawn: GAGAframe=   42 fps=3.8 q=-0.0 size=     117kB time=00:00:10.66 bitrate=  90.1kbits/s speed=0.972x    
2021-07-01 18:50:31.664 spawn: G@GAframe=   44 fps=3.8 q=-0.0 size=     125kB time=00:00:11.22 bitrate=  91.0kbits/s speed=0.976x    
2021-07-01 18:50:32.198 spawn: GAGAframe=   46 fps=3.8 q=-0.0 size=     131kB time=00:00:11.66 bitrate=  92.3kbits/s speed=0.97x    
2021-07-01 18:50:32.678 subscription: 0035: service instance is bad, reason: No input detected
2021-07-01 18:50:34.678 subscription: 0035: No input source available for subscription "HTTP" to mux "WebCam in Camera" 
2021-07-01 18:50:34.678 webui: Couldn't start streaming /stream/mux/425aab677bd472f8175a4cc3718f1c11?ticket=D3ECA5B64CA8E2AD48A111E68DB95DB4E860B39D, No input detected

It seems like something is happening now, but no stream is presented opening the MUX on VLC. After few seconds TVH also stops what seems to be some transconding.

RE: Help with pipe HTTP video - Added by Cleiton Oppenheimer over 3 years ago

I am very happy to share that I could reach my goal using the following command line:

pipe:///usr/bin/ffmpeg -f v4l2 -i /dev/video0 -codec h264_omx -b:v 2048k -f mpegts -tune zerolatency pipe:1

This could reproduce my chinese webcam in TVH.

Now I have 01 channels mapped streaming my webcam and 02 from old phones generating rtsp.

There is only one thing that I would like to achieve so that this setup goes to 100%. I would like to keep these muxes "always tuned" so that when selecting a channel would not need the tuning timing (few seconds) to be displayed. I compare this when opening 2 streams of the same file. The second one will load almost instantaneously.

The stream from the WebCam, will not allow me to stream 2x the same channel, while the rtsp streams from my mobiles allow it (all the 03 muxes are set for the same IPTV Network). Any hints on how to change it? TVH shows input/output bps for the second stream, but on the screen everything remains black.

RE: Help with pipe HTTP video - Added by Cleiton Oppenheimer over 3 years ago

Hi

I could successfully use diferent sources of live video with TVHEADEND.

Basically my setup is based in a raspberry pi 3 with hardware transconding.

I have the following as inputs:
- RTL-SDR Software Defined Radio - with rtl_fm_streamer (https://github.com/AlbrechtL/rtl_fm_streamer)
- Chinese low cost 1080p WebCam
- Several old smartphone devices running Live-Reporter app (https://apps.apple.com/br/app/live-reporter-live-camera/id996017825) (https://play.google.com/store/apps/details?id=net.kzkysdjpn.live_reporter&hl=en_AU&gl=US)
- ISDB-T with all FTA Terrestrial Channels broadcasted in my city
- Some Twitch.tv channels of my interest (here, you can try youtube or other sources of live video)

I'm pleased to share the command lines used to pipe these inputs to my MUXes.
- Stream form my old phones with Live Reporter App:
pipe:///usr/bin/ffmpeg -i rtsp://192.168.0.58:554 -vcodec copy -acodec copy -f mpegts pipe:1

- Stream from chinese WebCam, with HW transcoding:
pipe:///usr/bin/ffmpeg -f v4l2 -i /dev/video0 -codec h264_omx -b:v 2048k -f mpegts -tune zerolatency pipe:1

Live FM Stream with some stations broadcasted in my town:
pipe:///usr/bin/ffmpeg -i http://127.0.0.1:2346/95300000 -c:a ac3 -f mpegts -mpegts_service_type digital_radio pipe:1
(in this case, you must enter the desired frequency to be input to rtl_fm_streamer)

Live Twitch.TV channels of my choice:
pipe:///usr/bin/env streamlink --stdout --twitch-disable-ads https://www.twitch.tv/YOURTWITCHCHANNEL best
(in this case, I used streamlink, available from https://github.com/streamlink/streamlink)
To compile it in RPi:

sudo apt install git python3-setuptools
git clone https://github.com/streamlink/streamlink
cd streamlink/
sudo python3 setup.py install

ISDB-T channels mapped in the standard way with TVHeadend.

This is my setup and settings and I'm really help with it. Sharing in case of it being helpful for somebody else.

Improvements needed:
Since I have plenty of bandwidth (gigabit Network) and most of the streams are generated by myself, It would be great to have the IPTV Networks like "always broadcasting" so that all the MUXes are tuned everytime. This will cause the streams to be opened almost instantaneously not loosing time with spawns or ffmpeg/pipes. I don't care using processing aswell since this Pi is dedicated to it. If anyone have a hint on what to search for...

Tks

    (1-11/11)