This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ $# -lt 1 ] | |
then | |
echo "Usage: $0 movie.mp4" | |
exit | |
fi | |
ffmpeg -loglevel quiet -i $1 -vcodec copy -vbsf h264_mp4toannexb -an -t 1 out.h264 | |
echo $(h264_analyze out.h264 2>&1 | grep -B 6 SPS | head -n1 | cut -c 4- | xxd -r -p | base64)","$(h264_analyze out.h264 2>&1 | grep -B 5 PPS | head -n1 | cut -c 4- | xxd -r -p | |
| base64) | |
rm -f out.h264 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ffmpeg -i input.ts -af "anequalizer=c0 f=120 w=20 g=-20|c0 f=270 w=20 g=-20|c1 f=120 w=20 g=-20|c1 f=270 w=20 g=-20" -c:v copy -c:a aac output.ts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function addGroupToReplyList(id) { | |
var obj = [id,"","/","my_group"]; | |
if (!window.replyAsList) | |
replyAsList = []; | |
replyAsList.push(obj); | |
if (!window.replyAsData) | |
replyAsData = {}; | |
replyAsData[id]=obj; | |
} | |
addGroupToReplyList(-123456); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -H "Accept: application/json" https://rcs.school2100.com/api/bookapplication/v3.0/books |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# http://hlive.mbco.ru/live/280/2016-1-26_11:2:30/34.dat | |
# http://hlive.mbco.ru/live/280/2016-1-26_11:2:30/z14507/start.dat # bytes 0-3: int, number of start file (starting with 0) | |
CHANNEL=280 | |
PATH_BASE="hlive.mbco.ru/live/$CHANNEL" | |
DATE="2015-1-26" # date in YYYY-M-D format | |
rm all | |
for i in {10..11} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var a = [].slice.call($0.children).sort(function(a,b){return a.innerHTML>b.innerHTML}); | |
for (i in a) $0.appendChild(a[i]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
C:\Downloads>ffmpeg -i "http://periscope-prod-eu-central-1.global.ssl.fastly.net/vidmanlive/GAeZOqwnNwrYMBbl.O2hnZIwy5Uq | |
DkzqPQ0Vpx149Xs2ObObx11IIZbYzWZdSgUSCOrujUVWiTgiRPxgxeYvYgb7lhsy5T2vjqUH3rg==/playlist.m3u8?t=eyJhbGciOiJIUzI1NiIsInR5cC | |
I6IkpXVCIsInZlcnNpb24iOiIyIn0.eyJBbGxvd2VkUHJvdG9jb2xzIjpbImhscyJdLCJCcm9hZGNhc3RJZCI6IjFCZEdZRHp2TVhsS1giLCJHcmFudFR5cG | |
UiOiJyZWFkIiwiR3JhbnRlZEF0IjowLCJHcmFudGVkVG8iOiJQVUJMSUMiLCJleHAiOjg2NDAwfQ.SZdt1IVsVtnrhuIhv1sGl6QUPcVTZal38yXDXw03moI | |
" -c copy -bsf:a aac_adtstoasc result.mp4 | |
ffmpeg version N-79173-gbe746ae Copyright (c) 2000-2016 the FFmpeg developers | |
built with gcc 5.3.0 (GCC) | |
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfi | |
g --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca -- | |
enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmfx --enable-libmp3l |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/libavformat/flvenc.c b/libavformat/flvenc.c | |
index ab71d41..53a9e0c 100644 | |
--- a/libavformat/flvenc.c | |
+++ b/libavformat/flvenc.c | |
@@ -209,6 +209,7 @@ static void write_metadata(AVFormatContext *s, unsigned int ts) | |
int metadata_count = 0; | |
int64_t metadata_size_pos, data_size, metadata_count_pos; | |
AVDictionaryEntry *tag = NULL; | |
+ char *sprop = NULL; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ $# -lt 1 ] | |
then | |
echo "Usage: $0 movie.mp4" | |
exit | |
fi | |
ffmpeg -loglevel quiet -i $1 -vcodec copy -vbsf h264_mp4toannexb -an -t 1 out.h264 | |
echo $(h264_analyze out.h264 2>&1 | grep -B 6 SPS | head -n1 | cut -c 4- | xxd -r -p | base64)","$(h264_analyze out.h264 2>&1 | grep -B 5 PPS | head -n1 | cut -c 4- | xxd -r -p | base64) | |
rm -f out.h264 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @id chromecast@vkopt | |
// @name Chromecast для VkOpt | |
// @version 1.0 | |
// @namespace https://greasyfork.org/users/23 | |
// @author Pmmlabs@github | |
// @description Плагин Chromecast для VkOpt | |
// @include *vk.com* | |
// @run-at document-end | |
// @noframes |