Support request - configuring ffmpeg for YouTube Live 60fps

classic Classic list List threaded Threaded
18 messages Options
Reply | Threaded
Open this post in threaded view
|

Support request - configuring ffmpeg for YouTube Live 60fps

Stuart Porter
Hi there,

Firstly, forgive any rookie mistakes – I’m new here and not a seasoned
support blog user. Neither am I a developer of any sort.

I’m working with a developer though and we are trying to configure ffmpeg
to stream live from a video capture device capturing at 60fps (AverMedia
Live Gamer HD2) with audio, to YouTube Live using rtmp. The machine I want
to stream from is Windows7 64-bit with Intel Core i5-6400 CPU @ 2.70GHz

I’m happy to use either h264 or vp9 codec. And have tried configuring
numerous examples taken from previous posts but nothing works.

e.g. for VP9 I have tried

 ffmpeg -f dshow -video_size 1920x1080 -r 60 -i video="AVerMedia Live Gamer
HD 2":audio="Line (3- AVerMedia Live Gamer H" -r 30 -g 60 -s 1920x1080
-quality good -speed 5 -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]

results in a string of failures such as

[dshow @ 00000000003d4dc0] real-time buffer [AVerMedia Live Gamer HD 2]
[video input] too full or near too full (272% of size: 3041280 [rtbufsize
parameter])! frame dropped!

We have tried adjusting the quality, speed, framerate and bandwidth but get
very similar results each time.

However, when I use the software which comes with the video capture card I
can get a perfect stream – so I know it’s not down to the capacity of the
card or other hardware on the machine. I’m not choosing to use that
software because we need to remotely control the video and the current
software doesn’t allow that.

Can anyone help me work out where I’m going wrong?

*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

--


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.

_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Support request - configuring ffmpeg for YouTube Live 60fps

Gyan Doshi


On 4/25/2018 9:15 PM, Stuart Porter wrote:

>
>   ffmpeg -f dshow -video_size 1920x1080 -r 60 -i video="AVerMedia Live Gamer
> HD 2":audio="Line (3- AVerMedia Live Gamer H" -r 30 -g 60 -s 1920x1080
> -quality good -speed 5 -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]
>
> results in a string of failures such as
>
> [dshow @ 00000000003d4dc0] real-time buffer [AVerMedia Live Gamer HD 2]
> [video input] too full or near too full (272% of size: 3041280 [rtbufsize
> parameter])! frame dropped!
>
> We have tried adjusting the quality, speed, framerate and bandwidth but get
> very similar results each time.

Have you tried changing the parameter indicated by the error msg?

e.g.   -rtbufsize 256M  to be placed before  -i video=...


Gyan
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Support request - configuring ffmpeg for YouTube Live 60fps

Stuart Porter
Thanks for replying Gyan, :-)

We have tried adding that in yes, though admittedly not in the specific
test config mentioned above.

I get something very similar.





*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 25 April 2018 at 16:53, Gyan Doshi <[hidden email]> wrote:

>
>
> On 4/25/2018 9:15 PM, Stuart Porter wrote:
>
>
>>   ffmpeg -f dshow -video_size 1920x1080 -r 60 -i video="AVerMedia Live
>> Gamer
>> HD 2":audio="Line (3- AVerMedia Live Gamer H" -r 30 -g 60 -s 1920x1080
>> -quality good -speed 5 -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
>> <http://a.rtmp.youtube.com/live2/%5Bmy> key]
>>
>> results in a string of failures such as
>>
>> [dshow @ 00000000003d4dc0] real-time buffer [AVerMedia Live Gamer HD 2]
>> [video input] too full or near too full (272% of size: 3041280 [rtbufsize
>> parameter])! frame dropped!
>>
>> We have tried adjusting the quality, speed, framerate and bandwidth but
>> get
>> very similar results each time.
>>
>
> Have you tried changing the parameter indicated by the error msg?
>
> e.g.   -rtbufsize 256M  to be placed before  -i video=...
>
>
> Gyan
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] 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.


_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".

image.png (33K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Support request - configuring ffmpeg for YouTube Live 60fps

Stuart Porter
However, if I increase the -rtbufsize to 1G I get this



Before it eventually fails

*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 25 April 2018 at 17:02, Stuart Porter <[hidden email]> wrote:

> Thanks for replying Gyan, :-)
>
> We have tried adding that in yes, though admittedly not in the specific
> test config mentioned above.
>
> I get something very similar.
>
>
>
>
>
> *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 25 April 2018 at 16:53, Gyan Doshi <[hidden email]> wrote:
>
>>
>>
>> On 4/25/2018 9:15 PM, Stuart Porter wrote:
>>
>>
>>>   ffmpeg -f dshow -video_size 1920x1080 -r 60 -i video="AVerMedia Live
>>> Gamer
>>> HD 2":audio="Line (3- AVerMedia Live Gamer H" -r 30 -g 60 -s 1920x1080
>>> -quality good -speed 5 -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
>>> <http://a.rtmp.youtube.com/live2/%5Bmy> key]
>>>
>>> results in a string of failures such as
>>>
>>> [dshow @ 00000000003d4dc0] real-time buffer [AVerMedia Live Gamer HD 2]
>>> [video input] too full or near too full (272% of size: 3041280 [rtbufsize
>>> parameter])! frame dropped!
>>>
>>> We have tried adjusting the quality, speed, framerate and bandwidth but
>>> get
>>> very similar results each time.
>>>
>>
>> Have you tried changing the parameter indicated by the error msg?
>>
>> e.g.   -rtbufsize 256M  to be placed before  -i video=...
>>
>>
>> Gyan
>> _______________________________________________
>> ffmpeg-user mailing list
>> [hidden email]
>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>>
>> To unsubscribe, visit link above, or email
>> [hidden email] 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.


_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".

image.png (33K) Download Attachment
image.png (66K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Support request - configuring ffmpeg for YouTube Live 60fps

Micael Silva
In reply to this post by Stuart Porter
Are you using Intel i5, right? Have you checked if is it possible to use
the hardware acceleration encoding? Many processors came with Quick Sync
Video and ffmpeg supports it. Your error could be caused by frame queue on
a slow encoding.

On Wed, 25 Apr 2018, 12:45 Stuart Porter, <[hidden email]> wrote:

> Hi there,
>
> Firstly, forgive any rookie mistakes – I’m new here and not a seasoned
> support blog user. Neither am I a developer of any sort.
>
> I’m working with a developer though and we are trying to configure ffmpeg
> to stream live from a video capture device capturing at 60fps (AverMedia
> Live Gamer HD2) with audio, to YouTube Live using rtmp. The machine I want
> to stream from is Windows7 64-bit with Intel Core i5-6400 CPU @ 2.70GHz
>
> I’m happy to use either h264 or vp9 codec. And have tried configuring
> numerous examples taken from previous posts but nothing works.
>
> e.g. for VP9 I have tried
>
>  ffmpeg -f dshow -video_size 1920x1080 -r 60 -i video="AVerMedia Live Gamer
> HD 2":audio="Line (3- AVerMedia Live Gamer H" -r 30 -g 60 -s 1920x1080
> -quality good -speed 5 -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
> <http://a.rtmp.youtube.com/live2/%5Bmy> key]
>
> results in a string of failures such as
>
> [dshow @ 00000000003d4dc0] real-time buffer [AVerMedia Live Gamer HD 2]
> [video input] too full or near too full (272% of size: 3041280 [rtbufsize
> parameter])! frame dropped!
>
> We have tried adjusting the quality, speed, framerate and bandwidth but get
> very similar results each time.
>
> However, when I use the software which comes with the video capture card I
> can get a perfect stream – so I know it’s not down to the capacity of the
> card or other hardware on the machine. I’m not choosing to use that
> software because we need to remotely control the video and the current
> software doesn’t allow that.
>
> Can anyone help me work out where I’m going wrong?
>
> *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
>
> --
>
>
> 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.
>
>
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Support request - configuring ffmpeg for YouTube Live 60fps

Gyan Doshi
In reply to this post by Stuart Porter


On 4/25/2018 9:41 PM, Stuart Porter wrote:
> However, if I increase the -rtbufsize to 1G I get this
>
>
>
> Before it eventually fails

Message appears to be missing..
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Support request - configuring ffmpeg for YouTube Live 60fps

Brainiarc7
In reply to this post by Micael Silva
Try this if you can use VAAPI:
https://gist.github.com/Brainiarc7/7b6049aac3145927ae1cfeafc8f682c1

On 25 April 2018 at 19:18, Micael Silva <[hidden email]> wrote:

> Are you using Intel i5, right? Have you checked if is it possible to use
> the hardware acceleration encoding? Many processors came with Quick Sync
> Video and ffmpeg supports it. Your error could be caused by frame queue on
> a slow encoding.
>
> On Wed, 25 Apr 2018, 12:45 Stuart Porter, <[hidden email]> wrote:
>
>> Hi there,
>>
>> Firstly, forgive any rookie mistakes – I’m new here and not a seasoned
>> support blog user. Neither am I a developer of any sort.
>>
>> I’m working with a developer though and we are trying to configure ffmpeg
>> to stream live from a video capture device capturing at 60fps (AverMedia
>> Live Gamer HD2) with audio, to YouTube Live using rtmp. The machine I want
>> to stream from is Windows7 64-bit with Intel Core i5-6400 CPU @ 2.70GHz
>>
>> I’m happy to use either h264 or vp9 codec. And have tried configuring
>> numerous examples taken from previous posts but nothing works.
>>
>> e.g. for VP9 I have tried
>>
>>  ffmpeg -f dshow -video_size 1920x1080 -r 60 -i video="AVerMedia Live Gamer
>> HD 2":audio="Line (3- AVerMedia Live Gamer H" -r 30 -g 60 -s 1920x1080
>> -quality good -speed 5 -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
>> <http://a.rtmp.youtube.com/live2/%5Bmy> key]
>>
>> results in a string of failures such as
>>
>> [dshow @ 00000000003d4dc0] real-time buffer [AVerMedia Live Gamer HD 2]
>> [video input] too full or near too full (272% of size: 3041280 [rtbufsize
>> parameter])! frame dropped!
>>
>> We have tried adjusting the quality, speed, framerate and bandwidth but get
>> very similar results each time.
>>
>> However, when I use the software which comes with the video capture card I
>> can get a perfect stream – so I know it’s not down to the capacity of the
>> card or other hardware on the machine. I’m not choosing to use that
>> software because we need to remotely control the video and the current
>> software doesn’t allow that.
>>
>> Can anyone help me work out where I’m going wrong?
>>
>> *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
>>
>> --
>>
>>
>> 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.
>>
>>
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Support request - configuring ffmpeg for YouTube Live 60fps

Stuart Porter
In reply to this post by Gyan Doshi
Thanks Guan,

I pasted a screengrab there but it's been stripped out. I've left the
office now but will find a way to send it later.

On Wed, 25 Apr 2018, 17:22 Gyan Doshi, <[hidden email]> wrote:

>
>
> On 4/25/2018 9:41 PM, Stuart Porter wrote:
> > However, if I increase the -rtbufsize to 1G I get this
> >
> >
> >
> > Before it eventually fails
>
> Message appears to be missing..
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] 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.

_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Support request - configuring ffmpeg for YouTube Live 60fps

Stuart Porter
In reply to this post by Micael Silva
Thanks micael, I don't know. Ill get the developer to have a look.

On Wed, 25 Apr 2018, 17:26 Micael Silva, <[hidden email]> wrote:

> Are you using Intel i5, right? Have you checked if is it possible to use
> the hardware acceleration encoding? Many processors came with Quick Sync
> Video and ffmpeg supports it. Your error could be caused by frame queue on
> a slow encoding.
>
> On Wed, 25 Apr 2018, 12:45 Stuart Porter, <[hidden email]>
> wrote:
>
> > Hi there,
> >
> > Firstly, forgive any rookie mistakes – I’m new here and not a seasoned
> > support blog user. Neither am I a developer of any sort.
> >
> > I’m working with a developer though and we are trying to configure ffmpeg
> > to stream live from a video capture device capturing at 60fps (AverMedia
> > Live Gamer HD2) with audio, to YouTube Live using rtmp. The machine I
> want
> > to stream from is Windows7 64-bit with Intel Core i5-6400 CPU @ 2.70GHz
> >
> > I’m happy to use either h264 or vp9 codec. And have tried configuring
> > numerous examples taken from previous posts but nothing works.
> >
> > e.g. for VP9 I have tried
> >
> >  ffmpeg -f dshow -video_size 1920x1080 -r 60 -i video="AVerMedia Live
> Gamer
> > HD 2":audio="Line (3- AVerMedia Live Gamer H" -r 30 -g 60 -s 1920x1080
> > -quality good -speed 5 -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
> <http://a.rtmp.youtube.com/live2/%5Bmy>
> > <http://a.rtmp.youtube.com/live2/%5Bmy> key]
> >
> > results in a string of failures such as
> >
> > [dshow @ 00000000003d4dc0] real-time buffer [AVerMedia Live Gamer HD 2]
> > [video input] too full or near too full (272% of size: 3041280 [rtbufsize
> > parameter])! frame dropped!
> >
> > We have tried adjusting the quality, speed, framerate and bandwidth but
> get
> > very similar results each time.
> >
> > However, when I use the software which comes with the video capture card
> I
> > can get a perfect stream – so I know it’s not down to the capacity of the
> > card or other hardware on the machine. I’m not choosing to use that
> > software because we need to remotely control the video and the current
> > software doesn’t allow that.
> >
> > Can anyone help me work out where I’m going wrong?
> >
> > *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
> >
> > --
> >
> >
> > 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.
> >
> >
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] 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.

_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Support request - configuring ffmpeg for YouTube Live 60fps

Stuart Porter
In reply to this post by Brainiarc7
Thanks Dennis.

Will VAAPI work on Win7?

On Wed, 25 Apr 2018, 17:36 Dennis Mungai, <[hidden email]> wrote:

> Try this if you can use VAAPI:
> https://gist.github.com/Brainiarc7/7b6049aac3145927ae1cfeafc8f682c1
>
> On 25 April 2018 at 19:18, Micael Silva <[hidden email]> wrote:
> > Are you using Intel i5, right? Have you checked if is it possible to use
> > the hardware acceleration encoding? Many processors came with Quick Sync
> > Video and ffmpeg supports it. Your error could be caused by frame queue
> on
> > a slow encoding.
> >
> > On Wed, 25 Apr 2018, 12:45 Stuart Porter, <[hidden email]>
> wrote:
> >
> >> Hi there,
> >>
> >> Firstly, forgive any rookie mistakes – I’m new here and not a seasoned
> >> support blog user. Neither am I a developer of any sort.
> >>
> >> I’m working with a developer though and we are trying to configure
> ffmpeg
> >> to stream live from a video capture device capturing at 60fps (AverMedia
> >> Live Gamer HD2) with audio, to YouTube Live using rtmp. The machine I
> want
> >> to stream from is Windows7 64-bit with Intel Core i5-6400 CPU @ 2.70GHz
> >>
> >> I’m happy to use either h264 or vp9 codec. And have tried configuring
> >> numerous examples taken from previous posts but nothing works.
> >>
> >> e.g. for VP9 I have tried
> >>
> >>  ffmpeg -f dshow -video_size 1920x1080 -r 60 -i video="AVerMedia Live
> Gamer
> >> HD 2":audio="Line (3- AVerMedia Live Gamer H" -r 30 -g 60 -s 1920x1080
> >> -quality good -speed 5 -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
> <http://a.rtmp.youtube.com/live2/%5Bmy>
> >> <http://a.rtmp.youtube.com/live2/%5Bmy> key]
> >>
> >> results in a string of failures such as
> >>
> >> [dshow @ 00000000003d4dc0] real-time buffer [AVerMedia Live Gamer HD 2]
> >> [video input] too full or near too full (272% of size: 3041280
> [rtbufsize
> >> parameter])! frame dropped!
> >>
> >> We have tried adjusting the quality, speed, framerate and bandwidth but
> get
> >> very similar results each time.
> >>
> >> However, when I use the software which comes with the video capture
> card I
> >> can get a perfect stream – so I know it’s not down to the capacity of
> the
> >> card or other hardware on the machine. I’m not choosing to use that
> >> software because we need to remotely control the video and the current
> >> software doesn’t allow that.
> >>
> >> Can anyone help me work out where I’m going wrong?
> >>
> >> *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
> >>
> >> --
> >>
> >>
> >> 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.
> >>
> >>
> > _______________________________________________
> > ffmpeg-user mailing list
> > [hidden email]
> > http://ffmpeg.org/mailman/listinfo/ffmpeg-user
> >
> > To unsubscribe, visit link above, or email
> > [hidden email] with subject "unsubscribe".
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] 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.

_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Support request - configuring ffmpeg for YouTube Live 60fps

Brainiarc7
Sorry, no.


However, if you have access to the community edition of the Intel
Media SDK, you can make a Windows build (natively, or cross-compiled)
with enablement for the QSV-based encoders.

What that gist documents is both VAAPI and NVENC. I should update it
with information for QSV.

On 25 April 2018 at 19:43, Stuart Porter <[hidden email]> wrote:

> Thanks Dennis.
>
> Will VAAPI work on Win7?
>
> On Wed, 25 Apr 2018, 17:36 Dennis Mungai, <[hidden email]> wrote:
>
>> Try this if you can use VAAPI:
>> https://gist.github.com/Brainiarc7/7b6049aac3145927ae1cfeafc8f682c1
>>
>> On 25 April 2018 at 19:18, Micael Silva <[hidden email]> wrote:
>> > Are you using Intel i5, right? Have you checked if is it possible to use
>> > the hardware acceleration encoding? Many processors came with Quick Sync
>> > Video and ffmpeg supports it. Your error could be caused by frame queue
>> on
>> > a slow encoding.
>> >
>> > On Wed, 25 Apr 2018, 12:45 Stuart Porter, <[hidden email]>
>> wrote:
>> >
>> >> Hi there,
>> >>
>> >> Firstly, forgive any rookie mistakes – I’m new here and not a seasoned
>> >> support blog user. Neither am I a developer of any sort.
>> >>
>> >> I’m working with a developer though and we are trying to configure
>> ffmpeg
>> >> to stream live from a video capture device capturing at 60fps (AverMedia
>> >> Live Gamer HD2) with audio, to YouTube Live using rtmp. The machine I
>> want
>> >> to stream from is Windows7 64-bit with Intel Core i5-6400 CPU @ 2.70GHz
>> >>
>> >> I’m happy to use either h264 or vp9 codec. And have tried configuring
>> >> numerous examples taken from previous posts but nothing works.
>> >>
>> >> e.g. for VP9 I have tried
>> >>
>> >>  ffmpeg -f dshow -video_size 1920x1080 -r 60 -i video="AVerMedia Live
>> Gamer
>> >> HD 2":audio="Line (3- AVerMedia Live Gamer H" -r 30 -g 60 -s 1920x1080
>> >> -quality good -speed 5 -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
>> <http://a.rtmp.youtube.com/live2/%5Bmy>
>> >> <http://a.rtmp.youtube.com/live2/%5Bmy> key]
>> >>
>> >> results in a string of failures such as
>> >>
>> >> [dshow @ 00000000003d4dc0] real-time buffer [AVerMedia Live Gamer HD 2]
>> >> [video input] too full or near too full (272% of size: 3041280
>> [rtbufsize
>> >> parameter])! frame dropped!
>> >>
>> >> We have tried adjusting the quality, speed, framerate and bandwidth but
>> get
>> >> very similar results each time.
>> >>
>> >> However, when I use the software which comes with the video capture
>> card I
>> >> can get a perfect stream – so I know it’s not down to the capacity of
>> the
>> >> card or other hardware on the machine. I’m not choosing to use that
>> >> software because we need to remotely control the video and the current
>> >> software doesn’t allow that.
>> >>
>> >> Can anyone help me work out where I’m going wrong?
>> >>
>> >> *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
>> >>
>> >> --
>> >>
>> >>
>> >> 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.
>> >>
>> >>
>> > _______________________________________________
>> > ffmpeg-user mailing list
>> > [hidden email]
>> > http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>> >
>> > To unsubscribe, visit link above, or email
>> > [hidden email] with subject "unsubscribe".
>> _______________________________________________
>> ffmpeg-user mailing list
>> [hidden email]
>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>>
>> To unsubscribe, visit link above, or email
>> [hidden email] 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.
>
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Support request - configuring ffmpeg for YouTube Live 60fps

Gyan Doshi
In reply to this post by Stuart Porter

On 4/25/2018 10:09 PM, Stuart Porter wrote:
> Thanks Guan,
>
> I pasted a screengrab there but it's been stripped out. I've left the
> office now but will find a way to send it later.

Oh, got it then. They show up as attachments.

With 1G, there's no longer a buffer error. Apparently, ffmpeg is finding
corrupted frames in the video input.

Does the output of

     ffmpeg -f dshow -video_size 1920x1080 -r 60 -rtbufsize 1G -i
video="AVerMedia Live Gamer HD 2":audio="Line (3- AVerMedia Live Gamer
H" -c copy -t 30 test.mov

appear free of corruption or missing frames? And without those latest
errors?

Gyan
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Support request - configuring ffmpeg for YouTube Live 60fps

Stuart Porter
Thanks Gyan,

No the conversion still fails

when i run this
ffmpeg -f dshow -video_size 1920x1080 -r 60 -rtbufsize 1G -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/[my key]

It looks like its trying to start ok but then ends with

[mjpeg @ 000000000042f900] overread 836kB time=00:00:08.13
bitrate=7693.2kbits/s dup=0 drop=228 speed=0.181x
[mjpeg @ 000000000042f900] EOI missing, emulating
[mjpeg @ 000000000042f900] No JPEG data found in image
Error while decoding stream #0:0: Invalid data found when processing input
[mjpeg @ 000000000042f900] overread 805kB time=00:00:08.73
bitrate=7505.3kbits/s dup=0 drop=239 speed=0.184x
[mjpeg @ 000000000042f900] EOI missing, emulating
[mjpeg @ 000000000042f900] No JPEG data found in image
Error while decoding stream #0:0: Invalid data found when processing input
av_interleaved_write_frame(): Unknown errorime=00:00:08.73
bitrate=7593.5kbits/s dup=0 drop=242 speed=0.181x
    Last message repeated 1 times
Error writing trailer of rtmp://a.rtmp.youtube.com/live2/prx7-768a-q4qx-2tz4:
Error number -10053 occurred
frame=  246 fps=4.7 q=0.0 Lsize=    8227kB time=00:00:08.75
bitrate=7695.9kbits/s dup=0 drop=243 speed=0.166x
video:8191kB audio:114kB 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 25 April 2018 at 17:53, Gyan Doshi <[hidden email]> wrote:

>
> On 4/25/2018 10:09 PM, Stuart Porter wrote:
>
>> Thanks Guan,
>>
>> I pasted a screengrab there but it's been stripped out. I've left the
>> office now but will find a way to send it later.
>>
>
> Oh, got it then. They show up as attachments.
>
> With 1G, there's no longer a buffer error. Apparently, ffmpeg is finding
> corrupted frames in the video input.
>
> Does the output of
>
>     ffmpeg -f dshow -video_size 1920x1080 -r 60 -rtbufsize 1G -i
> video="AVerMedia Live Gamer HD 2":audio="Line (3- AVerMedia Live Gamer H"
> -c copy -t 30 test.mov
>
> appear free of corruption or missing frames? And without those latest
> errors?
>
> Gyan
>
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] 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.

_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Support request - configuring ffmpeg for YouTube Live 60fps

Stuart Porter
In reply to this post by Gyan Doshi
When i run that it seems fine

c:\ffmpeg\bin>ffmpeg -f dshow -video_size 1920x1080 -r 60 -rtbufsize 1G -i
video="AVerMedia Live Gamer HD 2":audio="Line
 (3- AVerMedia Live Gamer H" -c copy -t 30 test.mov
ffmpeg version N-90793-g30940be359 Copyright (c) 2000-2018 the FFmpeg
developers
  built with gcc 7.3.0 (GCC)
  configuration: --enable-gpl --enable-version3 --enable-sdl2
--enable-bzlib --enable-fontconfig --enable-gnutls --enabl
e-iconv --enable-libass --enable-libbluray --enable-libfreetype
--enable-libmp3lame --enable-libopencore-amrnb --enable-
libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine
--enable-libsnappy --enable-libsoxr --enable-l
ibtheora --enable-libtwolame --enable-libvpx --enable-libwavpack
--enable-libwebp --enable-libx264 --enable-libx265 --en
able-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp
--enable-libvidstab --enable-libvorbis --enable-l
ibvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid
--enable-libaom --enable-libmfx --enable-amf --enabl
e-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec
--enable-dxva2 --enable-avisynth
  libavutil      56. 15.100 / 56. 15.100
  libavcodec     58. 19.100 / 58. 19.100
  libavformat    58. 13.100 / 58. 13.100
  libavdevice    58.  4.100 / 58.  4.100
  libavfilter     7. 18.100 /  7. 18.100
  libswscale      5.  2.100 /  5.  2.100
  libswresample   3.  2.100 /  3.  2.100
  libpostproc    55.  2.100 / 55.  2.100
[mjpeg @ 000000000037b780] Found EOI before any SOF, ignoring
[mjpeg @ 000000000037b780] No JPEG data found in image
Guessed Channel Layout for Input Stream #0.1 : stereo
Input #0, dshow, from 'video=AVerMedia Live Gamer HD 2:audio=Line (3-
AVerMedia Live Gamer H':
  Duration: N/A, start: 248386.756000, bitrate: N/A
    Stream #0:0: Video: mjpeg (MJPG / 0x47504A4D), yuvj422p(pc,
bt470bg/unknown/unknown), 1920x1080, 60 fps, 60 tbr, 100
00k tbn, 10000k tbc
    Stream #0:1: Audio: pcm_s16le, 44100 Hz, stereo, s16, 1411 kb/s
Output #0, mov, to 'test.mov':
  Metadata:
    encoder         : Lavf58.13.100
    Stream #0:0: Video: mjpeg (jpeg / 0x6765706A), yuvj422p(pc,
bt470bg/unknown/unknown), 1920x1080, q=2-31, 60 fps, 60
tbr, 15360 tbn, 60 tbc
    Stream #0:1: Audio: pcm_s16le (sowt / 0x74776F73), 44100 Hz, stereo,
s16, 1411 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame= 1800 fps= 59 q=-1.0 Lsize=  333950kB time=00:00:29.96
bitrate=91284.8kbits/s speed=0.982x
video:328678kB audio:5254kB subtitle:0kB other streams:0kB global
headers:0kB muxing overhead: 0.005557%


*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 25 April 2018 at 17:53, Gyan Doshi <[hidden email]> wrote:

>
> On 4/25/2018 10:09 PM, Stuart Porter wrote:
>
>> Thanks Guan,
>>
>> I pasted a screengrab there but it's been stripped out. I've left the
>> office now but will find a way to send it later.
>>
>
> Oh, got it then. They show up as attachments.
>
> With 1G, there's no longer a buffer error. Apparently, ffmpeg is finding
> corrupted frames in the video input.
>
> Does the output of
>
>     ffmpeg -f dshow -video_size 1920x1080 -r 60 -rtbufsize 1G -i
> video="AVerMedia Live Gamer HD 2":audio="Line (3- AVerMedia Live Gamer H"
> -c copy -t 30 test.mov
>
> appear free of corruption or missing frames? And without those latest
> errors?
>
> Gyan
>
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] 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.

_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Support request - configuring ffmpeg for YouTube Live 60fps

Stuart Porter
However the video is completely blank


*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 09:50, Stuart Porter <[hidden email]> wrote:

> When i run that it seems fine
>
> c:\ffmpeg\bin>ffmpeg -f dshow -video_size 1920x1080 -r 60 -rtbufsize 1G -i
> video="AVerMedia Live Gamer HD 2":audio="Line
>  (3- AVerMedia Live Gamer H" -c copy -t 30 test.mov
> ffmpeg version N-90793-g30940be359 Copyright (c) 2000-2018 the FFmpeg
> developers
>   built with gcc 7.3.0 (GCC)
>   configuration: --enable-gpl --enable-version3 --enable-sdl2
> --enable-bzlib --enable-fontconfig --enable-gnutls --enabl
> e-iconv --enable-libass --enable-libbluray --enable-libfreetype
> --enable-libmp3lame --enable-libopencore-amrnb --enable-
> libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine
> --enable-libsnappy --enable-libsoxr --enable-l
> ibtheora --enable-libtwolame --enable-libvpx --enable-libwavpack
> --enable-libwebp --enable-libx264 --enable-libx265 --en
> able-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp
> --enable-libvidstab --enable-libvorbis --enable-l
> ibvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid
> --enable-libaom --enable-libmfx --enable-amf --enabl
> e-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec
> --enable-dxva2 --enable-avisynth
>   libavutil      56. 15.100 / 56. 15.100
>   libavcodec     58. 19.100 / 58. 19.100
>   libavformat    58. 13.100 / 58. 13.100
>   libavdevice    58.  4.100 / 58.  4.100
>   libavfilter     7. 18.100 /  7. 18.100
>   libswscale      5.  2.100 /  5.  2.100
>   libswresample   3.  2.100 /  3.  2.100
>   libpostproc    55.  2.100 / 55.  2.100
> [mjpeg @ 000000000037b780] Found EOI before any SOF, ignoring
> [mjpeg @ 000000000037b780] No JPEG data found in image
> Guessed Channel Layout for Input Stream #0.1 : stereo
> Input #0, dshow, from 'video=AVerMedia Live Gamer HD 2:audio=Line (3-
> AVerMedia Live Gamer H':
>   Duration: N/A, start: 248386.756000, bitrate: N/A
>     Stream #0:0: Video: mjpeg (MJPG / 0x47504A4D), yuvj422p(pc,
> bt470bg/unknown/unknown), 1920x1080, 60 fps, 60 tbr, 100
> 00k tbn, 10000k tbc
>     Stream #0:1: Audio: pcm_s16le, 44100 Hz, stereo, s16, 1411 kb/s
> Output #0, mov, to 'test.mov':
>   Metadata:
>     encoder         : Lavf58.13.100
>     Stream #0:0: Video: mjpeg (jpeg / 0x6765706A), yuvj422p(pc,
> bt470bg/unknown/unknown), 1920x1080, q=2-31, 60 fps, 60
> tbr, 15360 tbn, 60 tbc
>     Stream #0:1: Audio: pcm_s16le (sowt / 0x74776F73), 44100 Hz, stereo,
> s16, 1411 kb/s
> Stream mapping:
>   Stream #0:0 -> #0:0 (copy)
>   Stream #0:1 -> #0:1 (copy)
> Press [q] to stop, [?] for help
> frame= 1800 fps= 59 q=-1.0 Lsize=  333950kB time=00:00:29.96
> bitrate=91284.8kbits/s speed=0.982x
> video:328678kB audio:5254kB subtitle:0kB other streams:0kB global
> headers:0kB muxing overhead: 0.005557%
>
>
> *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 25 April 2018 at 17:53, Gyan Doshi <[hidden email]> wrote:
>
>>
>> On 4/25/2018 10:09 PM, Stuart Porter wrote:
>>
>>> Thanks Guan,
>>>
>>> I pasted a screengrab there but it's been stripped out. I've left the
>>> office now but will find a way to send it later.
>>>
>>
>> Oh, got it then. They show up as attachments.
>>
>> With 1G, there's no longer a buffer error. Apparently, ffmpeg is finding
>> corrupted frames in the video input.
>>
>> Does the output of
>>
>>     ffmpeg -f dshow -video_size 1920x1080 -r 60 -rtbufsize 1G -i
>> video="AVerMedia Live Gamer HD 2":audio="Line (3- AVerMedia Live Gamer H"
>> -c copy -t 30 test.mov
>>
>> appear free of corruption or missing frames? And without those latest
>> errors?
>>
>> Gyan
>>
>> _______________________________________________
>> ffmpeg-user mailing list
>> [hidden email]
>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>>
>> To unsubscribe, visit link above, or email
>> [hidden email] 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.

_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Support request - configuring ffmpeg for YouTube Live 60fps

Gyan Doshi


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
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Support request - configuring ffmpeg for YouTube Live 60fps

Stuart Porter
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 <[hidden email]> 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
> [hidden email]
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] 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.

_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Support request - configuring ffmpeg for YouTube Live 60fps

rogerdpack2
In reply to this post by Stuart Porter
On 4/25/18, Stuart Porter <[hidden email]> wrote:

> Hi there,
>
> Firstly, forgive any rookie mistakes – I’m new here and not a seasoned
> support blog user. Neither am I a developer of any sort.
>
> I’m working with a developer though and we are trying to configure ffmpeg
> to stream live from a video capture device capturing at 60fps (AverMedia
> Live Gamer HD2) with audio, to YouTube Live using rtmp. The machine I want
> to stream from is Windows7 64-bit with Intel Core i5-6400 CPU @ 2.70GHz
>
> I’m happy to use either h264 or vp9 codec. And have tried configuring
> numerous examples taken from previous posts but nothing works.
>
> e.g. for VP9 I have tried
>
>  ffmpeg -f dshow -video_size 1920x1080 -r 60 -i video="AVerMedia Live Gamer
> HD 2":audio="Line (3- AVerMedia Live Gamer H" -r 30 -g 60 -s 1920x1080
> -quality good -speed 5 -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]
>
> results in a string of failures such as
>
> [dshow @ 00000000003d4dc0] real-time buffer [AVerMedia Live Gamer HD 2]
> [video input] too full or near too full (272% of size: 3041280 [rtbufsize
> parameter])! frame dropped!
>
> We have tried adjusting the quality, speed, framerate and bandwidth but get
> very similar results each time.

vpx is I think not a "fast" encoder making it tricky to get up to
realtime.  Typically people use libx264 preset ultrafast or what not
to save on encode speed (or, as you mentioned, adjust framerate, frame
size, etc.)
Or maybe vpx has some ultrafast preset option, dunno.
GL!
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".