Virtual camera

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

Virtual camera

Simon Brown
I was wondering if there is any way to use FFmpeg to create a virtual
camera for a PC/Mac from an H264 stream source.  I know FFmpeg can use
directshow as an input device.

Thanks,
Simon
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://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: Virtual camera

Nicolas George
Simon Brown (12020-07-09):
> I was wondering if there is any way to use FFmpeg to create a virtual
> camera for a PC/Mac from an H264 stream source.  I know FFmpeg can use
> directshow as an input device.

No, FFmpeg cannot do that.

You may be able to achieve that with the vivid video driver:
https://www.kernel.org/doc/html/v4.12/media/v4l-drivers/vivid.html
and use ffmpeg to feed it, but I have not managed to get it to work. Not
a FFmpeg issue.

Regards,

--
  Nicolas George

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

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

signature.asc (849 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Virtual camera

Madovsky

On 7/9/2020 6:10 AM, Nicolas George wrote:

> Simon Brown (12020-07-09):
>> I was wondering if there is any way to use FFmpeg to create a virtual
>> camera for a PC/Mac from an H264 stream source.  I know FFmpeg can use
>> directshow as an input device.
> No, FFmpeg cannot do that.
>
> You may be able to achieve that with the vivid video driver:
> https://www.kernel.org/doc/html/v4.12/media/v4l-drivers/vivid.html
> and use ffmpeg to feed it, but I have not managed to get it to work. Not
> a FFmpeg issue.
>
> Regards,
>
>
>
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".
this virtual device is working with ffmpeg
https://github.com/umlaeute/v4l2loopback
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://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: Virtual camera

FFmpeg-users mailing list
In reply to this post by Simon Brown
 I don't think ffmpeg itself can register a source filter for DirectShow. Have a look on this project though
CatxFish/obs-virtual-cam

|
|
|
|  |  |

 |

 |
|
|  |
CatxFish/obs-virtual-cam

obs-studio plugin to simulate a directshow webcam. Contribute to CatxFish/obs-virtual-cam development by creatin...
 |

 |

 |






    On Thursday, July 9, 2020, 02:38:53 PM GMT+2, Simon Brown <[hidden email]> wrote:  
 
 I was wondering if there is any way to use FFmpeg to create a virtual
camera for a PC/Mac from an H264 stream source.  I know FFmpeg can use
directshow as an input device.

Thanks,
Simon
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".  
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://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: Virtual camera

Moritz Barsnick
In reply to this post by Simon Brown
On Thu, Jul 09, 2020 at 13:38:27 +0100, Simon Brown wrote:
> I was wondering if there is any way to use FFmpeg to create a virtual
> camera for a PC/Mac from an H264 stream source.  I know FFmpeg can use
> directshow as an input device.

On Linux, the v4l2loopback device can be used to do this, I have had
success with this. I have also read of akvcam, but not tested it.

The latter is a project by webcamoid, which is also implemented for Mac
and Windows. Perhaps it's worth looking what technology they use on
those two platforms, as those were the ones you named. Under Windows
it's probably a DirectShow filter.

If you use webcamoid directly, it's no longer ffmpeg though:
https://github.com/webcamoid/webcamoid/wiki/Virtual-camera-support

Cheers,
Moritz
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://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: Virtual camera

Simon Brown
On Fri, 10 Jul 2020 at 21:19, Moritz Barsnick <[hidden email]> wrote:

> On Thu, Jul 09, 2020 at 13:38:27 +0100, Simon Brown wrote:
> > I was wondering if there is any way to use FFmpeg to create a virtual
> > camera for a PC/Mac from an H264 stream source.  I know FFmpeg can use
> > directshow as an input device.
>
> On Linux, the v4l2loopback device can be used to do this, I have had
> success with this. I have also read of akvcam, but not tested it.
>
> The latter is a project by webcamoid, which is also implemented for Mac
> and Windows. Perhaps it's worth looking what technology they use on
> those two platforms, as those were the ones you named. Under Windows
> it's probably a DirectShow filter.
>
> If you use webcamoid directly, it's no longer ffmpeg though:
> https://github.com/webcamoid/webcamoid/wiki/Virtual-camera-support
>
> Cheers,
> Moritz
>
> Thanks for all the suggestions, tried webcamoid earlier today and the lag
was enormous (15 seconds?) so not sure that's a solution.
I'll test out some of the other suggestions and go from there.  If I find a
workable solution I'll post back here.

Cheers,
Simon
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

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