Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //
- // FFMpeg
- //
- ffmpeg -f v4l2 -input_format h264 -video_size 320x400 -i /dev/video0 -copyinkf -codec copy -f mpegts 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
- [video4linux2,v4l2 @ 0x1827250] The V4L2 driver changed the video from 320x400 to 352x288
- Input #0, video4linux2,v4l2, from '/dev/video0':
- Duration: N/A, start: 18689.825780, bitrate: N/A
- Stream #0:0: Video: h264 (Constrained Baseline), yuvj420p(pc), 352x288 [SAR 1:1 DAR 11:9], -5 kb/s, 30 fps, 30 tbr, 1000k tbn, 60 tbc
- Output #0, mpegts, to 'http://server:8090/feed1.ffm':
- Metadata:
- encoder : Lavf57.11.100
- Stream #0:0: Video: h264, yuvj420p, 352x288 [SAR 1:1 DAR 11:9], q=2-31, -5 kb/s, 30 fps, 30 tbr, 90k tbn, 1000k tbc
- Stream mapping:
- Stream #0:0 -> #0:0 (copy)
- Press [q] to stop, [?] for help
- [mpegts @ 0x1844c20] Non-monotonous DTS in output stream 0:0; previous: 0, current: -33005; changing to 1. This may result in incorrect timestamps in the output file.
- [mpegts @ 0x1844c20] Non-monotonous DTS in output stream 0:0; previous: 1, current: -26884; changing to 2. This may result in incorrect timestamps in the output file.
- [mpegts @ 0x1844c20] Non-monotonous DTS in output stream 0:0; previous: 2, current: -21123; changing to 3. This may result in incorrect timestamps in the output file.
- [mpegts @ 0x1844c20] Non-monotonous DTS in output stream 0:0; previous: 3, current: -15002; changing to 4. This may result in incorrect timestamps in the output file.
- [mpegts @ 0x1844c20] Non-monotonous DTS in output stream 0:0; previous: 4, current: -8881; changing to 5. This may result in incorrect timestamps in the output file.
- av_interleaved_write_frame(): Connection reset by peer
- Error writing trailer of http://server.com:8090/feed1.ffm: Connection reset by peerframe= 6 fps=0.0 q=-1.0 Lsize= 36kB time=00:00:00.00 bitrate=4354865.7kbits/s
- video:32kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 10.487731%
- Conversion failed!
- //
- // FFServer
- //
- # Port on which the server is listening. You must select a different
- # port from your standard HTTP web server if it is running on the same
- # computer.
- Port 8090
- # Address on which the server is bound. Only useful if you have
- # several network interfaces.
- BindAddress 0.0.0.0
- # Number of simultaneous HTTP connections that can be handled. It has
- # to be defined *before* the MaxClients parameter, since it defines the
- # MaxClients maximum limit.
- MaxHTTPConnections 2000
- # Number of simultaneous requests that can be handled. Since FFServer
- # is very fast, it is more likely that you will want to leave this high
- # and use MaxBandwidth, below.
- MaxClients 1000
- # This the maximum amount of kbit/sec that you are prepared to
- # consume when streaming to clients.
- MaxBandwidth 500000
- # Access log file (uses standard Apache log file format)
- # '-' is the standard output.
- CustomLog -
- NoDaemon
- ##################################################################
- # Definition of the live feeds. Each live feed contains one video
- # and/or audio sequence coming from an ffmpeg encoder or another
- # ffserver. This sequence may be encoded simultaneously with several
- # codecs at several resolutions.
- <Feed feed1.ffm>
- # You must use 'ffmpeg' to send a live feed to ffserver. In this
- # example, you can type:
- #
- File /tmp/feed1.ffm
- FileMaxSize 100M
- # You could specify
- # ReadOnlyFile /saved/specialvideo.ffm
- # This marks the file as readonly and it will not be deleted or updated.
- # Only allow connections from localhost to the feed.
- ACL allow 127.0.0.1 xxx.xxx.xxx.xxx
- </Feed>
- ##################################################################
- # Now you can define each stream which will be generated from the
- # original audio and video stream. Each format has a filename (here
- # 'test1.mpg'). FFServer will send this stream when answering a
- # request containing this filename.
- <stream stream.mp4>
- Feed feed1.ffm
- Format mp4
- # Audio settings
- NoAudio
- # Video Settings
- #VideoSize 1280x720 # Video resolution
- #VideoFrameRate 30 # Video FPS
- #AVOptionVideo flags +global_header # Parameters passed to encoder
- #AVOptionVideo cpu-used 0
- #AVOptionVideo qmin 10
- #AVOptionVideo qmax 42
- #AVOptionVideo quality good
- PreRoll 0
- #StartSendOnKey
- #VideoBitRate 400 # Video bitrate
- </stream>
- # Server status
- <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 xxx.xxx.xxx.xxx
- </Stream>
Advertisement
Add Comment
Please, Sign In to add comment