FFmpegFrameGrabber grabber = new FFmpegFrameGrabber("video=CameraName");
grabber.setFormat("dshow");
grabber.setImageWidth(1280);
grabber.setImageHeight(720);
grabber.setFrameRate(FRAME_RATE);
org.bytedeco.javacv.FrameGrabber$Exception: avformat_open_input() error -5: Could not open input "video=CameraName". (Has setFormat() been called?)
ffmpeg -f dshow -list_devices true -i dummy
[dshow @ 0000000000176240] DirectShow video devices (some may be both video and audio devices)
[dshow @ 0000000000176240] "CameraName"
[dshow @ 0000000000176240] Alternative name "@device_pnp_\\?\usb#vid_203a&pid_fff9&mi_00#6&314b1fee&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\global"
FFmpegFrameGrabber grabber1 = new FFmpegFrameGrabber("desktop");
grabber1.setFormat("gdigrab");
grabber1.setImageWidth(1280);
grabber1.setImageHeight(720);
[gdigrab ...] Failed to capture image (error 6)
Exception in thread "main" java.lang.NoClassDefFoundError: Could not initialize class org.bytedeco.javacpp.avutil
Output #0, flv, to 'rtmp://test.com/stream/myStream':
Stream #0:0: Unknown: none (libx264)
Stream #0:1: Unknown: none (aac)
[flv @ 0000000016cbe900] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
[flv @ 0000000016cbe900] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
[gdigrab @ 000000001734bb20] Capturing whole desktop as 2560x1600x32 at (0,0)
[gdigrab @ 000000001734bb20] Stream #0: not enough frames to estimate rate; consider increasing probesize
Input #0, gdigrab, from 'desktop':
Duration: N/A, start: 1474118865.069663, bitrate: 3928244 kb/s
Stream #0:0: Video: bmp, bgra, 2560x1600, 3928244 kb/s, 29.97 fps, 1000k tbr, 1000k tbn, 1000k tbc
[gdigrab @ 000000001734bb20] Failed to capture image (error 6)
FFmpegFrameGrabber grabber1 = new FFmpegFrameGrabber("video=FaceTime HD Camera");
grabber1.setFormat("dshow");
#
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007ffe1685c428, pid=2096, tid=0x0000000000001500
#
# JRE version: Java(TM) SE Runtime Environment (8.0_101-b13) (build 1.8.0_101-b13)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.101-b13 mixed mode windows-amd64 compressed oops)
# Problematic frame:
# C [ntdll.dll+0x3c428]
#
# Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
#
# An error report file with more information is saved as:
# C:\Users\IEUser\IdeaProjects\teststreamfinal\hs_err_pid2096.log
#
# If you would like to submit a bug report, please visit:
# http://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
Output #0, flv, to 'rtmp://test.com/stream/myStream':
Stream #0:0: Unknown: none (libx264)
Stream #0:1: Unknown: none (aac)
[libx264 @ 00000000168df420] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
[libx264 @ 00000000168df420] profile Constrained Baseline, level 3.1
[libx264 @ 00000000168df420] 264 - core 148 - H.264/MPEG-4 AVC codec - Copyleft 2003-2016 - http://www.videolan.org/x264.html - options: cabac=0 ref=1 deblock=0:0:0 analyse=0:0 me=dia subme=0 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=2 lookahead_threads=2 sliced_threads=1 slices=2 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=50 keyint_min=5 scenecut=0 intra_refresh=0 rc_lookahead=0 rc=crf mbtree=0 crf=28.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=2500 vbv_bufsize=2500 crf_max=0.0 nal_hrd=none filler=0 ip_ratio=1.40 aq=0
[flv @ 00000000168de900] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
[flv @ 00000000168de900] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
[gdigrab @ 0000000016f6bba0] Capturing whole desktop as 2560x1600x32 at (0,0)
Input #0, gdigrab, from 'desktop':
Duration: N/A, start: 1474123528.652609, bitrate: 3932172 kb/s
Stream #0:0: Video: bmp, bgra, 2560x1600, 3932172 kb/s, 30 fps, 15.17 tbr, 1000k tbn, 1000k tbc
[dshow @ 000000001834d000] Could not set video options