Skip to content

Instantly share code, notes, and snippets.

#!/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
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
function addGroupToReplyList(id) {
var obj = [id,"","/","my_group"];
if (!window.replyAsList)
replyAsList = [];
replyAsList.push(obj);
if (!window.replyAsData)
replyAsData = {};
replyAsData[id]=obj;
}
addGroupToReplyList(-123456);
curl -H "Accept: application/json" https://rcs.school2100.com/api/bookapplication/v3.0/books
@Pmmlabs
Pmmlabs / mbco_record.sh
Last active June 16, 2016 09:33
Запись стримов с mbco.ru
#!/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}
var a = [].slice.call($0.children).sort(function(a,b){return a.innerHTML>b.innerHTML});
for (i in a) $0.appendChild(a[i]);
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
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;
#!/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
// ==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