gomedia

module
Version: v1.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 13, 2020 License: MIT

README

dependent

code reference(forked from)

ffmpeg compile

  • compile for windows
    ./configure --prefix=/d/work/ffmpeg/deps \
    --enable-static \
    --disable-shared \
    --disable-dxva2 \
    --disable-everything \
    --enable-decoder=aac,g723_1,g729,gif,h263,h264,hevc,mjpeg,mp3,mpeg4,mpegvideo,opus,pcm_alaw,pcm_mulaw,pcm_s16be,pcm_s16be_planar,pcm_s16le,pcm_s16le_planar,srt,movtext,subrip,text,vp8,vp9 \
    --enable-encoder=aac,gif,h263,mjpeg,mp3,mpeg4,opus,pcm_alaw,pcm_mulaw,pcm_s16be,pcm_s16be_planar,pcm_s16le,pcm_s16le_planar,srt,movtext,subbrip,text \
    --enable-parser=aac,h264,mpegaudio,mpegvideo,vp9,h263,mpeg4video \
    --enable-demuxer=aac,h264,m4v,mp4,mjpeg,mp3,gif,hevc,matroska,mov,mpegvideo \
    --enable-muxer=mpegvideo,mp3,mp4,gif,mov,matroska,webm,h264,mjpeg,mulaw,alaw,opus,aac \
    --enable-protocol=file \
    --enable-filter=scale,fps,copy,palettegen,vflip,paletteuse,crop
    
    make -j 8 install
    
  • compile for alpine
    docker run -it --rm golang:1.13-alpine
    
    #after enter new shell
    apk update
    apk upgrade
    apk add coreutils
    apk add --update alpine-sdk
    apk add cmake
    apk add nasm
    apk add yasm
    apk add openssh-client
    
    # get ffmpeg
    wget https://www.ffmpeg.org/releases/ffmpeg-4.2.2.tar.gz
    tar xvfz ffmpeg*
    cd ffmpeg-4.2.2
    
    #compile
    ./configure --prefix=/d/work/ffmpeg/deps \
    --enable-static \
    --disable-shared \
    --disable-dxva2 \
    --disable-everything \
    --enable-decoder=aac,g723_1,g729,gif,h263,h264,hevc,mjpeg,mp3,mpeg4,mpegvideo,opus,pcm_alaw,pcm_mulaw,pcm_s16be,pcm_s16be_planar,pcm_s16le,pcm_s16le_planar,srt,movtext,subrip,text,vp8,vp9 \
    --enable-encoder=aac,gif,h263,mjpeg,mp3,mpeg4,opus,pcm_alaw,pcm_mulaw,pcm_s16be,pcm_s16be_planar,pcm_s16le,pcm_s16le_planar,srt,movtext,subbrip,text \
    --enable-parser=aac,h264,mpegaudio,mpegvideo,vp9,h263,mpeg4video \
    --enable-demuxer=aac,h264,m4v,mp4,mjpeg,mp3,gif,hevc,matroska,mov,mpegvideo \
    --enable-muxer=mpegvideo,mp3,mp4,gif,mov,matroska,webm,h264,mjpeg,mulaw,alaw,opus,aac \
    --enable-protocol=file \
    --enable-filter=scale,fps,copy,palettegen,vflip,paletteuse,crop
    
    make -j 4 install
    

Directories

Path Synopsis
core
media/av
Package av defines basic interfaces and data structures of container demux/mux and audio encode/decode.
Package av defines basic interfaces and data structures of container demux/mux and audio encode/decode.
media/av/pktque
Package pktque provides packet Filter interface and structures used by other components.
Package pktque provides packet Filter interface and structures used by other components.
media/av/pubsub
Package pubsub implements publisher-subscribers model used in multi-channel streaming.
Package pubsub implements publisher-subscribers model used in multi-channel streaming.
media/av/transcode
Package transcode implements Transcoder based on Muxer/Demuxer and AudioEncoder/AudioDecoder interface.
Package transcode implements Transcoder based on Muxer/Demuxer and AudioEncoder/AudioDecoder interface.
media/pktque
Package pktque provides packet Filter interface and structures used by other components.
Package pktque provides packet Filter interface and structures used by other components.
media/pubsub
Package pubsub implements publisher-subscribers model used in multi-channel streaming.
Package pubsub implements publisher-subscribers model used in multi-channel streaming.
media/transcode
Package transcode implements Transcoder based on Muxer/Demuxer and AudioEncoder/AudioDecoder interface.
Package transcode implements Transcoder based on Muxer/Demuxer and AudioEncoder/AudioDecoder interface.
sdl2
gfx
Package gfx is an add-on for SDL2 that provides drawing of graphics primitives, rotozoomer, MMX image filters and framerate control.
Package gfx is an add-on for SDL2 that provides drawing of graphics primitives, rotozoomer, MMX image filters and framerate control.
img
Package img is a simple library to load images of various formats as SDL surfaces.
Package img is a simple library to load images of various formats as SDL surfaces.
mix
Package mix is an audio mixer library based on the SDL library.
Package mix is an audio mixer library based on the SDL library.
raster
Package raster implements a Painter interface for rasterizing paths over a generic Image, using its ColorModel to convert from a generic raster color to the correct color model.
Package raster implements a Painter interface for rasterizing paths over a generic Image, using its ColorModel to convert from a generic raster color to the correct color model.
sdl
Package sdl is SDL2 wrapped for Go users.
Package sdl is SDL2 wrapped for Go users.
ttf
Package ttf is a TrueType font rendering library that is used with the SDL library, and almost as portable.
Package ttf is a TrueType font rendering library that is used with the SDL library, and almost as portable.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL