multimedia - doubility-sky/daydayup GitHub Wiki

Multimedia is content that uses a combination of different content forms such as text, audio, images, animations, video and interactive content. Multimedia contrasts with media that use only rudimentary computer displays such as text-only or traditional forms of printed or hand-produced material.

Image

  • ImageMagick:批量处理图像的超级利器

  • 使用ImageMagick在命令行下处理图片

  • Linux命令 ImageMagick

  • 常用 IM 命令
    • convert image.png image.jpg
    • convert -resize 2732x2048! image.jpg new_image.jpg
    • convert image.png -background white -alpha off out.png 关闭 alpha 通道 设置背景色
    • 批量转换当前目录所有 png 至 jpg: mogrify -format jpg *.png
    • 批量拉伸(强制拉伸)当前目录下所有 jpg 至指定大小: mogrify -resize 2732x2048! *.jpg
    • 批量关闭 alpha 通道,设置背景色 mogrify -background white -alpha off *.png
    • 裁剪 convert xxx.png -crop 229X81+0+82 +repage xxx-1.png
    • 生成 android icon 集合
      #!/bin/sh
      if [ "$1" == "" ]; then
          echo "must have name of png"
          exit 1
      fi
      dir=$1-res
      pic=$1.png
      mkdir ./$dir
      convert -resize 180x180! $pic ./$dir/shareicon.png
      mkdir -p ./$dir/drawable
      convert -resize 180x180! $pic ./$dir/drawable/$pic
      mkdir -p ./$dir/drawable-hdpi
      convert -resize 72x72!   $pic ./$dir/drawable-hdpi/$pic
      mkdir -p ./$dir/drawable-ldpi
      convert -resize 36x36!   $pic ./$dir/drawable-ldpi/$pic
      mkdir -p ./$dir/drawable-mdpi
      convert -resize 48x48!   $pic ./$dir/drawable-mdpi/$pic
      mkdir -p ./$dir/drawable-xhdpi
      convert -resize 96x96!   $pic ./$dir/drawable-xhdpi/$pic
      mkdir -p ./$dir/drawable-xxhdpi
      convert -resize 144x144! $pic ./$dir/drawable-xxhdpi/$pic
      mkdir -p ./$dir/drawable-xxxhdpi
      convert -resize 192x192! $pic ./$dir/drawable-xxxhdpi/$pic

optimization

jpg/jpeg

  • jpeg-archive Utilities for archiving JPEGs for long term storage.

png

paid

  • tinypng Smart PNG and JPEG compression
    • Free: Up to 20 images, max 5 MB each
  • ppduck PP鸭整合了业内最优秀的数种开源的图片压缩算法,会自动根据图片特征自动选择压缩参数。只需要将图片拖入PP鸭,就能自动批量压缩,省时省心。

Audio

libraries

  • libsoundio C library providing cross-platform audio input and output. The API is suitable for real-time software such as digital audio workstations as well as consumer software such as music players.
  • aubio a library for audio and music analysis https://aubio.org
  • FastNoise is an open source noise generation library with a large collection of different noise algorithms. This library has been designed for realtime usage from the ground up, so has been optimised for speed without sacrificing noise quality.
  • RtAudio A set of C++ classes that provide a common API for realtime audio input/output across Linux (native ALSA, JACK, PulseAudio and OSS), Macintosh OS X (CoreAudio and JACK), and Windows (DirectSound, ASIO and WASAPI) operating systems.
  • ofxPDSP is an openFrameworks addon for audio synthesis and generative music.

resources

Video

  • VLC is a free and open source cross-platform multimedia player and framework that plays most multimedia files as well as DVDs, Audio CDs, VCDs, and various streaming protocols.
  • mpv is a free (as in freedom) media player for the command line. It supports a wide variety of media file formats, audio and video codecs, and subtitle types.
  • ijkplayer Android/iOS video player based on FFmpeg n3.4, with MediaCodec, VideoToolbox support.

recorder

  • LICEcap simple animated screen capture tool for Windows and OS X
  • OBS Studio, Free and open source software for live streaming and screen recording

editor

transcoder

  • HandBrake is an open-source video transcoder available for Linux, Mac, and Windows

libraries

  • Bento4 Full-featured MP4 format and MPEG DASH library and tools

Projects

  • NodeTube is an open-source YouTube alt that offers video, audio and image uploads, livestreaming and built-in monetization
⚠️ **GitHub.com Fallback** ⚠️