This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import requests | |
| import shutil | |
| import os | |
| import sys | |
| import json | |
| from urllib.parse import urlparse, urlunparse | |
| # This script migrates artifacts from one Nexus repository to another. | |
| # It supports Maven, Raw, Yum, and PyPI repositories by utilizing Nexus's REST API. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| :: The following line is neccessary if you need an ability to restart the streams with this batch file | |
| :: Kill all existing streams (the command actually suspends ALL the vlc processes): | |
| taskkill /f /im "vlc.exe" | |
| :: Run two instances of VLC. These would transcode MP4 rtsp-stream to Motion JPEG http-stream: | |
| start vlc -vvv -Idummy rtsp://login:password@192.168.0.2/streaming/channels/2/preview --sout #transcode{vcodec=MJPG,venc=ffmpeg{strict=1},fps=10,width=640,height=360}:standard{access=http{mime=multipart/x-mixed-replace;boundary=--7b3cc56e5f51db803f790dad720ed50a},mux=mpjpeg,dst=:9911/} | |
| start vlc -vvv -Idummy rtsp://login:password@192.168.0.3/streaming/channels/2/preview --sout #transcode{vcodec=MJPG,venc=ffmpeg{strict=1},fps=10,width=640,height=360}:standard{access=http{mime=multipart/x-mixed-replace;boundary=--7b3cc56e5f51db803f790dad720ed50a},mux=mpjpeg,dst=:9912/} | |
| :: In order to execute VLC with `vlc` as in exapmle above, you have to add corresponding value to the PATH variable. | |
| :: Otherwise you have t |