Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
#updated ffmpeg progress indicator
#by Rupert Plumridge
#for updates visit www.prupert.co.uk
#Creative Commons Attribution-Non-Commercial-Share Alike 2.0 UK: England & Wales Licence
# Based on the ffmpegprogress bar from: http://handybashscripts.blogspot.com/2011/01/ffmpeg-with-progress-bar-re-work.html
# which was based on my initital progress script - circle of life and all that ;)
# version 2.0
# 07.04.2011
# now uses apparently better progress detection, based on duration of overall video and progress along the conversion
@codyopel
codyopel / ffmpeg-progressbar.sh
Created August 25, 2014 00:04
FFmpeg with progress bar (re-work)
#!/bin/bash
# File name: ZAVI2MPG - saved in the "nautilus-scripts" directory.
# Author: robz
# Version: 130511
# This is a re-re-work of a previous script for converting .avi television
# files to a "burnable to DVD" format. This time though conversion statistics
# visual output is supplied by the Zenity dialogue. Stats logfile also added.
# File locations in some variables are specific to my PC check "# Vars" first.
# The script is called by right clicking on the ".avi file" then clicking
# the appropriate choice in the nautilus-scripts menu.
@codyopel
codyopel / episode-downloader.sh
Created August 25, 2014 00:16
Television Episode Downloader
#!/bin/bash
# Filename: ezrss
# Version 091110
# Author: robz
# Download trackers from "EZrss" & monitor the "Torrents/Incomplete" folder.
# I have "unmetered" bandwidth in the small hours but dislike leaving my PC
# on all the time, this script suspends & resumes the PC within that timeslot.
# You will need "rtcwake" from the repositories and "shutdown" may need
# adding to the sudoers list.
# In a terminal (omitting all quote marks) do "sudo visudo", at the bottom of
@codyopel
codyopel / ffmpeg-interlace-test.sh
Created August 30, 2014 11:03
ffmpeg detect interlacing
#!/bin/bash
# for a blogpost on this, check: http://www.aktau.be/2013/09/22/detecting-interlaced-video-with-ffmpeg/
# detect interlacing with the ffmpeg "idet" filter, the longer
# you let this run, the better, though it's never 100% accurate
# flags:
# -an = discard audio, we don't need it
# -f rawvideo = output raw video
@codyopel
codyopel / README.md
Last active August 29, 2015 14:06
readme for music

Proposed Vorbis Comments Fields and Formatting

Field a Description Current Datatype Example
ACCURATERIPDISCID a AccurateRip Disc ID n/a 16-bit int
ACCURATERIPRESULT a AccurateRip Results n/a UTF-8 String
ADVISORY a Content advisory, Explicit lyrics
ALBUM a
ALBUMARTIST a
ALBUMARTISTSORT a
@codyopel
codyopel / rtorrent-color.patch
Created October 6, 2014 04:49
rTorrent Color Patch
diff --git a/src/command_network.cc b/src/command_network.cc
index c445c38..24ad5c0 100644
--- a/src/command_network.cc
+++ b/src/command_network.cc
@@ -250,6 +250,26 @@
CMD2_VAR_BOOL ("protocol.pex", true);
CMD2_ANY_LIST ("protocol.encryption.set", std::bind(&apply_encryption, std::placeholders::_2));
+ CMD2_ANY ("colors.color_fg_inactive", std::bind(&ui::Root::get_color_fg_inactive, control->ui()));
+ CMD2_ANY_VALUE_V ("colors.color_fg_inactive.set", std::bind(&ui::Root::set_color_fg_inactive, control->ui(), std::placeholders::_2));
@codyopel
codyopel / youtube-dl.bat
Last active March 9, 2023 08:34
youtube-dl batch script
ECHO OFF
TITLE youtube-dl
where /q youtube-dl || echo ERROR: youtube-dl not found
CD %userprofile%\Downloads || GOTO:error
CLS
ECHO.
ECHO Download directory: "%CD%"
@codyopel
codyopel / ffmpeg-deps.md
Last active August 29, 2015 14:15
FFmpeg Dependencies

FFmpeg Dependencies

  • bs2b
    • refactored
  • celt
    • refactored
    • made generic
  • faac
  • refactored
<?xml version="1.0"?>
<Definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<RespawnShips>
<Ship>
<Id>
<TypeId>RespawnShipDefinition</TypeId>
<SubtypeId>RespawnShip</SubtypeId>
</Id>
<DisplayName>OFSV II</DisplayName>
<Icon>Textures\GUI\Icons\Fake.dds</Icon>
@codyopel
codyopel / bpp.md
Last active December 9, 2015 05:57
Video bpp
Bits Per Pixel at different Bits Per Channel Color & Chroma Subsamplings
  • 8bit 4:2:0
    (4 * 8) + (2 * 8) + (0 * 8) = 48
  • 8bit 4:2:2
 (4 * 8) + (2 * 8) + (2 * 8) = 64