[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 $username = Read-Host 'User name' $save_directory = 'C:\video' $default_stream = 'best' $streamlink_exe = 'streamlink.exe' $server = 'diana.dreamdares.com' $user_agent = 'Chrome/111.0.5563.147' $address = 'https://dreamdares.com' $waiting_time = 30 #seconds $uri = "https://dreamdares.com/api/{0}/stream" -f $username while($true) { Clear-Host $Host.UI.RawUI.WindowTitle = "$username (DreamDares)" $response = $null try { $response = Invoke-WebRequest -UseBasicParsing -TimeoutSec 60 -UserAgent $user_agent -Uri $uri } catch { $_.Exception.Message $uri } if ($response) { $json = $null $json = $response | ConvertFrom-Json if ($json) { $key = $json.key $active = $json.active $username = $json.username if ($active -eq 1) { $unix_time = [DateTimeOffset]::Now.ToUnixTimeMilliSeconds() $stream_url = 'https://diana.dreamdares.com:8081/publish/{0}/playlist.m3u8' -f $key $date = Get-Date -f yyyy-MM-dd_HH-mm-ss $file_name = '{0}-{1}.ts' -f $username, $date $output = Join-Path $save_directory $file_name $Host.UI.RawUI.WindowTitle = "$username (DreamDares) - recording" & $streamlink_exe --http-header "User-Agent=$user_agent" --http-header "Referer=$address" --hls-segment-threads 3 --default-stream $default_stream --url $stream_url --output $output } else { $Host.UI.RawUI.WindowTitle = "$username (DreamDares) - offline" Write-Host "$username - offline" } } } Start-Sleep -seconds $waiting_time }[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 $username = Read-Host 'User name' $save_directory = 'C:\video' $default_stream = 'best' $streamlink_exe = 'streamlink.exe' $server = 'diana.dreamdares.com' $user_agent = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36' $address = 'https://dreamdares.com' $waiting_time = 30 #seconds $uri = "https://dreamdares.com/api/{0}/stream" -f $username while($true) { Clear-Host $Host.UI.RawUI.WindowTitle = "$username (DreamDares)" $response = $null try { $response = Invoke-WebRequest -UseBasicParsing -TimeoutSec 60 -UserAgent $user_agent -Uri $uri } catch { $_.Exception.Message $uri } if ($response) { $json = $null $json = $response | ConvertFrom-Json if ($json) { $key = $json.data.key $active = $json.data.active $username = $json.data.username if ($active -eq 1) { $unix_time = [DateTimeOffset]::Now.ToUnixTimeMilliSeconds() $stream_url = 'https://diana.dreamdares.com:8081/publish/{0}/playlist.m3u8' -f $key $date = Get-Date -f yyyy-MM-dd_HH-mm-ss $file_name = '{0}-{1}.ts' -f $username, $date $output = Join-Path $save_directory $file_name $Host.UI.RawUI.WindowTitle = "$username (DreamDares) - recording" & $streamlink_exe --http-header "User-Agent=$user_agent" --http-header "Referer=$address" --hls-segment-threads 3 --default-stream $default_stream --url $stream_url --output $output } else { $Host.UI.RawUI.WindowTitle = "$username (DreamDares) - offline" Write-Host "$username - offline" } } } Start-Sleep -seconds $waiting_time }
$username = $json.data.username
ffmpeg -hide_banner -rw_timeout 10000000 -i URL -c copy -movflags frag_keyframe -flush_packets 1 test.mp4
ffmpeg -hide_banner -rw_timeout 10000000 -i URL -c copy -movflags +frag_keyframe+separate_moof+omit_tfhd_offset+empty_moov -bsf:a aac_adtstoasc -flush_packets 1 test.mp4
ffmpeg -i "%savedir%\%%a" -hide_banner -c copy -movflags +faststart "%savedir%\%%~na.mp4"
Сегодня, 02:02
Сегодня, 00:58
Вчера, 15:48
Вчера, 15:20
Вчера, 13:46
Вчера, 12:51
Вчера, 08:42
8 марта 2026 23:28
8 марта 2026 18:42
8 марта 2026 18:10
7 марта 2026 19:37
7 марта 2026 17:59
7 марта 2026 08:54
7 марта 2026 02:47
25 февраля 2026 18:39
19 февраля 2026 20:48
16 февраля 2026 15:27
14 февраля 2026 16:33
5 февраля 2026 01:07
3 февраля 2026 18:18
20 января 2026 21:11
20 января 2026 16:37
20 января 2026 10:47
19 января 2026 00:38
15 января 2026 22:17
15 января 2026 18:49
14 января 2026 02:49
12 января 2026 23:18
4 января 2026 09:47
3 января 2026 14:32
30 декабря 2025 03:05
26 декабря 2025 21:29
22 декабря 2025 21:38
13 декабря 2025 14:51
11 декабря 2025 19:56
4 декабря 2025 03:37
3 декабря 2025 16:48
2 декабря 2025 15:12
1 декабря 2025 12:23
30 ноября 2025 03:07
28 ноября 2025 14:44
27 ноября 2025 08:24
25 ноября 2025 11:09
25 ноября 2025 10:53