Re: [FFmpeg-user] Virtual camera

2020-07-10 Thread Simon Brown
On Fri, 10 Jul 2020 at 21:19, Moritz Barsnick  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
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

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

Re: [FFmpeg-user] Virtual camera

2020-07-10 Thread Moritz Barsnick
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
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

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

Re: [FFmpeg-user] replace several lines by one using the filter_complex

2020-07-10 Thread Leonardo via ffmpeg-user
 

On Friday, July 10, 2020, 1:37:39 AM GMT-3, Gyan Doshi  
wrote:  


Yes, using the concat filter.

    ffmpeg -i video.mp4 -filter_complex 
"[0:v]trim=start=7:end=1173,setpts=PTS-STARTPTS[v1];[0:v]trim=start=1260:end=1430,setpts=PTS-STARTPTS[v2];[0:a]atrim=start=7:end=1173,asetpts=PTS-STARTPTS[a1];[0:a]atrim=start=1260:end=1430,asetpts=PTS-STARTPTS[a2];[v1][a1][v2][a2]concat=n=2:v=1:a=1"
 merged.mp4

Gyan


Thank you Gyan !!
Kind regards,Leonardo 

 
  
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

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

Re: [FFmpeg-user] Virtual camera

2020-07-10 Thread stoica ionut via ffmpeg-user
 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 
 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
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".  
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

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

[FFmpeg-user] DELETE segments not working for HLS Push

2020-07-10 Thread KRISHNAKUMAR N K
Hi Guys
I am trying to push HLS chunks to an apache webdav server. The PUT/DELETE
is working as expected when i use http, but DELETE is NOT working using *https,
*however PUT works fine though HTTPS. I am getting the following error msg
from the console. Let me know if I am missing something.

*Error Log:*
*[hls muxer @ 0x5268480] failed to delete old segment
https://w...@mail.com:test...@example.com:8043/hlstest/media_500k_004.ts
: No such file or
directory*

*Console Logs:** https://pastebin.com/n4U2Jw76
*

*FFMPEG Command:*
*ffmpeg -i "udp://230.1.1.2:11000?fifo_size=500_nonfatal=1
"
-filter_complex [i:0x20c]yadif,setdar=640/360[v0] -f hls -map i:0x2e4 -af
aresample=async=1:min_hard_comp=0.10:first_pts=0 -c:a:0 libfdk_aac
-b:a:0 64000 -ar:0 48000 -map [v0] -b:v:0 50 -maxrate:v:0 50
-minrate:v:0 50 -bufsize:v:0 100 -s:v:0 640x360 -r:0 25
-sc_threshold 0 -pix_fmt yuv420p -flags +global_header+cgop -c:v:0 libx264
-profile:v:0 baseline -level:v:0 3.0 -preset:v:0 fast -nal-hrd cbr -g 50
-var_stream_map a:0,v:0,name:500k -master_pl_name master.m3u8
-hls_list_size 3 -hls_time 6 -hls_flags
"delete_segments+independent_segments+discont_start" -hls_segment_filename
 https://w...@mail.com:test...@example.com:8043/hlstest/media_%v_%03d.ts
 https://w...@mail.com:test...@example.com:8043/hlstest/playlist_%v.m3u8*

PS: I also did the same test  with the latest ffmpeg from the git, but no
luck.

Regards

*KrishnaKumar *
*N K *
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

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

[FFmpeg-user] hevc_vaapi mkv output fails with generic error

2020-07-10 Thread Andreas Löer
Hello everyone,

I am currently unable to transcode H264 MKV to HEVC MKV on an AMD Ryzen
3400G running openSuSE Leap 15.2. 
 
Using following command
 
ffmpeg -loglevel debug -vaapi_device /dev/dri/renderD128 -hwaccel vaapi
-hwaccel_output_format vaapi -i sample.mkv -c:v hevc_vaapi -vf
'hwdownload,format=nv12,hwupload' -rc_mode 3 -b:v 3M -profile:v 1 -tier
1 -level 153 -c:a copy output.mkv
 
I am getting follwing error message
 
[AVHWFramesContext @ 0x52a3cc0] Created surface 0x22.
[AVHWFramesContext @ 0x52a3cc0] Direct mapping disabled: deriving image
does not work: 1 (operation failed).
[matroska @ 0x5235ec0] get_metadata_duration returned: 0
Could not write header for output file #0 (incorrect codec parameters
?): Invalid data found when processing input
Error initializing output stream 0:0 --
[AVIOContext @ 0x5209740] Statistics: 0 seeks, 1 writeouts
[AVIOContext @ 0x5284400] Statistics: 197393 bytes read, 2 seeks
 
FFmpeg static build by myself.
 
Is there anyone who can help me understanding what is going on here and
how to get this working?
I am breaking my head for 3 days now trying to solve this issue.
 
Full debug output here: https://pastebin.com/khp5g9F5

 
Best regards,
Andreas
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

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