Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

RagnarokStack ragnraok

🎯
Focusing
Block or report user

Report or block ragnraok

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@ragnraok
ragnraok / iframe-probe.py
Created Sep 9, 2019 — forked from use-sparingly/iframe-probe.py
Shows GOP structure for video file using ffmpeg --show-frames output
View iframe-probe.py
#!/usr/bin/env python
#
# Shows GOP structure of video file. Useful for checking suitability for HLS and DASH packaging.
# Example:
#
# $ iframe-probe.py myvideo.mp4
# GOP: IPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP 60 CLOSED
# GOP: IPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP 60 CLOSED
# GOP: IPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP 60 CLOSED
# GOP: IPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP 60 CLOSED
@ragnraok
ragnraok / app.py
Created Mar 28, 2013
WeiTranslator.py 利用微信平台的开放接口写的一个通过调用google翻译的API进行翻译的小工具,还有一些彩蛋神码的。。。
View app.py
# -*- coding: utf-8 -*-
from flask import Flask, request, make_response
from translator import google_translate
from moe_pic import get_pict
from douban_music import get_music
from logging.handlers import RotatingFileHandler
import libxml2
import time
import logging
@ragnraok
ragnraok / simpleHDR.py
Last active Dec 11, 2015
Simple HDR image filter implementation
View simpleHDR.py
import cv
import sys
input_img_name = sys.argv[1]
output_img_name = sys.argv[2]
input_img = cv.LoadImage(input_img_name, cv.CV_LOAD_IMAGE_COLOR)
# blur the image
dst = cv.CreateImage(cv.GetSize(input_img), input_img.depth, input_img.channels)
View signal_and_slot.py
# -*- coding: utf8 -*-
import sys
from PyQt4.QtCore import *
from PyQt4.QtGui import *
class Form(QDialog):
def __init__(self, parent=None):
You can’t perform that action at this time.