youtube-dl: ValueError: insecure string pickle (OSX 10.11.6 homebrew)

Fehler:

$ youtube-dl https://www.youtube.com/watch?v=xX4321ZZYY
[youtube]xX4321ZZYY: Downloading webpage
[youtube]xX4321ZZYY: Downloading video info webpage
[youtube]xX4321ZZYY: Extracting video information
[youtube]xX4321ZZYY: Downloading MPD manifest
Traceback (most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 162, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/usr/local/bin/youtube-dl/__main__.py", line 19, in <module>
File "/usr/local/bin/youtube-dl/youtube_dl/__init__.py", line 465, in main
File "/usr/local/bin/youtube-dl/youtube_dl/__init__.py", line 455, in _real_main
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1919, in download
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 773, in extract_info
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 827, in process_ie_result
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1518, in process_video_result
File "/usr/local/bin/youtube-dl/youtube_dl/postprocessor/ffmpeg.py", line 60, in __init__
File "/usr/local/bin/youtube-dl/youtube_dl/postprocessor/ffmpeg.py", line 117, in _determine_executables
File "/usr/local/bin/youtube-dl/youtube_dl/postprocessor/ffmpeg.py", line 117, in <genexpr>
File "/usr/local/bin/youtube-dl/youtube_dl/utils.py", line 1907, in get_exe_version
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 710, in __init__
errread, errwrite)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1334, in _execute_child
child_exception = pickle.loads(data)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py", line 1382, in loads
return Unpickler(file).load()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py", line 858, in load
dispatch[key](self)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py", line 966, in load_string
raise ValueError, "insecure string pickle"
ValueError: insecure string pickle

Lösung:

$ brew install libav ffmpeg rtmpdump

zoneminder with multiple Somagic CAMs

(addition to this article)

3 CAMs on different USB BUSs:

# lsusb |grep SMI
Bus 008 Device 095: ID 1c88:003c Somagic, Inc. SMI Grabber (EasyCAP DC60+ clone) [SMI-2021CBE]
Bus 003 Device 008: ID 1c88:003c Somagic, Inc. SMI Grabber (EasyCAP DC60+ clone) [SMI-2021CBE]
Bus 001 Device 010: ID 1c88:003c Somagic, Inc. SMI Grabber (EasyCAP DC60+ clone) [SMI-2021CBE]

Info: if you connect two SMI Grabber Sticks on the same USB-Bus, the bandwidth will not be enough. You need somagic-capture with multiple device support!

Init your devices:

retcode=0
while [ $retcode -eq 0 ]; do
	somagic-init
	retcode=$?
done

define your cams with xinetd:

/etc/xinet.d/vid0:

service vid0
{
	disable = no
	socket_type = stream
	port = 7100
	bind = localhost
	protocol = tcp
	wait = no
	user = root
	server = /usr/local/bin/somagic-capture
	server_args = -d 1 -p
	type = UNLISTED
}

/etc/xinet.d/vid1:

service vid1
{
	disable = no
	socket_type = stream
	port = 7101
	bind = localhost
	protocol = tcp
	wait = no
	user = root
	server = /usr/local/bin/somagic-capture
	server_args = -d 2 -p
	type = UNLISTED
}

And so on… (-d 1-9 sets the device number)

Thanks!

Define the needed count of fcgiwrappers in /etc/init.d/fcgiwrap to view more than one cam at the same time:

FCGI_CHILDREN="3"

Info: 3 means one client (Browser/App) can view 3 cams at the same time or 3 clients can view one cam. If you want 3 clients (PC-Browser, smartphone and tablet) can view 3 cams at the same time, then you need 3*3=9 child’s!

Thanks!

install ZoneMinder:

Thanks!

configure your cams in ZoneMinder:

https://yourdom.tld/zm/ create Monitors for every cam:

  • Source Type: libvlc
  • Source Path: tcp://localhost:7100
  • Options (?): –demux=rawvideo,–rawvid-chroma=UYVY,–rawvid-width=720,–rawvid-height=576,–rawvid-fps=25,–rawvid-aspect=4:3