Include Pixel Format 10-bit YUV (v210) and 10-bit RGB (r210)

Website, builds, or other suggestions.
yaropolov
Posts: 5
Joined: Tue Feb 12, 2013 10:17 am

Include Pixel Format 10-bit YUV (v210) and 10-bit RGB (r210)

Post by yaropolov » Tue Feb 12, 2013 10:41 am

Hello

Is it possible to add additional Pixel Format 10-bit YUV (v210) and 10-bit RGB (r210) to ffmpeg?

A problem description is below:

I am trying to capture Decklink Card.
ffmpeg -list_options true -f dshow -i video="Decklink Video Capture"

DirectShow video device options
Pin "Capture"
pixel_format=uyvy422 min s=720x486 fps=29.97 max s=720x486 fps=29.97
pixel_format=uyvy422 min s=720x576 fps=25 max s=720x576 fps=25
unknown compression type 0x43594448 min s=1920x1080 fps=25 max s=1920x1080 fps=25
unknown compression type 0x43594448 min s=1920x1080 fps=29.97 max s=1920x1080 fps=29.97
unknown compression type 0x43594448 min s=1280x720 fps=50 max s=1280x720 fps=50
unknown compression type 0x43594448 min s=1280x720 fps=59.9402 max s=1280x720 fps=59.9402
unknown compression type 0x30313276 min s=720x486 fps=29.97 max s=720x486 fps=29.97
unknown compression type 0x30313276 min s=720x576 fps=25 max s=720x576 fps=25
unknown compression type 0x30313276 min s=1920x1080 fps=25 max s=1920x1080 fps=25
unknown compression type 0x30313276 min s=1920x1080 fps=29.97 max s=1920x1080 fps=29.97
unknown compression type 0x30313276 min s=1280x720 fps=50 max s=1280x720 fps=50
unknown compression type 0x30313276 min s=1280x720 fps=59.9402 max s=1280x720 fps=59.9402

The problem is with unknown compression type - pixel_format!!!!
Can you help with?

Below is answer from BlackMagic support:
Thanks for your inquiry. The DeckLink Video Capture supports pixel formats native to DeckLink capture devices.
The supported pixel formats are 8-bit YUV (UYVY), 10-bit YUV (v210) and 10-bit RGB (r210).


It is check for pixel formats:

ffmpeg -pix_fmts

Pixel formats:
I.... = Supported Input format for conversion
.O... = Supported Output format for conversion
..H.. = Hardware accelerated format
...P. = Paletted format
....B = Bitstream format
FLAGS NAME NB_COMPONENTS BITS_PER_PIX
-----
IO... yuv420p 3 12
IO... yuyv422 3 16
IO... rgb24 3 24
IO... bgr24 3 24
IO... yuv422p 3 16
IO... yuv444p 3 24
IO... yuv410p 3 9
IO... yuv411p 3 12
IO... gray 1 8
IO..B monow 1 1
IO..B monob 1 1
I..P. pal8 1 8
IO... yuvj420p 3 12
IO... yuvj422p 3 16
IO... yuvj444p 3 24
..H.. xvmcmc 0 0
..H.. xvmcidct 0 0
IO... uyvy422 3 16
..... uyyvyy411 3 12
IO... bgr8 3 8
.O..B bgr4 3 4
IO... bgr4_byte 3 4
IO... rgb8 3 8
.O..B rgb4 3 4
IO... rgb4_byte 3 4
IO... nv12 3 12
IO... nv21 3 12
IO... argb 4 32
IO... rgba 4 32
IO... abgr 4 32
IO... bgra 4 32
IO... gray16be 1 16
IO... gray16le 1 16
IO... yuv440p 3 16
IO... yuvj440p 3 16
IO... yuva420p 4 20
..H.. vdpau_h264 0 0
..H.. vdpau_mpeg1 0 0
..H.. vdpau_mpeg2 0 0
..H.. vdpau_wmv3 0 0
..H.. vdpau_vc1 0 0
IO... rgb48be 3 48
IO... rgb48le 3 48
IO... rgb565be 3 16
IO... rgb565le 3 16
IO... rgb555be 3 15
IO... rgb555le 3 15
IO... bgr565be 3 16
IO... bgr565le 3 16
IO... bgr555be 3 15
IO... bgr555le 3 15
..H.. vaapi_moco 0 0
..H.. vaapi_idct 0 0
..H.. vaapi_vld 0 0
IO... yuv420p16le 3 24
IO... yuv420p16be 3 24
IO... yuv422p16le 3 32
IO... yuv422p16be 3 32
IO... yuv444p16le 3 48
IO... yuv444p16be 3 48
..H.. vdpau_mpeg4 0 0
..H.. dxva2_vld 0 0
IO... rgb444le 3 12
IO... rgb444be 3 12
IO... bgr444le 3 12
IO... bgr444be 3 12
I.... gray8a 2 16
IO... bgr48be 3 48
IO... bgr48le 3 48
IO... yuv420p9be 3 13
IO... yuv420p9le 3 13
IO... yuv420p10be 3 15
IO... yuv420p10le 3 15
IO... yuv422p10be 3 20
IO... yuv422p10le 3 20
IO... yuv444p9be 3 27
IO... yuv444p9le 3 27
IO... yuv444p10be 3 30
IO... yuv444p10le 3 30
IO... yuv422p9be 3 18
IO... yuv422p9le 3 18
..H.. vda_vld 0 0
IO... gbrp 3 24
IO... gbrp9be 3 27
IO... gbrp9le 3 27
IO... gbrp10be 3 30
IO... gbrp10le 3 30
I.... gbrp16be 3 48
I.... gbrp16le 3 48
IO... yuva420p9be 4 22
IO... yuva420p9le 4 22
IO... yuva422p9be 4 27
IO... yuva422p9le 4 27
IO... yuva444p9be 4 36
IO... yuva444p9le 4 36
IO... yuva420p10be 4 25
IO... yuva420p10le 4 25
IO... yuva422p10be 4 30
IO... yuva422p10le 4 30
IO... yuva444p10be 4 40
IO... yuva444p10le 4 40
IO... yuva420p16be 4 40
IO... yuva420p16le 4 40
IO... yuva422p16be 4 48
IO... yuva422p16le 4 48
IO... yuva444p16be 4 64
IO... yuva444p16le 4 64
..H.. vdpau 0 0
I.... rgba64be 4 64
I.... rgba64le 4 64
..... bgra64be 4 64
..... bgra64le 4 64
IO... 0rgb 3 24
IO... rgb0 3 24
IO... 0bgr 3 24
IO... bgr0 3 24
IO... yuva444p 4 32
IO... yuva422p 4 24
IO... yuv420p12be 3 18
IO... yuv420p12le 3 18
IO... yuv420p14be 3 21
IO... yuv420p14le 3 21
IO... yuv422p12be 3 24
IO... yuv422p12le 3 24
IO... yuv422p14be 3 28
IO... yuv422p14le 3 28
IO... yuv444p12be 3 36
IO... yuv444p12le 3 36
IO... yuv444p14be 3 42
IO... yuv444p14le 3 42
IO... gbrp12be 3 36
IO... gbrp12le 3 36
IO... gbrp14be 3 42
IO... gbrp14le 3 42

c:\ffmpeg\bin>



Looking forward to hearing from you

Regards,

Ilya Yaropolov

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

Re: Include Pixel Format 10-bit YUV (v210) and 10-bit RGB (r

Post by rogerdpack » Tue Feb 12, 2013 4:39 pm

unknown compression type 0x43594448 min s=1920x1080 fps=25 max s=1920x1080 fps=25
This looks like HDYC, which it should accept now [?]
unknown compression type 0x30313276 min s=720x486 fps=29.97 max s=720x486 fps=29.97
looks like v210, also "should" be working now...

Could you post your complete command line and (failing) console output? which version of ffmpeg are you using?

Also try this one, if the latest zeranoe build doesn't have it yet: http://rogerdpack.t28.net/incoming/ffmp ... _shared.7z

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

Re: Include Pixel Format 10-bit YUV (v210) and 10-bit RGB (r

Post by rogerdpack » Tue Feb 12, 2013 4:40 pm

rogerdpack wrote:
unknown compression type 0x43594448 min s=1920x1080 fps=25 max s=1920x1080 fps=25
This looks like HDYC, which it should accept now [?]
unknown compression type 0x30313276 min s=720x486 fps=29.97 max s=720x486 fps=29.97
looks like v210, also "should" be working now...

Could you post your complete command line and (failing) console output? which version of ffmpeg are you using?

Also try this one, if the latest zeranoe build doesn't have it yet: http://rogerdpack.t28.net/incoming/ffmp ... _shared.7z
With this it "should" recognize the pixel format. I "hope" that ffmpeg also knows how to decode those pixel formats...hopefully.

yaropolov
Posts: 5
Joined: Tue Feb 12, 2013 10:17 am

Re: Include Pixel Format 10-bit YUV (v210) and 10-bit RGB (r

Post by yaropolov » Wed Feb 13, 2013 2:53 am

I have just try new build - below the result: as you can see in column BITS_PER - 10 bits is absent

I am out of computer with BlackMagic card now:(
The command line is very easy:
fffmpeg -fdshow -s 720x576 -r 25 -i video="Decklink Video Capture" -y -b 2000K out.mp4 - works fine
ffmpeg -fdshow -s 1920x1080 -r 25 -i video="Decklink Video Capture" -y -b 2000K out.mp4 - unknown compression type - aka pixel format absent

To list filter options: first 2 rows with pixel_format=uyvy422 use 8 bit - it is ok for ffmpeg as it has I..P. pal8 with 8 bits per pixel
ffmpeg -f dshow -list_options true -i video="Decklink Video Capture"

DirectShow video device options
Pin "Capture"
pixel_format=uyvy422 min s=720x486 fps=29.97 max s=720x486 fps=29.97
pixel_format=uyvy422 min s=720x576 fps=25 max s=720x576 fps=25
unknown compression type 0x43594448 min s=1920x1080 fps=25 max s=1920x1080 fps=25
unknown compression type 0x43594448 min s=1920x1080 fps=29.97 max s=1920x1080 fps=29.97
unknown compression type 0x43594448 min s=1280x720 fps=50 max s=1280x720 fps=50
unknown compression type 0x43594448 min s=1280x720 fps=59.9402 max s=1280x720 fps=59.9402
unknown compression type 0x30313276 min s=720x486 fps=29.97 max s=720x486 fps=29.97
unknown compression type 0x30313276 min s=720x576 fps=25 max s=720x576 fps=25
unknown compression type 0x30313276 min s=1920x1080 fps=25 max s=1920x1080 fps=25
unknown compression type 0x30313276 min s=1920x1080 fps=29.97 max s=1920x1080 fps=29.97
unknown compression type 0x30313276 min s=1280x720 fps=50 max s=1280x720 fps=50
unknown compression type 0x30313276 min s=1280x720 fps=59.9402 max s=1280x720 fps=59.9402

Pixel formats:
I.... = Supported Input format for conversi
.O... = Supported Output format for conversi
..H.. = Hardware accelerated format
...P. = Paletted format
....B = Bitstream format
FLAGS NAME NB_COMPONENTS BITS_PER
-----
IO... yuv420p 3 12
IO... yuyv422 3 16
IO... rgb24 3 24
IO... bgr24 3 24
IO... yuv422p 3 16
IO... yuv444p 3 24
IO... yuv410p 3 9
IO... yuv411p 3 12
IO... gray 1 8
IO..B monow 1 1
IO..B monob 1 1
I..P. pal8 1 8
IO... yuvj420p 3 12
IO... yuvj422p 3 16
IO... yuvj444p 3 24
..H.. xvmcmc 0 0
..H.. xvmcidct 0 0
IO... uyvy422 3 16
..... uyyvyy411 3 12
IO... bgr8 3 8
.O..B bgr4 3 4
IO... bgr4_byte 3 4
IO... rgb8 3 8
.O..B rgb4 3 4
IO... rgb4_byte 3 4
IO... nv12 3 12
IO... nv21 3 12
IO... argb 4 32
IO... rgba 4 32
IO... abgr 4 32
IO... bgra 4 32
IO... gray16be 1 16
IO... gray16le 1 16
IO... yuv440p 3 16
IO... yuvj440p 3 16
IO... yuva420p 4 20
..H.. vdpau_h264 0 0
..H.. vdpau_mpeg1 0 0
..H.. vdpau_mpeg2 0 0
..H.. vdpau_wmv3 0 0
..H.. vdpau_vc1 0 0
IO... rgb48be 3 48
IO... rgb48le 3 48
IO... rgb565be 3 16
IO... rgb565le 3 16
IO... rgb555be 3 15
IO... rgb555le 3 15
IO... bgr565be 3 16
IO... bgr565le 3 16
IO... bgr555be 3 15
IO... bgr555le 3 15
..H.. vaapi_moco 0 0
..H.. vaapi_idct 0 0
..H.. vaapi_vld 0 0
IO... yuv420p16le 3 24
IO... yuv420p16be 3 24
IO... yuv422p16le 3 32
IO... yuv422p16be 3 32
IO... yuv444p16le 3 48
IO... yuv444p16be 3 48
..H.. vdpau_mpeg4 0 0
..H.. dxva2_vld 0 0
IO... rgb444le 3 12
IO... rgb444be 3 12
IO... bgr444le 3 12
IO... bgr444be 3 12
I.... gray8a 2 16
IO... bgr48be 3 48
IO... bgr48le 3 48
IO... yuv420p9be 3 13
IO... yuv420p9le 3 13
IO... yuv420p10be 3 15
IO... yuv420p10le 3 15
IO... yuv422p10be 3 20
IO... yuv422p10le 3 20
IO... yuv444p9be 3 27
IO... yuv444p9le 3 27
IO... yuv444p10be 3 30
IO... yuv444p10le 3 30
IO... yuv422p9be 3 18
IO... yuv422p9le 3 18
..H.. vda_vld 0 0
IO... gbrp 3 24
IO... gbrp9be 3 27
IO... gbrp9le 3 27
IO... gbrp10be 3 30
IO... gbrp10le 3 30
I.... gbrp16be 3 48
I.... gbrp16le 3 48
IO... yuva420p9be 4 22
IO... yuva420p9le 4 22
IO... yuva422p9be 4 27
IO... yuva422p9le 4 27
IO... yuva444p9be 4 36
IO... yuva444p9le 4 36
IO... yuva420p10be 4 25
IO... yuva420p10le 4 25
IO... yuva422p10be 4 30
IO... yuva422p10le 4 30
IO... yuva444p10be 4 40
IO... yuva444p10le 4 40
IO... yuva420p16be 4 40
IO... yuva420p16le 4 40
IO... yuva422p16be 4 48
IO... yuva422p16le 4 48
IO... yuva444p16be 4 64
IO... yuva444p16le 4 64
..H.. vdpau 0 0
I.... rgba64be 4 64
I.... rgba64le 4 64
..... bgra64be 4 64
..... bgra64le 4 64
IO... 0rgb 3 24
IO... rgb0 3 24
IO... 0bgr 3 24
IO... bgr0 3 24
IO... yuva444p 4 32
IO... yuva422p 4 24
IO... yuv420p12be 3 18
IO... yuv420p12le 3 18
IO... yuv420p14be 3 21
IO... yuv420p14le 3 21
IO... yuv422p12be 3 24
IO... yuv422p12le 3 24
IO... yuv422p14be 3 28
IO... yuv422p14le 3 28
IO... yuv444p12be 3 36
IO... yuv444p12le 3 36
IO... yuv444p14be 3 42
IO... yuv444p14le 3 42
IO... gbrp12be 3 36
IO... gbrp12le 3 36
IO... gbrp14be 3 42
IO... gbrp14le 3 42

c:\ffmpeg1\64-bit>

qyot27
Posts: 84
Joined: Wed Jan 23, 2013 4:10 pm
Contact:

Re: Include Pixel Format 10-bit YUV (v210) and 10-bit RGB (r

Post by qyot27 » Wed Feb 13, 2013 9:21 pm

v210 and r210 aren't pixel formats, they're codecs. 10-bit 4:2:2 and RGB are already supported; have been for quite a while.

Code: Select all

ffmpeg -codecs list | grep "v210\|r210"
ffmpeg version r49451 git-a0878c3 Copyright (c) 2000-2013 the FFmpeg developers
  built on Jan 29 2013 19:54:07 with gcc 4.7.2 (GCC)
  configuration: --prefix=/home/qyot27/win32_build --cross-prefix=i686-w64-mingw
32- --enable-gpl --enable-version3 --disable-w32threads --enable-libutvideo --en
able-libxvid --enable-libx264 --enable-libtwolame --enable-libmp3lame --enable-l
ibvorbis --enable-libopus --enable-libvo-aacenc --enable-libvpx --enable-libtheo
ra --enable-avisynth --cpu=pentium3 --extra-cflags='-I/home/qyot27/win32_build/i
nclude -mfpmath=sse -march=pentium3 -msse -mtune=pentium3 -DPTW32_STATIC_LIB' --
extra-ldflags='-L/home/qyot27/win32_build/lib -lx264' --target-os=mingw32 --arch
=x86
  libavutil      52. 17.100 / 52. 17.100
  libavcodec     54. 91.100 / 54. 91.100
  libavformat    54. 61.104 / 54. 61.104
  libavdevice    54.  3.102 / 54.  3.102
  libavfilter     3. 34.101 /  3. 34.101
  libswscale      2.  2.100 /  2.  2.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  2.100 / 52.  2.100
 DEVI.S r210                 Uncompressed RGB 10-bit
 DEVI.S v210                 Uncompressed 4:2:2 10-bit
 D.VI.S v210x

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

Re: Include Pixel Format 10-bit YUV (v210) and 10-bit RGB (r

Post by rogerdpack » Wed Feb 13, 2013 10:06 pm

yaropolov wrote:I have just try new build - below the result: as you can see in column BITS_PER - 10 bits is absent

I am out of computer with BlackMagic card now:(
The command line is very easy:
fffmpeg -fdshow -s 720x576 -r 25 -i video="Decklink Video Capture" -y -b 2000K out.mp4 - works fine
ffmpeg -fdshow -s 1920x1080 -r 25 -i video="Decklink Video Capture" -y -b 2000K out.mp4 - unknown compression type - aka pixel format absent

To list filter options: first 2 rows with pixel_format=uyvy422 use 8 bit - it is ok for ffmpeg as it has I..P. pal8 with 8 bits per pixel
ffmpeg -f dshow -list_options true -i video="Decklink Video Capture"

DirectShow video device options
Pin "Capture"
pixel_format=uyvy422 min s=720x486 fps=29.97 max s=720x486 fps=29.97
pixel_format=uyvy422 min s=720x576 fps=25 max s=720x576 fps=25
unknown compression type 0x43594448 min s=1920x1080 fps=25 max s=1920x1080 fps=25
complete uncut console output please? AFAIK 0x43594448 should be recognized well now starting with 0209 builds, but I can't tell form this output whether that is what you're using or not (and could you please try the 0212 builds as well and see if they recognize it?)
Thanks!
-roger-

yaropolov
Posts: 5
Joined: Tue Feb 12, 2013 10:17 am

Re: Include Pixel Format 10-bit YUV (v210) and 10-bit RGB (r

Post by yaropolov » Mon Feb 18, 2013 9:01 am

I am noy professional in FFMPEg. But we are seaking about decoding.
dshow filter supports 'v210' 4:2:2 Compression and so on.
How I can decode it?

yaropolov
Posts: 5
Joined: Tue Feb 12, 2013 10:17 am

Re: Include Pixel Format 10-bit YUV (v210) and 10-bit RGB (r

Post by yaropolov » Mon Feb 18, 2013 9:41 am

Below is official answer from Blackmagic support:
Thanks for your inquiry. The DeckLink Video Capture supports pixel formats native to DeckLink capture devices.
The supported pixel formats are 8-bit YUV (UYVY), 10-bit YUV (v210) and 10-bit RGB (r210). The formats that are supported will depend upon your DeckLink model.
It is possible that ffmpeg does not recognise the v210 pixel format. Current generation DeckLink devices support SD and HD video modes (the actual modes supported again
depend upon the model of the card) with DirectShow and the DeckLink API. At the moment ffmpeg is not directly supported. To use ffmpeg you will need to
create ffmpeg bindings or obtain them from a third party.

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

Re: Include Pixel Format 10-bit YUV (v210) and 10-bit RGB (r

Post by rogerdpack » Mon Feb 18, 2013 4:42 pm

yaropolov wrote:I am noy professional in FFMPEg. But we are seaking about decoding.
dshow filter supports 'v210' 4:2:2 Compression and so on.
How I can decode it?
complete uncut command line and failing console output, with most recent ffmpeg build please? (I know FFmpeg at least has a concept of v210, my guess is it should be able to accept it...)

$ ffmpeg -codecs | grep 210
ffmpeg version N-44459-g8bdba0b Copyright (c) 2000-2012 the FFmpeg developers
built on Sep 14 2012 18:35:56 with gcc 4.7.1 (GCC)
configuration: --enable-gpl --enable-version3 --disable-pthreads --enable-runtime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libass --enable-libcelt --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-libnut --enable-libopenjpeg --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libutvideo --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264
--enable-libxavs --enable-libxvid --enable-zlib
libavutil 51. 73.100 / 51. 73.100
libavcodec 54. 55.100 / 54. 55.100
libavformat 54. 27.100 / 54. 27.100
libavdevice 54. 2.100 / 54. 2.100
libavfilter 3. 16.103 / 3. 16.103
libswscale 2. 1.101 / 2. 1.101
libswresample 0. 15.100 / 0. 15.100
libpostproc 52. 0.100 / 52. 0.100
D.VI.S v210x
DEVI.S v210 Uncompressed 4:2:2 10-bit
DEVI.S r210 Uncompressed RGB 10-bit

(note the last line, the D means FFmpeg can decode it, the E means it can encode to it).

yaropolov
Posts: 5
Joined: Tue Feb 12, 2013 10:17 am

Re: Include Pixel Format 10-bit YUV (v210) and 10-bit RGB (r

Post by yaropolov » Sat Mar 02, 2013 5:15 pm

I found patch but I don't know how to apply it:(
------------------------------------------------------------
Before patch:
ffmpeg version N-49527-g985e93a Copyright (c) 2000-2013 the FFmpeg
developers
built on Feb 1 2013 18:49:49 with gcc 4.7.2 (GCC)
configuration: --disable-static --enable-shared --enable-gpl
--enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib
--enable-fontconfig --enable-frei0r --enable-gnutls --enable-libass
--enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm
--enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb
--enable-libopenjpeg --enable-libopus --enable-librtmp
--enable-libschroedinger --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.100 / 52. 17.100
libavcodec 54. 91.100 / 54. 91.100
libavformat 54. 61.104 / 54. 61.104
libavdevice 54. 3.103 / 54. 3.103
libavfilter 3. 35.100 / 3. 35.100
libswscale 2. 2.100 / 2. 2.100
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 2.100 / 52. 2.100
[dshow @ 000000000048dd20] DirectShow video device options
[dshow @ 000000000048dd20] Pin "Capture"
[dshow @ 000000000048dd20] pixel_format=uyvy422 min s=720x486 fps=29.97
max s=720x486 fps=29.97
[dshow @ 000000000048dd20] pixel_format=uyvy422 min s=720x486 fps=23.976
max s=720x486 fps=23.976
[dshow @ 000000000048dd20] pixel_format=uyvy422 min s=720x576 fps=25 max
s=720x576 fps=25
[dshow @ 000000000048dd20] unknown compression type 0x43594448 min
s=1920x1080 fps=23.976 max s=1920x1080 fps=23.976
[dshow @ 000000000048dd20] unknown compression type 0x43594448 min
s=1920x1080 fps=24 max s=1920x1080 fps=24
[dshow @ 000000000048dd20] unknown compression type 0x43594448 min
s=1920x1080 fps=25 max s=1920x1080 fps=25
[dshow @ 000000000048dd20] unknown compression type 0x43594448 min
s=1920x1080 fps=29.97 max s=1920x1080 fps=29.97
[dshow @ 000000000048dd20] unknown compression type 0x43594448 min
s=1920x1080 fps=30 max s=1920x1080 fps=30
[dshow @ 000000000048dd20] unknown compression type 0x43594448 min
s=1280x720 fps=50 max s=1280x720 fps=50
[dshow @ 000000000048dd20] unknown compression type 0x43594448 min
s=1280x720 fps=59.9402 max s=1280x720 fps=59.9402
[dshow @ 000000000048dd20] unknown compression type 0x43594448 min
s=1280x720 fps=60.0002 max s=1280x720 fps=60.0002
[dshow @ 000000000048dd20] unknown compression type 0x30313276 min
s=720x486 fps=29.97 max s=720x486 fps=29.97
[dshow @ 000000000048dd20] unknown compression type 0x30313276 min
s=720x486 fps=23.976 max s=720x486 fps=23.976
[dshow @ 000000000048dd20] unknown compression type 0x30313276 min
s=720x576 fps=25 max s=720x576 fps=25
[dshow @ 000000000048dd20] unknown compression type 0x30313276 min
s=1920x1080 fps=23.976 max s=1920x1080 fps=23.976
[dshow @ 000000000048dd20] unknown compression type 0x30313276 min
s=1920x1080 fps=24 max s=1920x1080 fps=24
[dshow @ 000000000048dd20] unknown compression type 0x30313276 min
s=1920x1080 fps=25 max s=1920x1080 fps=25
[dshow @ 000000000048dd20] unknown compression type 0x30313276 min
s=1920x1080 fps=29.97 max s=1920x1080 fps=29.97
[dshow @ 000000000048dd20] unknown compression type 0x30313276 min
s=1920x1080 fps=30 max s=1920x1080 fps=30
[dshow @ 000000000048dd20] unknown compression type 0x30313276 min
s=1280x720 fps=50 max s=1280x720 fps=50
[dshow @ 000000000048dd20] unknown compression type 0x30313276 min
s=1280x720 fps=59.9402 max s=1280x720 fps=59.9402
[dshow @ 000000000048dd20] unknown compression type 0x30313276 min
s=1280x720 fps=60.0002 max s=1280x720 fps=60.0002
video=Decklink Video Capture (2): Immediate exit requested
-----------------------------------------------------------------------------
After patch:
ffmpeg -f dshow -list_options true -i video="Decklink Video Capture (2)"

ffmpeg version N-49757-g969039e Copyright (c) 2000-2013 the FFmpeg
developers
built on Feb 9 2013 20:36:04 with gcc 4.7.2 (GCC)
configuration: --disable-static --enable-shared --enable-gpl
--enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib
--enable-fontconfig --enable-frei0r --enable-gnutls --enable-libass
--enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm
--enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb
--enable-libopenjpeg --enable-libopus --enable-librtmp
--enable-libschroedinger --enable-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.102 / 54. 91.102
libavformat 54. 62.100 / 54. 62.100
libavdevice 54. 3.103 / 54. 3.103
libavfilter 3. 37.101 / 3. 37.101
libswscale 2. 2.100 / 2. 2.100
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 2.100 / 52. 2.100
[dshow @ 000000000048dd20] DirectShow video device options
[dshow @ 000000000048dd20] Pin "Capture"
[dshow @ 000000000048dd20] pixel_format=uyvy422 min s=720x486 fps=29.97
max s=720x486 fps=29.97
[dshow @ 000000000048dd20] pixel_format=uyvy422 min s=720x486 fps=23.976
max s=720x486 fps=23.976
[dshow @ 000000000048dd20] pixel_format=uyvy422 min s=720x576 fps=25 max
s=720x576 fps=25
[dshow @ 000000000048dd20] pixel_format=uyvy422 min s=1920x1080
fps=23.976 max s=1920x1080 fps=23.976
[dshow @ 000000000048dd20] pixel_format=uyvy422 min s=1920x1080 fps=24
max s=1920x1080 fps=24
[dshow @ 000000000048dd20] pixel_format=uyvy422 min s=1920x1080 fps=25
max s=1920x1080 fps=25
[dshow @ 000000000048dd20] pixel_format=uyvy422 min s=1920x1080
fps=29.97 max s=1920x1080 fps=29.97
[dshow @ 000000000048dd20] pixel_format=uyvy422 min s=1920x1080 fps=30
max s=1920x1080 fps=30
[dshow @ 000000000048dd20] pixel_format=uyvy422 min s=1280x720 fps=50
max s=1280x720 fps=50
[dshow @ 000000000048dd20] pixel_format=uyvy422 min s=1280x720
fps=59.9402 max s=1280x720 fps=59.9402
[dshow @ 000000000048dd20] pixel_format=uyvy422 min s=1280x720
fps=60.0002 max s=1280x720 fps=60.0002
[dshow @ 000000000048dd20] vcodec=v210 min s=720x486 fps=29.97 max
s=720x486 fps=29.97
[dshow @ 000000000048dd20] vcodec=v210 min s=720x486 fps=23.976 max
s=720x486 fps=23.976
[dshow @ 000000000048dd20] vcodec=v210 min s=720x576 fps=25 max
s=720x576 fps=25
[dshow @ 000000000048dd20] vcodec=v210 min s=1920x1080 fps=23.976 max
s=1920x1080 fps=23.976
[dshow @ 000000000048dd20] vcodec=v210 min s=1920x1080 fps=24 max
s=1920x1080 fps=24
[dshow @ 000000000048dd20] vcodec=v210 min s=1920x1080 fps=25 max
s=1920x1080 fps=25
[dshow @ 000000000048dd20] vcodec=v210 min s=1920x1080 fps=29.97 max
s=1920x1080 fps=29.97
[dshow @ 000000000048dd20] vcodec=v210 min s=1920x1080 fps=30 max
s=1920x1080 fps=30
[dshow @ 000000000048dd20] vcodec=v210 min s=1280x720 fps=50 max
s=1280x720 fps=50
[dshow @ 000000000048dd20] vcodec=v210 min s=1280x720 fps=59.9402 max
s=1280x720 fps=59.9402
[dshow @ 000000000048dd20] vcodec=v210 min s=1280x720 fps=60.0002 max
s=1280x720 fps=60.0002
video=Decklink Video Capture (2): Immediate exit requested
------------------------------------------------------------------------------
patch is below - may somebody can help with patch?



The href is http://ffmpeg-users.933282.n4.nabble.co ... l#a4657240

From: Roger Pack <rogerdpack2 <at> gmail.com>
Subject: [PATCH] dshow, allow for HDYC
Newsgroups: gmane.comp.video.ffmpeg.devel
Date: 2013-01-28 21:15:37 GMT (4 weeks, 4 days, 19 hours and 53 minutes ago)
see attached, it was lacking HDYC as a type, but now works.

color space concerns (if any are discovered) will be addressed in
future patches.
From a50049a197a5c2964060c447e2675c21b98d94ba Mon Sep 17 00:00:00 2001
From: rogerdpack <rogerpack2005 <at> gmail.com>
Date: Tue, 15 Jan 2013 17:07:54 -0700
Subject: [PATCH] dshow: use standardized raw pixel format lookup

Signed-off-by: rogerdpack <rogerpack2005 <at> gmail.com>
---
libavdevice/dshow.c | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)

diff --git a/libavdevice/dshow.c b/libavdevice/dshow.c
index 83b5e01..342831d 100644
--- a/libavdevice/dshow.c
+++ b/libavdevice/dshow.c
@@ -25,6 +25,7 @@
#include "libavformat/internal.h"
#include "avdevice.h"
#include "dshow_capture.h"
+#include "libavcodec/raw.h"

struct dshow_ctx {
const AVClass *class;
@@ -73,12 +74,6 @@ struct dshow_ctx {
static enum AVPixelFormat dshow_pixfmt(DWORD biCompression, WORD biBitCount)
{
switch(biCompression) {
- case MKTAG('U', 'Y', 'V', 'Y'):
- return AV_PIX_FMT_UYVY422;
- case MKTAG('Y', 'U', 'Y', '2'):
- return AV_PIX_FMT_YUYV422;
- case MKTAG('I', '4', '2', '0'):
- return AV_PIX_FMT_YUV420P;
case BI_BITFIELDS:
case BI_RGB:
switch(biBitCount) { /* 1-8 are untested */
@@ -96,7 +91,7 @@ static enum AVPixelFormat dshow_pixfmt(DWORD biCompression, WORD biBitCount)
return AV_PIX_FMT_RGB32;
}
}
- return AV_PIX_FMT_NONE;
+ return avpriv_find_pix_fmt(ff_raw_pix_fmt_tags, biCompression); // all others
}

static enum AVCodecID dshow_codecid(DWORD biCompression)
--
1.7.9.5

Looking forward to hearing from you

Regards,

Ilya

Post Reply
'