banner



Can You Rewind A Youtube Live Stream

ee.Yrewind

Yrewind is a command line utility for saving YouTube alive streams in original quality.

The program has the post-obit features:

  • Delayed start recording
  • Recording in real time
  • Downloading recently finished live streams
  • Rewinding to the specified fourth dimension bespeak in the past, and downloading from that point
  • Waiting for the scheduled live stream to starting time so automatically recording from the first second
  • Monitoring the specified channel for new live streams so automatically recording from the first second

Supported parameters:

` -url (-u) ` ` -start (-s) ` ` -duration (-d) ` ` -resolution (-r) ` ` -ffmpeg (-f) ` ` -output (-o) `
` -browser (-b) ` ` -cookie (-c) ` ` -keepstreaminfo (-thou) ` ` -log (-fifty) ` ` -executeonexit (-e) `

» download «

Changelog is here. If something doesn't work, delight report and endeavour previous versions.

Screenshot

Quick get-go

  1. Unpack the downloaded nil.
  2. Open run.bat in a text editor and paste the URLs of required streams instead of existing samples.
  3. Salvage run.bat and run it!

Usage

The only required command line statement is the -url:

-url=[url]

With this command, the program records a livestream in real time for 1 hour at 1080p resolution, or at a lower if 1080p is not available. URL tin can be specified in various formats:

                yrewind -url='youtube.com/watch?five=9Auq9mYxFEE' yrewind -url=https://www.youtu.be/9Auq9mYxFEE yrewind -url=9Auq9mYxFEE (etc.)                              

Aqueduct URL can also exist specified, this allows to wait for a new livestream on the aqueduct and automatically showtime recording from the beginning second when it starts. Please note that when specifying a channel URL, agile livestreams are ignored, the plan will wait for a new one.

                yrewind -url='https://www.youtube.com/c/SkyNews' yrewind -url=www.youtube.com/user/SkyNews/ yrewind -url='youtube.com/channel/UCoMdktPbSTixAyNGwb-UYkQ' yrewind -url=UCoMdktPbSTixAyNGwb-UYkQ                              

To rewind the livestream or filibuster the first of recording, apply the -starting time parameter. It has several spellings:

-start=[YYYYMMDD:hhmm], -outset=[YYYYMMDD:hhmmss]
-get-go=[Y:hhmm], -start=[Y:hhmmss]
-showtime=[T:hhmm], -commencement=[T:hhmmss]
-start=offset, -start=b
-showtime=-[minutes]
-start=+[minutes]

This parameter specifies the point in time from which to save the stream. It's calculated relative to the moment the program was started (displayed in the first line). If the parameter is missing, plan saves ongoing livestream in existent time, scheduled and finished - from the beginning. Depending on technical parameters of the livestream, start betoken may be shifted from the requested one past several seconds (in a larger direction).

To download the time interval from vii:10AM to 8:10AM on July fifteen, 2020:

                yrewind -url='https://world wide web.youtube.com/sentinel?5=9Auq9mYxFEE' -start=20200715:0710                              

To download the time interval from yesterday 10:15PM to 11:15PM:

                yrewind -url='https://world wide web.youtube.com/watch?v=9Auq9mYxFEE' -offset=Y:2215                              

To download the fourth dimension interval from today 02:00AM to 03:00AM:

                yrewind -url='https://www.youtube.com/lookout man?v=9Auq9mYxFEE' -start=T:020000                              

To download from the first currently available moment:

                yrewind -url='https://world wide web.youtube.com/watch?5=9Auq9mYxFEE' -commencement=beginning                              

To download the time interval from iii hours agone to two hours ago:

                yrewind -url='https://world wide web.youtube.com/sentinel?five=9Auq9mYxFEE' -start=-180                              

To wait 2 hours, then record for 1 hour:

                yrewind -url='https://world wide web.youtube.com/sentinel?five=9Auq9mYxFEE' -first=+120                              

The program also has several other parameters:

-duration=[minutes]
-elapsing=[minutes].[seconds]

Specifies the required duration. The minimum value is 0.01 (ane second), the maximum is express to 300 (five hours). If the parameter is missing, plan uses the default 1 hour. Depending on technical parameters of the livestream, upshot duration may differ from the requested one by several seconds (in a larger direction). The examples beneath saves 300 minutes of the livestream:

                yrewind -url='https://www.youtube.com/watch?v=9Auq9mYxFEE' -duration=300 yrewind -url='https://www.youtube.com/watch?5=9Auq9mYxFEE' -elapsing=300.00 yrewind -url='https://www.youtube.com/scout?v=9Auq9mYxFEE' -duration=max                              
-resolution=[heightPixels]

Specifies the required resolution in pixels (meridian). If this parameter is missing, programme uses the default 1080. If the requested resolution is not available, the nearest lower will exist selected. In the examples below, the livestream will exist saved at 144p:

                yrewind -url='https://world wide web.youtube.com/watch?five=9Auq9mYxFEE' -resolution=144 yrewind -url='https://world wide web.youtube.com/watch?v=9Auq9mYxFEE' -resolution=200 yrewind -url='https://www.youtube.com/watch?v=9Auq9mYxFEE' -resolution=i yrewind -url='https://www.youtube.com/watch?5=9Auq9mYxFEE' -resolution=min                              
-ffmpeg='c:\path\to\ffmpeg\'

Specifies the path to FFmpeg library. If relative path is specified, the base folder is the folder from which the control line was run. If this parameter is missing, Yrewind tries to observe FFmpeg in its own folder and using environment variables.

                yrewind -url='https://www.youtube.com/scout?five=9Auq9mYxFEE' -ffmpeg='c:\Program Files\FFmpeg\'                              
-output='c:\dir1\dir2\filename.extension'

Specifies custom folder, filename and extension (media container format) for the saved livestream. If relative path is specified, the base folder is the folder from which the command line was run. If this parameter is missing, plan uses the side by side default values:

  • [batch file folder]\saved_streams\ - for folder
  • [id]_[date]-[time]_[duration]_[resolution] - for filename
  • .mkv - for extension

The -output parameter can be specified partially, so the missing parts are replaced with default values. In this case, the office of the string to the right of the last slash is interpreted equally filename and/or extension. If the string does non contain slashes, it's fully interpreted as filename and/or extension:

  • c:\dir1\dir2\ - custom binder, default filename, default extension
  • dir1\filename - custom subfolder, custom filename, default extension
  • dir1\.extension - custom subfolder, default filename, custom extension
  • filename - default folder, custom filename, default extension
  • .extension - default binder, default filename, custom extension

Folder and filename supports renaming masks: *id*, *start*, *commencement[customDateTime]* (recognizes letters yyyyMMddHHmmss), *duration*, *resolution*, *channel_id*, *author* and *title*.

The extension defines the format of the media container in which the livestream will exist saved. Formats clarification:

  • .avi, .mp4 - use AVC and MP4a data; if AVC is unavailable, use VP9
  • .asf, .mkv, .wmv - utilize VP9 and MP4a data; if VP9 is unavailable, use AVC
  • .3gp, ` .flv, .mov, .ts` - use AVC and MP4a data; doesn't support loftier resolutions - saves at 1080p even if requested higher resolution is available
  • .aac, .m4a, .wma - use MP4a data; saves only audio (to relieve merely sound, you can besides specify zero resolution -r=0 - this works with all audio and video formats except .mp4)
  • .m3u, .m3u8 - playlist files pointing to livestream on the Internet, allows watching in media role player without downloading. Tested with VLC. Shelf life of playlist files is just half dozen hours

The case beneath saves the livestream as \saved_streams\9Auq9mYxFEE_20210123-185830_060.00m_1080p.ts:

                yrewind -url='https://www.youtube.com/picket?v=9Auq9mYxFEE' -output=.ts                              

The side by side example saves the livestream every bit d:\My saved streams\Sky News\2021-01-12_12-34.mkv:

                yrewind -url='https://www.youtube.com/scout?v=9Auq9mYxFEE' -output='d:\My saved streams\*author*\*start[yyyy-MM-dd_HH-mm]*'                              
-browser='c:\path\to\browser\file.exe'

Allows to apply browser in headless manner to get technical information about the livestream. It can be useful if Yrewind can't get info well-nigh the stream on its own. For the portable version of browser, specify the full path to the executable file; for the installed version, it'southward usually plenty to specify the name. But Chromium-based browsers are supported - Chrome, Edge, Dauntless, Opera, Vivaldi, etc.

                yrewind -url='https://world wide web.youtube.com/spotter?v=9Auq9mYxFEE' -browser='d:\My Portable Programs\Vivaldi\Application\vivaldi.exe' yrewind -url='https://www.youtube.com/watch?5=9Auq9mYxFEE' -browser=msedge                              
-cookie='c:\path\to\cookie\file.ext'

Specifies the path to the cookie file. If relative path is specified, the base folder is the folder from which the command line was run. The parameter can be useful if YouTube requires a captcha or authorisation to access a livestream with age or membership restrictions. The cookie file must be in Netscape format and tin can be obtained using any suitable browser add-on. Please note that cookie created later on solving captcha is usable for only a few hours. Instead of solving captcha, information technology's better to log in to YouTube and create cookie after that.

                yrewind -url='https://www.youtube.com/watch?v=9Auq9mYxFEE' -cookie='cookies.txt'                              
-log=true

If this parameter is set to true, Yrewind volition generate log files (in the folder from which the command line was run).

                yrewind -url='https://www.youtube.com/watch?v=9Auq9mYxFEE' -log=true                              
-keepstreaminfo=false

If this parameter is prepare to false, Yrewind will non go on technical information virtually the livestream in a temporary cache file, and volition delete this file if information technology exists.

                yrewind -url='https://world wide web.youtube.com/watch?5=9Auq9mYxFEE' -keepstreaminfo=imitation                              
-executeonexit='c:\path\to\some\file.ext'

Specifies the command to run later Yrewind exits. If it's an executable file, you lot can also specify the arguments information technology supports (don't forget the quotes - nested supported). The non-executable file will be launched by the associated programme. The parameter supports two rename masks - *output*, which contains the full path of the saved video, and *getnext*, which contains the command to start Yrewind once more to get the next interval of the stream. When using -executeonexit=*getnext* command within a batch file, go on in mind that this file is beginning executed to the stop, and only then the *getnext* command is executed. As well utilise rename masks *starting time* and *first[customDateTime]* to avoid duplicate names of saved stream parts (or but utilise default auto-naming). In the beginning instance below, the saved video will be opened by the associated programme, in the 2nd - using the specified program:

                yrewind -url='https://www.youtube.com/watch?5=9Auq9mYxFEE' -executeonexit=*output* yrewind -url='https://www.youtube.com/watch?v=9Auq9mYxFEE' -executeonexit=''c:\Programme Files\VLC mediaplayer\vlc.exe' *output*'                              

More than examples:

To save 1 hour of the stream from 04:55AM to 05:55AM on May 5, 2020, at 720p, to specified binder:

                yrewind -u=9Auq9mYxFEE -south=20200505:0455 -r=720 -o='d:\My saved streams\'                              

To save 89 minutes thirty seconds of the stream from today 10:45AM to 12:15PM, at 1080p:

                yrewind -u=9Auq9mYxFEE -southward=T:1045 -d=89.30                              

To record livestream until it ends, starting from the starting time, in .ts format, salvage outcome video to desktop:

                yrewind -u=9Auq9mYxFEE -s=b -o=%UserProfile%\Desktop\.ts -due east=*getnext*                              

To immediately play (without downloading) with assotiated mediaplayer, from yesterday 03:00AM, at the maximum bachelor resolution:

                yrewind -u=9Auq9mYxFEE -s=Y:0300 -r=max -o=.m3u -eastward=*output*                              

Wait for a new livestream on the specified channel, then start recording from the 30th minute:

                yrewind -u=https://www.youtube.com/c/SkyNews -s=+xxx                              

Notes

  • Loss of packets on the streamer side causes the estimated fourth dimension to shift. The offset is usually seconds, but if its internet connection is unstable and/or the stream has been running for a long time, it can be minutes or even hours. For example, if the stream was interrupted for a total of 1 60 minutes, then 24-hr frames will be presented as 23-hour. Thus, start signal time accuracy can just be guaranteed for the current moment. The further the livestream is rewound, the less accuracy. Also, if there are interruptions in the livestream at the specified fourth dimension interval, the elapsing of the saved file will be shorter past the total duration of those interruptions; a warning for this incompleted file will be displayed
  • Occasionally, the message unable to verify the saved file is correct appears. The reasons may be every bit follows: if the elapsing of the saved file cannot exist verified (there is a possibility that the file is damaged); if the duration of the saved file does not match the requested one (also in this case, the output file name contains the discussion INCOMPLETE); if the starting point of the requested time interval cannot exist accurately determined (for instance due to server side error)
  • To reduce the take a chance of output file corruption, it's better not to use Moov Atom formats (.3gp, .mov, .mp4, .m4a) for long recordings. Also, these formats don't allow to play a file that is in the process of downloading (other formats do)
  • Recently finished livestreams can be downloaded within approximately half-dozen hours of completion. Subsequently this fourth dimension, such stream 'turns' into a regular video and tin be downloaded, for example, using youtube-dl
  • When using proxy, VPN or special firewall settings, keep in mind that not simply Yrewind should have advisable access, but too FFmpeg

Terms of use

  • This software provides access to information on the Internet that is publicly bachelor and does not crave dominance or authentication
  • This software is free for not-commercial use and is provided 'as is' without warranty of whatsoever kind, either express or unsaid
  • The writer will not be liable for data loss, damages or any other kind of loss while using or misusing this software
  • The author will non be liable for the misuse of content obtained using this software, including copyrighted, age-restricted, or whatsoever other protected content

Programmer info

  • C#
  • .Internet Framework 4.5
  • Visual Studio Community 2019

Requirements

  • FFmpeg static build (included in the archive)
  • Windows seven and on / Windows Server 2008 and on
  • Chromium-based browser (for some livestreams)

Tested configuration

  • FFmpeg 4.3 x86 (past Zeranoe)
  • Windows 10 Pro x32
  • Windows 10 Pro x64

Nigh

Console utility for saving YouTube live streams with rewind function up to 167 hours

download downloader dvr live livestream record rewind salvage stream youtube


[plan folio] [start page] [writer electronic mail]

Source: https://rytsikau.github.io/ee.Yrewind/

Posted by: yateskinviout.blogspot.com

0 Response to "Can You Rewind A Youtube Live Stream"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel