[ffmpeg-user] Unsupported color space

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

[ffmpeg-user] Unsupported color space

Massimo Battistel
hi,
I'm having troubles capturing from decklink in HD (and some ntsc formats).
PAL sd video has no problems.

Command line:
ffmpeg -f dshow -list_options true -i video="Decklink Video Capture (2)"

Output:
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

############# ffplay output ####################

ffplay -f dshow -video_size 1920x1080 -i video="Decklink Video Capture
(2)":audio="Decklink Audio Capture (2)"

ffplay version N-49527-g985e93a Copyright (c) 2003-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 @ 00000000006b5bc0] Unknown compression type. Please report verbose
(-v 9) debug information.
video=Decklink Video Capture (2):audio=Decklink Audio Capture (2): Not yet
implemented in FFmpeg, patches welcome


Using directshow tool graphstudio "type 0x43594448" seems to be an HDYC
color space.
Is it possibile to support it?

thanks,
Massimo
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: [ffmpeg-user] Unsupported color space

Carl Eugen Hoyos
Massimo Battistel <battistel <at> gmail.com> writes:

> I'm having troubles capturing from decklink in HD (and some
> ntsc formats). PAL sd video has no problems.

Does this patch help?
http://thread.gmane.org/gmane.comp.video.ffmpeg.devel/158268

Carl Eugen

_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: [ffmpeg-user] Unsupported color space

Carl Eugen Hoyos
Carl Eugen Hoyos <cehoyos <at> ag.or.at> writes:

> Massimo Battistel <battistel <at> gmail.com> writes:
>
> > I'm having troubles capturing from decklink in HD (and some
> > ntsc formats). PAL sd video has no problems.
>
> Does this patch help?

The relevant patch(es) were applied, so the question is now:
Is thist still reproducible with current git head?

Carl Eugen

_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: [ffmpeg-user] Unsupported color space

Massimo Battistel
>
> The relevant patch(es) were applied, so the question is now:
> Is thist still reproducible with current git head?
>
>
Not very well...
It seems that colorspace is now recognized:

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



but if I try to play:

ffplay -f dshow -video_size 1920x1080 -r 25 -i video="Decklink Video
Capture (2)":audio="Decklink Audio Capture (2)"

ffplay version N-49757-g969039e Copyright (c) 2003-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
Failed to set value '25' for option 'r'

The "-r 25" is essential because if not, it defaults to 23.97 fps which is
not correct for me.



And if I try to record, I get tons of errors (dropped frames, bad audio...).


ffmpeg -f dshow -video_size 1920x1080 -r 25 -i video="Decklink Video
Capture (2)":audio="Decklink Audio Capture (2)" -vcodec libx264 -q:v 1
-acodec libvo_aacenc -q:a 1 -y cap.mkv

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 @ 000000000077b800] Estimating duration from bitrate, this may be
inaccurate
Guessed Channel Layout for  Input Stream #0.1 : stereo
Input #0, dshow, from 'video=Decklink Video Capture (2):audio=Decklink
Audio Capture (2)':
  Duration: N/A, start: 0.104009, bitrate: 1536 kb/s
    Stream #0:0: Video: rawvideo (UYVY / 0x59565955), uyvy422, 1920x1080,
25 tbr, 10000k tbn, 25 tbc
    Stream #0:1: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s
[libx264 @ 000000000077a7e0] using cpu capabilities: MMX2 SSE2Fast SSSE3
FastShuffle SSE4.2
[libx264 @ 000000000077a7e0] profile High 4:2:2, level 4.0, 4:2:2 8-bit
[libx264 @ 000000000077a7e0] 264 - core 129 r2245 bc13772 - H.264/MPEG-4
AVC codec - Copyright 2003-2013 - http://www.videolan.org/x264.html -
options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1
psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1
cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6
lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=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
scenecut=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, matroska, to 'cap.mkv':
  Metadata:
    encoder         : Lavf54.62.100
    Stream #0:0: Video: h264 (H264 / 0x34363248), yuv422p, 1920x1080,
q=-1--1, 1k tbn, 25 tbc
    Stream #0:1: Audio: aac ([255][0][0][0] / 0x00FF), 48000 Hz, stereo,
s16, 128 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (rawvideo -> libx264)
  Stream #0:1 -> #0:1 (pcm_s16le -> libvo_aacenc)
Press [q] to stop, [?] for help
[dshow @ 000000000077b800] real-time buffer 136% full! frame dropped!
    Last message repeated 2 times
frame=   13 fps=0.0 q=0.0 size=       1kB time=00:00:00.52 bitrate=
9.6kbits/s
real-time buffer 136% full! frame dropped!
[dshow @ 000000000077b800] real-time buffer 136% full! frame dropped!
    Last message repeated 3 times
frame=   26 fps= 26 q=0.0 size=       1kB time=00:00:01.00 bitrate=
5.0kbits/s
real-time buffer 136% full! frame dropped!
[dshow @ 000000000077b800] real-time buffer 136% full! frame dropped!
    Last message repeated 4 times
frame=   38 fps= 25 q=0.0 size=       1kB time=00:00:01.51 bitrate=
3.3kbits/s
real-time buffer 136% full! frame dropped!
[dshow @ 000000000077b800] real-time buffer 136% full! frame dropped!
    Last message repeated 21 times
frame=   47 fps= 21 q=0.0 size=       1kB time=00:00:01.72 bitrate=
2.9kbits/s
real-time buffer 136% full! frame dropped!
[dshow @ 000000000077b800] real-time buffer 136% full! frame dropped!
    Last message repeated 16 times
frame=   55 fps= 20 q=28.0 size=     161kB time=00:00:02.37 bitrate=
553.8kbits/s
real-time buffer 136% full! frame dropped!
[dshow @ 000000000077b800] real-time buffer 136% full! frame dropped!
    Last message repeated 195 times
frame=   56 fps=8.2 q=-1.0 Lsize=     906kB time=00:00:02.84
bitrate=2612.2kbits/s

video:883kB audio:21kB subtitle:0 global headers:0kB muxing overhead
0.162665%
[libx264 @ 000000000077a7e0] frame I:2     Avg QP:22.80  size:132162
[libx264 @ 000000000077a7e0] frame P:15    Avg QP:24.30  size: 29650
[libx264 @ 000000000077a7e0] frame B:39    Avg QP:25.03  size:  4988
[libx264 @ 000000000077a7e0] consecutive B-frames:  5.4%  3.6%  5.4% 85.7%
[libx264 @ 000000000077a7e0] mb I  I16..4: 36.2% 52.1% 11.7%
[libx264 @ 000000000077a7e0] mb P  I16..4:  2.0%  2.3%  2.4%  P16..4:
28.4%  7.6%  6.1%  0.0%  0.0%    skip:51.3%
[libx264 @ 000000000077a7e0] mb B  I16..4:  0.0%  0.0%  0.0%  B16..8:
20.2%  0.8%  0.1%  direct: 1.0%  skip:77.8%  L0:44.1% L1:53.2% BI: 2.6%
[libx264 @ 000000000077a7e0] 8x8 transform intra:46.5% inter:83.8%
[libx264 @ 000000000077a7e0] coded y,uvDC,uvAC intra: 54.5% 63.1% 36.3%
inter: 7.7% 12.7% 0.4%
[libx264 @ 000000000077a7e0] i16 v,h,dc,p: 68% 22%  3%  6%
[libx264 @ 000000000077a7e0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 23% 20% 16%
5%  7%  8%  7%  7%  7%
[libx264 @ 000000000077a7e0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 15% 68%  5%
2%  2%  3%  2%  2%  2%
[libx264 @ 000000000077a7e0] i8c dc,h,v,p: 45% 28% 21%  6%
[libx264 @ 000000000077a7e0] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 000000000077a7e0] ref P L0: 58.9%  9.5% 20.7% 10.9%
[libx264 @ 000000000077a7e0] ref B L0: 80.0% 16.6%  3.4%
[libx264 @ 000000000077a7e0] ref B L1: 91.7%  8.3%
[libx264 @ 000000000077a7e0] kb/s:3227.13
[dshow @ 000000000077b800] real-time buffer 136% full! frame dropped!



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