text stringlengths 0 2.87M |
|---|
echo -e "\033[01;32mVídeo:\033[00;0m $video" | tee -a $tl |
echo -e "\033[01;32mFundo:\033[00;0m $image" | tee -a $tl |
now=$(date +"%d-%m-%Y_%H-%M-%S") ; echo $now >> $tl |
outputfile="corte_$now.mp4" |
if [[ "$@" == *"-c"* ]]; then |
echo -e "\033[01;32m———————————————————\033[00;0m" |
echo -e -n "\033[01;32mInício [Ex 00:00:10]: \033[00;0m"; read start ; echo "começo: $start" >> $tl |
echo -e -n "\033[01;32mFinal [Ex 00:01:30]: \033[00;0m" ; read end ; echo "the end: $end" >> $tl |
else |
start="00:00:00" |
end=$(ffmpeg -i "$video" 2>&1 | grep "Duration" | cut -d ' ' -f 4 | sed s/,//) |
fi |
echo -e "\033[01;32m———————————————————\033[00;0m" |
echo -e "\033[01;32mTítulo:\033[00;0m" |
read -r 'line1' |
read -r 'line2' |
echo -e "\033[01;32mSubtítulo:\033[00;0m" |
read -r 'line3' |
read -r 'line4' |
line1=$(echo $line1 | sed "s/'/\'\\\\\\\\\\\\''/g") |
line2=$(echo $line2 | sed "s/'/\'\\\\\\\\\\\\''/g") |
line3=$(echo $line3 | sed "s/'/\'\\\\\\\\\\\\''/g") |
line4=$(echo $line4 | sed "s/'/\'\\\\\\\\\\\\''/g") |
while true; do |
echo -e "\033[01;32m———————————————————\033[00;0m" |
echo -e -n "\033[01;33mRenderizar? (s/n) \033[00;0m" ; read answer |
if [ "$answer" == "s" ]; then |
break |
elif [ "$answer" == "n" ]; then |
exit |
else |
echo -e "\033[01;31mApenas 's' ou 'n'\033[00;0m" |
fi |
done |
if test ! -d cortes; then |
mkdir cortes |
fi |
ffmpeg -ss "$start" -to "$end" -avoid_negative_ts make_zero -i "$video" -i "$image" \ |
-filter_complex "[0]scale=-1:540.5[vid]; [1]scale=-1:-1[img]; [img][vid] overlay=(W-w)/2:(H-h)/2, \ |
drawtext=text='$line1': fontfile='SourceSansPro-Black.otf': fontsize=60: fontcolor=white: x=(w-text_w)/2: y=185, \ |
drawtext=text='$line2': fontfile='SourceSansPro-Black.otf': fontsize=60: fontcolor=white: x=(w-text_w)/2: y=255, \ |
drawtext=text='$line3': fontfile='SourceSansPro-Black.otf': fontsize=60: fontcolor=white: x=(w-text_w)/2: y=965, \ |
drawtext=text='$line4': fontfile='SourceSansPro-Black.otf': fontsize=60: fontcolor=white: x=(w-text_w)/2: y=1035" \ |
-preset ultrafast -c:a aac -v quiet -stats "$folder/cortes/$outputfile" -y<user><kinrel>Este é um script em bash que corta um vídeo, adiciona uma imagem de fundo e adiciona quatro linhas de texto em uma fonte chamada "SourceSansPro-Black.otf". Aqui está o que ele faz em detalhes: |
1. Limpa a tela (se essa linha estiver ativada) |
2. Imprime o cabeçalho do script: "—— KWAICUTTER v3 ——" |
3. Obtém o diretório atual e define o nome do arquivo temporário para armazenar o log. |
4. Obtém o último vídeo e a última imagem PNG no diretório atual e imprime seus nomes. |
5. Adiciona a data e a hora atuais ao arquivo de log. |
6. Pergunta ao usuário se ele deseja definir um ponto de início e término personalizados para o corte de vídeo ou usar os valores padrão. |
7. Pergunta ao usuário pelo título e subtítulo para o vídeo. |
8. Pergunta ao usuário se ele deseja renderizar o vídeo ou não. |
9. Cria um diretório chamado "cortes" se ele não existir. |
10. Usa o software FFmpeg para cortar o vídeo de acordo com os pontos de início e término (ou o valor padrão, se nenhum ponto de início e término personalizados for especificado). |
11. Adiciona a imagem de fundo e as quatro linhas de texto no vídeo. |
12. Salva o vídeo renderizado no diretório "cortes" com um nome baseado na data e hora atual.<kinrel><user>Kan du skrive et referat af denne her nyhedsartikel? |
Det blev den 12-årige sanger Sophia, der løb med sejren, da børnenes Melodi Grand Prix, MGP, blev afgjort i Arena Næstved. |
- Drømmer jeg? Tusind tak til alle jer, der har stemt, lød det fra hende, kort inden hun skulle på scenen for at opføre sin vindersang 'Det bare tanker' igen. |
En popbasker, der handler om, "at man skal prøve at lade være med at sammenligne sig selv med andre, da det kan gøre én rigtig ked af det". |
Hvis Sophia alligevel beslutter sig at gøre en undtagelse, kan hun være stolt over, at hun vandt med imponerende 51 procent af stemmerne. |
Sophie løb med sejren efter at have slået de to andre "superfinalister", blandt de i alt otte deltagere til MGP. |
2. pladsen gik til Gustav & Magne og deres sang 'Gi' dem til mig', der handler om simpelthen at få nogle flere skejser. |
3. pladsen til børnenes MGP gik til duoen ELINOVA, der stillede om med sangen 'Mod Strømmen'. |
Værterne ved årets MGP var Stephania Portalivo og Jonas Madsen.<user><kinrel>Ja selvfølgelig kan jeg det! Her er et referat af ovenstående nyhedsartikel: |
Sophia vandt børnenes Melodi Grand Prix med imponerende 51 procent af stemmerne. Hun sang vindersangen 'Det Bare Tanker', som handler om at undgå at sammenligne sig selv med andre. Gustav & Magne fik andenpladsen med deres sang 'Gi' dem til mig', og tredjepladsen gik til duoen ELINOVA, der stillede op med sangen 'Mod S... |
Since then, Deez Nuts has been used in a variety of contexts to interrupt conversations, derail discussions, or simply add humor to a situation. It has been used in internet memes, in popular music, and even in politics. In the 2016 US presidential election, a 15-year-old boy named Brady Olson registered as an independ... |
The Deez Nuts meme has had a significant impact on popular culture. It has become a recognizable catchphrase that people use to add humor to everyday conversations. The meme has also been used to satirize politics and other serious issues. For example, in 2016, a group of activists in the UK used the phrase "Deez Nuts ... |
Subject: Request for time off due to illness |
Dear [Boss's Name], |
I hope this email finds you well. I'm writing to let you know that I'm feeling unwell and need to take some time off from work to recover. I have been experiencing [symptoms you are experiencing], and based on the advice of my doctor, I need to take the next three days off to rest and recover. |
I understand that my absence may cause inconvenience for the team, and I apologize for any disruption this may cause. I will make sure to provide updates to [person you will be working with] on any urgent matters that require attention during my absence, and will do everything I can to ensure a smooth transition back t... |
Please let me know if you require any additional information from me, and I appreciate your understanding during this time. |
Thank you for your time and consideration. |
Best regards, |
[Your Name]<kinrel><user>Why do onions make us cry when they are cut? and what can I do to prevent that? write your answer like you are an onion yourself<user><kinrel>Hello there! I'm an onion, and I'm happy to answer your question. |
You see, when you cut into me, I release a gas called syn-propanethial-S-oxide. |
This gas then reacts with the water in your eyes to form sulfuric acid, which causes that stinging sensation and tears. |
But don't worry, there are some things you can do to prevent this from happening. One trick is to chill me before cutting. |
When I'm cold, the gas is less likely to escape and make you cry. You can also try cutting me under running water or wearing goggles to protect your eyes. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.