[FFmpeg-user] Support request - configuring ffmpeg for YouTube Live 60fps

Stuart Porter stuart.porter at ctvc.co.uk
Thu Apr 26 13:30:49 EEST 2018


Hi Gyan,

thanks for your help - I think I've worked it out thanks to your advice.
I'm workign with the raw video and ahve found I can get a pretty solid
stream using h264 if I change the -pixel_format yuyv422 to -vcodec jpegm. a
bit of buffering but I can tweak soem of the config to allow for that.

using VP9 I'm still not getting anythign out, even if I swap -pixel_format
yuyv422 to -vcodec jpegm

e.g. this
ffmpeg -rtbufsize 1G -f dshow -video_size 1920x1080 -r 30 -vcodec mjpeg -ar
22050 -ac 1 -i video="AVerMedia Live Gamer HD 2":audio="Line (3- AVerMedia
Live Gamer H" -r 30 -g 60 -s 1920x1080 -quality good -speed 8 -threads 16
-row-mt 1 -tile-columns 3 -frame-parallel 1 -qmin 4 -qmax 48 -b:v 7800k
-c:v libvpx-vp9 -b:a 128k -c:a libopus -f webm rtmp://
a.rtmp.youtube.com/live2/[my key]

give this

[mjpeg @ 00000000003d80c0] mjpeg_decode_dc: bad vlc: 0:0
(00000000003d2548)bits/s speed=0.142x
[mjpeg @ 00000000003d80c0] error dc
[mjpeg @ 00000000003d80c0] error y=119 x=5
[mjpeg @ 00000000003d80c0] mjpeg_decode_dc: bad vlc: 0:0
(00000000003d2548)its/s speed=0.158x
[mjpeg @ 00000000003d80c0] error dc
[mjpeg @ 00000000003d80c0] error y=26 x=94
[mjpeg @ 00000000003d80c0] EOI missing, emulating
[mjpeg @ 00000000003d80c0] Found EOI before any SOF,
ignoringtrate=9613.8kbits/s speed=0.154x
[mjpeg @ 00000000003d80c0] No JPEG data found in image
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 00000000003d80c0] error count: 65time=00:00:04.25
bitrate=10494.8kbits/s speed=0.148x
[mjpeg @ 00000000003d80c0] error y=49 x=62
[mjpeg @ 00000000003d80c0] EOI missing, emulating
[mjpeg @ 00000000003d80c0] No JPEG data found in image
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 00000000003d80c0] error count: 65time=00:00:05.42
bitrate=8764.9kbits/s speed=0.179x
[mjpeg @ 00000000003d80c0] error y=58 x=86
[mjpeg @ 00000000003d80c0] EOI missing, emulating
[mjpeg @ 00000000003d80c0] Found EOI before any SOF,
ignoringtrate=8891.6kbits/s speed=0.175x
[mjpeg @ 00000000003d80c0] No JPEG data found in image
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 00000000003d80c0] overread 854kB time=00:00:05.42
bitrate=9906.7kbits/s speed=0.158x
[mjpeg @ 00000000003d80c0] EOI missing, emulating
[mjpeg @ 00000000003d80c0] unable to decode APP fields: Invalid data found
when processing input
[mjpeg @ 00000000003d80c0] Found EOI before any SOF, ignoring
[mjpeg @ 00000000003d80c0] No JPEG data found in image
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 00000000003d80c0] overread 872kB time=00:00:06.62
bitrate=8628.0kbits/s speed=0.181x
[mjpeg @ 00000000003d80c0] overread 801kB time=00:00:06.62
bitrate=8786.6kbits/s speed=0.176x
[mjpeg @ 00000000003d80c0] EOI missing, emulating
[mjpeg @ 00000000003d80c0] Found EOI before any SOF, ignoring
[mjpeg @ 00000000003d80c0] No JPEG data found in image
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 00000000003d80c0] overread 844kB time=00:00:06.62
bitrate=9335.5kbits/s speed=0.167x
[mjpeg @ 00000000003d80c0] EOI missing, emulating
[mjpeg @ 00000000003d80c0] Found EOI before any SOF, ignoring
[mjpeg @ 00000000003d80c0] No JPEG data found in image
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 00000000003d80c0] overread 826kB time=00:00:08.01
bitrate=8310.8kbits/s speed=0.191x
[mjpeg @ 00000000003d80c0] EOI missing, emulating
av_interleaved_write_frame(): Unknown error
    Last message repeated 1 times
Error writing trailer of rtmp://a.rtmp.youtube.com/live2/[my key]: Error
number -10053 occurred
frame=  216 fps=4.5 q=0.0 Lsize=    8254kB time=00:00:08.03
bitrate=8420.7kbits/s speed=0.169x
video:8246kB audio:79kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: unknown
Conversion failed!



*Stuart Porter **| Head of Digital  *

*C**T**V**C* <http://www.ctvc.co.uk/> | McBeath House | 1st Floor | 310
Goswell Road | London | EC1V 7LW
<https://www.google.com/maps/dir//CTVC,+MacBeath+House,+310+Goswell+Rd,+London+EC1V+7LW,+UK/@51.5303537,-0.1033914,18.08z/data=%214m8%214m7%211m0%211m5%211m1%211s0x48760346117ae513:0x29b32b81d4111d0a%212m2%211d-0.1021599%212d51.5297478?hl=en-GB>(+44)
0207 940 8495 | (+44) 07870 233 359 | Skype: stuartctvc

On 26 April 2018 at 10:57, Gyan Doshi <gyandoshi at gmail.com> wrote:

>
>
> On 4/26/2018 2:25 PM, Stuart Porter wrote:
>
>> However the video is completely blank
>>
>
> Even when played with ffplay?
>
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
>

-- 


Registered in England No. 1375941 (Registered Office 12 Warwick Square  
London SW1V 2AA)
Charity No. 276286



This email, and any attachment, is 
confidential. If you have received it in error, please delete it from your 
system, do not use or disclose the information in any way, and notify the 
originator immediately. The contents of this message may contain personal 
views which are not the views of CTVC, unless specifically stated. Please 
note CTVC does not warrant that any attachments are free from viruses or 
other defects and accepts no liability for any losses resulting from 
infected email transmissions.



More information about the ffmpeg-user mailing list