[FFmpeg-user] Capture Video from Decklink Video Render

Yugant Khanna yugant at gmail.com
Mon Dec 10 06:50:04 CET 2012


Ok here are the details , in step one i am trying to capture Video / Audio
from Decklin card to  "Output.AVI" . The CPU utilization here is only 2% .


D:\SOFTWARE\ffmpeg\bin>ffmpeg -t 10 -f dshow -r 25 -s 720x576 -i
video="Decklink
 Video Capture":audio="Decklink Audio Capture" -vcodec copy -acodec copy -y
outp
ut.avi
ffmpeg version N-45279-g1a104bf Copyright (c) 2000-2012 the FFmpeg
developers
  built on Oct 10 2012 19:19:16 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-libcelt --enable-libopencore-amrnb --enable-libopencore-amrwb
--enable-l
ibfreetype --enable-libgsm --enable-libmp3lame --enable-libnut
--enable-libopenj
peg --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      51. 74.100 / 51. 74.100
  libavcodec     54. 65.100 / 54. 65.100
  libavformat    54. 31.100 / 54. 31.100
  libavdevice    54.  3.100 / 54.  3.100
  libavfilter     3. 19.102 /  3. 19.102
  libswscale      2.  1.101 /  2.  1.101
  libswresample   0. 16.100 /  0. 16.100
  libpostproc    52.  1.100 / 52.  1.100
[dshow @ 002eb2c0] 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:audio=Decklink Audio
Capture
':
  Duration: N/A, start: 158211.310000, bitrate: 1536 kb/s
    Stream #0:0: Video: rawvideo (UYVY / 0x59565955), uyvy422, 720x576, 25
tbr,
10000k tbn, 25 tbc
    Stream #0:1: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s
-t is not an input option, keeping it for the next output; consider fixing
your
command line.
Output #0, avi, to 'output.avi':
  Metadata:
    ISFT            : Lavf54.31.100
    Stream #0:0: Video: rawvideo (UYVY / 0x59565955), uyvy422, 720x576,
q=2-31,
50 tbn, 50 tbc
    Stream #0:1: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz,
stereo, 153
6 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame=   13 fps=0.0 q=-1.0 size=    8207kB time=00:00:00.60
bitrate=112059.1kbit
frame=   26 fps= 26 q=-1.0 size=   18018kB time=00:00:01.12
bitrate=131786.9kbit
frame=   38 fps= 25 q=-1.0 size=   28646kB time=00:00:01.60
bitrate=146665.2kbit
frame=   51 fps= 25 q=-1.0 size=   39273kB time=00:00:02.12
bitrate=151758.1kbit
frame=   64 fps= 25 q=-1.0 size=   49901kB time=00:00:02.64
bitrate=154844.8kbit
frame=   76 fps= 25 q=-1.0 size=   59711kB time=00:00:03.12
bitrate=156780.8kbit
frame=   89 fps= 25 q=-1.0 size=   70339kB time=00:00:03.64
bitrate=158301.9kbit
frame=  101 fps= 25 q=-1.0 size=   80150kB time=00:00:04.12
bitrate=159365.3kbit
frame=  114 fps= 25 q=-1.0 size=   90777kB time=00:00:04.64
bitrate=160268.9kbit
frame=  127 fps= 25 q=-1.0 size=  101405kB time=00:00:05.16
bitrate=160990.5kbit
frame=  139 fps= 25 q=-1.0 size=  111215kB time=00:00:05.64
bitrate=161538.4kbit
frame=  152 fps= 25 q=-1.0 size=  121843kB time=00:00:06.16
bitrate=162035.7kbit
frame=  165 fps= 25 q=-1.0 size=  131653kB time=00:00:06.68
bitrate=161452.9kbit
frame=  177 fps= 25 q=-1.0 size=  142281kB time=00:00:07.16
bitrate=162788.9kbit
frame=  190 fps= 25 q=-1.0 size=  152909kB time=00:00:07.68
bitrate=163103.0kbit
frame=  203 fps= 25 q=-1.0 size=  162719kB time=00:00:08.20
bitrate=162560.6kbit
frame=  215 fps= 25 q=-1.0 size=  174165kB time=00:00:08.68
bitrate=164373.0kbit
frame=  228 fps= 25 q=-1.0 size=  183157kB time=00:00:09.20
bitrate=163089.8kbit
frame=  241 fps= 25 q=-1.0 size=  193785kB time=00:00:09.72
bitrate=163321.9kbit
frame=  248 fps= 25 q=-1.0 Lsize=  202782kB time=00:00:10.00
bitrate=166119.2kbi
ts/s
video:200880kB audio:1875kB subtitle:0 global headers:0kB muxing overhead
0.0134
42%


Since i can't import this file directly to FCP , i run the following
command to make it compatible with FCP

D:\SOFTWARE\ffmpeg\bin>ffmpeg -i output.avi -vcodec dvvideo -s 720x576 -r
25 -pi
x_fmt yuv422p -acodec pcm_s16le -ar 48000 -y output_foramit.mov
ffmpeg version N-45279-g1a104bf Copyright (c) 2000-2012 the FFmpeg
developers
  built on Oct 10 2012 19:19:16 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-libcelt --enable-libopencore-amrnb --enable-libopencore-amrwb
--enable-l
ibfreetype --enable-libgsm --enable-libmp3lame --enable-libnut
--enable-libopenj
peg --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      51. 74.100 / 51. 74.100
  libavcodec     54. 65.100 / 54. 65.100
  libavformat    54. 31.100 / 54. 31.100
  libavdevice    54.  3.100 / 54.  3.100
  libavfilter     3. 19.102 /  3. 19.102
  libswscale      2.  1.101 /  2.  1.101
  libswresample   0. 16.100 /  0. 16.100
  libpostproc    52.  1.100 / 52.  1.100
[avi @ 002db0c0] non-interleaved AVI
Guessed Channel Layout for  Input Stream #0.1 : stereo
Input #0, avi, from 'output.avi':
  Metadata:
    encoder         : Lavf54.31.100
  Duration: 00:00:10.00, start: 0.000000, bitrate: 166119 kb/s
    Stream #0:0: Video: rawvideo (UYVY / 0x59565955), uyvy422, 720x576, 50
tbr,
50 tbn, 50 tbc
    Stream #0:1: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz,
stereo, s16
, 1536 kb/s
Output #0, mov, to 'output_foramit.mov':
  Metadata:
    encoder         : Lavf54.31.100
    Stream #0:0: Video: dvvideo (dvcp / 0x70637664), yuv422p, 720x576,
q=2-31, 2
00 kb/s, 12800 tbn, 25 tbc
    Stream #0:1: Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, stereo,
s16, 15
36 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (rawvideo -> dvvideo)
  Stream #0:1 -> #0:1 (pcm_s16le -> pcm_s16le)
Press [q] to stop, [?] for help
frame=  123 fps=0.0 q=0.0 size=   35224kB time=00:00:04.92
bitrate=58649.5kbits/
frame=  247 fps=246 q=0.0 size=   71029kB time=00:00:09.88
bitrate=58893.7kbits/
frame=  251 fps=246 q=0.0 Lsize=   72472kB time=00:00:10.04
bitrate=59132.4kbits
/s dup=3 drop=0
video:70594kB audio:1875kB subtitle:0 global headers:0kB muxing overhead
0.00433
0%


Again when this "output.mov" taken to FCP has a field problem and audio /
video lip sync out.
CPU utilization in both the commands is 2 % on an average


thanks


More information about the ffmpeg-user mailing list