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

2017-12-10 Thread Guilherme Santos
,p: 95%  3%  2%  0%

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

[libx264 @ 0xc3e9a80] ref P L0: 92.5%  2.0%  4.1%  1.4%

[libx264 @ 0xc3e9a80] ref B L0: 33.3% 64.7%  2.0%

[libx264 @ 0xc3e9a80] ref B L1: 93.8%  6.2%

[libx264 @ 0xc3e9a80] kb/s:6.10



Thanks again and in advance!

Kind regards, Guilherme

On Sun, Dec 10, 2017 at 8:27 PM, Lou Logan <l...@lrcd.com> wrote:

> On Sun, Dec 10, 2017, at 10:22 AM, Guilherme Santos wrote:
> > 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
>
> Remove "-threads 0" input option.
>
> Remove "-re" input option. It should not be used with x11grab. From the
> documentation: "Should not be used with actual grab devices or live
> input streams (where it can cause packet loss)."
>
> Replace "-r 15" output option with "-framerate 15" input option. Verify
> that the video service accepts 15 fps (I'm not sure if it will or not).
> If not, use a more standard rate, such as 25, and adjust "-g" to be
> approximately double your frame rate.
>
> Remove "-crf 3". That's overkill for streaming and is mutually exclusive
> with "-b:v".
>
> Add "-maxrate" option.
>
> Change "-bufsize" to be 1-2x "-maxrate".
>
> Experiment with -b:v, -bufsize, -maxrate to see what works best for you.
>
> > ffmpeg version 2.4.3-1ubuntu1~trusty6 Copyright (c) 2000-2014 the FFmpeg
> > developers
>
> Ancient and unsupported. Please update. An easy solution is to use a
> static build from:
> http://johnvansickle.com/ffmpeg/
>
> (I can't recall if x11grab is supported by these builds, but I'll assume
> it is.)
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".




-- 
Abraço,
  Guilherme Santos
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

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

2017-12-10 Thread Guilherme Santos
_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
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".