Commit 287f8a68 authored by Marianne's avatar Marianne

[ffmpeg] concatenate

parent 6b3d31a7
@charset "UTF-8";
@import "reset.css";
@import url(reset.css);
@font-face {
font-family: "fira";
src: url("../fonts/fira/FiraCode-Medium.otf");
}
src: url("../fonts/fira/FiraCode-Medium.otf"); }
@font-face {
font-family: "vre";
src: url("../fonts/vre/VremenaGroteskMedium.otf");
}
src: url("../fonts/vre/VremenaGroteskMedium.otf"); }
@font-face {
font-family: "vreB";
src: url("../fonts/vre/VremenaGroteskBook.otf");
}
src: url("../fonts/vre/VremenaGroteskBook.otf"); }
html {
font-size: 16px;
}
font-size: 16px; }
body {
display: flex;
......@@ -25,182 +24,144 @@ body {
padding: 0 0 6rem 0;
background-color: #000714;
color: white;
/* Chrome, Safari, Opera */
}
body .rainbow {
/* Chrome, Safari, Opera */
-webkit-animation: rainbow 3s infinite;
/* Internet Explorer */
-ms-animation: rainbow 3s infinite;
/* Standar Syntax */
animation: rainbow 3s infinite;
}
/* Chrome, Safari, Opera */ }
body img {
width: 100%; }
body .rainbow {
/* Chrome, Safari, Opera */
-webkit-animation: rainbow 3s infinite;
/* Internet Explorer */
-ms-animation: rainbow 3s infinite;
/* Standar Syntax */
animation: rainbow 3s infinite; }
@-webkit-keyframes rainbow {
0% {
color: #5ff1ff;
}
color: #5ff1ff; }
10% {
color: pink;
}
color: pink; }
20% {
color: white;
}
color: white; }
30% {
color: pink;
}
color: pink; }
40% {
color: #f0a3ff;
}
color: #f0a3ff; }
50% {
color: #66dae1;
}
color: #66dae1; }
60% {
color: #f9ff00;
}
color: #f9ff00; }
70% {
color: #aeffa3;
}
color: #aeffa3; }
80% {
color: yellow;
}
color: yellow; }
90% {
color: pink;
}
color: pink; }
100% {
color: #5ff1ff;
}
}
body a:hover {
color: #f0a3ff;
}
body .hljs-keyword,
body .hljs-selector-tag,
body .hljs-built_in,
body .hljs-name,
body .hljs-tag {
color: #66dae1;
}
body .hljs-string,
body .hljs-title,
body .hljs-section,
body .hljs-attribute,
body .hljs-literal,
body .hljs-template-tag,
body .hljs-template-variable,
body .hljs-type,
body .hljs-addition {
color: #f9ff00;
}
body .hljs-comment,
body .hljs-quote,
body .hljs-variable {
color: #aeffa3;
}
body .hljs-deletion,
body .hljs-selector-attr,
body .hljs-selector-pseudo,
body .hljs-meta {
color: #5ff1ff;
}
body .hljs {
font-family: "fira";
margin: 0 0 1rem 0;
background-color: #141414;
color: white;
}
body > header {
padding: 1rem;
position: fixed;
width: 17%;
height: 100vh;
overflow-y: scroll;
background-color: #171717;
}
body > header .title {
margin: 0 0 1rem 0;
}
body nav a {
display: block;
}
body nav .lang .tips {
display: none;
margin: 0.5rem 0 1rem 0;
font-family: "vreB";
}
body nav .lang .tips > a {
display: flex;
}
body nav .lang .tips > a::before {
content: "×";
margin: 0 0.5rem 0 0;
display: inline-block;
}
body nav .lang.open .tips {
display: block;
}
color: #5ff1ff; } }
body a:hover {
color: #f0a3ff; }
body .hljs-keyword,
body .hljs-selector-tag,
body .hljs-built_in,
body .hljs-name,
body .hljs-tag {
color: #66dae1; }
body .hljs-string,
body .hljs-title,
body .hljs-section,
body .hljs-attribute,
body .hljs-literal,
body .hljs-template-tag,
body .hljs-template-variable,
body .hljs-type,
body .hljs-addition {
color: #f9ff00; }
body .hljs-comment,
body .hljs-quote,
body .hljs-variable {
color: #aeffa3; }
body .hljs-deletion,
body .hljs-selector-attr,
body .hljs-selector-pseudo,
body .hljs-meta {
color: #5ff1ff; }
body .hljs {
font-family: "fira";
margin: 0 0 1rem 0;
background-color: #141414;
color: white; }
body > header {
padding: 1rem;
position: fixed;
width: 17%;
height: 100vh;
overflow-y: scroll;
background-color: #171717; }
body > header .title {
margin: 0 0 1rem 0; }
body nav a {
display: block; }
body nav .lang .tips {
display: none;
margin: 0.5rem 0 1rem 0;
font-family: "vreB"; }
body nav .lang .tips > a {
display: flex; }
body nav .lang .tips > a::before {
content: "×";
margin: 0 0.5rem 0 0;
display: inline-block; }
body nav .lang.open .tips {
display: block; }
main {
padding: 1rem 10% 0 20%;
width: 100%;
}
main .lang {
padding: 2rem 0 0 0;
margin: 0 0 1rem 0;
}
main .lang code {
color: #aeffa3;
}
main .lang pre code:not(.output):before {
font-size: 10px;
content: " in >";
position: absolute;
margin-left: -50px;
color: #555;
}
main .lang pre code.output:before {
font-size: 10px;
content: "out >";
position: absolute;
margin-left: -50px;
color: #555;
}
main .lang p {
font-family: "vreB";
}
main .lang h2 {
font-size: 1.5rem;
margin: 0 0 1rem 0;
font-size: 3rem;
font-family: "vreB";
border-top: solid 1px white;
padding-top: inherit;
}
main .lang ul li {
padding: 0.5rem 0 0 0;
margin: 0 0 0.5rem 0;
}
main .lang ul li h3 {
text-decoration: underline;
margin: 0 0 0.5rem 0;
}
main section.logitheque {
position: fixed;
top: 0;
right: 0;
background: pink;
color: darkblue;
display: flex;
height: auto;
max-height: 100%;
padding: 10px;
overflow-y: scroll;
}
main section.logitheque strong {
font-weight: bold;
}
main section.logitheque li {
font-family: "vreB";
margin-left: 1em;
}
/*# sourceMappingURL=main.css.map */
width: 100%; }
main .lang {
padding: 2rem 0 0 0;
margin: 0 0 1rem 0; }
main .lang code {
color: #aeffa3; }
main .lang pre code:not(.output):before {
font-size: 10px;
content: ' in >';
position: absolute;
margin-left: -50px;
color: #555; }
main .lang pre code.output:before {
font-size: 10px;
content: 'out >';
position: absolute;
margin-left: -50px;
color: #555; }
main .lang p {
font-family: "vreB"; }
main .lang h2 {
font-size: 1.5rem;
margin: 0 0 1rem 0;
font-size: 3rem;
font-family: "vreB";
border-top: solid 1px white;
padding-top: inherit; }
main .lang ul li {
padding: 0.5rem 0 0 0;
margin: 0 0 0.5rem 0; }
main .lang ul li h3 {
text-decoration: underline;
margin: 0 0 0.5rem 0; }
main section.logitheque {
position: fixed;
top: 0;
right: 0;
background: pink;
color: darkblue;
display: flex;
height: auto;
max-height: 100%;
padding: 10px;
overflow-y: scroll; }
main section.logitheque strong {
font-weight: bold; }
main section.logitheque li {
font-family: "vreB";
margin-left: 1em; }
......@@ -45,6 +45,11 @@ body{
background-color: $cBodyBg;
color:$cText;
img{
width: 100%;
}
.rainbow {
/* Chrome, Safari, Opera */
......
......@@ -4,18 +4,21 @@
$ ls | cat -n | while read n f; do mv "$f" `printf "%02d.png" $n`; done
```
- ### Show Key Name
showkey - examine the codes sent by the keyboard
``` bash
- ### Show Key Name
showkey - examine the codes sent by the keyboard
``` bash
$ showkey -a
```
``` bash output
```
``` bash output
Press any keys - Ctrl-D will terminate this program
a 97 0141 0x61
```
```
- ### Grep
Find content into directory files.
``` bash
``` bash
grep "some string" . -R
```
```
- ### Make File Executable
``` bash
chmod u+x script.sh
```
\ No newline at end of file
## ffmpeg
- ### Concatenate
```
ffmpeg -i ressources_2.mp4 -i ressources_3.mp4 -filter_complex "concat=n=2:v=0:a=0" resources_1.mp4
```
```
ffmpeg -i input.mp4 -i input.mp4 -filter_complex "concat=n=2:v=0:a=0" output.mp4
ffmpeg -i input1.mp4 -c copy -bsf:v h264_mp4toannexb -f mpegts intermediate1.ts
ffmpeg -i input2.mp4 -c copy -bsf:v h264_mp4toannexb -f mpegts intermediate2.ts
ffmpeg -i "concat:intermediate1.ts|intermediate2.ts" -c copy -bsf:a aac_adtstoasc output.mp4
```
- ### Extract Images at Framerate
```
......@@ -27,12 +26,10 @@
```
ffmpeg -i bocto-site.mp4 -vf "select=eq(n\,0)" -q:v 3 bisous.jpg
```
<<<<<<< HEAD
- ### Get frame at time
```
ffmpeg -ss 00:23:45 -i input -vframes 1 -q:v 2 output.jpg
```
=======
```
ffmpeg -ss 0.5 -i inputfile.mp4 -t 1 -s 480x300 -f image2 imagefile.jpg
......@@ -41,4 +38,4 @@
```
ffmpeg -framerate 1 -pattern_type glob -i '*.jpg' -c:v libx264 -r 3 out.mp4
```
>>>>>>> ad2cae772c7db7d4bf9905cdb4b513181332e8c9
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment