Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ################ Client cmd:
- ffmpeg -i udp://@231.1.2.199:1234 -b:v 1500k -pix_fmt yuv420p -vcodec libx264 -tune zerolatency -preset ultrafast -f mpegts "http://xx.xx.xx.xx:8090/dupa.ffm" </dev/null &
- ############### Server cmd:
- ffserver -v debug
- ############### Server conf:
- HTTPPort 8090
- HTTPBindAddress 0.0.0.0
- MaxHTTPConnections 2000
- MaxClients 1000
- MaxBandwidth 10000000
- CustomLog -
- <Feed dupa.ffm>
- File /home/ffmpeg/dupa.ffm
- FileMaxSize 2G # This is roughly 24h of media
- </Feed>
- <Stream test.ts>
- Feed dupa.ffm
- Format mpegts
- </Stream>
- ############### Server debug:
- ffserver version N-67244-g1a25c33 Copyright (c) 2000-2014 the FFmpeg developers
- built on Oct 28 2014 20:12:25 with gcc 4.8.2 (GCC)
- configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --docdir=/usr/doc/ffmpeg-2.4/html --mandir=/usr/man --disable-debug --enable-shared --disable-static --enable-pthreads --enable-libtheora --enable-libvorbis --enable-gpl --enable-version3 --enable-libx264 --enable-postproc --enable-swscale --disable-x11grab --enable-avfilter --enable-gnutls --enable-libcdio --enable-libssh --arch=x86_64 --enable-libmp3lame --enable-libx264
- libavutil 54. 11.100 / 54. 11.100
- libavcodec 56. 10.100 / 56. 10.100
- libavformat 56. 11.100 / 56. 11.100
- libavdevice 56. 2.100 / 56. 2.100
- libavfilter 5. 2.100 / 5. 2.100
- libswscale 3. 1.101 / 3. 1.101
- libswresample 1. 1.100 / 1. 1.100
- libpostproc 53. 3.100 / 53. 3.100
- Tue Oct 28 22:46:23 2014 [ffm @ 0xd53ae0]Format ffm probed with size=2048 and score=101
- Tue Oct 28 22:46:23 2014 [AVIOContext @ 0xd4f940]Statistics: 4096 bytes read, 0 seeks
- Tue Oct 28 22:46:23 2014 FFserver started.
- Tue Oct 28 22:46:40 2014 xx.xx.xx.xx - - [POST] "/dupa.ffm HTTP/1.1" 200 4096
- ############### Client debug:
- ffmpeg version N-67244-g1a25c33 Copyright (c) 2000-2014 the FFmpeg developers
- built on Oct 28 2014 20:12:25 with gcc 4.8.2 (GCC)
- configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --docdir=/usr/doc/ffmpeg-2.4/html --mandir=/usr/man --disable-debug --enable-shared
- libavutil 54. 11.100 / 54. 11.100
- libavcodec 56. 10.100 / 56. 10.100
- libavformat 56. 11.100 / 56. 11.100
- libavdevice 56. 2.100 / 56. 2.100
- libavfilter 5. 2.100 / 5. 2.100
- libswscale 3. 1.101 / 3. 1.101
- libswresample 1. 1.100 / 1. 1.100
- libpostproc 53. 3.100 / 53. 3.100
- Splitting the commandline.
- Reading option '-i' ... matched as input file with argument 'udp://@231.1.2.199:1234'.
- Reading option '-b:v' ... matched as option 'b' (video bitrate (please use -b:v)) with argument '1500k'.
- Reading option '-pix_fmt' ... matched as option 'pix_fmt' (set pixel format) with argument 'yuv420p'.
- Reading option '-vcodec' ... matched as option 'vcodec' (force video codec ('copy' to copy stream)) with argument 'libx264'.
- Reading option '-tune' ... matched as AVOption 'tune' with argument 'zerolatency'.
- Reading option '-preset' ... matched as AVOption 'preset' with argument 'ultrafast'.
- Reading option '-f' ... matched as option 'f' (force format) with argument 'mpegts'.
- Reading option 'http://xx.xx.xx.xx:8090/dupa.ffm' ... matched as output file.
- Reading option '-v' ... matched as option 'v' (set logging level) with argument 'debug'.
- Finished splitting the commandline.
- Parsing a group of options: global .
- Applying option v (set logging level) with argument debug.
- Successfully parsed a group of options.
- Parsing a group of options: input file udp://@231.1.2.199:1234.
- Successfully parsed a group of options.
- Opening an input file: udp://@231.1.2.199:1234.
- [udp @ 0x10ebea0] end receive buffer size reported is 131072
- [mpegts @ 0x10ed240] Format mpegts probed with size=2048 and score=100
- [mpegts @ 0x10ed240] stream=0 stream_type=1b pid=7d2 prog_reg_desc=
- [mpegts @ 0x10ed240] stream=1 stream_type=4 pid=bba prog_reg_desc=
- [mpegts @ 0x10ed240] Before avformat_find_stream_info() pos: 0 bytes read:25004 seeks:0
- [mpegts @ 0x10ed240] All programs have pmt, headers found
- [h264 @ 0x1100480] non-existing SPS 0 referenced in buffering period
- [h264 @ 0x1100480] non-existing PPS 0 referenced
- [h264 @ 0x1100480] non-existing SPS 0 referenced in buffering period
- [h264 @ 0x1100480] non-existing PPS 0 referenced
- [h264 @ 0x1100480] decode_slice_header error
- [h264 @ 0x1100480] no frame!
- [h264 @ 0x1100480] non-existing SPS 0 referenced in buffering period
- [h264 @ 0x1100480] non-existing PPS 0 referenced
- [h264 @ 0x1100480] non-existing SPS 0 referenced in buffering period
- [h264 @ 0x1100480] non-existing PPS 0 referenced
- [h264 @ 0x1100480] decode_slice_header error
- [h264 @ 0x1100480] no frame!
- [h264 @ 0x1100480] non-existing SPS 0 referenced in buffering period
- [h264 @ 0x1100480] non-existing PPS 0 referenced
- [h264 @ 0x1100480] non-existing SPS 0 referenced in buffering period
- [h264 @ 0x1100480] non-existing PPS 0 referenced
- [h264 @ 0x1100480] decode_slice_header error
- [h264 @ 0x1100480] no frame!
- [h264 @ 0x1100480] Current profile doesn't provide more RBSP data in PPS, skipping
- [h264 @ 0x1100480] unknown SEI type 128
- [h264 @ 0x1100480] Increasing reorder buffer to 1
- [h264 @ 0x1100480] no picture.
- [h264 @ 0x1100480] unknown SEI type 128
- Last message repeated 1 times
- [h264 @ 0x1100480] Increasing reorder buffer to 2
- [h264 @ 0x1100480] no picture ooo
- [h264 @ 0x1100480] unknown SEI type 128
- [h264 @ 0x1100480] Increasing reorder buffer to 3
- [h264 @ 0x1100480] no picture ooo
- [h264 @ 0x1100480] unknown SEI type 128
- [h264 @ 0x1100480] no picture ooo
- [h264 @ 0x1100480] unknown SEI type 128
- [h264 @ 0x1100480] no picture.
- [h264 @ 0x1100480] unknown SEI type 128
- [h264 @ 0x1100480] no picture.
- [h264 @ 0x1100480] unknown SEI type 128
- Last message repeated 5 times
- [h264 @ 0x1100480] Current profile doesn't provide more RBSP data in PPS, skipping
- [h264 @ 0x1100480] unknown SEI type 128
- Last message repeated 3 times
- [mpegts @ 0x10ed240] All info found
- [mpegts @ 0x10ed240] After avformat_find_stream_info() pos: 285572 bytes read:285572 seeks:0 frames:51
- Input #0, mpegts, from 'udp://@231.1.2.199:1234':
- Duration: N/A, start: 86384.517867, bitrate: 247 kb/s
- Program 5090.
- Metadata:
- service_name : TV Disco
- service_provider:.
- Stream #0:0[0x7d2], 21, 1/90000: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(tv, bt470bg, left), 720x576 [SAR 16:11 DAR 20:11], 1/50, 25 fps, 25
- Stream #0:1[0xbba], 30, 1/90000: Audio: mp2 ([4][0][0][0] / 0x0004), 48000 Hz, stereo, s16p, 247 kb/s
- Successfully opened the file.
- Parsing a group of options: output file http://xx.xx.xx.xx:8090/dupa.ffm.
- Applying option b:v (video bitrate (please use -b:v)) with argument 1500k.
- Applying option pix_fmt (set pixel format) with argument yuv420p.
- Applying option vcodec (force video codec ('copy' to copy stream)) with argument libx264.
- Applying option f (force format) with argument mpegts.
- Successfully parsed a group of options.
- Opening an output file: http://xx.xx.xx.xx:8090/dupa.ffm.
- [http @ 0x1101c80] request: POST /dupa.ffm HTTP/1.1^M
- Transfer-Encoding: chunked^M
- User-Agent: Lavf/56.11.100^M
- Accept: */*^M
- Connection: close^M
- Host: xx.xx.xx.xx:8090^M
- Icy-MetaData: 1^M
- ^M
- Successfully opened the file.
- detected 8 logical cores
- [graph 0 input from stream 0:0 @ 0x13778e0] Setting 'video_size' to value '720x576'
- [graph 0 input from stream 0:0 @ 0x13778e0] Setting 'pix_fmt' to value '0'
- [graph 0 input from stream 0:0 @ 0x13778e0] Setting 'time_base' to value '1/90000'
- [graph 0 input from stream 0:0 @ 0x13778e0] Setting 'pixel_aspect' to value '16/11'
- [graph 0 input from stream 0:0 @ 0x13778e0] Setting 'sws_param' to value 'flags=2'
- [graph 0 input from stream 0:0 @ 0x13778e0] Setting 'frame_rate' to value '25/1'
- [graph 0 input from stream 0:0 @ 0x13778e0] w:720 h:576 pixfmt:yuv420p tb:1/90000 fr:25/1 sar:16/11 sws_param:flags=2
- [format @ 0x10ec040] compat: called with args=[yuv420p]
- [format @ 0x10ec040] Setting 'pix_fmts' to value 'yuv420p'
- [AVFilterGraph @ 0x1139700] query_formats: 4 queried, 3 merged, 0 already done, 0 delayed
- [graph 1 input from stream 0:1 @ 0x1377dc0] Setting 'time_base' to value '1/48000'
- [graph 1 input from stream 0:1 @ 0x1377dc0] Setting 'sample_rate' to value '48000'
- [graph 1 input from stream 0:1 @ 0x1377dc0] Setting 'sample_fmt' to value 's16p'
- [graph 1 input from stream 0:1 @ 0x1377dc0] Setting 'channel_layout' to value '0x3'
- [graph 1 input from stream 0:1 @ 0x1377dc0] tb:1/48000 samplefmt:s16p samplerate:48000 chlayout:0x3
- [audio format for output stream 0:1 @ 0x113a520] Setting 'sample_fmts' to value 's16'
- [audio format for output stream 0:1 @ 0x113a520] Setting 'sample_rates' to value '44100|48000|32000|22050|24000|16000'
- [audio format for output stream 0:1 @ 0x113a520] Setting 'channel_layouts' to value '0x4|0x3'
- [audio format for output stream 0:1 @ 0x113a520] auto-inserting filter 'auto-inserted resampler 0' between the filter 'Parsed_anull_0' and the filter 'audio
- [AVFilterGraph @ 0x10ecae0] query_formats: 4 queried, 6 merged, 3 already done, 0 delayed
- [auto-inserted resampler 0 @ 0x119e820] ch:2 chl:stereo fmt:s16p r:48000Hz -> ch:2 chl:stereo fmt:s16 r:48000Hz
- [libx264 @ 0x10e4760] using SAR=16/11
- [libx264 @ 0x10e4760] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
- [libx264 @ 0x10e4760] profile Constrained Baseline, level 3.0
- [mpegts @ 0x112b240] muxrate VBR, pcr every 2 pkts, sdt every 200, pat/pmt every 40 pkts
- Output #0, mpegts, to 'http://xx.xx.xx.xx:8090/dupa.ffm':
- Metadata:
- encoder : Lavf56.11.100
- Stream #0:0, 0, 1/90000: Video: h264 (libx264), yuv420p(left), 720x576 [SAR 16:11 DAR 20:11], 1/25, q=-1--1, 1500 kb/s, 25 fps, 90k tbn, 25 tbc
- Metadata:
- encoder : Lavc56.10.100 libx264
- Stream #0:1, 0, 1/90000: Audio: mp2, 48000 Hz, stereo, s16, 384 kb/s
- Metadata:
- encoder : Lavc56.10.100 mp2
- Stream mapping:
- Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
- Stream #0:1 -> #0:1 (mp2 (native) -> mp2 (native))
- Press [q] to stop, [?] for help
- [h264 @ 0x1264d60] Frame num gap 10 5
- [h264 @ 0x1264d60] Frame num gap 10 6
- [h264 @ 0x1264d60] Frame num gap 10 7
- [h264 @ 0x1264d60] Frame num gap 10 8
- [h264 @ 0x1264d60] no picture.
- [h264 @ 0x1265de0] mmco: unref short failure
- [h264 @ 0x1265de0] number of reference frames (0+5) exceeds max (4; probably corrupt input), discarding one
- [h264 @ 0x1265de0] no picture.
- [h264 @ 0x1266660] no picture.
- *** 18 dup!
- [libx264 @ 0x10e4760] frame= 0 QP=25.00 NAL=3 Slice:I Poc:0 I:1620 P:0 SKIP:0 size=18259 bytes
- [libx264 @ 0x10e4760] frame= 1 QP=26.00 NAL=2 Slice:P Poc:2 I:0 P:0 SKIP:1620 size=86 bytes
- [libx264 @ 0x10e4760] frame= 2 QP=22.00 NAL=2 Slice:P Poc:4 I:5 P:649 SKIP:966 size=2547 bytes
- av_interleaved_write_frame(): Connection reset by peer
- [libx264 @ 0x10e4760] frame= 3 QP=18.00 NAL=2 Slice:P Poc:6 I:27 P:1321 SKIP:272 size=11388 bytes
- av_interleaved_write_frame(): Connection reset by peer
- [libx264 @ 0x10e4760] frame= 4 QP=16.00 NAL=2 Slice:P Poc:8 I:46 P:1416 SKIP:158 size=12070 bytes
- av_interleaved_write_frame(): Connection reset by peer
- [libx264 @ 0x10e4760] frame= 5 QP=15.00 NAL=2 Slice:P Poc:10 I:3 P:883 SKIP:734 size=5210 bytes
- av_interleaved_write_frame(): Connection reset by peer
- [libx264 @ 0x10e4760] frame= 6 QP=14.00 NAL=2 Slice:P Poc:12 I:12 P:1200 SKIP:408 size=7699 bytes
- av_interleaved_write_frame(): Connection reset by peer
- [libx264 @ 0x10e4760] frame= 7 QP=13.00 NAL=2 Slice:P Poc:14 I:8 P:1360 SKIP:252 size=11766 bytes
- av_interleaved_write_frame(): Connection reset by peer
- [libx264 @ 0x10e4760] frame= 8 QP=13.00 NAL=2 Slice:P Poc:16 I:0 P:18 SKIP:1602 size=169 bytes
- av_interleaved_write_frame(): Connection reset by peer
- [libx264 @ 0x10e4760] frame= 9 QP=12.00 NAL=2 Slice:P Poc:18 I:19 P:1342 SKIP:259 size=9715 bytes
- av_interleaved_write_frame(): Connection reset by peer
- [libx264 @ 0x10e4760] frame= 10 QP=12.00 NAL=2 Slice:P Poc:20 I:5 P:617 SKIP:998 size=2314 bytes
- av_interleaved_write_frame(): Connection reset by peer
- [libx264 @ 0x10e4760] frame= 11 QP=12.00 NAL=2 Slice:P Poc:22 I:3 P:580 SKIP:1037 size=2117 bytes
- av_interleaved_write_frame(): Connection reset by peer
- [libx264 @ 0x10e4760] frame= 12 QP=11.00 NAL=2 Slice:P Poc:24 I:3 P:1260 SKIP:357 size=7489 bytes
- av_interleaved_write_frame(): Connection reset by peer
- [libx264 @ 0x10e4760] frame= 13 QP=11.00 NAL=2 Slice:P Poc:26 I:3 P:832 SKIP:785 size=3103 bytes
- av_interleaved_write_frame(): Connection reset by peer
- [libx264 @ 0x10e4760] frame= 14 QP=10.00 NAL=2 Slice:P Poc:28 I:5 P:1398 SKIP:217 size=12018 bytes
- av_interleaved_write_frame(): Connection reset by peer
- [libx264 @ 0x10e4760] frame= 15 QP=11.00 NAL=2 Slice:P Poc:30 I:2 P:386 SKIP:1232 size=1176 bytes
- av_interleaved_write_frame(): Connection reset by peer
- [libx264 @ 0x10e4760] frame= 16 QP=10.00 NAL=2 Slice:P Poc:32 I:2 P:343 SKIP:1275 size=1064 bytes
- av_interleaved_write_frame(): Connection reset by peer
- [libx264 @ 0x10e4760] frame= 17 QP=10.00 NAL=2 Slice:P Poc:34 I:2 P:116 SKIP:1502 size=463 bytes
- av_interleaved_write_frame(): Connection reset by peer
- [libx264 @ 0x10e4760] frame= 18 QP=9.00 NAL=2 Slice:P Poc:36 I:2 P:779 SKIP:839 size=4851 bytes
- av_interleaved_write_frame(): Connection reset by peer
- No more output streams to write to, finishing.
- frame= 19 fps=0.0 q=9.0 Lsize= 92kB time=00:00:00.76 bitrate= 987.5kbits/s dup=18 drop=0 ^M
- video:111kB audio:22kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
- Input file #0 (udp://@231.1.2.199:1234):
- Input stream #0:0 (video): 15 packets read (159198 bytes); 2 frames decoded;.
- Input stream #0:1 (audio): 20 packets read (15360 bytes); 20 frames decoded (23040 samples);.
- Total: 35 packets (174558 bytes) demuxed
- Output file #0 (http://xx.xx.xx.xx:8090/dupa.ffm):
- Output stream #0:0 (video): 19 frames encoded; 19 packets muxed (113504 bytes);.
- Output stream #0:1 (audio): 20 frames encoded (23040 samples); 20 packets muxed (23040 bytes);.
- Total: 39 packets (136544 bytes) muxed
- 36 frames successfully decoded, 0 decoding errors
- [AVIOContext @ 0x127e240] Statistics: 0 seeks, 16 writeouts
- [libx264 @ 0x10e4760] frame I:1 Avg QP:25.00 size: 18259
- [libx264 @ 0x10e4760] frame P:18 Avg QP:13.61 size: 5291
- [libx264 @ 0x10e4760] mb I I16..4: 100.0% 0.0% 0.0%
- [libx264 @ 0x10e4760] mb P I16..4: 0.5% 0.0% 0.0% P16..4: 49.7% 0.0% 0.0% 0.0% 0.0% skip:49.8%
- [libx264 @ 0x10e4760] final ratefactor: 20.23
- [libx264 @ 0x10e4760] coded y,uvDC,uvAC intra: 45.6% 56.9% 16.4% inter: 19.6% 21.4% 5.9%
- [libx264 @ 0x10e4760] i16 v,h,dc,p: 29% 34% 14% 23%
- [libx264 @ 0x10e4760] i8c dc,h,v,p: 47% 21% 24% 8%
- [libx264 @ 0x10e4760] kb/s:1194.78
- [AVIOContext @ 0x10ed980] Statistics: 285572 bytes read, 0 seeks
- Conversion failed!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement