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
Python based YouTube video Downloader GUI Application.

Youtube video Downloader Python based Youtube video Downloader GUI Application. Installation Python Dependencies Import pytube pip install pytube Im

Naem Azam 1 Jan 03, 2022
Terminal based YouTube player and downloader

termitube NOTE: THIS REPOSITORY IS A FORK OF mps-youtube as mps-youtube has been unmaintained for almost a year now. Features Search and play audio/vi

Otis/Jacob Root 27 Dec 23, 2022
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
Most versatile Telegram torrent and youtube-dl bot.

TorToolkit Telegram So basically Tortoolkit is aimed to be the most versatile torrent leecher and Youtube-DL bot for telegram. This bot is highly cust

Yash Khadse 541 Dec 22, 2022
Tool To download 4KHDR DV SDR from AppleTV

# APPLE-TV 4K Downloader Tool To download 4K HDR DV SDR from AppleTV Hello Fellow Developers/ ! Hi! My name is WVDUMP. I am Leaking the scripts to

5 Dec 25, 2021
ๆŠ–้ŸณๅŽปๆฐดๅฐ่ง†้ข‘ๆ‰น้‡ไธ‹่ฝฝ๏ผŒๅฎŒๅ…จไฝฟ็”จๆŠ–้Ÿณๅฎ˜ๆ–นๆŽฅๅฃ

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

JohnserfSeed 2k Jan 04, 2023
Python software to download videos from Tiktok without rights

download-video-tiktok Python software to download videos from Tiktok without rights to install pip install requests Follow us telegram : https://t.me

muntazir halim 1 Oct 28, 2021
Noto fonts go universal! Download Noto fonts combined to suit your region

noto-cjk Noto CJK fonts Noto Serif CJK update was released on 25 October 2021. We moved the release history and other notes into both Sans and Serif s

Google Fonts 2k Jan 02, 2023
Pytube ve tkinter kรผtรผphanesi ile yapmฤฑลŸ olduฤŸum basit ve temel bir youtube video indirme programฤฑ.

PyTube Pytube ve tkinter kรผtรผphanesi ile yapmฤฑลŸ olduฤŸum basit ve temel bir youtube video indirme programฤฑ. Videolar 720p รงรถzรผnรผrlรผkte indirilmektedir.

1 Nov 12, 2021
Animoo - Python scraper made with BeautifulSoup4 that scrapes images from /c/.

Animoo - Python scraper made with BeautifulSoup4 that scrapes images from /c/. Features Scrapes 10 pages Scrapes each thread Downloads all the images

aether 1 Dec 29, 2021
Download any video from YouTube playlists

youtube-dl Download any videos from YouTube playlists. Requirements Python 3 BeautifulSoup4 PyQt PyQtWebEngine pytube pyyoutube python-decouple Usage

Antonio Fortin 1 Oct 26, 2021
A Fast as F*** Downloader

FAFD A Fast as F*** Downloader Github Usages You'll want to use a URL like this: https://github.com/RPowell-C/FAFD/raw/main/FAFD.py It's easier DONT F

1 Jan 19, 2022
Used Insta Loader to download high quality images from instagram account

Insta Dp Downloader Project Description: In this project, I have used "Insta Loader" to download high quality images from instagram account. You only

Hassan Shahzad 3 Oct 31, 2022
bing image downloader app used to download bulk images for a specific search term created using streamlit and bing_image_downloader python packages

bing image downloader app bing image downloader app is used to download bulk images for a specific search term. bing image downloader app gets the sea

Siva Prakash 8 Apr 05, 2022
Bulk Downloader for Reddit

saveddit is a bulk media downloader for reddit pip3 install saveddit Setting up authorization Register an application with Reddit Write down your clie

Pranav 136 Jan 03, 2023
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
Downloads photos you saved from a specific profile.

instagram-download-saved A python script that downloads photos you saved from a specific profile. The only dependency is instaloader, an open-source p

Aviv 1 Dec 19, 2021
Tool to download Netflix in 4k

Netflix-4K-Script Tool to download Netflix in 4k You will need to get a L1 CDM that is whitelsited with Netflix CDM In this script are downgraded

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

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

SOCIAL MECHANIC 2 Aug 04, 2022
Download YOUR files, documents from vk.

vk-documents-downloader ะšะฐั€ะพั‡ ัั‚ะฐ ัะธะผะฟะป ั…ะตั€ะฝั ะบะฐั‡ะฐะตั‚ ะฒัะต ะ’ะะจะ˜ ะดะพะบัƒะผะตะฝั‚ั‹ ั ะฒะบ. ะ˜ะปะธ ั ะตะฑะปะฐะฝ, ะฝะพ ะฒ ะณั… ะธ ั‚ะผะฑ ะณัƒะณะปะต ั ะฟะพะดะพะฑะฝะพะณะพ ะฝะต ะฝะฐัˆะตะป. py main.py Login:

4 Jun 10, 2022