Advertisement
Guest User

Untitled

a guest
Oct 28th, 2014
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.77 KB | None | 0 0
  1. ################ Client cmd:
  2.  
  3. 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 &
  4.  
  5. ############### Server cmd:
  6. ffserver -v debug
  7.  
  8. ############### Server conf:
  9. HTTPPort 8090
  10. HTTPBindAddress 0.0.0.0
  11. MaxHTTPConnections 2000
  12. MaxClients 1000
  13. MaxBandwidth 10000000
  14. CustomLog -
  15.  
  16. <Feed dupa.ffm>
  17. File /home/ffmpeg/dupa.ffm
  18. FileMaxSize 2G # This is roughly 24h of media
  19. </Feed>
  20.  
  21. <Stream test.ts>
  22. Feed dupa.ffm
  23. Format mpegts
  24. </Stream>
  25.  
  26. ############### Server debug:
  27.  
  28. ffserver version N-67244-g1a25c33 Copyright (c) 2000-2014 the FFmpeg developers
  29. built on Oct 28 2014 20:12:25 with gcc 4.8.2 (GCC)
  30. 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
  31. libavutil 54. 11.100 / 54. 11.100
  32. libavcodec 56. 10.100 / 56. 10.100
  33. libavformat 56. 11.100 / 56. 11.100
  34. libavdevice 56. 2.100 / 56. 2.100
  35. libavfilter 5. 2.100 / 5. 2.100
  36. libswscale 3. 1.101 / 3. 1.101
  37. libswresample 1. 1.100 / 1. 1.100
  38. libpostproc 53. 3.100 / 53. 3.100
  39. Tue Oct 28 22:46:23 2014 [ffm @ 0xd53ae0]Format ffm probed with size=2048 and score=101
  40. Tue Oct 28 22:46:23 2014 [AVIOContext @ 0xd4f940]Statistics: 4096 bytes read, 0 seeks
  41. Tue Oct 28 22:46:23 2014 FFserver started.
  42. Tue Oct 28 22:46:40 2014 xx.xx.xx.xx - - [POST] "/dupa.ffm HTTP/1.1" 200 4096
  43.  
  44. ############### Client debug:
  45. ffmpeg version N-67244-g1a25c33 Copyright (c) 2000-2014 the FFmpeg developers
  46. built on Oct 28 2014 20:12:25 with gcc 4.8.2 (GCC)
  47. configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --docdir=/usr/doc/ffmpeg-2.4/html --mandir=/usr/man --disable-debug --enable-shared
  48. libavutil 54. 11.100 / 54. 11.100
  49. libavcodec 56. 10.100 / 56. 10.100
  50. libavformat 56. 11.100 / 56. 11.100
  51. libavdevice 56. 2.100 / 56. 2.100
  52. libavfilter 5. 2.100 / 5. 2.100
  53. libswscale 3. 1.101 / 3. 1.101
  54. libswresample 1. 1.100 / 1. 1.100
  55. libpostproc 53. 3.100 / 53. 3.100
  56. Splitting the commandline.
  57. Reading option '-i' ... matched as input file with argument 'udp://@231.1.2.199:1234'.
  58. Reading option '-b:v' ... matched as option 'b' (video bitrate (please use -b:v)) with argument '1500k'.
  59. Reading option '-pix_fmt' ... matched as option 'pix_fmt' (set pixel format) with argument 'yuv420p'.
  60. Reading option '-vcodec' ... matched as option 'vcodec' (force video codec ('copy' to copy stream)) with argument 'libx264'.
  61. Reading option '-tune' ... matched as AVOption 'tune' with argument 'zerolatency'.
  62. Reading option '-preset' ... matched as AVOption 'preset' with argument 'ultrafast'.
  63. Reading option '-f' ... matched as option 'f' (force format) with argument 'mpegts'.
  64. Reading option 'http://xx.xx.xx.xx:8090/dupa.ffm' ... matched as output file.
  65. Reading option '-v' ... matched as option 'v' (set logging level) with argument 'debug'.
  66. Finished splitting the commandline.
  67. Parsing a group of options: global .
  68. Applying option v (set logging level) with argument debug.
  69. Successfully parsed a group of options.
  70. Parsing a group of options: input file udp://@231.1.2.199:1234.
  71. Successfully parsed a group of options.
  72. Opening an input file: udp://@231.1.2.199:1234.
  73. [udp @ 0x10ebea0] end receive buffer size reported is 131072
  74. [mpegts @ 0x10ed240] Format mpegts probed with size=2048 and score=100
  75. [mpegts @ 0x10ed240] stream=0 stream_type=1b pid=7d2 prog_reg_desc=
  76. [mpegts @ 0x10ed240] stream=1 stream_type=4 pid=bba prog_reg_desc=
  77. [mpegts @ 0x10ed240] Before avformat_find_stream_info() pos: 0 bytes read:25004 seeks:0
  78. [mpegts @ 0x10ed240] All programs have pmt, headers found
  79. [h264 @ 0x1100480] non-existing SPS 0 referenced in buffering period
  80. [h264 @ 0x1100480] non-existing PPS 0 referenced
  81. [h264 @ 0x1100480] non-existing SPS 0 referenced in buffering period
  82. [h264 @ 0x1100480] non-existing PPS 0 referenced
  83. [h264 @ 0x1100480] decode_slice_header error
  84. [h264 @ 0x1100480] no frame!
  85. [h264 @ 0x1100480] non-existing SPS 0 referenced in buffering period
  86. [h264 @ 0x1100480] non-existing PPS 0 referenced
  87. [h264 @ 0x1100480] non-existing SPS 0 referenced in buffering period
  88. [h264 @ 0x1100480] non-existing PPS 0 referenced
  89. [h264 @ 0x1100480] decode_slice_header error
  90. [h264 @ 0x1100480] no frame!
  91. [h264 @ 0x1100480] non-existing SPS 0 referenced in buffering period
  92. [h264 @ 0x1100480] non-existing PPS 0 referenced
  93. [h264 @ 0x1100480] non-existing SPS 0 referenced in buffering period
  94. [h264 @ 0x1100480] non-existing PPS 0 referenced
  95. [h264 @ 0x1100480] decode_slice_header error
  96. [h264 @ 0x1100480] no frame!
  97. [h264 @ 0x1100480] Current profile doesn't provide more RBSP data in PPS, skipping
  98. [h264 @ 0x1100480] unknown SEI type 128
  99. [h264 @ 0x1100480] Increasing reorder buffer to 1
  100. [h264 @ 0x1100480] no picture.
  101. [h264 @ 0x1100480] unknown SEI type 128
  102. Last message repeated 1 times
  103. [h264 @ 0x1100480] Increasing reorder buffer to 2
  104. [h264 @ 0x1100480] no picture ooo
  105. [h264 @ 0x1100480] unknown SEI type 128
  106. [h264 @ 0x1100480] Increasing reorder buffer to 3
  107. [h264 @ 0x1100480] no picture ooo
  108. [h264 @ 0x1100480] unknown SEI type 128
  109. [h264 @ 0x1100480] no picture ooo
  110. [h264 @ 0x1100480] unknown SEI type 128
  111. [h264 @ 0x1100480] no picture.
  112. [h264 @ 0x1100480] unknown SEI type 128
  113. [h264 @ 0x1100480] no picture.
  114. [h264 @ 0x1100480] unknown SEI type 128
  115. Last message repeated 5 times
  116. [h264 @ 0x1100480] Current profile doesn't provide more RBSP data in PPS, skipping
  117. [h264 @ 0x1100480] unknown SEI type 128
  118. Last message repeated 3 times
  119. [mpegts @ 0x10ed240] All info found
  120. [mpegts @ 0x10ed240] After avformat_find_stream_info() pos: 285572 bytes read:285572 seeks:0 frames:51
  121. Input #0, mpegts, from 'udp://@231.1.2.199:1234':
  122. Duration: N/A, start: 86384.517867, bitrate: 247 kb/s
  123. Program 5090.
  124. Metadata:
  125. service_name : TV Disco
  126. service_provider:.
  127. 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
  128. Stream #0:1[0xbba], 30, 1/90000: Audio: mp2 ([4][0][0][0] / 0x0004), 48000 Hz, stereo, s16p, 247 kb/s
  129. Successfully opened the file.
  130. Parsing a group of options: output file http://xx.xx.xx.xx:8090/dupa.ffm.
  131. Applying option b:v (video bitrate (please use -b:v)) with argument 1500k.
  132. Applying option pix_fmt (set pixel format) with argument yuv420p.
  133. Applying option vcodec (force video codec ('copy' to copy stream)) with argument libx264.
  134. Applying option f (force format) with argument mpegts.
  135. Successfully parsed a group of options.
  136. Opening an output file: http://xx.xx.xx.xx:8090/dupa.ffm.
  137. [http @ 0x1101c80] request: POST /dupa.ffm HTTP/1.1^M
  138. Transfer-Encoding: chunked^M
  139. User-Agent: Lavf/56.11.100^M
  140. Accept: */*^M
  141. Connection: close^M
  142. Host: xx.xx.xx.xx:8090^M
  143. Icy-MetaData: 1^M
  144. ^M
  145.  
  146. Successfully opened the file.
  147.  
  148. detected 8 logical cores
  149. [graph 0 input from stream 0:0 @ 0x13778e0] Setting 'video_size' to value '720x576'
  150. [graph 0 input from stream 0:0 @ 0x13778e0] Setting 'pix_fmt' to value '0'
  151. [graph 0 input from stream 0:0 @ 0x13778e0] Setting 'time_base' to value '1/90000'
  152. [graph 0 input from stream 0:0 @ 0x13778e0] Setting 'pixel_aspect' to value '16/11'
  153. [graph 0 input from stream 0:0 @ 0x13778e0] Setting 'sws_param' to value 'flags=2'
  154. [graph 0 input from stream 0:0 @ 0x13778e0] Setting 'frame_rate' to value '25/1'
  155. [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
  156. [format @ 0x10ec040] compat: called with args=[yuv420p]
  157. [format @ 0x10ec040] Setting 'pix_fmts' to value 'yuv420p'
  158. [AVFilterGraph @ 0x1139700] query_formats: 4 queried, 3 merged, 0 already done, 0 delayed
  159. [graph 1 input from stream 0:1 @ 0x1377dc0] Setting 'time_base' to value '1/48000'
  160. [graph 1 input from stream 0:1 @ 0x1377dc0] Setting 'sample_rate' to value '48000'
  161. [graph 1 input from stream 0:1 @ 0x1377dc0] Setting 'sample_fmt' to value 's16p'
  162. [graph 1 input from stream 0:1 @ 0x1377dc0] Setting 'channel_layout' to value '0x3'
  163. [graph 1 input from stream 0:1 @ 0x1377dc0] tb:1/48000 samplefmt:s16p samplerate:48000 chlayout:0x3
  164. [audio format for output stream 0:1 @ 0x113a520] Setting 'sample_fmts' to value 's16'
  165. [audio format for output stream 0:1 @ 0x113a520] Setting 'sample_rates' to value '44100|48000|32000|22050|24000|16000'
  166. [audio format for output stream 0:1 @ 0x113a520] Setting 'channel_layouts' to value '0x4|0x3'
  167. [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
  168. [AVFilterGraph @ 0x10ecae0] query_formats: 4 queried, 6 merged, 3 already done, 0 delayed
  169. [auto-inserted resampler 0 @ 0x119e820] ch:2 chl:stereo fmt:s16p r:48000Hz -> ch:2 chl:stereo fmt:s16 r:48000Hz
  170. [libx264 @ 0x10e4760] using SAR=16/11
  171. [libx264 @ 0x10e4760] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
  172. [libx264 @ 0x10e4760] profile Constrained Baseline, level 3.0
  173. [mpegts @ 0x112b240] muxrate VBR, pcr every 2 pkts, sdt every 200, pat/pmt every 40 pkts
  174. Output #0, mpegts, to 'http://xx.xx.xx.xx:8090/dupa.ffm':
  175. Metadata:
  176. encoder : Lavf56.11.100
  177. 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
  178. Metadata:
  179. encoder : Lavc56.10.100 libx264
  180. Stream #0:1, 0, 1/90000: Audio: mp2, 48000 Hz, stereo, s16, 384 kb/s
  181. Metadata:
  182. encoder : Lavc56.10.100 mp2
  183. Stream mapping:
  184. Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
  185. Stream #0:1 -> #0:1 (mp2 (native) -> mp2 (native))
  186. Press [q] to stop, [?] for help
  187. [h264 @ 0x1264d60] Frame num gap 10 5
  188. [h264 @ 0x1264d60] Frame num gap 10 6
  189. [h264 @ 0x1264d60] Frame num gap 10 7
  190. [h264 @ 0x1264d60] Frame num gap 10 8
  191. [h264 @ 0x1264d60] no picture.
  192. [h264 @ 0x1265de0] mmco: unref short failure
  193. [h264 @ 0x1265de0] number of reference frames (0+5) exceeds max (4; probably corrupt input), discarding one
  194. [h264 @ 0x1265de0] no picture.
  195. [h264 @ 0x1266660] no picture.
  196. *** 18 dup!
  197. [libx264 @ 0x10e4760] frame= 0 QP=25.00 NAL=3 Slice:I Poc:0 I:1620 P:0 SKIP:0 size=18259 bytes
  198. [libx264 @ 0x10e4760] frame= 1 QP=26.00 NAL=2 Slice:P Poc:2 I:0 P:0 SKIP:1620 size=86 bytes
  199. [libx264 @ 0x10e4760] frame= 2 QP=22.00 NAL=2 Slice:P Poc:4 I:5 P:649 SKIP:966 size=2547 bytes
  200. av_interleaved_write_frame(): Connection reset by peer
  201. [libx264 @ 0x10e4760] frame= 3 QP=18.00 NAL=2 Slice:P Poc:6 I:27 P:1321 SKIP:272 size=11388 bytes
  202. av_interleaved_write_frame(): Connection reset by peer
  203. [libx264 @ 0x10e4760] frame= 4 QP=16.00 NAL=2 Slice:P Poc:8 I:46 P:1416 SKIP:158 size=12070 bytes
  204. av_interleaved_write_frame(): Connection reset by peer
  205. [libx264 @ 0x10e4760] frame= 5 QP=15.00 NAL=2 Slice:P Poc:10 I:3 P:883 SKIP:734 size=5210 bytes
  206. av_interleaved_write_frame(): Connection reset by peer
  207. [libx264 @ 0x10e4760] frame= 6 QP=14.00 NAL=2 Slice:P Poc:12 I:12 P:1200 SKIP:408 size=7699 bytes
  208. av_interleaved_write_frame(): Connection reset by peer
  209. [libx264 @ 0x10e4760] frame= 7 QP=13.00 NAL=2 Slice:P Poc:14 I:8 P:1360 SKIP:252 size=11766 bytes
  210. av_interleaved_write_frame(): Connection reset by peer
  211. [libx264 @ 0x10e4760] frame= 8 QP=13.00 NAL=2 Slice:P Poc:16 I:0 P:18 SKIP:1602 size=169 bytes
  212. av_interleaved_write_frame(): Connection reset by peer
  213. [libx264 @ 0x10e4760] frame= 9 QP=12.00 NAL=2 Slice:P Poc:18 I:19 P:1342 SKIP:259 size=9715 bytes
  214. av_interleaved_write_frame(): Connection reset by peer
  215. [libx264 @ 0x10e4760] frame= 10 QP=12.00 NAL=2 Slice:P Poc:20 I:5 P:617 SKIP:998 size=2314 bytes
  216. av_interleaved_write_frame(): Connection reset by peer
  217. [libx264 @ 0x10e4760] frame= 11 QP=12.00 NAL=2 Slice:P Poc:22 I:3 P:580 SKIP:1037 size=2117 bytes
  218. av_interleaved_write_frame(): Connection reset by peer
  219. [libx264 @ 0x10e4760] frame= 12 QP=11.00 NAL=2 Slice:P Poc:24 I:3 P:1260 SKIP:357 size=7489 bytes
  220. av_interleaved_write_frame(): Connection reset by peer
  221. [libx264 @ 0x10e4760] frame= 13 QP=11.00 NAL=2 Slice:P Poc:26 I:3 P:832 SKIP:785 size=3103 bytes
  222. av_interleaved_write_frame(): Connection reset by peer
  223. [libx264 @ 0x10e4760] frame= 14 QP=10.00 NAL=2 Slice:P Poc:28 I:5 P:1398 SKIP:217 size=12018 bytes
  224. av_interleaved_write_frame(): Connection reset by peer
  225. [libx264 @ 0x10e4760] frame= 15 QP=11.00 NAL=2 Slice:P Poc:30 I:2 P:386 SKIP:1232 size=1176 bytes
  226. av_interleaved_write_frame(): Connection reset by peer
  227. [libx264 @ 0x10e4760] frame= 16 QP=10.00 NAL=2 Slice:P Poc:32 I:2 P:343 SKIP:1275 size=1064 bytes
  228. av_interleaved_write_frame(): Connection reset by peer
  229. [libx264 @ 0x10e4760] frame= 17 QP=10.00 NAL=2 Slice:P Poc:34 I:2 P:116 SKIP:1502 size=463 bytes
  230. av_interleaved_write_frame(): Connection reset by peer
  231. [libx264 @ 0x10e4760] frame= 18 QP=9.00 NAL=2 Slice:P Poc:36 I:2 P:779 SKIP:839 size=4851 bytes
  232. av_interleaved_write_frame(): Connection reset by peer
  233. No more output streams to write to, finishing.
  234. frame= 19 fps=0.0 q=9.0 Lsize= 92kB time=00:00:00.76 bitrate= 987.5kbits/s dup=18 drop=0 ^M
  235. video:111kB audio:22kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
  236. Input file #0 (udp://@231.1.2.199:1234):
  237. Input stream #0:0 (video): 15 packets read (159198 bytes); 2 frames decoded;.
  238. Input stream #0:1 (audio): 20 packets read (15360 bytes); 20 frames decoded (23040 samples);.
  239. Total: 35 packets (174558 bytes) demuxed
  240. Output file #0 (http://xx.xx.xx.xx:8090/dupa.ffm):
  241. Output stream #0:0 (video): 19 frames encoded; 19 packets muxed (113504 bytes);.
  242. Output stream #0:1 (audio): 20 frames encoded (23040 samples); 20 packets muxed (23040 bytes);.
  243. Total: 39 packets (136544 bytes) muxed
  244. 36 frames successfully decoded, 0 decoding errors
  245. [AVIOContext @ 0x127e240] Statistics: 0 seeks, 16 writeouts
  246. [libx264 @ 0x10e4760] frame I:1 Avg QP:25.00 size: 18259
  247. [libx264 @ 0x10e4760] frame P:18 Avg QP:13.61 size: 5291
  248. [libx264 @ 0x10e4760] mb I I16..4: 100.0% 0.0% 0.0%
  249. [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%
  250. [libx264 @ 0x10e4760] final ratefactor: 20.23
  251. [libx264 @ 0x10e4760] coded y,uvDC,uvAC intra: 45.6% 56.9% 16.4% inter: 19.6% 21.4% 5.9%
  252. [libx264 @ 0x10e4760] i16 v,h,dc,p: 29% 34% 14% 23%
  253. [libx264 @ 0x10e4760] i8c dc,h,v,p: 47% 21% 24% 8%
  254. [libx264 @ 0x10e4760] kb/s:1194.78
  255. [AVIOContext @ 0x10ed980] Statistics: 285572 bytes read, 0 seeks
  256. Conversion failed!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement