[FFmpeg-user] Live stream to periscope or youtube doesn't seems to work

Guilherme Santos especulador at gmail.com
Mon Dec 11 06:45:57 EET 2017


Hi, output to file works fine.. my display server is Xvfb.

I end up with this, but still all black:

~/ffmpeg-git-20171206-64bit-static$ ./ffmpeg  -f x11grab -video_size
1024x768 -i :1  -c:v libx264 -preset medium -framerate 30 -g 60  -b:v 1600k
-maxrate 1600k -bufsize 800k -vf "scale=960:540,format=yuv420p" -draw_mouse
0 -f flv rtmp://us-east.restream.io/live/re_468848_c9a40670d5cab9c81840

ffmpeg version N-89400-g5a412a5c3c-static https://johnvansickle.com/ffmpeg/
Copyright (c) 2000-2017 the FFmpeg developers

  built with gcc 6.4.0 (Debian 6.4.0-10) 20171112

  configuration: --enable-gpl --enable-version3 --enable-static
--disable-debug --disable-ffplay --disable-indev=sndio
--disable-outdev=sndio --cc=gcc-6 --enable-fontconfig --enable-frei0r
--enable-gnutls --enable-gray --enable-libfribidi --enable-libass
--enable-libvmaf --enable-libfreetype --enable-libmp3lame
--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg
--enable-librubberband --enable-librtmp --enable-libsoxr --enable-libspeex
--enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab
--enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264
--enable-libx265 --enable-libxvid --enable-libzimg

  libavutil      56.  5.100 / 56.  5.100

  libavcodec     58.  6.102 / 58.  6.102

  libavformat    58.  2.103 / 58.  2.103

  libavdevice    58.  0.100 / 58.  0.100

  libavfilter     7.  7.100 /  7.  7.100

  libswscale      5.  0.101 /  5.  0.101

  libswresample   3.  0.101 /  3.  0.101

  libpostproc    55.  0.100 / 55.  0.100

[x11grab @ 0x4627f00] 16 bits per pixel screen is not implemented. Update
your FFmpeg version to the newest one from Git. If the problem still
occurs, it means that your file has a feature which has not been
implemented.

Input #0, x11grab, from ':1':

  Duration: N/A, start: 1512967106.867233, bitrate: N/A

    Stream #0:0: Video: rawvideo (RGB[16] / 0x10424752), rgb565le,
1024x768, 29.97 fps, 29.97 tbr, 1000k tbn, 1000k tbc

Stream mapping:

  Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libx264))

Press [q] to stop, [?] for help

[libx264 @ 0x4630e40] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
AVX FMA3 BMI2 AVX2

[libx264 @ 0x4630e40] profile High, level 3.1

[libx264 @ 0x4630e40] 264 - core 152 r19 ba24899 - H.264/MPEG-4 AVC codec -
Copyleft 2003-2017 - http://www.videolan.org/x264.html - options: cabac=1
ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00
mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11
fast_pskip=1 chroma_qp_offset=-2 threads=1 lookahead_threads=1
sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0
constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1
weightb=1 open_gop=0 weightp=2 keyint=60 keyint_min=6 scenecut=40
intra_refresh=0 rc_lookahead=40 rc=cbr mbtree=1 bitrate=1600 ratetol=1.0
qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=1600 vbv_bufsize=800
nal_hrd=none filler=0 ip_ratio=1.40 aq=1:1.00

Output #0, flv, to 'rtmp://
us-east.restream.io/live/re_468848_c9a40670d5cab9c81840':

  Metadata:

    encoder         : Lavf58.2.103

    Stream #0:0: Video: h264 (libx264) ([7][0][0][0] / 0x0007), yuv420p,
960x540, q=-1--1, 1600 kb/s, 29.97 fps, 1k tbn, 29.97 tbc

    Metadata:

      encoder         : Lavc58.6.102 libx264

    Side data:

      cpb: bitrate max/min/avg: 1600000/0/1600000 buffer size: 800000
vbv_delay: -1

[flv @ 0x462fbc0] Failed to update header with correct duration.te=
15.9kbits/s speed=0.885x

[flv @ 0x462fbc0] Failed to update header with correct filesize.

frame=  315 fps=6.6 q=0.0 Lsize=      93kB time=00:00:46.68 bitrate=
16.3kbits/s speed=0.982x

video:86kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: 7.443541%

[libx264 @ 0x4630e40] frame I:6     Avg QP: 0.13  size: 12514

[libx264 @ 0x4630e40] frame P:79    Avg QP: 0.59  size:    80

[libx264 @ 0x4630e40] frame B:230   Avg QP: 5.14  size:    28

[libx264 @ 0x4630e40] consecutive B-frames:  1.9%  0.6%  4.8% 92.7%

[libx264 @ 0x4630e40] mb I  I16..4: 95.8%  0.0%  4.2%

[libx264 @ 0x4630e40] mb P  I16..4:  0.0%  0.0%  0.0%  P16..4:  0.1%  0.0%
0.0%  0.0%  0.0%    skip:99.9%

[libx264 @ 0x4630e40] mb B  I16..4:  0.0%  0.0%  0.0%  B16..8:  0.0%  0.0%
0.0%  direct: 0.0%  skip:100.0%  L0:33.3% L1:66.7% BI: 0.0%

[libx264 @ 0x4630e40] 8x8 transform intra:0.0% inter:46.2%

[libx264 @ 0x4630e40] coded y,uvDC,uvAC intra: 4.0% 5.4% 5.4% inter: 0.0%
0.0% 0.0%

[libx264 @ 0x4630e40] i16 v,h,dc,p: 95%  4%  1%  0%

[libx264 @ 0x4630e40] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 20% 47%  9%  5%  4%
3%  5%  3%  4%

[libx264 @ 0x4630e40] i8c dc,h,v,p: 76% 22%  2%  0%

[libx264 @ 0x4630e40] Weighted P-Frames: Y:0.0% UV:0.0%

[libx264 @ 0x4630e40] ref P L0: 99.5%  0.0%  0.5%

[libx264 @ 0x4630e40] ref B L0:  1.9% 98.1%

[libx264 @ 0x4630e40] kb/s:14.93


More information about the ffmpeg-user mailing list