Spread the word.

Share the link on social media.

Share
  • Facebook
Have an account? Sign In Now

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Captcha Click on image to update the captcha.

Have an account? Sign In Now

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

MinexTuts Community Forum

MinexTuts Community Forum Logo MinexTuts Community Forum Logo

MinexTuts Community Forum Navigation

  • Home
  • About Us
  • Blog
  • Tools & Offers
    • Smart MX Shortener
    • Offers & Deals
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
Home/ Questions/Q 3711
Next
In Process
Arthur
  • 1
ArthurBegginer
Asked: January 14, 20222022-01-14T22:13:04+00:00 2022-01-14T22:13:04+00:00In: VPS / VM Instance

How to π™‡π™Šπ™Šπ™‹ a video with a π™¨π™˜π™§π™žπ™₯𝙩 for Youtube live 7/7j

  • 1

Hello guys !
I wanted to know how to loop a video with a script so I can make with my VM Instance a Youtube Live 7/7j without touching anything else more.
I used this script used in one of your video :

#! /bin/bash VBR=”2500k” FPS=”30β€³ QUAL=”superfast” YOUTUBE_URL=”rtmp://a.rtmp.youtube.com/live2β€³ KEY=”????” VIDEO_SOURCE=”/home/ubuntu/live_session.mp4β€³ AUDIO_SOURCE=”/home/ubuntu/livesound.mp3β€³ ffmpeg \\ -re -f lavfi -i β€œmovie=filename=$VIDEO_SOURCE:loop=2, setpts=N/(FRAME_RATE*TB)” \\ -thread_queue_size 512 -i β€œ$AUDIO_SOURCE” \\ -map 0:v:0 -map 1:a:0 \\ -map_metadata:g 1:g \\ -vcodec libx264 -pix_fmt yuv420p -preset $QUAL -r $FPS -g $(($FPS * 2)) -b:v $VBR \\ -acodec libmp3lame -ar 44100 -threads 6 -qscale:v 3 -b:a 320000 -bufsize 512k \\ -f flv β€œ$YOUTUBE_URL/$KEY”

how to loop a video with a scriptscriptvm instanceyoutube live
  • 2 2 Answers
  • 94 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Related Questions

  • 24/7 livestream problem
  • How to Install Windows 10 on oracle ubuntu VPS
  • How can I stream multiple audio files and a static JPEG image via the terminal?
Leave an answer

Leave an answer
Cancel reply

Browse
Browse

Choose from here the video type.

Put Video ID here: https://www.youtube.com/watch?v=sdUUx5FdySs Ex: "sdUUx5FdySs".

Captcha Click on image to update the captcha.

2 Answers

  • Voted
  • Oldest
  • Recent
  • Random
  1. Arthur Begginer
    2022-01-15T18:14:30+00:00Added an answer on January 15, 2022 at 6:14 pm

    The problem here is when my stream reach the end of the mp4 file it didn’t loop and the stream seems to crash or something else.

    So I wanted to know if there is a script that works for looping a mp4,mp3 files and maybe a command to add that restart my stream and play my video at 00:00.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  2. anandhusajan Begginer
    2022-01-31T22:33:30+00:00Added an answer on January 31, 2022 at 10:33 pm

    This code will help you to loop the process.

    Β 

    #! /bin/bash

    while true
    do

    VBR=”2500k” FPS=”30β€³ QUAL=”superfast” YOUTUBE_URL=”rtmp://a.rtmp.youtube.com/live2β€³ KEY=”????” VIDEO_SOURCE=”/home/ubuntu/live_session.mp4β€³ AUDIO_SOURCE=”/home/ubuntu/livesound.mp3β€³ ffmpeg \\ -re -f lavfi -i β€œmovie=filename=$VIDEO_SOURCE:loop=2, setpts=N/(FRAME_RATE*TB)” \\ -thread_queue_size 512 -i β€œ$AUDIO_SOURCE” \\ -map 0:v:0 -map 1:a:0 \\ -map_metadata:g 1:g \\ -vcodec libx264 -pix_fmt yuv420p -preset $QUAL -r $FPS -g $(($FPS * 2)) -b:v $VBR \\ -acodec libmp3lame -ar 44100 -threads 6 -qscale:v 3 -b:a 320000 -bufsize 512k \\ -f flv β€œ$YOUTUBE_URL/$KEY”

    done

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 126
  • Answers 212
  • Posts 66
  • Users 741

Social Statistics

  • 0 Followers
  • 6 Followers
  • 1 Follower
  • 6k Subscribers

Recent posts

  • MinexTuts

    How to Stop Spam Comments on WordPress? - Free & ...

    • 0 Comments
  • MinexTuts

    How to Make Money on Facebook? - 5 Most Effective ...

    • 0 Comments
  • MinexTuts

    How to Make Money Selling Digital Downloads on Etsy! (Step ...

    • 0 Comments
  • MinexTuts

    Amazon FBA vs Dropshipping : What is the Best Way ...

    • 0 Comments
  • MinexTuts

    Create 24/7 Live Streaming Server Free (Multistream Enabled)

    • 2 Comments
  • Popular
  • Answers
  • wesleyhenriques

    How can I stream multiple audio files and a static ...

    • 12 Answers
  • michaelwang0428

    How do I use an image to do the VPS ...

    • 11 Answers
  • chiragnahata

    Linux to Windows not working

    • 9 Answers
  • MinexTuts
    MinexTuts added an answer Buffering may be due to low CPU power of your… August 5, 2022 at 2:14 pm
  • Niroshana8064
    Niroshana8064 added an answer How to increase the bit rate of the streaming? Is… August 5, 2022 at 12:30 pm
  • Niroshana8064
    Niroshana8064 added an answer I tried it. But still shows that "YouTube is not… August 5, 2022 at 12:20 pm

Related Questions

  • Niroshana8064

    24/7 livestream problem

    • 4 Answers
  • MinexTuts

    What is the Best Method to Make Money with Virtual ...

    • 0 Answers
  • MinexTuts

    How to assign a public IP address to a running ...

    • 0 Answers

Top Members

MinexTuts

MinexTuts

  • 11 Questions
  • 501 Points
Professional
anandhusajan

anandhusajan

  • 2 Questions
  • 42 Points
Begginer
Username

Username

  • 7 Questions
  • 33 Points
Begginer

Trending Tags

24/7 azuracast ffmpeg linux question vm vm instance vps wordpress youtube

Footer

MinexTuts Community Forum

MineXTuts is a technological questions & Answers Engine which will help you establish a community and connect with other people.

About Us

  • Meet The Team
  • Blog
  • About Us
  • Smart MX Shortener

Legal Stuff

  • Terms of Use
  • Privacy Policy
  • Cookie Policy

Help

Follow

Β© 2021 MinexTuts. All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.