What is this?

2024.11.26 00:19 myhairyhead What is this?

This post contains content not supported on old Reddit. Click here to view the full post
submitted by myhairyhead to Pixelary [link] [comments]


2024.11.26 00:19 Fusion2169 Help with a windows script

I have been trying to make a script that automates the installation and configuration of FFmpeg to work with VidBlaster on a Windows 10 or 11 PC. The script should download the FFmpeg static build, extract it to C:\ffmpeg, and add it to the system PATH. It also needs to create a PowerShell script that captures VidBlaster’s video output and streams it to a Raspberry Pi.
Additionally, I want the script to ensure that FFmpeg starts automatically whenever VidBlaster is launched. The goal is to enable VidBlaster to stream live video to the Raspberry Pi seamlessly without requiring manual setup every time. I would also like the terminal window to never be seen when the script starts. Any help would be greatly appreciated
:this is the code I have it won't start and I have tried to have error logging added but it is not working ether
@echo off
:: Define log file path
set LOGFILE=%USERPROFILE%\Desktop\ffmpeg_setup_error_log.txt
echo Starting FFmpeg setup... > "%LOGFILE%"
:: Verify if the script is running as Administrator
net session >nul 2>&1
if %ERRORLEVEL% NEQ 0 (
echo Error: Please run this script as Administrator. >> "%LOGFILE%"
echo Error: This script must be run as Administrator. Check the log at: %LOGFILE%
pause
exit /b 1
)
:: Step 1: Download FFmpeg static build
echo Downloading FFmpeg static build... >> "%LOGFILE%"
powershell -Command "try {
Invoke-WebRequest -Uri 'https://www.gyan.dev/ffmpeg/builds/ffmpeg-release-essentials.zip' -OutFile '%TEMP%\ffmpeg.zip' -ErrorAction Stop
} catch {
Write-Host 'Error downloading FFmpeg: $_' >> '%LOGFILE%'
exit 1
}" || (
echo Error: Failed to download FFmpeg. Check your internet connection. >> "%LOGFILE%"
echo Error: Failed to download FFmpeg. See the log for details: %LOGFILE%
pause
exit /b 1
)
:: Step 2: Extract FFmpeg to C:\ffmpeg
echo Extracting FFmpeg to C:\ffmpeg... >> "%LOGFILE%"
mkdir C:\ffmpeg >nul 2>&1
powershell -Command "try {
Expand-Archive -Path '%TEMP%\ffmpeg.zip' -DestinationPath 'C:\ffmpeg' -ErrorAction Stop
} catch {
Write-Host 'Error extracting FFmpeg: $_' >> '%LOGFILE%'
exit 1
}" || (
echo Error: Failed to extract FFmpeg. >> "%LOGFILE%"
echo Error: Check the log for details: %LOGFILE%
pause
exit /b 1
)
:: Step 3: Add FFmpeg to PATH
echo Adding FFmpeg to PATH... >> "%LOGFILE%"
set FF_PATH=C:\ffmpeg\ffmpeg-*
setx /M PATH "%PATH%;%FF_PATH%\bin" >> "%LOGFILE%" 2>&1
if %ERRORLEVEL% NEQ 0 (
echo Error: Failed to update PATH. Run this script as Administrator. >> "%LOGFILE%"
echo Error: PATH update failed. See log for details: %LOGFILE%
pause
exit /b 1
)
:: Step 4: Create PowerShell script for streaming
echo Creating PowerShell streaming script... >> "%LOGFILE%"
powershell -Command "try {
$script = @'
$vidBlasterExe = 'VidBlasterX.exe'
$ffmpegPath = 'C:\ffmpeg\ffmpeg-*\\bin\\ffmpeg.exe'
$streamTarget = 'rtmp:///live/stream'
function Start-FFmpeg {
Start-Process -NoNewWindow -FilePath $ffmpegPath -ArgumentList '-f dshow -i video="VidBlasterX" -c:v libx264 -preset ultrafast -b:v 3000k -f flv', $streamTarget
}
# Monitor VidBlaster process and start FFmpeg when it launches
while ($true) {
if (!(Get-Process -Name 'VidBlasterX' -ErrorAction SilentlyContinue)) {
Start-Sleep -Seconds 5
continue
}
if (!(Get-Process -Name 'ffmpeg' -ErrorAction SilentlyContinue)) {
Start-FFmpeg
}
Start-Sleep -Seconds 5
}
'@
Set-Content -Path 'C:\ffmpeg\start_stream.ps1' -Value $script -Force
} catch {
Write-Host 'Error creating PowerShell script: $_' >> '%LOGFILE%'
exit 1
}" || (
echo Error: Failed to create PowerShell script. >> "%LOGFILE%"
echo Error: See the log for details: %LOGFILE%
pause
exit /b 1
)
:: Step 5: Set auto-start batch file for FFmpeg
echo Setting up auto-start batch file... >> "%LOGFILE%"
powershell -Command "try {
$batFile = @'
@echo off
start /min powershell.exe -NoLogo -NoProfile -ExecutionPolicy Bypass -File "C:\ffmpeg\start_stream.ps1"
'@
Set-Content -Path 'C:\ffmpeg\auto_start_ffmpeg.bat' -Value $batFile -Force
} catch {
Write-Host 'Error creating auto-start batch file: $_' >> '%LOGFILE%'
exit 1
}" || (
echo Error: Failed to create auto-start batch file. >> "%LOGFILE%"
echo Error: See the log for details: %LOGFILE%
pause
exit /b 1
)
:: Step 6: Add Task Scheduler entry
echo Creating Task Scheduler entry... >> "%LOGFILE%"
schtasks /create /tn "FFmpeg with VidBlaster" /tr "C:\ffmpeg\auto_start_ffmpeg.bat" /sc onlogon /ru "%USERDOMAIN%\%USERNAME%" /f >> "%LOGFILE%" 2>&1
if %ERRORLEVEL% NEQ 0 (
echo Error: Task Scheduler entry creation failed. >> "%LOGFILE%"
echo Error: Task Scheduler entry failed. See the log for details: %LOGFILE%
pause
exit /b 1
)
echo Setup complete! Check the log for details: %LOGFILE% >> "%LOGFILE%"
echo Setup complete! Please restart VidBlaster to test the configuration.
pause
submitted by Fusion2169 to scriptwriting [link] [comments]


2024.11.26 00:19 olympia_port Haircut

Where can I get a haircut that does not charge an arm and a leg and will not have me crying leaving the salon?
submitted by olympia_port to bentonville [link] [comments]


2024.11.26 00:19 Alert_Ad_6073 هل من شخص يتناول معي أطراف الحديث؟

dms are open ياريت تكون/ي بتعرف/ي ترغي وتتناقش/ي عشان الزهق قاتل ويا سلام لو تيجي بموضوع مثير للجدل كده 😋
بصراحة سارق "نتناول أطراف الحديث" دي من حد مش فاكر هنا ولا في subreddit تاني، shoutout يا رايق
submitted by Alert_Ad_6073 to AlexandriaEgy [link] [comments]


2024.11.26 00:19 Leather_Bumblebee148 10 minutes into deepwoken:

10 minutes into deepwoken: submitted by Leather_Bumblebee148 to deepwoken [link] [comments]


2024.11.26 00:19 imadeanacct2saythis Frustrating Experience on First Trip

I took my first short EV road trip recently. 220 miles, but I'm driving a Mini Cooper SE (range ~110 miles on the highway based on my experience, but I've never run it below 10%). I decided to give ABRP a try with the premium membership, and to connect the car via Enode to monitor the charge level. As I've seen elsewhere, the app constantly says it has connection issues, but that's not the only issue.
When I click into the vehicle settings it says "Not Authorized," but then happily updates the charge level and odometer to reflect the car's current status. When I start driving a trip, the charge status is accurate, and for a while it remains that way. However, once I get between cities (where I assume the car itself loses its cell service) ABRP loses its connection and stops updating the charge.
So far, so good, if you enter the charge level manually it will estimate based off of that, right? Wrong. The app kept defaulting the charge level to 95% (which I think is the departure SOC I set before I even connected the vehicle through Enode). Even if I set the charge level manually to what the car was currently showing, the app would periodically revert to the 95% charge level when I switched to another app for a while and then back again to ABRP.
Even worse, the app would then keep prompting to switch to a shorter route. If I clicked that route I'd find that it had removed my next charging stop because the car had miraculously charged to 95%.
This would all be a non issue if ABRP would just keep estimating based off of the last time it did get an update from the car, perhaps with a warning that it's doing so. Reverting to a state of charge setting that I don't even know how to change now that it's using the live car data made it semi useless.
submitted by imadeanacct2saythis to abetterrouteplanner [link] [comments]


2024.11.26 00:19 CARiDstar What’s the most absurd modification you’ve ever seen on a car?

submitted by CARiDstar to AskReddit [link] [comments]


2024.11.26 00:19 Responsible-Ad-460 Are bmw e90s easy to fix ?

submitted by Responsible-Ad-460 to BmwTech [link] [comments]


2024.11.26 00:19 Quirky-General6904 Risk kik: feed0203

Risk kik: feed0203 submitted by Quirky-General6904 to Snapchatgerman [link] [comments]


2024.11.26 00:19 Background-Tutor-755 Please help

⌚️HURRY! Time is running out, please accept my invitation, to help me earn a free gift from SHEIN! https://onelink.shein.com/5/479h3gk2lbmh I will do yours as well
submitted by Background-Tutor-755 to sheincodeshares [link] [comments]


2024.11.26 00:19 InfraSG Favorite items

Favorite items So whens the next batch dropping, and whats the current cycle. Is it 3 every 6 months?
Also who'd you like to see get a favorite item? I think Yulha or Brid getting one would be neat, though I lean Brid cause Yulha has a bit more usability with her attack buffing. Maybe go in on DPS so Phantoms back gets a break from carrying Elysion tower
submitted by InfraSG to NikkeMobile [link] [comments]


2024.11.26 00:19 poopooman2900 THESE TIKTOK GIRLS DIFFERENT!! | TERRORO (FULL GAME)

THESE TIKTOK GIRLS DIFFERENT!! | TERRORO (FULL GAME) submitted by poopooman2900 to AdvertiseYourVideos [link] [comments]


2024.11.26 00:19 Glittering_Wall1097 🎶You got 3 minutes🎶

🎶You got 3 minutes🎶 I paid $2 each for these. Last week they were marked $8 😳
submitted by Glittering_Wall1097 to Wrestling_Figures [link] [comments]


2024.11.26 00:19 TSDOP I think I'm an alcoholic.

I'm only 25yo. My brother committed suicide 2 years ago. I was close to my brother, he was only one year older. I think he also had a drinking problem. It sucks, but I think I can't drink like a normal person. I have a problem. My close friends would understand and support me. So would my mum. Where do I start quiting alcohol? I feel very lonely.
submitted by TSDOP to alcoholicsanonymous [link] [comments]


2024.11.26 00:19 eddardnaught33 Oh shit stein is here

submitted by eddardnaught33 to fishtanklive [link] [comments]


2024.11.26 00:19 Low-Razzmatazz-931 People who sleep on the same side all the time, do you only have one nasolabial fold?

I'm the side facing up that gravity pulls down?
submitted by Low-Razzmatazz-931 to 30PlusSkinCare [link] [comments]


2024.11.26 00:19 ImperatorKrauser [no spoilers] That reflection, tho. You know who it is.

[no spoilers] That reflection, tho. You know who it is. submitted by ImperatorKrauser to arcane [link] [comments]


2024.11.26 00:19 BakeStarr11 Did anyone watch Expedition From Hell: The Lost Tapes?

A little late on posting this, but one lazy hung over weekend a few months back I stumbled upon Expedition From Hell: The Lost Tapes. I couldnt stop watching the train wreck of journey and woke the next day almost feeling as if it were some bizzare fever dream. I recently stumbled across it again on Max and gave it a rewatch and it was even weirder and absurd as I remembered. The guy organizing the expedition acros the width of the Amzon jungle is a narcissistic, former Isrealli Special Forces, lunatic with Steven Seagal level life lies. Even when caught, he just doubles down and calls the inquisitions bull shit. It is wild. https://www.facebook.com/share/v/1Lswctngxa/
submitted by BakeStarr11 to ActionBoyz [link] [comments]


2024.11.26 00:19 mattrichardson3 Selling tickets for Sunday

Hello I’m selling two tickets for face value for the show at the Albert hall on Sunday
They’re £50 for both
Rausing Circle P Row 7 Seats 12, 13
Get in touch- gutted I can’t go
submitted by mattrichardson3 to TheNewsAgents [link] [comments]


2024.11.26 00:19 spitfyrez Looking for Galactus; my only non-gold five star dupe is Scientist Shake

Looking for Galactus; my only non-gold five star dupe is Scientist Shake Trade? 🙏🏻
Add me in Monopoly GO! My Friend Code is MGO495W5X586
submitted by spitfyrez to monopolygo_fairtrade [link] [comments]


2024.11.26 00:19 Nut_Grass They love the rain

They love the rain submitted by Nut_Grass to sanpedrocactus [link] [comments]


2024.11.26 00:19 Express-Macaroon3624 “Together with thier (Holley’s)family.”

Do we think JD’s family will come to the wedding? They hardly seem involved in JD & Holley’s lives. Spelling and grammar error intentional a la Holley’s invites.
View Poll
submitted by Express-Macaroon3624 to holleygabriellesnark [link] [comments]


2024.11.26 00:19 rudevocab Unknown Bagseed/Need Help Identifying

Context: I'm from new Orleans, from 2016 and before we had a good variety of landrace sativa , the pure stuff. Over the years I've noticed More of the landrace being replaced with HYBRIDIZED weed due to human interference over the years (people wanting new weed with new effects). I smoked some product from my guy and food a tiger striped seed in it . Was wondering if anyone can tell me what this looks like ?? The first two leaves bend downwards at the tips. The second set of leaves are not spiky/sharp shaped like a traditional cannabis seedling. Can anyone tell me if this is genetic? Am I over watering?? P.S that picture is taken from yesterday I had to put more dirt to compensate for stretching.
submitted by rudevocab to cannabiscultivation [link] [comments]


2024.11.26 00:19 TheKaukas ✈️

✈️ submitted by TheKaukas to deMiko [link] [comments]


2024.11.26 00:19 NixMaritimus PSA do not wear a binder for a long time with pnumonia

My mind is fuzzy. My O2 is 90% (88%=hoptal)
Stay safe frends
submitted by NixMaritimus to TransMasc [link] [comments]


https://yandex.ru/