Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //
- // ffserver.conf
- //
- Port 8090
- BindAddress 0.0.0.0
- MaxHTTPConnections 2000
- MaxClients 1000
- MaxBandwidth 10000
- CustomLog -
- NoDaemon
- <Feed feed1.ffm>
- File /tmp/feed1.ffm
- FileMaxSize 200M
- ACL allow xx.xx.xx.xx
- </Feed>
- # if you want to use mpegts format instead of flv
- # then change "live.flv" to "live.ts"
- # and also change "Format flv" to "Format mpegts"
- <Stream live.ts>
- Format mpegts
- Feed feed1.ffm
- VideoCodec libx264
- VideoFrameRate 30
- VideoBitRate 512
- #VideoSize 640x480
- #AVOptionVideo crf 23
- #AVOptionVideo preset medium
- # for more info on crf/preset options, type: x264 --help
- #AVOptionVideo flags +global_header
- NoAudio
- # AudioCodec aac
- # Strict -2
- # AudioBitRate 128
- # AudioChannels 2
- # AudioSampleRate 44100
- # AVOptionAudio flags +global_header
- </Stream>
- ##################################################################
- # Special streams
- ##################################################################
- <Stream stat.html>
- Format status
- # Only allow local people to get the status
- ACL allow localhost
- ACL allow 192.168.0.0 192.168.255.255
- </Stream>
- # Redirect index.html to the appropriate site
- <Redirect index.html>
- URL http://www.ffmpeg.org/
- </Redirect>
- ##################################################################
- //
- // codecs
- //
- $ ffmpeg -codecs | grep 264
- FFmpeg version 0.6.5, Copyright (c) 2000-2010 the FFmpeg developers
- built on Jan 29 2012 17:52:15 with gcc 4.4.5 20110214 (Red Hat 4.4.5-6)
- configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --incdir=/usr/include --disable-avisynth --extra-cflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fPIC' --enable-avfilter --enable-avfilter-lavf --enable-libdc1394 --enable-libdirac --enable-libfaac --enable-libfaad --enable-libfaadbin --enable-libgsm --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libx264 --enable-gpl --enable-nonfree --enable-postproc --enable-pthreads --enable-shared --enable-swscale --enable-vdpau --enable-version3 --enable-x11grab
- libavutil 50.15. 1 / 50.15. 1
- libavcodec 52.72. 2 / 52.72. 2
- libavformat 52.64. 2 / 52.64. 2
- libavdevice 52. 2. 0 / 52. 2. 0
- libavfilter 1.19. 0 / 1.19. 0
- libswscale 0.11. 0 / 0.11. 0
- libpostproc 51. 2. 0 / 51. 2. 0
- D V D h264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
- D V D h264_vdpau H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 (VDPAU acceleration)
- EV libx264 libx264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
- //
- // Streamer
- //
- ffmpeg -f v4l2 -s 640x480 -input_format h264 -r 15 -i /dev/video0 -vcodec copy http://server.com:8090/feed1.ffm
- ffmpeg version N-76259-gbbd6bc6 Copyright (c) 2000-2015 the FFmpeg developers
- built with gcc 4.6 (Debian 4.6.3-14+rpi1)
- configuration:
- libavutil 55. 4.100 / 55. 4.100
- libavcodec 57. 9.100 / 57. 9.100
- libavformat 57. 11.100 / 57. 11.100
- libavdevice 57. 0.100 / 57. 0.100
- libavfilter 6. 13.100 / 6. 13.100
- libswscale 4. 0.100 / 4. 0.100
- libswresample 2. 0.100 / 2. 0.100
- Input #0, video4linux2,v4l2, from '/dev/video0':
- Duration: N/A, start: 65530.521196, bitrate: N/A
- Stream #0:0: Video: h264 (Constrained Baseline), yuvj420p(pc), 640x480 [SAR 1:1 DAR 4:3], -2 kb/s, 15 fps, 15 tbr, 1000k tbn, 30 tbc
- [ffm @ 0x1e21450] Invalid time base 0/1
- http://server.com:8090/feed1.ffm: Operation not permitted
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement