you can publish your video from file/rtmp/rtsp/ros(Image/CompressedImage) to file/rtmp/rtsp/ros(Image/CompressedImage).
cd ~ # or any path you want to create this workspace (rosvid_ws)
wget https://liushihan.site/download/rosvideo.bash && bash rosvideo.bash
if you need a rtsp/rtmp server, it is recomended to use this
wget https://liushihan.site/download/install/linux/mediaserver.bash && bash mediaserver.bash
just modify the function "void process_image()" in src/publish.cpp (if you want to do something with the image), line 62 and then
cd rosvid_ws
catkin_make
rosrun rosvideo publish --cfg config/*.yaml
# help
rosrun rosvideo publish -?