[FFmpeg-user] Live stream to periscope or youtube doesn't seems to work
Guilherme Santos
especulador at gmail.com
Sun Dec 10 21:22:16 EET 2017
Hello, I was wondering why this command couldn't work... I'm trying to live
stream from my aws ubuntu to periscope. check this out:
$ ffmpeg -threads 0 -y -v verbose -re -f x11grab -video_size 1024x768 -i :1
-c:v libx264 -preset ultrafast -crf 3 -c:a aac -b:a 64k -pix_fmt yuv420p -r
15 -g 30 -b:v 2500k -bufsize 512k -f flv rtmp://or.pscp.tv:80/x/bb1hmhk85d71
ffmpeg version 2.4.3-1ubuntu1~trusty6 Copyright (c) 2000-2014 the FFmpeg
developers
built on Nov 22 2014 17:07:19 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
configuration: --prefix=/usr --extra-version='1ubuntu1~trusty6'
--build-suffix=-ffmpeg --toolchain=hardened --extra-cflags=
--extra-cxxflags= --libdir=/usr/lib/x86_64-linux-gnu
--shlibdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu
--enable-gpl --enable-shared --disable-stripping --enable-avresample
--enable-avisynth --enable-fontconfig --enable-gnutls --enable-ladspa
--enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca
--enable-libcdio --enable-libflite --enable-libfreetype --enable-libfribidi
--enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame
--enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp
--enable-libschroedinger --enable-libshine --enable-libspeex
--enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis
--enable-libvpx --enable-libwavpack --enable-libwebp --enable-opengl
--enable-x11grab --enable-libxvid --enable-libx265 --enable-libdc1394
--enable-libiec61883 --enable-libzvbi --enable-libzmq --enable-frei0r
--enable-libx264 --enable-libsoxr --enable-openal --enable-libopencv
libavutil 54. 7.100 / 54. 7.100
libavcodec 56. 1.100 / 56. 1.100
libavformat 56. 4.101 / 56. 4.101
libavdevice 56. 0.100 / 56. 0.100
libavfilter 5. 1.100 / 5. 1.100
libavresample 2. 1. 0 / 2. 1. 0
libswscale 3. 0.100 / 3. 0.100
libswresample 1. 1.100 / 1. 1.100
libpostproc 53. 0.100 / 53. 0.100
[x11grab @ 0x765380] device: :1 -> display: :1 x: 0 y: 0 width: 1024
height: 768
[x11grab @ 0x765380] shared memory extension found
Input #0, x11grab, from ':1':
Duration: N/A, start: 1512933527.007383, bitrate: 377110 kb/s
Stream #0:0: Video: rawvideo (RGB[16] / 0x10424752), rgb565le,
1024x768, 377110 kb/s, 29.97 tbr, 1000k tbn, 29.97 tbc
Parsing...
Parsed protocol: 0
Parsed host : or.pscp.tv
Parsed app : x
RTMP_Connect1, ... connected, handshaking
HandShake: Type Answer : 03
HandShake: Server Uptime : 0
HandShake: FMS Version : 0.0.0.0
HandShake: Handshaking finished....
RTMP_Connect1, handshaked
Invoking connect
HandleServerBW: server BW = 5000000
HandleClientBW: client BW = 5000000 0
HandleCtrl, received ctrl. type: 0, len: 6
HandleCtrl, Stream Begin 0
HandleChangeChunkSize, received: chunk size change to 512
RTMP_ClientPacket, received: invoke 190 bytes
(object begin)
Property: <Name: no-name., STRING: _result>
Property: <Name: no-name., NUMBER: 1.00>
Property: <Name: no-name., OBJECT>
(object begin)
Property: <Name: fmsVer, STRING: FMS/3,0,1,123>
Property: <Name: capabilities, NUMBER: 31.00>
(object end)
Property: <Name: no-name., OBJECT>
(object begin)
Property: <Name: level, STRING: status>
Property: <Name: code, STRING: NetConnection.Connect.Success>
Property: <Name: description, STRING: Connection succeeded.>
Property: <Name: objectEncoding, NUMBER: 0.00>
(object end)
(object end)
HandleInvoke, server invoking <_result>
HandleInvoke, received result for method call <connect>
Invoking releaseStream
Invoking FCPublish
Invoking createStream
RTMP_ClientPacket, received: invoke 102 bytes
(object begin)
Property: <Name: no-name., STRING: onFCPublish>
Property: <Name: no-name., NUMBER: 0.00>
Property: NULL
Property: <Name: no-name., OBJECT>
(object begin)
Property: <Name: code, STRING: NetStream.Publish.Start>
Property: <Name: description, STRING: livestream>
Property: <Name: level, STRING: status>
(object end)
(object end)
HandleInvoke, server invoking <onFCPublish>
HandleCtrl, received ctrl. type: 0, len: 6
HandleCtrl, Stream Begin 0
RTMP_ClientPacket, received: invoke 29 bytes
(object begin)
Property: <Name: no-name., STRING: _result>
Property: <Name: no-name., NUMBER: 4.00>
Property: NULL
Property: <Name: no-name., NUMBER: 1.00>
(object end)
HandleInvoke, server invoking <_result>
HandleInvoke, received result for method call <createStream>
Invoking publish
RTMP_ClientPacket, received: invoke 105 bytes
(object begin)
Property: <Name: no-name., STRING: onStatus>
Property: <Name: no-name., NUMBER: 3.00>
Property: NULL
Property: <Name: no-name., OBJECT>
(object begin)
Property: <Name: level, STRING: status>
Property: <Name: code, STRING: NetStream.Publish.Start>
Property: <Name: description, STRING: Start publishing>
(object end)
(object end)
HandleInvoke, server invoking <onStatus>
HandleInvoke, onStatus: NetStream.Publish.Start
[graph 0 input from stream 0:0 @ 0x753ae0] w:1024 h:768 pixfmt:rgb565le
tb:1/1000000 fr:30000/1001 sar:0/1 sws_param:flags=2
[auto-inserted scaler 0 @ 0x755920] w:iw h:ih flags:'0x4' interl:0
[format @ 0x753f80] auto-inserting filter 'auto-inserted scaler 0' between
the filter 'Parsed_null_0' and the filter 'format'
[auto-inserted scaler 0 @ 0x755920] w:1024 h:768 fmt:rgb565le sar:0/1 ->
w:1024 h:768 fmt:yuv420p sar:0/1 flags:0x4
[libx264 @ 0x77a920] VBV bufsize set but maxrate unspecified, ignored
[libx264 @ 0x77a920] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
AVX2 FMA3 LZCNT BMI2
[libx264 @ 0x77a920] profile Constrained Baseline, level 3.1
[libx264 @ 0x77a920] 264 - core 142 r2389 956c8d8 - H.264/MPEG-4 AVC codec
- Copyleft 2003-2014 - http://www.videolan.org/x264.html - options: cabac=0
ref=1 deblock=0:0:0 analyse=0:0 me=dia subme=0 psy=1 psy_rd=1.00:0.00
mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone=21,11
fast_pskip=1 chroma_qp_offset=0 threads=1 lookahead_threads=1
sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0
constrained_intra=0 bframes=0 weightp=0 keyint=30 keyint_min=3 scenecut=0
intra_refresh=0 rc=crf mbtree=0 crf=3.0 qcomp=0.60 qpmin=0 qpmax=69
qpstep=4 ip_ratio=1.40 aq=0
Output #0, flv, to 'rtmp://or.pscp.tv:80/x/bb1hmhk85d71':
Metadata:
encoder : Lavf56.4.101
Stream #0:0: Video: h264 (libx264) ([7][0][0][0] / 0x0007), yuv420p,
1024x768, q=-1--1, 2500 kb/s, 15 fps, 1k tbn, 15 tbc
Metadata:
encoder : Lavc56.1.100 libx264
Stream mapping:
Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libx264))
Press [q] to stop, [?] for help
frame= 41 fps=2.3 q=0.0 size= 24kB time=00:00:17.60 bitrate=
11.0kbits/s
--
Abraço,
Guilherme Santos
More information about the ffmpeg-user
mailing list