Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TLS Issue #61

Open
phpsystems opened this issue Oct 7, 2020 · 11 comments
Open

TLS Issue #61

phpsystems opened this issue Oct 7, 2020 · 11 comments
Labels
enhancement New feature or request

Comments

@phpsystems
Copy link

From the docker commandline, I get:

https protocol not found, recompile FFmpeg with openssl, gnutls or securetransport enabled.

@phpsystems
Copy link
Author

phpsystems commented Oct 7, 2020

More details:

docker run --device=/dev/vchiq --network="host" --name YouTubeLive -ti octoprint/youtubelive:latest https://192.168.42.40/webcam/?action=stream [ Redacted ] null
OctoPrint Webcam Stream: https://192.168.42.40/webcam/?action=stream
Live-stream secret: [ Redacted ]
Filter: null
ffmpeg version N-90990-g652b857b94 Copyright (c) 2000-2018 the FFmpeg developers
built with gcc 6.3.0 (Raspbian 6.3.0-18+rpi1+deb9u1) 20170516
configuration: --arch=armel --target-os=linux --enable-gpl --enable-omx --enable-omx-rpi --enable-nonfree
libavutil 56. 18.100 / 56. 18.100
libavcodec 58. 19.101 / 58. 19.101
libavformat 58. 13.101 / 58. 13.101
libavdevice 58. 4.100 / 58. 4.100
libavfilter 7. 21.100 / 7. 21.100
libswscale 5. 2.100 / 5. 2.100
libswresample 3. 2.100 / 3. 2.100
libpostproc 55. 2.100 / 55. 2.100
https protocol not found, recompile FFmpeg with openssl, gnutls or securetransport enabled.
https://192.168.42.40/webcam/?action=stream: Protocol not found
Did you mean file:https://192.168.42.40/webcam/?action=stream?

HAProxy is configured to do HSTS.

@jneilliii
Copy link
Owner

This might be something broke on the upstream ffmpeg I'm referencing in my docker file. I assume you did all the stuff before that test command to download the github repo and build the docker image for youtubelive?

@phpsystems
Copy link
Author

I did, yes.

Just for clarity, I did:

cd ~
curl -sSL https://get.docker.com | sh
sudo usermod pi -aG docker
sudo reboot

cd ~
docker pull alexellis2/streaming:07-05-2018
git clone https://github.com/jneilliii/youtubelive --depth 1
cd youtubelive
docker build -t octoprint/youtubelive .

@phpsystems
Copy link
Author

I am looking in to allowing the webcam unencrypted, but that is more of a work around than a fix. I am also using a proper certificate (lets encrypt) rather than a self-signed one too.

@jneilliii
Copy link
Owner

Relative to that, if you are using a default octopi image I believe you can use the non-ssl URL for the webcam stream, which of course would break it loading in the UI in some browsers now (ie chrome) and any port forwarding setups. Unfortunately, I'm not super familiar with creating a docker image for ffmpeg (the reason I'm using the other one) and will see if adding in that other stuff is too difficult or not. You may be able to work around this using the webcamstreamer plugin, as I believe it actually allows for a separate URL in it's settings for the source stream versus this one which is pulling from the default webcam & timelapse settings.

http://192.168.42.40:8080/?action=stream

@jneilliii jneilliii added the enhancement New feature or request label Oct 8, 2020
@jneilliii
Copy link
Owner

I'm looking into building my own ffmpeg now with ssl support and will report back in the next few days.

@jneilliii
Copy link
Owner

Do me a favor please and test this command line via SSH and let me know if it actually attaches to your youtube stream or not. If it does then I think I can transition this plugin to utilize this other docker image as a base entry point. Make sure to replace the #### part with your stream secret.

docker run -it datarhei/ffmpeg:4.0.2-armhf -re -f mjpeg -framerate 5 -i https://192.168.42.40/webcam/?action=stream -ar 44100 -ac 2 -acodec pcm_s16le -f s16le -ac 2 -i /dev/zero -acodec aac -ab 128k -strict experimental -vcodec h264 -pix_fmt yuv420p -g 10 -vb 700k -framerate 5 -f flv rtmp://a.rtmp.youtube.com/live2/####-####-####-####-####

once it starts running you can press ctrl+c to close out the ffmpeg streaming.

@jneilliii
Copy link
Owner

jneilliii commented Oct 9, 2020

And one more command to test, just to see if I can eliminate docker from this plugin completely, reducing the complexity.

/usr/bin/ffmpeg -re -f mjpeg -framerate 5 -i https://192.168.42.40/webcam/?action=stream -ar 44100 -ac 2 -acodec pcm_s16le -f s16le -ac 2 -i /dev/zero -acodec aac -ab 128k -strict experimental -vcodec h264 -pix_fmt yuv420p -g 10 -vb 700k -framerate 5 -f flv rtmp://a.rtmp.youtube.com/live2/####-####-####-####-####

@phpsystems
Copy link
Author

phpsystems commented Oct 9, 2020


OctoPrint version : 1.4.2
OctoPi version : 0.17.0

pi@octoprint-01:~ $ docker run -it datarhei/ffmpeg:4.0.2-armhf -re -f mjpeg -framerate 5 -i https://192.168.42.40/webcam/?action=stream -ar 44100 -ac 2 -acodec pcm_s16le -f s16le -ac 2 -i /dev/zero -acodec aac -ab 128k -strict experimental -vcodec h264 -pix_fmt yuv420p -g 10 -vb 700k -framerate 5 -f flv rtmp://a.rtmp.youtube.com/live2/[Redacted]
Unable to find image 'datarhei/ffmpeg:4.0.2-armhf' locally
4.0.2-armhf: Pulling from datarhei/ffmpeg
95d54dd4bdad: Pull complete
72bf7d76c392: Pull complete
1e4608515d9b: Pull complete
ff34edff6cbb: Pull complete
817ab67755df: Pull complete
b0147ec1ea5d: Pull complete
158f2d6da6e4: Pull complete
a068b40c28c0: Pull complete
1422c8416a0d: Pull complete
3d0f97eb096e: Pull complete
9e791047d933: Pull complete
49f5d1051f8e: Pull complete
0bba6de42aee: Pull complete
0b27a2a4241b: Pull complete
163899275342: Pull complete
98f5b28c88c7: Pull complete
Digest: sha256:eaed294b85596c9b665a0856ae16b2b9ee77fdf9632c00571288ac86397f5082
Status: Downloaded newer image for datarhei/ffmpeg:4.0.2-armhf
ffmpeg version 4.0.2 Copyright (c) 2000-2018 the FFmpeg developers
built with gcc 6.4.0 (Alpine 6.4.0)
configuration: --bindir=/usr/local/bin --extra-libs=-ldl --extra-cflags=-I/usr/local/include --extra-ldflags=-L/usr/local/lib --extra-libs=-ldl --prefix=/usr/local --enable-nonfree --enable-gpl --enable-version3 --enable-avresample --enable-libmp3lame --enable-libx264 --enable-openssl --enable-postproc --enable-small --enable-libfdk_aac --enable-shared --disable-debug --disable-doc --disable-static
libavutil 56. 14.100 / 56. 14.100
libavcodec 58. 18.100 / 58. 18.100
libavformat 58. 12.100 / 58. 12.100
libavdevice 58. 3.100 / 58. 3.100
libavfilter 7. 16.100 / 7. 16.100
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 1.100 / 5. 1.100
libswresample 3. 1.100 / 3. 1.100
libpostproc 55. 1.100 / 55. 1.100
Input #0, mjpeg, from 'https://192.168.42.40/webcam/?action=stream':
Duration: N/A, bitrate: N/A
Stream #0:0: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 640x480, 5 tbr, 1200k tbn, 5 tbc
Guessed Channel Layout for Input Stream #1.0 : stereo
Input #1, s16le, from '/dev/zero':
Duration: N/A, bitrate: 1411 kb/s
Stream #1:0: Audio: pcm_s16le, 44100 Hz, stereo, s16, 1411 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (mjpeg (native) -> h264 (libx264))
Stream #1:0 -> #0:1 (pcm_s16le (native) -> aac (native))
Press [q] to stop, [?] for help
[swscaler @ 0x23b1320] deprecated pixel format used, make sure you did set range correctly
[libx264 @ 0x234f610] using cpu capabilities: ARMv6 NEON
[libx264 @ 0x234f610] profile High, level 2.2
[libx264 @ 0x234f610] 264 - core 152 - H.264/MPEG-4 AVC codec - Copyleft 2003-2017 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=10 keyint_min=1 scenecut=40 intra_refresh=0 rc_lookahead=10 rc=abr mbtree=1 bitrate=700 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, flv, to 'rtmp://a.rtmp.youtube.com/live2/[redacted]':
Metadata:
encoder : Lavf58.12.100
Stream #0:0: Video: h264 (libx264) ([7][0][0][0] / 0x0007), yuv420p(progressive), 640x480, q=-1--1, 700 kb/s, 5 fps, 1k tbn, 5 tbc
Metadata:
encoder : Lavc58.18.100 libx264
Side data:
cpb: bitrate max/min/avg: 0/0/700000 buffer size: 0 vbv_delay: -1
Stream #0:1: Audio: aac ([10][0][0][0] / 0x000A), 44100 Hz, stereo, fltp, 128 kb/s
Metadata:
encoder : Lavc58.18.100 aac
[mjpeg @ 0x22dfde0] Thread message queue blocking; consider raising the thread_queue_size option (current value: 8)
frame= 23 fps=5.0 q=14.0 size= 87kB time=00:00:00.02 bitrate=31023.3kbits/s speed=0.frame= 26 fps=5.1 q=12.0 size= 157kB time=00:00:00.62 bitrate=2056.8kbits/s speed=0.1frame= 28 fps=5.0 q=19.0 size= 203kB time=00:00:01.04 bitrate=1591.8kbits/s speed=0.1frame= 31 fps=5.1 q=19.0 size= 282kB time=00:00:01.62 bitrate=1420.5kbits/s speed=0.2frame= 33 fps=5.0 q=19.0 size= 309kB time=00:00:02.04 bitrate=1237.9kbits/s speed=0.3frame= 36 fps=5.1 q=14.0 size= 343kB time=00:00:02.62 bitrate=1071.1kbits/s speed=0.3frame= 39 fps=5.1 q=18.0 size= 365kB time=00:00:03.20 bitrate= 934.2kbits/s speed=0.4frame= 41 fps=5.1 q=17.0 size= 420kB time=00:00:03.64 bitrate= 944.9kbits/s speed=0.4frame= 44 fps=5.1 q=17.0 size= 451kB time=00:00:04.20 bitrate= 879.2kbits/s speed=0.4frame= 46 fps=5.1 q=14.0 size= 493kB time=00:00:04.64 bitrate= 869.0kbits/s speed=0.5frame= 49 fps=5.1 q=17.0 size= 520kB time=00:00:05.20 bitrate= 818.3kbits/s speed=0.5frame= 51 fps=5.0 q=17.0 size= 580kB time=00:00:05.64 bitrate= 842.6kbits/s speed=0.5frame= 54 fps=5.1 q=17.0 size= 615kB time=00:00:06.20 bitrate= 812.7kbits/s speed=0.5frame= 56 fps=5.0 q=14.0 size= 662kB time=00:00:06.64 bitrate= 816.2kbits/s speed=0.5frame= 59 fps=5.1 q=17.0 size= 706kB time=00:00:07.24 bitrate= 798.1kbits/s speed=0.6frame= 61 fps=5.0 q=17.0 size= 753kB time=00:00:07.64 bitrate= 807.6kbits/s speed=0.6frame= 64 fps=5.1 q=17.0 size= 803kB time=00:00:08.24 bitrate= 798.0kbits/s speed=0.6frame= 66 fps=5.0 q=14.0 size= 836kB time=00:00:08.63 bitrate= 793.0kbits/s speed=0.6frame= 69 fps=5.1 q=17.0 size= 881kB time=00:00:09.24 bitrate= 781.3kbits/s speed=0.6frame= 71 fps=5.0 q=17.0 size= 928kB time=00:00:09.63 bitrate= 789.1kbits/s speed=0.6frame= 74 fps=5.0 q=17.0 size= 977kB time=00:00:10.24 bitrate= 781.4kbits/s speed=0.6frame= 76 fps=5.0 q=14.0 size= 1009kB time=00:00:10.63 bitrate= 777.4kbits/s speed=0.7frame= 79 fps=5.0 q=17.0 size= 1053kB time=00:00:11.23 bitrate= 767.8kbits/s speed=0.7frame= 81 fps=5.0 q=17.0 size= 1101kB time=00:00:11.63 bitrate= 775.2kbits/s speed=0.7frame= 84 fps=5.0 q=17.0 size= 1149kB time=00:00:12.23 bitrate= 769.1kbits/s speed=0.7frame= 86 fps=5.0 q=14.0 size= 1181kB time=00:00:12.63 bitrate= 766.0kbits/s speed=0.7frame= 89 fps=5.0 q=17.0 size= 1225kB time=00:00:13.23 bitrate= 758.0kbits/s speed=0.7frame= 91 fps=5.0 q=17.0 size= 1272kB time=00:00:13.63 bitrate= 764.6kbits/s speed=0.7frame= 94 fps=5.0 q=17.0 size= 1322kB time=00:00:14.23 bitrate= 760.8kbits/s speed=0.7frame= 97 fps=5.1 q=17.0 size= 1355kB time=00:00:14.80 bitrate= 750.1kbits/s speed=0.7frame= 99 fps=5.0 q=17.0 size= 1400kB time=00:00:15.23 bitrate= 753.0kbits/s speed=0.7frame= 102 fps=5.0 q=17.0 size= 1448kB time=00:00:15.80 bitrate= 750.7kbits/s speed=0.7frame= 104 fps=5.0 q=17.0 size= 1498kB time=00:00:16.23 bitrate= 755.9kbits/s speed=0.7frame= 107 fps=5.0 q=17.0 size= 1546kB time=00:00:16.83 bitrate= 752.3kbits/s speed=0.7frame= 109 fps=5.0 q=17.0 size= 1574kB time=00:00:17.22 bitrate= 748.3kbits/s speed=0.7frame= 112 fps=5.0 q=17.0 size= 1640kB time=00:00:17.83 bitrate= 753.4kbits/s speed=0.8frame= 114 fps=5.0 q=17.0 size= 1670kB time=00:00:18.22 bitrate= 750.6kbits/s speed=0.8frame= 117 fps=5.0 q=17.0 size= 1718kB time=00:00:18.83 bitrate= 747.3kbits/s speed=0.8frame= 119 fps=5.0 q=17.0 size= 1746kB time=00:00:19.22 bitrate= 743.9kbits/s speed=0.8frame= 122 fps=5.0 q=17.0 size= 1812kB time=00:00:19.83 bitrate= 748.7kbits/s speed=0.8frame= 124 fps=5.0 q=17.0 size= 1843kB time=00:00:20.22 bitrate= 746.5kbits/s speed=0.8frame= 127 fps=5.0 q=17.0 size= 1892kB time=00:00:20.82 bitrate= 744.0kbits/s speed=0.8[flv @ 0x234e7e0] Failed to update header with correct duration.
[flv @ 0x234e7e0] Failed to update header with correct filesize.
frame= 129 fps=4.9 q=-1.0 Lsize= 2263kB time=00:00:25.20 bitrate= 735.7kbits/s speed=0.952x
video:2240kB audio:5kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.808760%
[libx264 @ 0x234f610] frame I:13 Avg QP: 6.61 size: 33886
[libx264 @ 0x234f610] frame P:38 Avg QP:10.43 size: 17866
[libx264 @ 0x234f610] frame B:78 Avg QP:10.61 size: 15042
[libx264 @ 0x234f610] consecutive B-frames: 19.4% 0.0% 0.0% 80.6%
[libx264 @ 0x234f610] mb I I16..4: 22.1% 69.7% 8.2%
[libx264 @ 0x234f610] mb P I16..4: 3.5% 45.9% 0.7% P16..4: 16.4% 11.0% 8.1% 0.0% 0.0% skip:14.5%
[libx264 @ 0x234f610] mb B I16..4: 1.2% 29.4% 0.3% B16..8: 17.9% 9.9% 3.4% direct:17.6% skip:20.3% L0:42.7% L1:36.8% BI:20.5%
[libx264 @ 0x234f610] final ratefactor: 16.76
[libx264 @ 0x234f610] 8x8 transform intra:88.2% inter:65.2%
[libx264 @ 0x234f610] coded y,uvDC,uvAC intra: 84.3% 77.2% 65.6% inter: 38.7% 49.9% 21.1%
[libx264 @ 0x234f610] i16 v,h,dc,p: 73% 18% 8% 2%
[libx264 @ 0x234f610] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 6% 26% 53% 2% 2% 1% 2% 2% 4%
[libx264 @ 0x234f610] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 21% 28% 24% 5% 5% 4% 4% 5% 5%
[libx264 @ 0x234f610] i8c dc,h,v,p: 52% 33% 13% 3%
[libx264 @ 0x234f610] Weighted P-Frames: Y:2.6% UV:0.0%
[libx264 @ 0x234f610] ref P L0: 56.1% 2.6% 24.5% 16.1% 0.7%
[libx264 @ 0x234f610] ref B L0: 70.9% 23.4% 5.7%
[libx264 @ 0x234f610] ref B L1: 83.3% 16.7%
[libx264 @ 0x234f610] kb/s:710.91
[aac @ 0x2350e30] Qavg: 65536.000
Exiting normally, received signal 2.

Appeared to work ok.

@phpsystems
Copy link
Author

phpsystems commented Oct 9, 2020

The command line appeared to work as well. Rotating my octopi key, as I never seem to redact it properly ;-/

/usr/bin/ffmpeg -re -f mjpeg -framerate 5 -i https://192.168.42.40/webcam/?action=stream -ar 44100 -ac 2 -acodec pcm_s16le -f s16le -ac 2 -i /dev/zero -acodec aac -ab 128k -strict experimental -vcodec h264 -pix_fmt yuv420p -g 10 -vb 700k -framerate 5 -f flv rtmp://a.rtmp.youtube.com/live2/[redacted]
ffmpeg version 4.1.6-1deb10u1+rpt1 Copyright (c) 2000-2020 the FFmpeg developers
built with gcc 8 (Raspbian 8.3.0-6+rpi1)
configuration: --prefix=/usr --extra-version='1
deb10u1+rpt1' --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-opengl --enable-sdl2 --enable-omx-rpi --enable-mmal --enable-neon --enable-rpi --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared --libdir=/usr/lib/arm-linux-gnueabihf --cpu=arm1176jzf-s --arch=arm
WARNING: library configuration mismatch
avutil configuration: --prefix=/usr --extra-version='1deb10u1+rpt1' --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-opengl --enable-sdl2 --enable-omx-rpi --enable-mmal --enable-neon --enable-rpi --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --libdir=/usr/lib/arm-linux-gnueabihf/neon/vfp --cpu=cortex-a7 --arch=armv6t2 --disable-thumb --enable-shared --disable-doc --disable-programs
avcodec configuration: --prefix=/usr --extra-version='1
deb10u1+rpt1' --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-opengl --enable-sdl2 --enable-omx-rpi --enable-mmal --enable-neon --enable-rpi --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --libdir=/usr/lib/arm-linux-gnueabihf/neon/vfp --cpu=cortex-a7 --arch=armv6t2 --disable-thumb --enable-shared --disable-doc --disable-programs
avformat configuration: --prefix=/usr --extra-version='1deb10u1+rpt1' --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-opengl --enable-sdl2 --enable-omx-rpi --enable-mmal --enable-neon --enable-rpi --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --libdir=/usr/lib/arm-linux-gnueabihf/neon/vfp --cpu=cortex-a7 --arch=armv6t2 --disable-thumb --enable-shared --disable-doc --disable-programs
avdevice configuration: --prefix=/usr --extra-version='1
deb10u1+rpt1' --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-opengl --enable-sdl2 --enable-omx-rpi --enable-mmal --enable-neon --enable-rpi --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --libdir=/usr/lib/arm-linux-gnueabihf/neon/vfp --cpu=cortex-a7 --arch=armv6t2 --disable-thumb --enable-shared --disable-doc --disable-programs
avfilter configuration: --prefix=/usr --extra-version='1deb10u1+rpt1' --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-opengl --enable-sdl2 --enable-omx-rpi --enable-mmal --enable-neon --enable-rpi --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --libdir=/usr/lib/arm-linux-gnueabihf/neon/vfp --cpu=cortex-a7 --arch=armv6t2 --disable-thumb --enable-shared --disable-doc --disable-programs
avresample configuration: --prefix=/usr --extra-version='1
deb10u1+rpt1' --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-opengl --enable-sdl2 --enable-omx-rpi --enable-mmal --enable-neon --enable-rpi --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --libdir=/usr/lib/arm-linux-gnueabihf/neon/vfp --cpu=cortex-a7 --arch=armv6t2 --disable-thumb --enable-shared --disable-doc --disable-programs
swscale configuration: --prefix=/usr --extra-version='1deb10u1+rpt1' --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-opengl --enable-sdl2 --enable-omx-rpi --enable-mmal --enable-neon --enable-rpi --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --libdir=/usr/lib/arm-linux-gnueabihf/neon/vfp --cpu=cortex-a7 --arch=armv6t2 --disable-thumb --enable-shared --disable-doc --disable-programs
swresample configuration: --prefix=/usr --extra-version='1
deb10u1+rpt1' --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-opengl --enable-sdl2 --enable-omx-rpi --enable-mmal --enable-neon --enable-rpi --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --libdir=/usr/lib/arm-linux-gnueabihf/neon/vfp --cpu=cortex-a7 --arch=armv6t2 --disable-thumb --enable-shared --disable-doc --disable-programs
postproc configuration: --prefix=/usr --extra-version='1~deb10u1+rpt1' --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-opengl --enable-sdl2 --enable-omx-rpi --enable-mmal --enable-neon --enable-rpi --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --libdir=/usr/lib/arm-linux-gnueabihf/neon/vfp --cpu=cortex-a7 --arch=armv6t2 --disable-thumb --enable-shared --disable-doc --disable-programs
libavutil 56. 22.100 / 56. 22.100
libavcodec 58. 35.100 / 58. 35.100
libavformat 58. 20.100 / 58. 20.100
libavdevice 58. 5.100 / 58. 5.100
libavfilter 7. 40.101 / 7. 40.101
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 3.100 / 5. 3.100
libswresample 3. 3.100 / 3. 3.100
libpostproc 55. 3.100 / 55. 3.100
Input #0, mjpeg, from 'https://192.168.42.40/webcam/?action=stream':
Duration: N/A, bitrate: N/A
Stream #0:0: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 640x480, 5 tbr, 1200k tbn, 5 tbc
Guessed Channel Layout for Input Stream #1.0 : stereo
Input #1, s16le, from '/dev/zero':
Duration: N/A, bitrate: 1411 kb/s
Stream #1:0: Audio: pcm_s16le, 44100 Hz, stereo, s16, 1411 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (mjpeg (native) -> h264 (libx264))
Stream #1:0 -> #0:1 (pcm_s16le (native) -> aac (native))
Press [q] to stop, [?] for help
[swscaler @ 0x2693a90] deprecated pixel format used, make sure you did set range correctly
[libx264 @ 0x264d4f0] using cpu capabilities: ARMv6 NEON
[libx264 @ 0x264d4f0] profile High, level 2.2
[libx264 @ 0x264d4f0] 264 - core 155 r2917 0a84d98 - H.264/MPEG-4 AVC codec - Copyleft 2003-2018 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=10 keyint_min=1 scenecut=40 intra_refresh=0 rc_lookahead=10 rc=abr mbtree=1 bitrate=700 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, flv, to 'rtmp://a.rtmp.youtube.com/live2/[redacted]':
Metadata:
encoder : Lavf58.20.100
Stream #0:0: Video: h264 (libx264) ([7][0][0][0] / 0x0007), yuv420p(progressive), 640x480, q=-1--1, 700 kb/s, 5 fps, 1k tbn, 5 tbc
Metadata:
encoder : Lavc58.35.100 libx264
Side data:
cpb: bitrate max/min/avg: 0/0/700000 buffer size: 0 vbv_delay: -1
Stream #0:1: Audio: aac (LC) ([10][0][0][0] / 0x000A), 44100 Hz, stereo, fltp, 128 kb/s
Metadata:
encoder : Lavc58.35.100 aac
[mjpeg @ 0x23aa420] Thread message queue blocking; consider raising the thread_queue_size option (current value: 8)
frame= 23 fps=5.1 q=14.0 size= 85kB time=00:00:00.02 bitrate=30119.3kbits/s speed=0.frame= 26 fps=5.1 q=12.0 size= 155kB time=00:00:00.62 bitrate=2021.9kbits/s speed=0.1frame= 28 fps=5.0 q=18.0 size= 201kB time=00:00:01.04 bitrate=1572.5kbits/s speed=0.1frame= 31 fps=5.1 q=19.0 size= 279kB time=00:00:01.62 bitrate=1407.1kbits/s speed=0.2frame= 33 fps=5.0 q=18.0 size= 307kB time=00:00:02.04 bitrate=1230.0kbits/s speed=0.3frame= 36 fps=5.1 q=14.0 size= 343kB time=00:00:02.62 bitrate=1070.1kbits/s speed=0.3frame= 38 fps=5.0 q=18.0 size= 365kB time=00:00:03.04 bitrate= 983.3kbits/s speed=0.4frame= 41 fps=5.1 q=17.0 size= 421kB time=00:00:03.64 bitrate= 945.8kbits/s speed=0.4frame= 43 fps=5.0 q=18.0 size= 451kB time=00:00:04.04 bitrate= 914.9kbits/s speed=0.4frame= 46 fps=5.1 q=14.0 size= 493kB time=00:00:04.64 bitrate= 870.3kbits/s speed=0.5frame= 48 fps=5.0 q=17.0 size= 520kB time=00:00:05.03 bitrate= 845.9kbits/s speed=0.5frame= 51 fps=5.1 q=17.0 size= 581kB time=00:00:05.64 bitrate= 843.0kbits/s speed=0.5frame= 53 fps=5.0 q=17.0 size= 615kB time=00:00:06.03 bitrate= 833.9kbits/s speed=0.5frame= 56 fps=5.0 q=14.0 size= 661kB time=00:00:06.64 bitrate= 815.3kbits/s speed=0.5frame= 59 fps=5.1 q=17.0 size= 691kB time=00:00:07.20 bitrate= 786.2kbits/s speed=0.6frame= 61 fps=5.0 q=17.0 size= 752kB time=00:00:07.64 bitrate= 806.0kbits/s speed=0.6frame= 64 fps=5.1 q=17.0 size= 787kB time=00:00:08.20 bitrate= 785.7kbits/s speed=0.6frame= 66 fps=5.0 q=14.0 size= 833kB time=00:00:08.63 bitrate= 790.3kbits/s speed=0.6frame= 69 fps=5.1 q=17.0 size= 878kB time=00:00:09.24 bitrate= 778.4kbits/s speed=0.6frame= 71 fps=5.0 q=17.0 size= 925kB time=00:00:09.63 bitrate= 786.3kbits/s speed=0.6frame= 74 fps=5.1 q=17.0 size= 975kB time=00:00:10.24 bitrate= 779.7kbits/s speed= 0.frame= 76 fps=5.0 q=14.0 size= 1008kB time=00:00:10.63 bitrate= 776.4kbits/s speed=0.7frame= 79 fps=5.0 q=17.0 size= 1053kB time=00:00:11.23 bitrate= 767.8kbits/s speed=0.7frame= 81 fps=5.0 q=17.0 size= 1100kB time=00:00:11.63 bitrate= 774.6kbits/s speed=0.7frame= 84 fps=5.0 q=17.0 size= 1149kB time=00:00:12.23 bitrate= 769.0kbits/s speed=0.7frame= 86 fps=5.0 q=14.0 size= 1182kB time=00:00:12.63 bitrate= 766.4kbits/s speed=0.7frame= 89 fps=5.0 q=17.0 size= 1225kB time=00:00:13.23 bitrate= 758.4kbits/s speed=0.7frame= 91 fps=5.0 q=17.0 size= 1272kB time=00:00:13.63 bitrate= 764.5kbits/s speed=0.7frame= 94 fps=5.0 q=17.0 size= 1321kB time=00:00:14.23 bitrate= 760.1kbits/s speed=0.7frame= 96 fps=5.0 q=14.0 size= 1354kB time=00:00:14.62 bitrate= 758.0kbits/s speed=0.7frame= 99 fps=5.0 q=17.0 size= 1398kB time=00:00:15.23 bitrate= 751.9kbits/s speed=0.7frame= 102 fps=5.0 q=17.0 size= 1445kB time=00:00:15.80 bitrate= 749.1kbits/s speed=0.7frame= 104 fps=5.0 q=17.0 size= 1494kB time=00:00:16.23 bitrate= 754.1kbits/s speed=0.7frame= 107 fps=5.0 q=17.0 size= 1527kB time=00:00:16.80 bitrate= 744.3kbits/s speed=0.7frame= 109 fps=5.0 q=17.0 size= 1571kB time=00:00:17.22 bitrate= 747.0kbits/s speed=0.7frame= 112 fps=5.0 q=17.0 size= 1618kB time=00:00:17.80 bitrate= 744.5kbits/s speed=0.8frame= 114 fps=5.0 q=17.0 size= 1668kB time=00:00:18.22 bitrate= 749.6kbits/s speed=0.8frame= 117 fps=5.0 q=17.0 size= 1701kB time=00:00:18.80 bitrate= 741.2kbits/s speed=0.8frame= 119 fps=5.0 q=17.0 size= 1747kB time=00:00:19.22 bitrate= 744.4kbits/s speed=0.8frame= 122 fps=5.0 q=17.0 size= 1814kB time=00:00:19.83 bitrate= 749.4kbits/s speed=0.8frame= 124 fps=5.0 q=17.0 size= 1844kB time=00:00:20.22 bitrate= 747.1kbits/s speed=0.8frame= 127 fps=5.0 q=17.0 size= 1893kB time=00:00:20.82 bitrate= 744.6kbits/s speed=0.8[flv @ 0x264c350] Failed to update header with correct duration.
[flv @ 0x264c350] Failed to update header with correct filesize.
frame= 128 fps=4.9 q=-1.0 Lsize= 2248kB time=00:00:25.00 bitrate= 736.5kbits/s speed=0.956x
video:2224kB audio:5kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.807512%
[libx264 @ 0x264d4f0] frame I:13 Avg QP: 6.32 size: 33175
[libx264 @ 0x264d4f0] frame P:38 Avg QP: 9.98 size: 17814
[libx264 @ 0x264d4f0] frame B:77 Avg QP:10.23 size: 15178
[libx264 @ 0x264d4f0] consecutive B-frames: 19.5% 0.0% 2.3% 78.1%
[libx264 @ 0x264d4f0] mb I I16..4: 25.1% 66.8% 8.1%
[libx264 @ 0x264d4f0] mb P I16..4: 4.5% 44.0% 0.7% P16..4: 16.2% 10.5% 8.1% 0.0% 0.0% skip:16.1%
[libx264 @ 0x264d4f0] mb B I16..4: 1.3% 28.3% 0.3% B16..8: 17.9% 9.7% 3.5% direct:18.2% skip:20.8% L0:43.6% L1:36.0% BI:20.4%
[libx264 @ 0x264d4f0] final ratefactor: 16.59
[libx264 @ 0x264d4f0] 8x8 transform intra:86.2% inter:64.8%
[libx264 @ 0x264d4f0] coded y,uvDC,uvAC intra: 82.4% 79.9% 68.9% inter: 37.7% 50.7% 23.2%
[libx264 @ 0x264d4f0] i16 v,h,dc,p: 76% 16% 7% 1%
[libx264 @ 0x264d4f0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 6% 26% 53% 3% 2% 1% 2% 2% 4%
[libx264 @ 0x264d4f0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 19% 29% 25% 4% 5% 4% 4% 5% 5%
[libx264 @ 0x264d4f0] i8c dc,h,v,p: 51% 34% 13% 3%
[libx264 @ 0x264d4f0] Weighted P-Frames: Y:2.6% UV:0.0%
[libx264 @ 0x264d4f0] ref P L0: 55.9% 2.5% 24.4% 16.6% 0.7%
[libx264 @ 0x264d4f0] ref B L0: 70.4% 23.9% 5.6%
[libx264 @ 0x264d4f0] ref B L1: 84.2% 15.8%
[libx264 @ 0x264d4f0] kb/s:711.55
[aac @ 0x264ef30] Qavg: 65536.000
Exiting normally, received signal 2.

@jneilliii
Copy link
Owner

Great, thanks for double-checking those for me. I think I'll go the route of converting the plugin to use ffmpeg directly and remove the docker dependency completely. This will take some time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants