This file contains hidden or 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
<smil><head/><body><switch> | |
<video src="Eralash_nc_1.stream" system-bitrate="160000" /> | |
<video src="Eralash_nc_0.stream" system-bitrate="61000"> | |
<param name="audioOnly" value="TRUE" valuetype="data" /> | |
</video> | |
<video src="Eralash_nc_0.stream" system-bitrate="61000" /> | |
<video src="Eralash_nc_2.stream" system-bitrate="513000" /> | |
</switch></body></smil> |
This file contains hidden or 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
loop(ListenSocket, SENDURL) -> | |
inet:setopts(ListenSocket, [{active, once}]), | |
{_, _, Host, Port, _Path, _Query} = http_uri2:parse(SENDURL), | |
receive | |
{udp, ListenSocket, _Host, _Port, Bin} -> | |
gen_udp:send(ListenSocket, Host, Port, decode(Bin)), | |
loop(ListenSocket, SENDURL) | |
end. | |
decode(Bin) -> decode(Bin, []). |
This file contains hidden or 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 | |
gst-launch-1.0 -ev \ | |
udpsrc uri="udp://192.168.33.100:20000" ! tee name=source0 \ | |
source0. ! tsdemux name=demuxer \ | |
demuxer. ! "video/x-h264" ! queue max-size-buffers=1200 max-size-time=0 max-size-bytes=0 ! tee name=video0 \ | |
demuxer. ! "audio/mpeg" ! queue max-size-buffers=1200 max-size-time=0 max-size-bytes=0 ! tee name=audio0 \ | |
mp4mux name=mp4muxer \ | |
mp4mux name=mp4muxer1 \ | |
video0. ! h264parse ! mp4muxer. \ | |
audio0. ! mpegaudioparse ! mp4muxer. \ |
This file contains hidden or 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 | |
# RESOLUTION SETTINGS | |
# This sets your VGA1 monitor to its best resolution. | |
xrandr --output VGA1 --mode 1920x1080 --rate 60 | |
# This sets your laptop monitor to its best resolution. | |
xrandr --output LVDS1 --mode 1366x768--rate 60 | |
# MONITOR ORDER |
This file contains hidden or 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
import sys;g=open(sys.argv[1]).next;n=range | |
for o in n(int(g())): | |
r,p,c=('',0,g()[:-1]) | |
for w in g()[:-1]: | |
if w==" ":r+=w | |
else:r+=chr(n(97,123)[ord(w)-97-int((c+c[::-1])[p%len(c*2)])]);p+=1 | |
print r |
This file contains hidden or 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
import sys,mmap;a=sys.argv;c=1 | |
with open(a[2],'rb') as f: | |
m=mmap.mmap(f.fileno(),0,prot=1) | |
r=m.find(a[1]) | |
o=len(m.read(r).split('\n')) if r>=0 else 0 | |
print o |
This file contains hidden or 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
import sys;g=open(sys.argv[1]).next;n=range | |
for o in n(int(g())): | |
r,p,c=('',0,g()[:-1]) | |
for w in g()[:-1]: | |
if w==" ":r+=w | |
else:r+=chr(n(97,123)[ord(w)-97-int((c+c[::-1])[p%len(c*2)])]);p+=1 | |
print r |
This file contains hidden or 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
#!/usr/bin/env python3 | |
import gi | |
import os | |
from datetime import datetime | |
gi.require_version('Gst', '1.0') | |
from gi.repository import GObject, Gst, Gtk | |
from gi.repository import GdkX11, GstVideo | |
from gi.repository.Gtk import Window, VBox, HBox, DrawingArea, ToggleButton, Button, Statusbar |
This file contains hidden or 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
#!/usr/bin/env python3 | |
import gi | |
import os | |
from datetime import datetime | |
gi.require_version('Gst', '1.0') | |
from gi.repository import GObject, Gst, Gtk | |
from gi.repository import GdkX11, GstVideo | |
from gi.repository.Gtk import Window, VBox, HBox, DrawingArea, ToggleButton, Button, Statusbar |
This file contains hidden or 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
#!/usr/bin/env python3 | |
import gi | |
import os | |
from datetime import datetime | |
gi.require_version('Gst', '1.0') | |
from gi.repository import GObject, Gst, Gtk | |
from gi.repository import GdkX11, GstVideo | |
from gi.repository.Gtk import Window, VBox, HBox, DrawingArea, ToggleButton, Button, Statusbar |
OlderNewer