Package: media_editing
media_editingsetuppipinstallmedia_editingMarkdown_to_HTML.pyThis script recursively converts Markdown files at a specified directory
to HTML files, with options to include numbered sections, table of
contents, CSS and to output commands only, not execute.Example usage with CSS specified is as follows:cdmy_writing_files_in_MarkdownCSS="https://raw.githack.com/wdbm/style/master/SS/bluescale.css"Markdown_to_HTML.py--CSS="${CSS}"images_to_video.pyThis script converts a list of image files to a video with the options
of specifying the image extension, a soundtrack file, an output filename
and a framerate.text_to_QR_code.pyThis script converts specified text to a QR code of specified scale and
filepath and optionally displays the resulting QR code image using the
default image viewer.vidgif.pyThis script converts a video to an animated GIF, with the option to
output commands only, not execute.OCR of region of displaysudoaptinstallimagemagickscrottesseract-ocrtmp="$(mktemp)"scrot-s"${tmp}".png-q100mogrify-modulate100,0-resize400%"${tmp}".pngtesseract"${tmp}".png"${tmp}"&>/dev/nullcat"${tmp}".txtHigh Dynamic Resolution (HDR)Luminance HDRsetupsudoaptupdatesudoaptinstallluminance-hdrsettings used to combine a darker and a lighter image 2019-02-24tonemapoperator: Reinhard ’05brightness: -10chromatic adaptation: 0light adaptation: 1processpre-gamma: 0.86recording internal audio: audio-recordersetupsudodpkg-iaudio-recorder_1.7-5~xenial_amd64.debusageaudio-recorderUnder “Audio settings.”, select the source as something like “Clear
Chat Comfort USB Headset (Audio output)”.Select “Start recording”.FFmpegtrim video using start and stop times without reencodingNote the ordering of the command line arguments and options.filepath_1="Star.Wars.1977.Despecialized.720p.x264.AC3.5.1.mkv"filepath_2="out.mkv"start="01:40:33"stop="01:54:48"timeffmpeg-y-i"${filepath_1}"-ss"${start}"-to"${stop}"-ccopy"${filepath_2}"remove audio from videoThe-anflag is used.ffmpeg-iin.mkv-ccopy-anout.mkvImageMagickchange quality of directory of JPEG imagesmogrify-quality95*.jpgstrip/remove an image of all profiles and comments using ImageMagickconvert-stripimage_1.pngimage_2.pngmogrify-strip*.jpgcreate an image of specified width, height and color using ImageMagickWidth is specified before height.convert-size100x100xc:#000000out.pngconvert-size100x100xc:rgba\(255,0,0,0.4\)out.pngwidth_pixels="3495"height_pixels="2160"color="#eeeeee"filepath="out.png"convert-size"${width_pixels}"x"${height_pixels}"xc:"${color}""${filepath}"width_pixels="3107"height_pixels="1920"color="#eeeeee"filepath="background.png"convert-size"${width_pixels}"x"${height_pixels}"xc:"${color}""${filepath}"overlay one foreground image on the center of a background image using ImageMagickconvertbackground.png-coalesce-gravitycenter-draw'image over 0,0,0,0 "foreground.png"'out.pngfilepath_foreground="foreground.png"filepath_background="background.png"filepath_output="out.png"# not working, under development:
# time convert "${filepath_background}" -coalesce -gravity center -draw 'image over 0,0,0,0 \"${filepath_foreground}\"' "${filepath_output}"The option-layersflattenmay be worth considering.reduce quality of images at working directory in batch, making new images at new directorymkdirnewmogrify-pathnew-quality80-formatjpg*.jpgInkscapeset up palettes for Inkscape/usr/share/inkscape/palettesconvert bitmap to vector using Inkscapehttps://www.youtube.com/watch?v=SjCFRI3knhECalibresetup 2019-01-24T0350Zsudo-v&&wget-nv-O-https://download.calibre-ebook.com/linux-installer.sh|sudosh/dev/stdinview ebookebook-viewerbook.epubconvert EPUB to MOBI using ebook-convertebook-convertbook.epubbook.mobiconvert LaTeX to HTML to EPUBmk4hthtlatexbook.tex'xhtml,charset=utf-8,pmathml'ebook-convertbook.htmlbook.epubconvert Markdown to EPUBebook-convertbook.mdbook.epubmusicsome music software and toolsAudacityHydrogenMidiEditorMusEMuseScoreOnline Sequencer