Advertisement
freakshow

Untitled

Mar 4th, 2015
268
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.20 KB | None | 0 0
  1. ffmpeg -i udp://@:4000 -threads 0 -i http://static1.squarespace.com/static/53d8f957e4b095510e2cd695/54b51bbfe4b05235bedbde48/54b51bc1e4b05235bedbde4b/1421155265138/Logo_PNG_for_Watermark.png \
  2. -map 0:0 -map 0:1 -map 1:0 \
  3. -filter_complex "[1:v]scale=32:31[wat];[0:v][wat]overlay=main_w-overlay_w-25:25" \
  4. -b:v 200k -bt 200k -r 25 -c:v libx264 -profile:v baseline -level 3.0 -pix_fmt yuv420p -c:a libfdk_aac -b:a 64k -ar 22050 -s 320x240 \
  5. -x264opts open_gop=0:keyint=25:min-keyint=25:qpmin=10:qpmax=51:bframes=0 \
  6. -f flv "rtmp://<address>" \
  7. -filter_complex "[1:v]scale=64:62[wat];[0:v][wat]overlay=main_w-overlay_w-25:25" \
  8. -b:v 250k -bt 250k -r 25 -c:v libx264 -profile:v baseline -level 3.0 -pix_fmt yuv420p -c:a libfdk_aac -b:a 64k -ar 22050 -s 640x480 \
  9. -x264opts open_gop=0:keyint=25:min-keyint=25:qpmin=10:qpmax=51:bframes=0 \
  10. -f flv "rtmp://<address>"
  11.  
  12.  
  13. ffmpeg output:
  14.  
  15. ffmpeg version n2.4.2 Copyright (c) 2000-2014 the FFmpeg developers
  16. built on Dec 16 2014 16:18:24 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
  17. configuration: --extra-libs=-ldl --enable-libass --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libfdk-aac --disable-ffplay --disable-ffserver --enable-gpl --enable-version3 --enable-nonfree
  18. libavutil 54. 7.100 / 54. 7.100
  19. libavcodec 56. 1.100 / 56. 1.100
  20. libavformat 56. 4.101 / 56. 4.101
  21. libavdevice 56. 0.100 / 56. 0.100
  22. libavfilter 5. 1.100 / 5. 1.100
  23. libswscale 3. 0.100 / 3. 0.100
  24. libswresample 1. 1.100 / 1. 1.100
  25. libpostproc 53. 0.100 / 53. 0.100
  26. [NULL @ 0x3c2b320] non-existing PPS 0 referenced
  27. [h264 @ 0x3c2b320] non-existing PPS 0 referenced
  28. [h264 @ 0x3c2b320] decode_slice_header error
  29. [h264 @ 0x3c2b320] no frame!
  30. [h264 @ 0x3c37b60] non-existing PPS 0 referenced
  31. Last message repeated 1 times
  32. [h264 @ 0x3c37b60] decode_slice_header error
  33. [h264 @ 0x3c37b60] no frame!
  34. [h264 @ 0x3c37b60] non-existing PPS 0 referenced
  35. Last message repeated 1 times
  36. [h264 @ 0x3c37b60] decode_slice_header error
  37. [h264 @ 0x3c37b60] no frame!
  38. [h264 @ 0x3c37b60] non-existing PPS 0 referenced
  39. Last message repeated 1 times
  40. [h264 @ 0x3c37b60] decode_slice_header error
  41. [h264 @ 0x3c37b60] no frame!
  42. [h264 @ 0x3c37b60] non-existing PPS 0 referenced
  43. Last message repeated 1 times
  44. [h264 @ 0x3c37b60] decode_slice_header error
  45. [h264 @ 0x3c37b60] no frame!
  46. [h264 @ 0x3c37b60] non-existing PPS 0 referenced
  47. Last message repeated 1 times
  48. [h264 @ 0x3c37b60] decode_slice_header error
  49. [h264 @ 0x3c37b60] no frame!
  50. [h264 @ 0x3c37b60] non-existing PPS 0 referenced
  51. Last message repeated 1 times
  52. [h264 @ 0x3c37b60] decode_slice_header error
  53. [h264 @ 0x3c37b60] no frame!
  54. [h264 @ 0x3c37b60] non-existing PPS 0 referenced
  55. Last message repeated 1 times
  56. [h264 @ 0x3c37b60] decode_slice_header error
  57. [h264 @ 0x3c37b60] no frame!
  58. [h264 @ 0x3c37b60] non-existing PPS 0 referenced
  59. Last message repeated 1 times
  60. [h264 @ 0x3c37b60] decode_slice_header error
  61. [h264 @ 0x3c37b60] no frame!
  62. [h264 @ 0x3c37b60] non-existing PPS 0 referenced
  63. Last message repeated 1 times
  64. [h264 @ 0x3c37b60] decode_slice_header error
  65. [h264 @ 0x3c37b60] no frame!
  66. [h264 @ 0x3c37b60] non-existing PPS 0 referenced
  67. Last message repeated 1 times
  68. [h264 @ 0x3c37b60] decode_slice_header error
  69. [h264 @ 0x3c37b60] no frame!
  70. [h264 @ 0x3c37b60] non-existing PPS 0 referenced
  71. Last message repeated 1 times
  72. [h264 @ 0x3c37b60] decode_slice_header error
  73. [h264 @ 0x3c37b60] no frame!
  74. [h264 @ 0x3c37b60] non-existing PPS 0 referenced
  75. Last message repeated 1 times
  76. [h264 @ 0x3c37b60] decode_slice_header error
  77. [h264 @ 0x3c37b60] no frame!
  78. [h264 @ 0x3c37b60] non-existing PPS 0 referenced
  79. Last message repeated 1 times
  80. [h264 @ 0x3c37b60] decode_slice_header error
  81. [h264 @ 0x3c37b60] no frame!
  82. [h264 @ 0x3c37b60] non-existing PPS 0 referenced
  83. Last message repeated 1 times
  84. [h264 @ 0x3c37b60] decode_slice_header error
  85. [h264 @ 0x3c37b60] no frame!
  86. [h264 @ 0x3c37b60] non-existing PPS 0 referenced
  87. Last message repeated 1 times
  88. [h264 @ 0x3c37b60] decode_slice_header error
  89. [h264 @ 0x3c37b60] no frame!
  90. [h264 @ 0x3c37b60] non-existing PPS 0 referenced
  91. Last message repeated 1 times
  92. [h264 @ 0x3c37b60] decode_slice_header error
  93. [h264 @ 0x3c37b60] no frame!
  94. [h264 @ 0x3c37b60] non-existing PPS 0 referenced
  95. Last message repeated 1 times
  96. [h264 @ 0x3c37b60] decode_slice_header error
  97. [h264 @ 0x3c37b60] no frame!
  98. [h264 @ 0x3c37b60] non-existing PPS 0 referenced
  99. Last message repeated 1 times
  100. [h264 @ 0x3c37b60] decode_slice_header error
  101. [h264 @ 0x3c37b60] no frame!
  102. [h264 @ 0x3c37b60] non-existing PPS 0 referenced
  103. Last message repeated 1 times
  104. [h264 @ 0x3c37b60] decode_slice_header error
  105. [h264 @ 0x3c37b60] no frame!
  106. [h264 @ 0x3c37b60] non-existing PPS 0 referenced
  107. Last message repeated 1 times
  108. [h264 @ 0x3c37b60] decode_slice_header error
  109. [h264 @ 0x3c37b60] no frame!
  110. [h264 @ 0x3c37b60] non-existing PPS 0 referenced
  111. Last message repeated 1 times
  112. [h264 @ 0x3c37b60] decode_slice_header error
  113. [h264 @ 0x3c37b60] no frame!
  114. [h264 @ 0x3c2b320] non-existing PPS 0 referenced
  115. Last message repeated 1 times
  116. [h264 @ 0x3c2b320] decode_slice_header error
  117. [h264 @ 0x3c2b320] no frame!
  118. [h264 @ 0x3c37b60] non-existing PPS 0 referenced
  119. Last message repeated 1 times
  120. [h264 @ 0x3c37b60] decode_slice_header error
  121. [h264 @ 0x3c37b60] no frame!
  122. [h264 @ 0x3c37b60] mmco: unref short failure
  123. Last message repeated 1 times
  124. [h264 @ 0x3c37b60] number of reference frames (0+4) exceeds max (3; probably corrupt input), discarding one
  125. [h264 @ 0x3c37b60] Reference 2 >= 2
  126. [h264 @ 0x3c37b60] error while decoding MB 2 5, bytestream 2400
  127. [mpegts @ 0x3c125a0] PES packet size mismatch
  128. Last message repeated 1 times
  129. [mpegts @ 0x3c125a0] Could not find codec parameters for stream 2 (Audio: mp3 ([4][0][0][0] / 0x0004), 0 channels, s16p): unspecified frame size
  130. Consider increasing the value for the 'analyzeduration' and 'probesize' options
  131. Input #0, mpegts, from 'udp://@:4000':
  132. Duration: N/A, start: 69332.973111, bitrate: 224 kb/s
  133. Program 1
  134. Metadata:
  135. service_name : Service Name
  136. service_provider: Service Provider
  137. Stream #0:0[0x200]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(tv, bt470bg), 544x576 [SAR 16:11 DAR 136:99], 25 fps, 50 tbr, 90k tbn, 50 tbc
  138. Stream #0:1[0x28b]: Audio: mp2 ([4][0][0][0] / 0x0004), 48000 Hz, stereo, s16p, 96 kb/s
  139. Stream #0:2[0x28c]: Audio: mp3 ([4][0][0][0] / 0x0004), 0 channels, s16p
  140. Program 2
  141. Metadata:
  142. service_name : Service Name
  143. service_provider: Service Provider
  144. Stream #0:3[0x20]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(tv, bt470bg), 544x576 [SAR 16:11 DAR 136:99], 25 fps, 50 tbr, 90k tbn, 50 tbc
  145. Stream #0:4[0x21]: Audio: mp2 ([4][0][0][0] / 0x0004), 48000 Hz, stereo, s16p, 128 kb/s
  146. Input #1, png_pipe, from 'http://static1.squarespace.com/static/53d8f957e4b095510e2cd695/54b51bbfe4b05235bedbde48/54b51bc1e4b05235bedbde4b/1421155265138/Logo_PNG_for_Watermark.png':
  147. Duration: N/A, bitrate: N/A
  148. Stream #1:0: Video: png, rgba, 297x288 [SAR 11811:11811 DAR 33:32], 25 tbr, 25 tbn, 25 tbc
  149. [libx264 @ 0x406a580] using SAR=34/33
  150. [libx264 @ 0x406a580] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
  151. [libx264 @ 0x406a580] profile Constrained Baseline, level 3.0
  152. [libx264 @ 0x406a580] 264 - core 142 r2455 021c0dc - H.264/MPEG-4 AVC codec - Copyleft 2003-2014 - http://www.videolan.org/x264.html - options: cabac=0 ref=3 deblock=1:0:0 analyse=0x1:0x111 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=18 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=25 keyint_min=13 scenecut=40 intra_refresh=0 rc_lookahead=25 rc=abr mbtree=1 bitrate=200 ratetol=1.0 qcomp=0.60 qpmin=10 qpmax=51 qpstep=4 ip_ratio=1.40 aq=1:1.00
  153. [libx264 @ 0x3e25660] using SAR=34/33
  154. [libx264 @ 0x3e25660] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
  155. [libx264 @ 0x3e25660] profile Constrained Baseline, level 3.0
  156. [libx264 @ 0x3e25660] 264 - core 142 r2455 021c0dc - H.264/MPEG-4 AVC codec - Copyleft 2003-2014 - http://www.videolan.org/x264.html - options: cabac=0 ref=3 deblock=1:0:0 analyse=0x1:0x111 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=18 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=25 keyint_min=13 scenecut=40 intra_refresh=0 rc_lookahead=25 rc=abr mbtree=1 bitrate=200 ratetol=1.0 qcomp=0.60 qpmin=10 qpmax=51 qpstep=4 ip_ratio=1.40 aq=1:1.00
  157. [libx264 @ 0x3e90760] using SAR=34/33
  158. [libx264 @ 0x3e90760] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
  159. [libx264 @ 0x3e90760] profile Constrained Baseline, level 3.0
  160. [libx264 @ 0x3e90760] 264 - core 142 r2455 021c0dc - H.264/MPEG-4 AVC codec - Copyleft 2003-2014 - http://www.videolan.org/x264.html - options: cabac=0 ref=3 deblock=1:0:0 analyse=0x1:0x111 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=18 lookahead_threads=3 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=25 keyint_min=13 scenecut=40 intra_refresh=0 rc_lookahead=25 rc=abr mbtree=1 bitrate=250 ratetol=1.0 qcomp=0.60 qpmin=10 qpmax=51 qpstep=4 ip_ratio=1.40 aq=1:1.00
  161. [flv @ 0x402b2c0] at most one video stream is supported in flv
  162. Output #0, flv, to 'rtmp://<address>':
  163. Metadata:
  164. encoder : Lavf56.4.101
  165. Stream #0:0: Video: h264 (libx264) ([7][0][0][0] / 0x0007), yuv420p, 320x240 [SAR 34:33 DAR 136:99], q=-1--1, 200 kb/s, 25 fps, 1k tbn, 25 tbc
  166. Metadata:
  167. encoder : Lavc56.1.100 libx264
  168. Stream #0:1: Video: h264 (libx264) ([7][0][0][0] / 0x0007), yuv420p, 320x240 [SAR 34:33 DAR 136:99], q=-1--1, 200 kb/s, 25 fps, 25 tbn, 25 tbc
  169. Metadata:
  170. encoder : Lavc56.1.100 libx264
  171. Stream #0:2: Audio: aac (libfdk_aac) ([10][0][0][0] / 0x000A), 22050 Hz, stereo, s16, 64 kb/s
  172. Metadata:
  173. encoder : Lavc56.1.100 libfdk_aac
  174. Output #1, flv, to 'rtmp://<address>':
  175. Stream #1:0: Video: h264 (libx264), yuv420p, 640x480 [SAR 34:33 DAR 136:99], q=-1--1, 250 kb/s, 25 fps, 25 tbn, 25 tbc
  176. Metadata:
  177. encoder : Lavc56.1.100 libx264
  178. Stream #1:1: Audio: aac (libfdk_aac), 22050 Hz, stereo, s16, 64 kb/s
  179. Metadata:
  180. encoder : Lavc56.1.100 libfdk_aac
  181. Stream mapping:
  182. Stream #0:0 (h264) -> overlay:main (graph 0)
  183. Stream #0:0 (h264) -> overlay:main (graph 1)
  184. Stream #1:0 (png) -> scale (graph 0)
  185. Stream #1:0 (png) -> scale (graph 1)
  186. overlay (graph 0) -> Stream #0:0 (libx264)
  187. overlay (graph 1) -> Stream #0:1 (libx264)
  188. Stream #0:1 -> #0:2 (mp2 (native) -> aac (libfdk_aac))
  189. Stream #0:0 -> #1:0 (h264 (native) -> h264 (libx264))
  190. Stream #0:1 -> #1:1 (mp2 (native) -> aac (libfdk_aac))
  191. Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement