/singularity

Scripts for singularity transcoding VM.

Primary LanguageShell

singularity

Scripts for singularity transcoding VM.
For What, Why, How you could read: http://brontosaurusrex.github.io/singularity/

Probably working scripts at this point

production

  • toX264crf (and required toAAC, hasVideo, hasAudio, mxfmixdown and such modules)
  • toDV
  • toPRORES
  • toPRORESinterlaced (assumes ttf input and flags/encodes? output as interlaced)
  • srt2video
  • toMXFpush (xdcam 8bpc 4:2:2 mpeg2 with separated mono tracks, assumes stereo single channel input, will also do ebuR128 correction on audio)
  • r128 (r128 info and graph, will also work with mxf files with separated audio channels)
  • dur (echo durations)
  • durtc (echo durations if framerate is assumed to be 25)

experiments

changelog

  • unique ouput naming for video scripts
  • Lossy audio encoders should now call r128corectionPlus6 (adding +6 dB to calculation), this are all formats meant for web mostly.
  • Broadcast formats like toPRORES will not get any r128 corrections at this point, except formats that are meant for push, like mxf.

interesting usage examples

input=file.mov
toDV "$input" && toX264crf "$input"
# will encode the file to DV and h.264
# toDV "$input" & toX264crf "$input" # should work as well.

Gnu parallel

Especially audio transcoders will get enormous speed boost when using parallel, for example

find . -type f -iname "*.wav" | parallel --gnu toOPUS {}

fails

toVORBIS fails when run in BG.
Debian buster: libfdk stuff from repos may break cli fdkaac enc in weird ways. Solution was to uninstall and recompile fdk-aac and fdkaac. Problem shows up with mediainfo showing stuff like

channel layout   : C L R Cb < ???!

for 2ch input.

system notes

Get Thunar some thumbnail

sudo pacman -S tumbler ffmpegthumbnailer # to get thumbs in thunar

Thunar custom actions

urxvt -e bash -c 'mediainfo %f && (read -n1 -r -p "Any key to quit...")'