YouTube Video publisher using youtube-dl & ROS2๐Ÿข

Overview

YouTube-publisher-ROS2

Publish sensor_msgs/Image by "YouTube" ๐Ÿค— ๐Ÿค— ๐Ÿค— !

You don't have to use webcamera or your video to check demos.

youtube-pub

Purpose

  • Quick demo ๐Ÿš€
  • Comparison performance ๐Ÿค”
  • Sharing your results ๐Ÿ“จ

Requirements

Installation

mkdir -p ~/ros2_ws/src
cd ~/ros2_ws/src
git clone https://github.com/Ar-Ray-code/YouTube-publisher-ROS2.git
pip3 install -r YouTube-publisher-ROS2/requirements.txt
cd ~/ros2_ws
colcon build --symlink-install

Demo with YOLOX-ROS

Build

# YOLOX installation
cd ~/Documents/
git clone --recursive https://github.com/Megvii-BaseDetection/YOLOX
cd ~/Documents/YOLOX
pip3 install -U pip && pip3 install -r requirements.txt
pip3 install -v -e .  # or  python3 setup.py develop
pip3 install cython; pip3 install 'git+https://github.com/cocodataset/cocoapi.git#subdirectory=PythonAPI'

# ROS2 Installation
cd ~/ros2_ws/src

git clone https://github.com/Ar-Ray-code/YouTube-publisher-ROS2.git
git clone https://github.com/Ar-Ray-code/YOLOX-ROS.git --recursive
pip3 install -r YouTube-publisher-ROS2/requirements.txt

cd ~/ros2_ws
colcon build --symlink-install

Run

ros2 launch youtube_publisher youtube_publisher_yolox.launch.py

youtube-yolox

Parameter

Look the launch.py file !

	youtube = launch_ros.actions.Node(
        package='youtube_publisher', executable='youtube_pub',
        parameters=[
            {'topic_name': '/image_raw'},
            {'cache_path': youtube_publisher_share_dir + '/cache'},
            {'video_url' : 'https://youtu.be/CFLOiR2EbKM'},
            {'using_youtube_dl' : True},
            {'clear_cache_force' : False},
            {'width' : 854},
            {'height' : 480},
            {'speed' : 1.0},
            {'imshow_is_show' : True}
        ],
    )
  • topic_name : Publish topic name๏ผˆDefault : image_raw๏ผ‰
  • cache_path : Path of the video to be saved๏ผˆDefault : ~/cache/youtube_publisher๏ผ‰
  • video_url : YouTube Video URL๏ผˆDefault : https://youtu.be/CFLOiR2EbKM๏ผ‰
  • using_youtube_dl : Automatically download video from YouTube when it is not downloaded. ๏ผˆDefault : True๏ผ‰
    • If you run it again, it will load the cache and will not be downloaded.
    • If URL is re-writtten, it will be cleared cache and re-downloaded.
  • clear_cache_force : Clear cache and re-download force. ๏ผˆDefault : False๏ผ‰
  • width : Width of publishing video. Not about downloaded video width.๏ผˆDefault : 720๏ผ‰
  • height : Height of publishing video. Not about downloaded video height.๏ผˆDefault : 480๏ผ‰
  • speed : Video playback speed.๏ผˆDefault : 1.0๏ผ‰
  • imshow_is_show : Video visualization with imshow. ๏ผˆDefault : False๏ผ‰
    • True : show, False : Don't show

About author

Owner
Ar-Ray
1st grade of National Institute of Technology(=Kosen) student. Associate degree
Ar-Ray
Download from HBO-MAX-BLIM-TV-Paramount

#HBO MAX- BlimTV -Paramount plus 4K Downloader Tool To download 4K HDR DV SDR from HBO MAX- BlimTV -Paramount plus Hello Fellow Developers/ ! Hi! M

4 Dec 25, 2021
Download minecraft head or skin, allows TLauncher accounts

Minecraft-skin-downloader Download minecraft head or skin, allows TLauncher accounts by BoBkiNN_ Contact: https://vk.com/bobkinnvk Requirements: Modul

3 Apr 03, 2022
The lyrics module of the repository apple-playlist-downloader

This is the lyrics module of the repository apple-playlist-downloader. With this code you can download the .lrc file (time synced lyrics) from yours t

Antoine Bollengier 6 Oct 07, 2022
ๆŠ–้ŸณๅŽปๆฐดๅฐ่ง†้ข‘ๆ‰น้‡ไธ‹่ฝฝ๏ผŒๅฎŒๅ…จไฝฟ็”จๆŠ–้Ÿณๅฎ˜ๆ–นๆŽฅๅฃ

TikTokDownload ๆŠ–้ŸณๅŽปๆฐดๅฐ่ง†้ข‘ไธ‹่ฝฝ๏ผŒไฝฟ็”จๆŠ–้Ÿณๅฎ˜ๆ–นๆŽฅๅฃ ไฝฟ็”จๆ•™็จ‹๏ผˆWin7๏ผ‰ Win10็Žฏๅขƒๆš‚ๆ—ถๆฒกๆต‹๏ผŒbugๆƒ…ๅ†ตๅบ”่ฏฅๆฏ”Win7ๅฐ‘ ่ฟ่กŒ่ฝฏไปถๅ‰ๅ…ˆๆ‰“ๅผ€็›ฎๅฝ•ไธ‹ conf.ini ๆ–‡ไปถๆŒ‰็…ง่ฆๆฑ‚่ฟ›่กŒ้…็ฝฎ ๆ‰น้‡ไธ‹่ฝฝๅฏ็›ดๆŽฅไฟฎๆ”น้…็ฝฎๆ–‡ไปถ๏ผŒๅ•ไธ€่ง†้ข‘ไธ‹่ฝฝ่ฏท็›ดๆŽฅๆ‰“ๅผ€็ฒ˜่ดด่ง†้ข‘้“พๆŽฅๅณๅฏ

JohnserfSeed 2k Jan 04, 2023
A script that downloads YouTube videos/audio

YouTube-Downloader A script that downloads YouTube videos/audio from youtube. Usage Download the script by executing the following in your terminal :

Debayan Sarkar 2 Jan 04, 2022
Source code of paper: "HRegNet: A Hierarchical Network for Efficient and Accurate Outdoor LiDAR Point Cloud Registration".

HRegNet: A Hierarchical Network for Efficient and Accurate Outdoor LiDAR Point Cloud Registration Environments The code mainly requires the following

Intelligent Sensing, Perception and Computing Group 3 Oct 06, 2022
Storing, versioning, and downloading files from S3 made as easy as using open() in Python. Caching included.

open(LARGE) Storing, versioning, and downloading files from S3 made as easy as using open() in Python. Caching included. Motivation Oftentimes, especi

Andrรกs Schmelczer 2 Jan 30, 2022
This is a tool to allow downloading any links from r/Roms Magethread

ILYFPR This is a tool to allow downloading any links from r/Roms Magethread Limitations: It downloads ALL roms of the system you choose. This will be

Erase 4 Nov 04, 2021
Downloads data from OSM API and uploads it to the mapping sandbox.

OpenStreetMap To Sandbox This is a script to download data from OSM API and upload it to the mapping sandbox. Note that it clears all data in the sand

Ilya Zverev 5 Nov 27, 2022
๐ด ๐‘ก๐‘’๐‘™๐‘’๐‘”๐‘Ÿ๐‘Ž๐‘š ๐‘๐‘œ๐‘ก ๐‘กโ„Ž๐‘Ž๐‘ก ๐‘๐‘Ž๐‘› ๐‘‘๐‘œ๐‘ค๐‘›๐‘™๐‘œ๐‘Ž๐‘‘ ๐‘ฃ๐‘–๐‘‘๐‘’๐‘œ ๐‘Ž๐‘›๐‘‘ ๐‘Ž๐‘ข๐‘‘๐‘–๐‘œ ๐‘“๐‘Ÿ๐‘œ๐‘š ๐‘ฆ๐‘œ๐‘ข๐‘ก๐‘ข๐‘๐‘’ ๐‘Ž๐‘›๐‘‘ ๐‘ฃ๐‘–๐‘‘๐‘’๐‘œ ๐‘ค๐‘’๐‘๐‘ ๐‘–๐‘ก๐‘’๐‘  ๐‘ž๐‘ข๐‘–๐‘๐‘˜๐‘™๐‘ฆ

๐ด ๐‘ก๐‘’๐‘™๐‘’๐‘”๐‘Ÿ๐‘Ž๐‘š ๐‘๐‘œ๐‘ก ๐‘กโ„Ž๐‘Ž๐‘ก ๐‘๐‘Ž๐‘› ๐‘‘๐‘œ๐‘ค๐‘›๐‘™๐‘œ๐‘Ž๐‘‘ ๐‘ฃ๐‘–๐‘‘๐‘’๐‘œ ๐‘Ž๐‘›๐‘‘ ๐‘Ž๐‘ข๐‘‘๐‘–๐‘œ ๐‘“๐‘Ÿ๐‘œ๐‘š ๐‘ฆ๐‘œ๐‘ข๐‘ก๐‘ข๐‘๐‘’ ๐‘Ž๐‘›๐‘‘ ๐‘ฃ๐‘–๐‘‘๐‘’๐‘œ ๐‘ค๐‘’๐‘๐‘ ๐‘–๐‘ก๐‘’๐‘  ๐‘ž๐‘ข๐‘–๐‘๐‘˜๐‘™๐‘ฆ

SOCIAL MECHANIC 2 Aug 04, 2022
A tool to make easy to search for directories in the URL.

Welcome to Brutos Directory Scanner ๐Ÿš€ The Brutos is a python script used to provide agility in obtaining verifications to informations about related

Sรฉrgio Corrรชa 4 Apr 14, 2022
Python script to download (TCR) genes from IMGT/GENE-DB

IMGTgeneDL 0.1.0 Jamie Heather | CCR @ MGH | 2021 This script provides an alternative way to access TCR and IG genes stored in IMGT/GENE-DB. It's prim

Jamie Heather 1 Mar 30, 2022
Smule Video Downloader

Smule Video Downloader Using Requests,Re & Urllib Installation - apt install git (for vps) or pkg install git (for termux)

Hansen Gianto 4 Aug 31, 2022
mescrappy - Python + Selenium Youtube scraper

mescrappy - Python + Selenium Youtube scraper Youtube Sraping With Python (Selenium) Table of Contents About The Project Built With Getting Started In

Merdan Chariyarov 12 Nov 28, 2021
Easy automated ebook downloader using openbooks as the backend

Easy automated ebook downloader using openbooks as the backend

27 Nov 06, 2022
ๅ‘ฝไปค่กŒ็‰ˆๆœฌ็š„HLS/DASHๆตไธ‹่ฝฝๅ™จ๏ผŒๆ”ฏๆŒๆ ‡ๅ‡†AES-128-CBC่งฃๅฏ†

XstreamDL-CLI ๅŸบไบŽpython 3.7.4+็š„๏ผŒๅ‘ฝไปค่กŒ็‰ˆๆœฌ็š„๏ผŒHLS/DASHๆตไธ‹่ฝฝๅ™จ๏ผŒๆ”ฏๆŒๆ ‡ๅ‡†AES-128-CBC่งฃๅฏ† ไฝฟ็”จ ้ฆ–ๅ…ˆๅฎ‰่ฃ…ๅฟ…่ฆ็š„ๅบ“

xhlove 239 Dec 31, 2022
A toolkit to automatically crawl the paper list and download paper pdfs of ACL Ahthology.

ACL-Anthology-Crawler A toolkit to automatically crawl the paper list and download paper pdfs of ACL Anthology

Ray GG 9 Oct 09, 2022
Ripurei is a free-to-use osu! replay downloader, that can be configured to download from any osu! server.

Ripurei Ripurei is a fully functional osu! replay downloader, fully capable of downloading from almost any osu! server. Functionality Timeline โœ”๏ธ Able

Thomas 0 Feb 11, 2022
Super S3 command line tool

s4cmd Super S3 command line tool Author: Chou-han Yang (@chouhanyang) Current Maintainers: Debodirno Chandra (@debodirno) | Naveen Vardhi (@rozuur) |

Bloomreach 1.2k Dec 27, 2022