DirectShow Capture support

Announcements made by users.
rogerdpack
Posts: 1878
Joined: Fri Aug 05, 2011 9:56 pm

Re: DirectShow Capture support

Post by rogerdpack » Tue Dec 18, 2012 9:19 pm

good, post the outputs as requested, if you can too :)

waspy
Posts: 3
Joined: Tue Dec 18, 2012 4:31 pm

Re: DirectShow Capture support

Post by waspy » Wed Dec 19, 2012 9:30 am

@Roger, here are your requested dumps of the various files. I guess, posting will be a little bit longer...

configuration so far / git-26c531c-win64:

Code: Select all

built on Nov 25 2012 12:25:21 with gcc 4.7.2 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-pthreads --enable-runt
ime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libass -
-enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enab
le-libgsm --enable-libmp3lame --enable-libnut --enable-libopenjpeg --enable-libo
pus --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheo
ra --enable-libutvideo --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-li
bvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --ena
ble-zlib
  libavutil      52.  9.100 / 52.  9.100
  libavcodec     54. 77.100 / 54. 77.100
  libavformat    54. 37.100 / 54. 37.100
  libavdevice    54.  3.100 / 54.  3.100
  libavfilter     3. 23.102 /  3. 23.102
  libswscale      2.  1.102 /  2.  1.102
  libswresample   0. 17.101 /  0. 17.101
  libpostproc    52.  2.100 / 52.  2.100
DUMP FROM ffmpeg -loglevel debug -r 10 -f dshow -i video="SMP WebCam" -c:v libx264 webcam.mp4
- blank screen in WMP and VLC
- plays in ffplay and wowza

Code: Select all

Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'webcam.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf54.37.100
  Duration: 00:00:03.50, start: 0.000000, bitrate: 1016 kb/s
    Stream #0:0(und): Video: h264 (High 4:2:2) (avc1 / 0x31637661), yuv422p, 640
x480, 1013 kb/s, 10 fps, 10 tbr, 10240 tbn, 20 tbc
    Metadata:
      handler_name    : VideoHandler
DUMP FROM ffmpeg -f dshow -i video="SMP WebCam" output.mkv
- blank screen in VLC
- plays in ffplay

Code: Select all

Input #0, matroska,webm, from 'output.mkv':
  Metadata:
    ENCODER         : Lavf54.37.100
  Duration: 00:00:08.83, start: 0.000000, bitrate: 937 kb/s
    Stream #0:0: Video: h264 (High 4:2:2), yuv422p, 640x480, SAR 1:1 DAR 4:3, 30
 fps, 30 tbr, 1k tbn, 60 tbc (default)
DUMP FROM ffmpeg -f dshow -i video="SMP WebCam" output.mp4
- blank screen in WMP and VLC
- plays in ffplay and wowza

Code: Select all

Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'output.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf54.37.100
  Duration: 00:00:05.63, start: 0.000000, bitrate: 1099 kb/s
    Stream #0:0(und): Video: h264 (High 4:2:2) (avc1 / 0x31637661), yuv422p, 640
x480, 1095 kb/s, 30 fps, 30 tbr, 10000k tbn, 60 tbc
    Metadata:
      handler_name    : VideoHandler
DUMP FROM ffmpeg -r 10 -f dshow -i video="SMP WebCam" -c:v libx264 webcamflv.flv
- blank screen in VLC
- plays in Adobe Flash Mediaplayer, ffplay and wowza

Code: Select all

Input #0, flv, from 'webcamflv.flv':
  Metadata:
    encoder         : Lavf54.37.100
  Duration: 00:00:06.70, start: 0.200000, bitrate: 936 kb/s
    Stream #0:0: Video: h264 (High 4:2:2), yuv422p, 640x480, 10 tbr, 1k tbn, 20
tbc
DUMP FROM ffmpeg -loglevel debug -r 10 -f dshow -i video="SMP WebCam" -c:v libx264 webcamflv.avi
- blank screen in WMP and VLC
- plays in ffplay

Code: Select all

Input #0, avi, from 'webcamflv.avi':
  Metadata:
    encoder         : Lavf54.37.100
  Duration: 00:00:05.90, start: 0.000000, bitrate: 971 kb/s
    Stream #0:0: Video: h264 (High 4:2:2) (H264 / 0x34363248), yuv422p, 640x480,
 10 fps, 10 tbr, 10 tbn, 20 tbc
DUMP FROM ffmpeg -r 10 -f dshow -i video="SMP WebCam" webcam2.avi
- plays in WMP, VLC and ffplay

Code: Select all

Input #0, avi, from 'webcam2.avi':
  Metadata:
    encoder         : Lavf54.37.100
  Duration: 00:00:06.20, start: 0.000000, bitrate: 507 kb/s
    Stream #0:0: Video: mpeg4 (Simple Profile) (FMP4 / 0x34504D46), yuv420p, 640
x480 [SAR 1:1 DAR 4:3], 10 tbr, 10 tbn, 10 tbc
DUMP FROM ffmpeg -f dshow -i video="SMP WebCam" -pix_fmt yuv420p sampleworking.mp4
- plays in WMP, VLC and wowza

Code: Select all

Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'sampleworking.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf54.37.100
  Duration: 00:00:06.17, start: 0.000000, bitrate: 717 kb/s
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 640x480,
713 kb/s, 30 fps, 30 tbr, 10000k tbn, 60 tbc
    Metadata:
      handler_name    : VideoHandler
Having a nice documentation for myself, thanks so far...

rizwanch
Posts: 1
Joined: Mon Jan 28, 2013 11:54 pm

Re: DirectShow Capture support

Post by rizwanch » Tue Jan 29, 2013 12:05 am

Hi,

I recently connected a "Hauppauge WinTV HVR 1950" device to my computer. I want to use ffmpeg and directshow to capture the video and audio in Windows. I can capture the video using 3rd party applications such as VLC and virtual dub, but I have had no success with ffmpeg. I cant capture the audio from any other 3rd party application.

Here are a bunch of things that I've tried following the logic in this thread:

Code: Select all

ffmpeg -f dshow -list_devices true -i dummy
libavutil 52. 15.100 / 52. 15.100
libavcodec 54. 89.100 / 54. 89.100
libavformat 54. 61.101 / 54. 61.101
libavdevice 54. 3.102 / 54. 3.102
libavfilter 3. 32.101 / 3. 32.101
libswscale 2. 2.100 / 2. 2.100
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 2.100 / 52. 2.100
[dshow @ 022bae40] DirectShow video devices
[dshow @ 022bae40] "Hauppauge HVR USB2 Video Capture"
[dshow @ 022bae40] "HP HD Webcam [Fixed]"
[dshow @ 022bae40] DirectShow audio devices
[dshow @ 022bae40] "Internal Mic (IDT High Definition Audio CODEC)"
[dshow @ 022bae40] "Microphone (IDT High Definition Audio CODEC)"
[dshow @ 022bae40] "Stereo Mix (IDT High Definition Audio CODEC)"
[dshow @ 022bae40] "Line In (IDT High Definition Audio CODEC)"
dummy': Immediate exit requested
Since I want to capture from the Hauppauge device, I do:

Code: Select all

ffmpeg -f dshow -i video="Hauppauge HVR USB2 Video Capture" -vcodec copy temp.avi
and I get:
[dshow @ 003dae00] Unknown compression type. Please report verbose (-v 9) debug
information.
video=Hauppauge HVR USB2 Video Capture: Not yet implemented in FFmpeg, patches w
elcome
Following this thread, here are the list_options:
[dshow @ 0220ae40] DirectShow video device options
[dshow @ 0220ae40] Pin "Capture"
[dshow @ 0220ae40] unknown compression type 0x32465843 min s=80x60 fps=29.97
max s=720x480 fps=29.97
[dshow @ 0220ae40] Pin "Audio Out"
I've tried using pix_fmt with yuv420p and others but to no success. Is there anything I'm missing? I can send more diagnostic information if you want.

Any help would be greatly appreciated.

thanks

rogerdpack
Posts: 1878
Joined: Fri Aug 05, 2011 9:56 pm

Re: DirectShow Capture support

Post by rogerdpack » Tue Jan 29, 2013 1:09 am

rizwanch wrote:Hi,

I recently connected a "Hauppauge WinTV HVR 1950" device to my computer. I want to use ffmpeg and directshow to capture the video and audio in Windows. I can capture the video using 3rd party applications such as VLC and virtual dub, but I have had no success with ffmpeg. I cant capture the audio from any other 3rd party application.

Here are a bunch of things that I've tried following the logic in this thread:

Code: Select all

ffmpeg -f dshow -list_devices true -i dummy
libavutil 52. 15.100 / 52. 15.100
libavcodec 54. 89.100 / 54. 89.100
libavformat 54. 61.101 / 54. 61.101
libavdevice 54. 3.102 / 54. 3.102
libavfilter 3. 32.101 / 3. 32.101
libswscale 2. 2.100 / 2. 2.100
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 2.100 / 52. 2.100
[dshow @ 022bae40] DirectShow video devices
[dshow @ 022bae40] "Hauppauge HVR USB2 Video Capture"
[dshow @ 022bae40] "HP HD Webcam [Fixed]"
[dshow @ 022bae40] DirectShow audio devices
[dshow @ 022bae40] "Internal Mic (IDT High Definition Audio CODEC)"
[dshow @ 022bae40] "Microphone (IDT High Definition Audio CODEC)"
[dshow @ 022bae40] "Stereo Mix (IDT High Definition Audio CODEC)"
[dshow @ 022bae40] "Line In (IDT High Definition Audio CODEC)"
dummy': Immediate exit requested
Since I want to capture from the Hauppauge device, I do:

Code: Select all

ffmpeg -f dshow -i video="Hauppauge HVR USB2 Video Capture" -vcodec copy temp.avi
and I get:
[dshow @ 003dae00] Unknown compression type. Please report verbose (-v 9) debug
information.
video=Hauppauge HVR USB2 Video Capture: Not yet implemented in FFmpeg, patches w
elcome
Following this thread, here are the list_options:
[dshow @ 0220ae40] DirectShow video device options
[dshow @ 0220ae40] Pin "Capture"
[dshow @ 0220ae40] unknown compression type 0x32465843 min s=80x60 fps=29.97
max s=720x480 fps=29.97
[dshow @ 0220ae40] Pin "Audio Out"
I've tried using pix_fmt with yuv420p and others but to no success. Is there anything I'm missing? I can send more diagnostic information if you want.

Any help would be greatly appreciated.

thanks
VLC is able to work with that card? That is impressive I don't see much mention of it anywhere, except here:
http://forum.videolan.org/viewtopic.php ... f2#p326477
What does VLC say the pixel type is?

I did see this about it: the biCompression is CFX2 and the syntax seems to be described here: http://forum.doom9.org/showthread.php?t=128189

apparently "basically YV12" then "chroma - it's packed, transposed and then the (packed!) planes are swapped."

Maybe you could provide an avi file from virtualdub that is a recording of it, that might help someone to figure out a solution. I can't guarantee too much there though :)

CSiller
Posts: 5
Joined: Mon Feb 11, 2013 10:50 pm

Re: DirectShow Capture support

Post by CSiller » Mon Feb 11, 2013 11:10 pm

Roger,

I'm also trying to get ffmpeg to use the Logitech C920's on-board h264 encoder.

With your build ffmpeg-distro-static-2012-09-11 and using the parameters -vcodec h264 -i ... -vcodec copy -f mp4 I see like mobi1300 above that no frames are copied. Has this problem been solved in the meantime?

I've also tried the latest build but it does not seem to support the vcodec h264 option for the C920 at all.

Thanks

rogerdpack
Posts: 1878
Joined: Fri Aug 05, 2011 9:56 pm

Re: DirectShow Capture support

Post by rogerdpack » Mon Feb 11, 2013 11:36 pm

CSiller wrote:Roger,

I'm also trying to get ffmpeg to use the Logitech C920's on-board h264 encoder.

With your build ffmpeg-distro-static-2012-09-11 and using the parameters -vcodec h264 -i ... -vcodec copy -f mp4 I see like mobi1300 above that no frames are copied. Has this problem been solved in the meantime?

I've also tried the latest build but it does not seem to support the vcodec h264 option for the C920 at all.

Thanks
That's odd I'd expect 02-09 build from here (zeranoe) to behave as similar to the 2012-09-11 build. Could you post me the complete command line and uncut console output from both (with -loglevel verbose)? Also the output from -list_devices true (ex. on https://ffmpeg.org/trac/ffmpeg/wiki/DirectShow).

CSiller
Posts: 5
Joined: Mon Feb 11, 2013 10:50 pm

Re: DirectShow Capture support

Post by CSiller » Tue Feb 12, 2013 8:43 pm

I'm attaching the console outputs and corresponding command lines. I've used the Feb 5 and Sep 11 builds. I noted that the Feb 5 build does not seem to know the C920's h264 mode as it shows unknown compression types instead of the h264 compression types that are shown by the Sep 11 build.

Feb 5 version: ffmpeg -loglevel verbose -f dshow -vcodec h264 -i video="Logitech HD Pro Webcam C920" output.mp4

Code: Select all

ffmpeg version N-49610-gc2dd5a1 Copyright (c) 2000-2013 the FFmpeg developers
  built on Feb  5 2013 13:26:02 with gcc 4.7.2 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av
isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
le-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libg
sm --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --e
nable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --e
nable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-
libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable
-libx264 --enable-libxavs --enable-libxvid --enable-zlib
  libavutil      52. 17.101 / 52. 17.101
  libavcodec     54. 91.100 / 54. 91.100
  libavformat    54. 61.104 / 54. 61.104
  libavdevice    54.  3.103 / 54.  3.103
  libavfilter     3. 35.101 /  3. 35.101
  libswscale      2.  2.100 /  2.  2.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  2.100 / 52.  2.100
[dshow @ 000000000033d940] Could not set video options
video=Logitech HD Pro Webcam C920: Input/output error
Sep 11 version: ffmpeg -loglevel verbose -f dshow -vcodec h264 -i video="Logitech HD Pro Webcam C920" output.mp4

Code: Select all

ffmpeg version N-44267-g6d74313 Copyright (c) 2000-2012 the FFmpeg developers
  built on Sep 11 2012 10:49:33 with gcc 4.7.1 (GCC)
  configuration: --enable-memalign-hack --arch=x86 --enable-gpl --enable-libx264
 --enable-avisynth --enable-libxvid --target-os=mingw32 --cross-prefix=/home/rdp
/dev/ffmpeg-windows-build-helpers/sandbox/mingw-w64-i686/bin/i686-w64-mingw32- -
-pkg-config=pkg-config --enable-libmp3lame --enable-version3 --enable-libvo-aace
nc --enable-libvpx --extra-libs=-lws2_32 --extra-libs=-lpthread --enable-zlib --
extra-libs=-lwinmm --extra-libs=-lgdi32 --enable-librtmp --enable-libvorbis --en
able-libtheora --enable-libspeex --enable-libopenjpeg --enable-gnutls --enable-l
ibgsm --enable-libfreetype --disable-optimizations --enable-mmx --disable-postpr
oc --enable-libflite --enable-fontconfig --enable-libass --enable-libutvideo --e
nable-runtime-cpudetect
  libavutil      51. 72.100 / 51. 72.100
  libavcodec     54. 55.100 / 54. 55.100
  libavformat    54. 25.105 / 54. 25.105
  libavdevice    54.  2.100 / 54.  2.100
  libavfilter     3. 16.100 /  3. 16.100
  libswscale      2.  1.101 /  2.  1.101
  libswresample   0. 15.100 /  0. 15.100
[dshow @ 02a6f780] Estimating duration from bitrate, this may be inaccurate
Input #0, dshow, from 'video=Logitech HD Pro Webcam C920':
  Duration: N/A, start: 3682.015000, bitrate: N/A
    Stream #0:0: Video: h264 (Constrained Baseline), yuvj420p, 640x480 [SAR 1:1
DAR 4:3], 62.50 tbr, 10000k tbn, 60 tbc
[graph 0 input from stream 0:0 @ 02b247e0] w:640 h:480 pixfmt:yuvj420p tb:1/1000
0000 fr:125/2 sar:1/1 sws_param:flags=2
[libx264 @ 05e532e0] using SAR=1/1
[libx264 @ 05e532e0] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE
4.2 AVX
[libx264 @ 05e532e0] profile High, level 3.1
[libx264 @ 05e532e0] 264 - core 128 r2216 198a7ea - H.264/MPEG-4 AVC codec - Cop
yleft 2003-2012 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deb
lock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 m
e_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chro
ma_qp_offset=-2 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 i
nterlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1
b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenec
ut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=
0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to 'output.mp4':
  Metadata:
    encoder         : Lavf54.25.105
    Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuvj420p, 640x480 [SAR 1:
1 DAR 4:3], q=-1--1, 125 tbn, 62.50 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (h264 -> libx264)
Press [q] to stop, [?] for help
*** 3 dup!
    Last message repeated 3 times
*** 4 dup!
*** 3 dup!
    Last message repeated 4 times
*** 4 dup!
*** 3 dup!
    Last message repeated 4 times
*** 4 dup!
*** 3 dup!
frame=   76 fps=0.0 q=-1.0 Lsize=      99kB time=00:00:01.18 bitrate= 684.7kbits
/s dup=57 drop=0
video:97kB audio:0kB subtitle:0 global headers:0kB muxing overhead 1.715330%
[libx264 @ 05e532e0] frame I:1     Avg QP:26.69  size: 10953
[libx264 @ 05e532e0] frame P:22    Avg QP:25.12  size:  3686
[libx264 @ 05e532e0] frame B:53    Avg QP:30.44  size:   129
[libx264 @ 05e532e0] consecutive B-frames:  5.3%  2.6%  7.9% 84.2%
[libx264 @ 05e532e0] mb I  I16..4: 30.9% 43.5% 25.6%
[libx264 @ 05e532e0] mb P  I16..4:  2.5%  2.3%  1.0%  P16..4: 40.1%  7.6%  5.7%
 0.0%  0.0%    skip:40.9%
[libx264 @ 05e532e0] mb B  I16..4:  0.0%  0.0%  0.0%  B16..8: 12.9%  0.0%  0.0%
 direct: 0.0%  skip:87.1%  L0:45.0% L1:54.2% BI: 0.8%
[libx264 @ 05e532e0] 8x8 transform intra:41.7% inter:71.1%
[libx264 @ 05e532e0] coded y,uvDC,uvAC intra: 48.2% 44.3% 11.8% inter: 5.3% 10.7
% 1.9%
[libx264 @ 05e532e0] i16 v,h,dc,p: 23% 49% 13% 15%
[libx264 @ 05e532e0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 19% 32% 23%  5%  3%  2%  4%
 3%  9%
[libx264 @ 05e532e0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 15% 41% 12%  7%  4%  2%  7%
 3% 10%
[libx264 @ 05e532e0] i8c dc,h,v,p: 51% 31% 16%  2%
[libx264 @ 05e532e0] Weighted P-Frames: Y:27.3% UV:18.2%
[libx264 @ 05e532e0] ref P L0: 77.0% 10.3%  8.9%  3.4%  0.4%
[libx264 @ 05e532e0] ref B L0: 88.2% 10.8%  0.9%
[libx264 @ 05e532e0] ref B L1: 93.0%  7.0%
[libx264 @ 05e532e0] kb/s:650.68
Feb 5 version: ffmpeg -f dshow -list_options true -i video="Logitech HD Pro Webcam C920"

Code: Select all

ffmpeg version N-49610-gc2dd5a1 Copyright (c) 2000-2013 the FFmpeg developers
  built on Feb  5 2013 13:26:02 with gcc 4.7.2 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av
isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
le-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libg
sm --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --e
nable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --e
nable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-
libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable
-libx264 --enable-libxavs --enable-libxvid --enable-zlib
  libavutil      52. 17.101 / 52. 17.101
  libavcodec     54. 91.100 / 54. 91.100
  libavformat    54. 61.104 / 54. 61.104
  libavdevice    54.  3.103 / 54.  3.103
  libavfilter     3. 35.101 /  3. 35.101
  libswscale      2.  2.100 /  2.  2.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  2.100 / 52.  2.100
[dshow @ 0000000000306fc0] DirectShow video device options
[dshow @ 0000000000306fc0]  Pin "Capture"
[dshow @ 0000000000306fc0]   pixel_format=bgr24  min s=640x480 fps=5 max s=640x4
80 fps=30
[dshow @ 0000000000306fc0]   pixel_format=bgr24  min s=160x90 fps=5 max s=160x90
 fps=30
[dshow @ 0000000000306fc0]   pixel_format=bgr24  min s=160x120 fps=5 max s=160x1
20 fps=30
[dshow @ 0000000000306fc0]   pixel_format=bgr24  min s=176x144 fps=5 max s=176x1
44 fps=30
[dshow @ 0000000000306fc0]   pixel_format=bgr24  min s=320x180 fps=5 max s=320x1
80 fps=30
[dshow @ 0000000000306fc0]   pixel_format=bgr24  min s=320x240 fps=5 max s=320x2
40 fps=30
[dshow @ 0000000000306fc0]   pixel_format=bgr24  min s=352x288 fps=5 max s=352x2
88 fps=30
[dshow @ 0000000000306fc0]   pixel_format=bgr24  min s=432x240 fps=5 max s=432x2
40 fps=30
[dshow @ 0000000000306fc0]   pixel_format=bgr24  min s=640x360 fps=5 max s=640x3
60 fps=30
[dshow @ 0000000000306fc0]   pixel_format=bgr24  min s=800x448 fps=5 max s=800x4
48 fps=30
[dshow @ 0000000000306fc0]   pixel_format=bgr24  min s=800x600 fps=5 max s=800x6
00 fps=30
[dshow @ 0000000000306fc0]   pixel_format=bgr24  min s=864x480 fps=5 max s=864x4
80 fps=30
[dshow @ 0000000000306fc0]   pixel_format=bgr24  min s=960x720 fps=5 max s=960x7
20 fps=30
[dshow @ 0000000000306fc0]   pixel_format=bgr24  min s=1024x576 fps=5 max s=1024
x576 fps=30
[dshow @ 0000000000306fc0]   pixel_format=bgr24  min s=1280x720 fps=5 max s=1280
x720 fps=30
[dshow @ 0000000000306fc0]   pixel_format=bgr24  min s=1600x896 fps=5 max s=1600
x896 fps=30
[dshow @ 0000000000306fc0]   pixel_format=bgr24  min s=1920x1080 fps=5 max s=192
0x1080 fps=30
[dshow @ 0000000000306fc0]   pixel_format=bgr24  min s=2304x1296 fps=2 max s=230
4x1296 fps=2
[dshow @ 0000000000306fc0]   pixel_format=bgr24  min s=2304x1536 fps=2 max s=230
4x1536 fps=2
[dshow @ 0000000000306fc0]   pixel_format=yuv420p  min s=640x480 fps=5 max s=640
x480 fps=30
[dshow @ 0000000000306fc0]   pixel_format=yuv420p  min s=160x90 fps=5 max s=160x
90 fps=30
[dshow @ 0000000000306fc0]   pixel_format=yuv420p  min s=160x120 fps=5 max s=160
x120 fps=30
[dshow @ 0000000000306fc0]   pixel_format=yuv420p  min s=176x144 fps=5 max s=176
x144 fps=30
[dshow @ 0000000000306fc0]   pixel_format=yuv420p  min s=320x180 fps=5 max s=320
x180 fps=30
[dshow @ 0000000000306fc0]   pixel_format=yuv420p  min s=320x240 fps=5 max s=320
x240 fps=30
[dshow @ 0000000000306fc0]   pixel_format=yuv420p  min s=352x288 fps=5 max s=352
x288 fps=30
[dshow @ 0000000000306fc0]   pixel_format=yuv420p  min s=432x240 fps=5 max s=432
x240 fps=30
[dshow @ 0000000000306fc0]   pixel_format=yuv420p  min s=640x360 fps=5 max s=640
x360 fps=30
[dshow @ 0000000000306fc0]   pixel_format=yuv420p  min s=800x448 fps=5 max s=800
x448 fps=30
[dshow @ 0000000000306fc0]   pixel_format=yuv420p  min s=800x600 fps=5 max s=800
x600 fps=30
[dshow @ 0000000000306fc0]   pixel_format=yuv420p  min s=864x480 fps=5 max s=864
x480 fps=30
[dshow @ 0000000000306fc0]   pixel_format=yuv420p  min s=960x720 fps=5 max s=960
x720 fps=30
[dshow @ 0000000000306fc0]   pixel_format=yuv420p  min s=1024x576 fps=5 max s=10
24x576 fps=30
[dshow @ 0000000000306fc0]   pixel_format=yuv420p  min s=1280x720 fps=5 max s=12
80x720 fps=30
[dshow @ 0000000000306fc0]   pixel_format=yuv420p  min s=1600x896 fps=5 max s=16
00x896 fps=30
[dshow @ 0000000000306fc0]   pixel_format=yuv420p  min s=1920x1080 fps=5 max s=1
920x1080 fps=30
[dshow @ 0000000000306fc0]   pixel_format=yuv420p  min s=2304x1296 fps=2 max s=2
304x1296 fps=2
[dshow @ 0000000000306fc0]   pixel_format=yuv420p  min s=2304x1536 fps=2 max s=2
304x1536 fps=2
[dshow @ 0000000000306fc0]   vcodec=mjpeg  min s=640x480 fps=5 max s=640x480 fps
=30
[dshow @ 0000000000306fc0]   vcodec=mjpeg  min s=160x90 fps=5 max s=160x90 fps=3
0
[dshow @ 0000000000306fc0]   vcodec=mjpeg  min s=160x120 fps=5 max s=160x120 fps
=30
[dshow @ 0000000000306fc0]   vcodec=mjpeg  min s=176x144 fps=5 max s=176x144 fps
=30
[dshow @ 0000000000306fc0]   vcodec=mjpeg  min s=320x180 fps=5 max s=320x180 fps
=30
[dshow @ 0000000000306fc0]   vcodec=mjpeg  min s=320x240 fps=5 max s=320x240 fps
=30
[dshow @ 0000000000306fc0]   vcodec=mjpeg  min s=352x288 fps=5 max s=352x288 fps
=30
[dshow @ 0000000000306fc0]   vcodec=mjpeg  min s=432x240 fps=5 max s=432x240 fps
=30
[dshow @ 0000000000306fc0]   vcodec=mjpeg  min s=640x360 fps=5 max s=640x360 fps
=30
[dshow @ 0000000000306fc0]   vcodec=mjpeg  min s=800x448 fps=5 max s=800x448 fps
=30
[dshow @ 0000000000306fc0]   vcodec=mjpeg  min s=800x600 fps=5 max s=800x600 fps
=30
[dshow @ 0000000000306fc0]   vcodec=mjpeg  min s=864x480 fps=5 max s=864x480 fps
=30
[dshow @ 0000000000306fc0]   vcodec=mjpeg  min s=960x720 fps=5 max s=960x720 fps
=30
[dshow @ 0000000000306fc0]   vcodec=mjpeg  min s=1024x576 fps=5 max s=1024x576 f
ps=30
[dshow @ 0000000000306fc0]   vcodec=mjpeg  min s=1280x720 fps=5 max s=1280x720 f
ps=30
[dshow @ 0000000000306fc0]   vcodec=mjpeg  min s=1600x896 fps=5 max s=1600x896 f
ps=30
[dshow @ 0000000000306fc0]   vcodec=mjpeg  min s=1920x1080 fps=5 max s=1920x1080
 fps=30
[dshow @ 0000000000306fc0]  Pin "Capture"
[dshow @ 0000000000306fc0]   unknown compression type 0x34363248  min s=640x480
fps=5 max s=640x480 fps=30
[dshow @ 0000000000306fc0]   unknown compression type 0x34363248  min s=160x90 f
ps=5 max s=160x90 fps=30
[dshow @ 0000000000306fc0]   unknown compression type 0x34363248  min s=160x120
fps=5 max s=160x120 fps=30
[dshow @ 0000000000306fc0]   unknown compression type 0x34363248  min s=176x144
fps=5 max s=176x144 fps=30
[dshow @ 0000000000306fc0]   unknown compression type 0x34363248  min s=320x180
fps=5 max s=320x180 fps=30
[dshow @ 0000000000306fc0]   unknown compression type 0x34363248  min s=320x240
fps=5 max s=320x240 fps=30
[dshow @ 0000000000306fc0]   unknown compression type 0x34363248  min s=352x288
fps=5 max s=352x288 fps=30
[dshow @ 0000000000306fc0]   unknown compression type 0x34363248  min s=432x240
fps=5 max s=432x240 fps=30
[dshow @ 0000000000306fc0]   unknown compression type 0x34363248  min s=640x360
fps=5 max s=640x360 fps=30
[dshow @ 0000000000306fc0]   unknown compression type 0x34363248  min s=800x448
fps=5 max s=800x448 fps=30
[dshow @ 0000000000306fc0]   unknown compression type 0x34363248  min s=800x600
fps=5 max s=800x600 fps=30
[dshow @ 0000000000306fc0]   unknown compression type 0x34363248  min s=864x480
fps=5 max s=864x480 fps=30
[dshow @ 0000000000306fc0]   unknown compression type 0x34363248  min s=960x720
fps=5 max s=960x720 fps=30
[dshow @ 0000000000306fc0]   unknown compression type 0x34363248  min s=1024x576
 fps=5 max s=1024x576 fps=30
[dshow @ 0000000000306fc0]   unknown compression type 0x34363248  min s=1280x720
 fps=5 max s=1280x720 fps=30
[dshow @ 0000000000306fc0]   unknown compression type 0x34363248  min s=1600x896
 fps=5 max s=1600x896 fps=30
[dshow @ 0000000000306fc0]   unknown compression type 0x34363248  min s=1920x108
0 fps=5 max s=1920x1080 fps=30
video=Logitech HD Pro Webcam C920: Immediate exit requested

rogerdpack
Posts: 1878
Joined: Fri Aug 05, 2011 9:56 pm

Re: DirectShow Capture support

Post by rogerdpack » Wed Feb 13, 2013 1:05 am

CSiller wrote:I'm attaching the console outputs and corresponding command lines. I've used the Feb 5 and Sep 11 builds. I noted that the Feb 5 build does not seem to know the C920's h264 mode as it shows unknown compression types instead of the h264 compression types that are shown by the Sep 11 build.
feb 9 "should" also work like sep 11 I believe.
I'll try and get you a build that shows more verbose debug information...it appears that dshow is passing packets through, but they're not being accepted...

Also please post your complete command line with uncut console output, with -loglevel verbose
Thanks.

CSiller
Posts: 5
Joined: Mon Feb 11, 2013 10:50 pm

Re: DirectShow Capture support

Post by CSiller » Thu Feb 14, 2013 10:01 am

Ok, so I'll post the new console output when I get your adjusted executable file. Has the functionality already been integrated into ffmpeg that allows to copy the h264 stream from the camera without transcoding?

rogerdpack
Posts: 1878
Joined: Fri Aug 05, 2011 9:56 pm

Re: DirectShow Capture support

Post by rogerdpack » Thu Feb 14, 2013 6:20 pm

waspy wrote: DUMP FROM ffmpeg -f dshow -i video="SMP WebCam" output.mkv
- blank screen in VLC
- plays in ffplay
Typically this means that you are recording to h264 with yuv422p format (hint: try yuv420p VLC likes it much better).

Post Reply
'