Skip to content

Instantly share code, notes, and snippets.

@exiva
Last active December 28, 2015 19:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save exiva/7549595 to your computer and use it in GitHub Desktop.
Save exiva/7549595 to your computer and use it in GitHub Desktop.
# port for HTTP (descriptions, SOAP, media transfer) traffic
port=8200
# network interfaces to serve, comma delimited
#network_interface=eth0
# specify the user account name or uid to run as
#user=jmaggard
# set this to the directory you want scanned.
# * if you want multiple directories, you can have multiple media_dir= lines
# * if you want to restrict a media_dir to specific content types, you
# can prepend the types, followed by a comma, to the directory:
# + "A" for audio (eg. media_dir=A,/home/jmaggard/Music)
# + "V" for video (eg. media_dir=V,/home/jmaggard/Videos)
# + "P" for images (eg. media_dir=P,/home/jmaggard/Pictures)
# + "PV" for pictures and video (eg. media_dir=AV,/home/jmaggard/digital_camera)
media_dir=/home/travis/tmp
# set this if you want to customize the name that shows up on your clients
friendly_name=DLNA Test
# set this if you would like to specify the directory where you want MiniDLNA to store its database and album art cache
db_dir=/home/travis/tmp
# set this if you wouldlike to specify the directory where you want MiniDLNA to store its log file
log_dir=/home/travis/tmp
# set this to change the verbosity of the information that is logged
# each section can use a different level: off, fatal, error, warn, info, or debug
log_level=general=debug,artwork,database,inotify,scanner,metadata,http,ssdp,tivo=warn
# this should be a list of file names to check for when searching for album art
# note: names should be delimited with a forward slash ("/")
album_art_names=Cover.jpg/cover.jpg/AlbumArtSmall.jpg/albumartsmall.jpg/AlbumArt.jpg/albumart.jpg/Album.jpg/album.jpg/Folder.jpg/folder.jpg/Thumb.jpg/thumb.jpg
# set this to no to disable inotify monitoring to automatically discover new files
# note: the default is yes
inotify=yes
# set this to yes to enable support for streaming .jpg and .mp3 files to a TiVo supporting HMO
enable_tivo=no
# set this to strictly adhere to DLNA standards.
# * This will allow server-side downscaling of very large JPEG images,
# which may hurt JPEG serving performance on (at least) Sony DLNA products.
strict_dlna=no
# default presentation url is http address on port 80
#presentation_url=http://www.mylan/index.php
# notify interval in seconds. default is 895 seconds.
notify_interval=900
# serial and model number the daemon will report to clients
# in its XML description
serial=12345678
model_number=1
# specify the path to the MiniSSDPd socket
#minissdpdsocket=/var/run/minissdpd.sock
# use different container as root of the tree
# possible values:
# + "." - use standard container (this is the default)
# + "B" - "Browse Directory"
# + "M" - "Music"
# + "V" - "Video"
# + "P" - "Pictures"
# if you specify "B" and client device is audio-only then "Music/Folders" will be used as root
#root_container=.
#transcode_audio_enable : =LPCM/MP3/MP3LPCM/DISABLE
# LPCM : transcode to LPCM
# MP3 : transcode to MP3
# MP3LPCM : transcode to LPCM or MP3, selected by clients
# DISABLE : disable audio transcoding
# in order to transcode to MP3, it is neccessary that FFMPEG supports MP3 encoding using LAME MP3 Encoder
# for example, install "libavformat-extra-xx" on Ubuntu.
#transcode_video_transcoder : mencoder/ffmpeg/disable or other_transcoder/shell script
# set the output of transcoder pipe
#transcode_video_options : options for video transcoder
# can be divided into multiple "transcode_video_options"
# max characters for every line is 199
# max characters for total options is 1023
#transcode_audio_ffmpeg_options : options for audio transcode using ffmpeg
# restriction is same as "transcode_video_mencoder_options"
#default options for mencoder and ffmpeg is hard coded
#followings are defaults
transcode_audio_enable=MP3
transcode_audio_ffmpeg_options=-v 0 -acodec lame -f s16be -ar 44100 $SOURCE
#for mencoder 60Hz(NTSC)
transcode_video_transcoder=mencoder
#transcode_video_options=-ss $STARTPOSITION -endpos $DURATION
#transcode_video_options=-msglevel all=-1 -really-quiet -oac lavc
#transcode_video_options=-of mpeg -mpegopts format=mpeg2:muxrate=8000:vbuf_size=1194:abuf_size=64 -vf scale=720:480,harddup -ovc lavc -channels 2
#transcode_video_options=-lavdopts debug=0 -lavcopts autoaspect=1:vcodec=mpeg2video:vbitrate=8000:acodec=ac3:abitrate=128:keyint=18:vqscale=1:vqmin=2
#transcode_video_options=-subdelay 20000 -ofps 30000/1001 -mc 0 -noskip -af lavcresample=48000 -srate 48000
#transcode_video_options=-o - $SOURCE
#for ffmpeg 60Hz(NTSC)
#transcode_video_transcoder=ffmpeg
#transcode_video_options=-ss $STARTPOSITION -i $SOURCE -t $DURATION -v 0 -loglevel quiet -threads 2 -async 2 -target ntsc-dvd pipe:1
#transcode_video_options=-ss $STARTPOSITION -i $SOURCE -t $DURATION -v 0 -loglevel quiet -async 2 -target ntsc-dvd pipe:1
#for mencoder 50Hz(PAL)
transcode_video_transcoder_pal=mencoder
#transcode_video_options_pal=-ss $STARTPOSITION -endpos $DURATION
#transcode_video_options_pal=-msglevel all=-1 -really-quiet -oac lavc
#transcode_video_options_pal=-of mpeg -mpegopts format=mpeg2:muxrate=8000:vbuf_size=1194:abuf_size=64 -vf scale=720:576,harddup -ovc lavc -channels 2
#transcode_video_options_pal=-lavdopts debug=0 -lavcopts autoaspect=1:vcodec=mpeg2video:vbitrate=8000:acodec=ac3:abitrate=128:keyint=25:vqscale=1:vqmin=2
#transcode_video_options_pal=-subdelay 20000 -ofps 25 -mc 0 -noskip -af lavcresample=48000 -srate 48000
#transcode_video_options_pal=-o - $SOURCE
#for ffmpeg 50Hz(PAL)
#transcode_video_transcoder_pal=ffmpeg
#transcode_video_options_pal=-ss $STARTPOSITION -i $SOURCE -t $DURATION -v 0 -loglevel quiet -threads 2 -async 2 -target pal-dvd pipe:1
#transcode_video_options_pal=-ss $STARTPOSITION -i $SOURCE -t $DURATION -v 0 -loglevel quiet -async 2 -target pal-dvd pipe:1
travis@bmo ~]$ ffmpeg
ffmpeg version 2.1 Copyright (c) 2000-2013 the FFmpeg developers
built on Nov 17 2013 13:15:04 with gcc 4.7.2 (GCC)
configuration: --prefix=/usr --disable-debug --disable-static --enable-avresample --enable-dxva2 --enable-fontconfig --enable-gnutls --enable-gpl --enable-libass --enable-libbluray --enable-libfreetype --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libv4l2 --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-pic --enable-postproc --enable-runtime-cpudetect --enable-shared --enable-swresample --enable-vdpau --enable-version3 --enable-x11grab
libavutil 52. 48.100 / 52. 48.100
libavcodec 55. 39.100 / 55. 39.100
libavformat 55. 19.104 / 55. 19.104
libavdevice 55. 5.100 / 55. 5.100
libavfilter 3. 90.100 / 3. 90.100
libavresample 1. 1. 0 / 1. 1. 0
libswscale 2. 5.101 / 2. 5.101
libswresample 0. 17.104 / 0. 17.104
libpostproc 52. 3.100 / 52. 3.100
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...
Use -h to get full help or, even better, run 'man ffmpeg'
[playlist]
numberofentries=1
File1=http://ca.ah.fm:443
Title1=AfterHours
Length1=-1
Version=2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment