Live data from Hacker News

Awk for multimedia

arcan-fe.com

11–20 of 25 posts

Re: Awk for multimedia

#11
post #8

This reminds me of AWK Music http://kmkeen.com/awk-music/

> Using the fifth root gives five intervals for each octave, a pentatonic scale. Why five notes? It is really easy to make something that sounds good in the pentatonic scale and really hard for a pair of notes to be dissonant. Wait a minute! Is the five-note equal-division of the octave really one of those scales that "just sound good"? It's definitely not the same scale as the example he links to.

I tried this out using overtone, and it doesn't sound too terribly dissonant, but I agree, nothing like the major pentatonic scale linked in the video.

(Also, overtone is fun! here's my repl session)

  (require '[clojure.math.numeric-tower :as math])
  (use 'overtone.live)
  (def freqs (map #(* 440 (math/expt 2 (/ % 5))) (range 0 5)))

  (map #(demo (sin-osc %)) freqs)
  (map #(demo (sin-osc %)) (take 2 freqs))
  (map #(demo (sin-osc %)) (take 3 freqs))
  (map #(demo (sin-osc %)) (drop 2 freqs))

Re: Awk for multimedia

#12
post #3

Awesome! Other video tools (besides ffmpeg): https://www.mltframework.org/ (lightweight LGPL C99 perhaps similar to OP) http://www.emmgunn.com/ (mac VIDEOtoolbox), https://subler.org/ (mac mp4) https://sourceforge.net/projects/megui/ (windows, recommended for SD sources) https://github.com/stax76/staxrip (windows, a better handbrake) Further pointers to similar tools are appreciated! Grabbed several of these from thi…

Also take a look at https://github.com/Zulko/moviepy

Re: Awk for multimedia

#13
post #9
post #3

Awesome! Other video tools (besides ffmpeg): https://www.mltframework.org/ (lightweight LGPL C99 perhaps similar to OP) http://www.emmgunn.com/ (mac VIDEOtoolbox), https://subler.org/ (mac mp4) https://sourceforge.net/projects/megui/ (windows, recommended for SD sources) https://github.com/stax76/staxrip (windows, a better handbrake) Further pointers to similar tools are appreciated! Grabbed several of these from thi…

Thanks for sharing all of these tools! Do you happen to know if any of these can write metadata to mp4 or mov files that will be recognized by Mac/iOS Photos? I've been trying to write location, camera, date, etc. to encoded videos, but Photos won't recognize anything except files straight off an iPhone. The closest thing I've found is that ffmpeg can write Quicktime tags and the structure looks identical to me when…

I've used Atomic Parsley[1] and MP4Box[2] successfully for various MOV and MP4 related muxing and metadata handling before.

[1] http://atomicparsley.sourceforge.net [2] https://gpac.wp.imt.fr/mp4box/

Re: Awk for multimedia

#14
post #2

Cool! Reminds me of GStreamer ( https://en.wikipedia.org/wiki/GStreamer ). It’s definitely like AWK insofar as it’s pipeline-based. But to me the big thing about AWK is that the program doing the transformation is usually super easy to write down in the CLI itself . Either way, sounds fun!

> But to me the big thing about AWK is that the program doing the transformation is usually super easy to write down in the CLI itself

GStreamer is also very easy to use from the CLI:

    https://gstreamer.freedesktop.org/documentation/tutorials/basic/gstreamer-tools.html

Re: Awk for multimedia

#17
May be I didn't pay it enough time, but this seems to be just pipe-based video processing. I thought that the main feature in awk was to work with meaning in the text itself - so I expected some machine-learning magic to find all dogs and replace them with cats, for example.

Re: Awk for multimedia

#18
post #3

Awesome! Other video tools (besides ffmpeg): https://www.mltframework.org/ (lightweight LGPL C99 perhaps similar to OP) http://www.emmgunn.com/ (mac VIDEOtoolbox), https://subler.org/ (mac mp4) https://sourceforge.net/projects/megui/ (windows, recommended for SD sources) https://github.com/stax76/staxrip (windows, a better handbrake) Further pointers to similar tools are appreciated! Grabbed several of these from thi…

Natron is worth a look as well: https://natron.fr

Mac/Linux, Python API, mostly usable docs, and the source is available.

Re: Awk for multimedia

#19
post #8

This reminds me of AWK Music http://kmkeen.com/awk-music/

For those like me that want to hear it on a modern distribution: instead of redirecting to >/dev/dsp, pipe into |pacat. Works like a charm.

Re: Awk for multimedia

#20
post #8

This reminds me of AWK Music http://kmkeen.com/awk-music/

> Using the fifth root gives five intervals for each octave, a pentatonic scale. Why five notes? It is really easy to make something that sounds good in the pentatonic scale and really hard for a pair of notes to be dissonant. Wait a minute! Is the five-note equal-division of the octave really one of those scales that "just sound good"? It's definitely not the same scale as the example he links to.

The pentatonic scale does not imply equal temperament between the five notes. The "good-sounding" pentatonic scales use very simple harmonic ratios, for example 1, 9/8, 5/4, 3/2 and 5/3 for the major pentatonic scale. In the equally tempered 12-note octave, these roughly correspond to the first, second, third, fifth and sixth. An equal division of an octave into five notes doesn't yield as harmonic results.

That said, 5-EDO sounds good in my opinion. Not very harmonic, but somewhat resembles the scales used Gamelan music.

Post reply on HN