- Posts: 6
- Joined: Thu Jun 07, 2018 6:34 pm
- Real Name: Sirajum Mim
Hi,
I am using a decklink sdi 4K and would like to capture and write other than u sing the media express.
I came through few examples of ffmpeg dshow
https://trac.ffmpeg.org/wiki/DirectShow
and tried out some. I am able to capture video and save it. However, I am running into 2 issues:
1) I want to save it in AVI format but don’t seem to find the right codec for that and hence using rawvideo as the vcodec. with my command it seems like I am saving in avi but it’s really not.
2) I am only able to capture 1 min(max) video, after that frames start dropping.
Here is what I am running:
E:\folder> ffmpeg -f dshow -video_size 1920x1080 -rtbufsize 2096M -framerate 25 -i
video="Decklink Video Capture" -r 25 -threads 4 -vcodec rawvideo -b:v 850000000 -t 00:02:00
test39.avi
And this is what I get (I have made the important points bold):
ffmpeg version N-49235-gdd5689a-iotzo Copyright (c) 2000-2013 the FFmpeg developers
built on Jan 24 2013 16:06:46 with gcc 4.7.2 (GCC)
configuration: --enable-static --arch=x86_64 --target-os=mingw32 --cross-prefix=/var/zeranoe/sandbox/mingw-w64-x86_64/bin/x86_64-w64-mingw32- --pkg-config=pkg-config --enable-gpl --enable-libx264 --enable-avisynth --enable-libxvid --enable-libmp3lame --enable-version3 --enable-zlib --enable-librtmp --enable-libvorbis --enable-libtheora --enable-libspeex --enable-libopenjpeg --enable-gnutls --enable-libgsm --enable-libfreetype --enable-fontconfig --enable-libass --enable-libutvideo --enable-libopus --disable-w32threads --enable-frei0r --enable-filter=frei0r --enable-libvo-aacenc --enable-bzlib --enable-libxavs --extra-cflags=-DPTW32_STATIC_LIB --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-libschroedinger --enable-libbluray --enable-libvpx --extra-version=iotzo --enable-runtime-cpudetect
libavutil 52. 15.102 / 52. 15.102
libavcodec 54. 90.100 / 54. 90.100
libavformat 54. 61.104 / 54. 61.104
libavdevice 54. 3.102 / 54. 3.102
libavfilter 3. 33.100 / 3. 33.100
libswscale 2. 2.100 / 2. 2.100
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 2.100 / 52. 2.100
[dshow @ 0000000004245980] Estimating duration from bitrate, this may be inaccurate
Input #0, dshow, from 'video=Decklink Video Capture':
Duration: N/A, start: 0.138020, bitrate: N/A
Stream #0:0: Video: rawvideo (UYVY / 0x59565955), uyvy422, 1920x1080, 25 tbr, 10000k tbn, 25 tbc
File 'test39.avi' already exists. Overwrite ? [y/N] y
Output #0, avi, to 'test39.avi':
Metadata:
ISFT : Lavf54.61.104
Stream #0:0: Video: rawvideo (UYVY / 0x59565955), uyvy422, 1920x1080, q=2-31, 850000 kb/s, 25 tbn, 25 tbc
Stream mapping:
Stream #0:0 -> #0:0 (rawvideo -> rawvideo)
Press [q] to stop, [?] for help
real-time buffer 62% full! frame dropped! time=00:01:12.96 bitrate=829444.3kbits/s
frame= 1846 fps= 22 q=0.0 Lsize= 7476339kB time=00:01:13.84 bitrate=829444.3kbits/s
video:7476300kB audio:0kB subtitle:0 global headers:0kB muxing overhead 0.000520%
I want to get 2 mins of video without dropping any frames and would like to save in AVI format. Can anyone help me and point what I am doing wrong?
Thanks.
I am using a decklink sdi 4K and would like to capture and write other than u sing the media express.
I came through few examples of ffmpeg dshow
https://trac.ffmpeg.org/wiki/DirectShow
and tried out some. I am able to capture video and save it. However, I am running into 2 issues:
1) I want to save it in AVI format but don’t seem to find the right codec for that and hence using rawvideo as the vcodec. with my command it seems like I am saving in avi but it’s really not.
2) I am only able to capture 1 min(max) video, after that frames start dropping.
Here is what I am running:
E:\folder> ffmpeg -f dshow -video_size 1920x1080 -rtbufsize 2096M -framerate 25 -i
video="Decklink Video Capture" -r 25 -threads 4 -vcodec rawvideo -b:v 850000000 -t 00:02:00
test39.avi
And this is what I get (I have made the important points bold):
ffmpeg version N-49235-gdd5689a-iotzo Copyright (c) 2000-2013 the FFmpeg developers
built on Jan 24 2013 16:06:46 with gcc 4.7.2 (GCC)
configuration: --enable-static --arch=x86_64 --target-os=mingw32 --cross-prefix=/var/zeranoe/sandbox/mingw-w64-x86_64/bin/x86_64-w64-mingw32- --pkg-config=pkg-config --enable-gpl --enable-libx264 --enable-avisynth --enable-libxvid --enable-libmp3lame --enable-version3 --enable-zlib --enable-librtmp --enable-libvorbis --enable-libtheora --enable-libspeex --enable-libopenjpeg --enable-gnutls --enable-libgsm --enable-libfreetype --enable-fontconfig --enable-libass --enable-libutvideo --enable-libopus --disable-w32threads --enable-frei0r --enable-filter=frei0r --enable-libvo-aacenc --enable-bzlib --enable-libxavs --extra-cflags=-DPTW32_STATIC_LIB --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-libschroedinger --enable-libbluray --enable-libvpx --extra-version=iotzo --enable-runtime-cpudetect
libavutil 52. 15.102 / 52. 15.102
libavcodec 54. 90.100 / 54. 90.100
libavformat 54. 61.104 / 54. 61.104
libavdevice 54. 3.102 / 54. 3.102
libavfilter 3. 33.100 / 3. 33.100
libswscale 2. 2.100 / 2. 2.100
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 2.100 / 52. 2.100
[dshow @ 0000000004245980] Estimating duration from bitrate, this may be inaccurate
Input #0, dshow, from 'video=Decklink Video Capture':
Duration: N/A, start: 0.138020, bitrate: N/A
Stream #0:0: Video: rawvideo (UYVY / 0x59565955), uyvy422, 1920x1080, 25 tbr, 10000k tbn, 25 tbc
File 'test39.avi' already exists. Overwrite ? [y/N] y
Output #0, avi, to 'test39.avi':
Metadata:
ISFT : Lavf54.61.104
Stream #0:0: Video: rawvideo (UYVY / 0x59565955), uyvy422, 1920x1080, q=2-31, 850000 kb/s, 25 tbn, 25 tbc
Stream mapping:
Stream #0:0 -> #0:0 (rawvideo -> rawvideo)
Press [q] to stop, [?] for help
real-time buffer 62% full! frame dropped! time=00:01:12.96 bitrate=829444.3kbits/s
frame= 1846 fps= 22 q=0.0 Lsize= 7476339kB time=00:01:13.84 bitrate=829444.3kbits/s
video:7476300kB audio:0kB subtitle:0 global headers:0kB muxing overhead 0.000520%
I want to get 2 mins of video without dropping any frames and would like to save in AVI format. Can anyone help me and point what I am doing wrong?
Thanks.