html_menu
Tuesday, December 29, 2015
Guide to Writing Shell Extensions (Windows)
http://www.codeproject.com/Articles/441/The-Complete-Idiot-s-Guide-to-Writing-Shell-Extens
Thursday, December 24, 2015
How can I realize Multi-User-Tagging in a local network? (xyplorer)
http://www.xyplorer.com/faq-topic.php?id=MUT
Admin.ini
Admin.ini
[Paths] FileTagDat=\\North\Share\XY\SharedTags.datAlso, very nice program for labeling icons in Windows is FileMarker.NET (FREE!)
Tuesday, December 22, 2015
icon in Tcl/Tk window
from tkinter import *
root = Tk()
root.iconbitmap(r'c:\Python32\DLLs\py.ico')
root.mainloop()
Friday, December 11, 2015
ffmpeg MPEG-4 Encoding Guide
ffmpeg -i input.avi -c:v libxvid output.avi
ffmpeg -i input.avi -c:v mpeg4 -vtag xvid output.avi
Variable Bit Rate with qscale
ffmpeg -i input.avi -c:v mpeg4 -vtag xvid -qscale:v 3 -c:a libmp3lame -qscale:a 4 output.avi
Constant Bit Rate
You can target a bitrate with -b:v.
This is best used with two-pass encoding.
Adapting an example from the x264 encoding guide: your video is 10 minutes (600 seconds) long and an output of 50 MB is desired. Since bitrate = file size / duration:(50 MB * 8192 [converts MB to kilobits]) / 600 seconds = ~683 kilobits/s total bitrate 683k - 128k (desired audio bitrate) = 555k video bitrate
Two-pass example
ffmpeg -y -i input.avi -c:v mpeg4 -vtag xvid -b:v 555k -pass 1 -an -f avi /dev/null
ffmpeg -i input.avi -c:v mpeg4 -vtag xvid -b:v 555k -pass 2 -c:a libmp3lame -b:a 128k output.avi
Note: Windows users should use NUL instead of /dev/null.
https://trac.ffmpeg.org/wiki/Encode/MPEG-4
ffmpeg -i input.avi -c:v mpeg4 -vtag xvid output.avi
Variable Bit Rate with qscale
ffmpeg -i input.avi -c:v mpeg4 -vtag xvid -qscale:v 3 -c:a libmp3lame -qscale:a 4 output.avi
Constant Bit Rate
You can target a bitrate with -b:v.
This is best used with two-pass encoding.
Adapting an example from the x264 encoding guide: your video is 10 minutes (600 seconds) long and an output of 50 MB is desired. Since bitrate = file size / duration:(50 MB * 8192 [converts MB to kilobits]) / 600 seconds = ~683 kilobits/s total bitrate 683k - 128k (desired audio bitrate) = 555k video bitrate
Two-pass example
ffmpeg -y -i input.avi -c:v mpeg4 -vtag xvid -b:v 555k -pass 1 -an -f avi /dev/null
ffmpeg -i input.avi -c:v mpeg4 -vtag xvid -b:v 555k -pass 2 -c:a libmp3lame -b:a 128k output.avi
Note: Windows users should use NUL instead of /dev/null.
https://trac.ffmpeg.org/wiki/Encode/MPEG-4
Tuesday, December 1, 2015
SoX − Sound eXchange, the Swiss Army knife of audio manipulation
http://sox.sourceforge.net/sox.html
ffmpeg -ss 10 -t 6 -i input.mp3 output.mp3
ffmpeg -ss 10 -to 16 -i input.mp3 output.mp3
sox input.mp3 output.mp3 trim 10 6
Subscribe to:
Posts (Atom)