summaryrefslogtreecommitdiff
path: root/libavdevice
Commit message (Collapse)AuthorAgeFilesLines
* Bump minor versions to separate 4.3 from masterMichael Niedermayer2020-06-081-2/+2
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avdevice/v4l2enc: Allow writing non-rawvideos to v4l2.David Manouchehri2020-05-091-3/+7
| | | | Signed-off-by: David Manouchehri <david.manouchehri@riseup.net>
* avfoundation: Fix building on iOSMartin Storsjö2020-04-301-0/+4
| | | | | | | | | | | | Apparently the changes from 3c9185bf3a83395d12a987f626dbdb985eac4320 aren't enough; even with that in place, I got errors like this when trying to build for iOS: src/libavdevice/avfoundation.m:135:5: error: 'AVCaptureDeviceTransportControlsPlaybackMode' is unavailable: not available on iOS AVCaptureDeviceTransportControlsPlaybackMode observed_mode; ^
* lavd/avfoundation.m: Do not use transport controls for screen capture devices.Thilo Borgmann2020-04-221-9/+11
|
* lavd/avfoundation.m: Remove transport controls for iOS.Thilo Borgmann2020-04-221-2/+10
|
* avdevice/opengl: add support of wrapped avframe codecMarton Balint2020-04-161-5/+12
| | | | | | Also change the default to that. Signed-off-by: Marton Balint <cus@passwd.hu>
* avdevice/xv: add support of wrapped avframe codecMarton Balint2020-04-161-8/+14
| | | | | | Also change the default to that. Signed-off-by: Marton Balint <cus@passwd.hu>
* avdevice/decklink_dec: increase autodetect timeout to 3 secMarton Balint2020-04-041-2/+2
| | | | | | 1 sec might not be enough for the cards to detect the format... Signed-off-by: Marton Balint <cus@passwd.hu>
* remove CHAR_MIN/CHAR_MAX usagePaul B Mahol2020-03-171-1/+1
| | | | It is not needed at all.
* lavd/avfoundation: Add basic transport control observation for capable devices.Thilo Borgmann2020-03-161-8/+59
|
* avdevice/decklink: add support for SDK version 11.5Marton Balint2020-02-261-1/+16
| | | | | | Fixes ticket #8534. Signed-off-by: Marton Balint <cus@passwd.hu>
* avdevice/decklink_dec: fix stopping streams in read_closeMarton Balint2020-02-262-2/+1
| | | | | | | The capture_started variable was never set, it is simpler to call the stop functions unconditionally if the interface is available. Signed-off-by: Marton Balint <cus@passwd.hu>
* lavd/opengl_enc: check strings before parsing them.Nicolas George2020-02-201-0/+4
| | | | | Fix a segfault if OpenGL was not initialized before calling write_header().
* lavd/opengl_enc: use proper context for logging.Nicolas George2020-02-201-9/+10
| | | | Log as [opengl @ 0xaddress] instead of [opengl outdev @ 0xaddress].
* lavd/avfoundation.m: Add an option to drop late frames.Thilo Borgmann2020-02-071-1/+3
| | | | Retains current behaviour by the default value.
* avdevice/xcbgrab: check if frame size fits in INT_MAXMarton Balint2020-01-241-6/+14
| | | | | | Also fixes a possible overflow and sets stream bitrate. Signed-off-by: Marton Balint <cus@passwd.hu>
* avdevice/xcbgrab: move some initialization code from ↵Marton Balint2020-01-241-11/+13
| | | | | | pixfmt_from_pixmap_format to create_stream Signed-off-by: Marton Balint <cus@passwd.hu>
* Silence "string-plus-int" warning shown by clang.Carl Eugen Hoyos2020-01-061-1/+1
| | | | libswscale/utils.c:89:42: warning: adding 'unsigned long' to a string does not append to the string [-Wstring-plus-int]
* avdevice/decklink: deprecate the -list_devices optionMarton Balint2020-01-033-1/+3
| | | | | | The user should use ffmpeg -sources decklink or ffmpeg -sinks decklink instead. Signed-off-by: Marton Balint <cus@passwd.hu>
* avdevice/decklink_dec: remove -bm_v210 optionMarton Balint2020-01-033-7/+0
| | | | | | Deprecated since Sep 28, 2017. Signed-off-by: Marton Balint <cus@passwd.hu>
* avdevice/decklink_dec: remove the @mode syntaxMarton Balint2020-01-033-24/+12
| | | | | | Deprecated since March 28, 2017. Signed-off-by: Marton Balint <cus@passwd.hu>
* avdevice/xcbgrab: capture the full desktop if video_size is not specifiedMarton Balint2019-12-302-7/+7
| | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* avdevice/xcbgrab: fix packet timestampsMarton Balint2019-12-301-5/+9
| | | | | | | Since 648b8cca6c56a4fa1760efc72dfe1363a5c6e31e and c991e9cd91845044e93a9c89dd25b48ae707461b timestamps were not set properly. Signed-off-by: Marton Balint <cus@passwd.hu>
* avdevice/xcbgrab: use a buffer pool for shared memory segmentsMarton Balint2019-12-261-32/+47
| | | | | | | Also by wrapping the SHM buffer in an AVBufferRef we eliminate yet another possible memcpy improving performance. Signed-off-by: Marton Balint <cus@passwd.hu>
* avdevice/xcbgrab: wrap non-shm image replies in a buffer refMarton Balint2019-12-061-6/+15
| | | | | | This avoids a memcpy improving performance if SHM is not used. Signed-off-by: Marton Balint <cus@passwd.hu>
* avdevice/xcbgrab: Handle reply and error properlyKusanagi Kouichi2019-12-031-0/+5
| | | | | | | Fix a NULL dereference and leaks. Signed-off-by: Kusanagi Kouichi <slash@ac.auone-net.jp> Signed-off-by: Marton Balint <cus@passwd.hu>
* libavdevice/lavfi: check avfilter_graph_dump return valueZhao Zhili2019-11-291-3/+7
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avdevice/decklink: add option to drop frames till timecode is seenGyan Doshi2019-11-185-1/+14
| | | | Option wait_for_tc only takes effect if tc_format is set
* avdevice/v4l2: Remove av_assert0 when format not supportedAndriy Gelman2019-11-061-1/+2
| | | | | | | | | | | | | | | | | Before this commit an av_assert0 would fail if a v4l2 device did not support a target format. For example, ./ffmpeg -f v4l2 -codec:v h264 -i /dev/video0 -f mpegts - would signal an abort if /dev/video0 did not support h264. The new behaviour is to return an AVERROR(EINVAL) error code. An av_assert0 has been added to verify this return. Fixes #6629 Signed-off-by: Andriy Gelman <andriy.gelman@gmail.com> Reviewed-by: Nicolas George <george@nsup.org> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* libavdevice: Update the class name as uniform styleJun Zhao2019-08-1512-12/+12
| | | | | | | Update the class name to uniform indev/outdev style. Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
* lavd/v4l2: produce a 0 byte packet when a dequeued buffer's size is unexpectedStephan Hilb2019-07-301-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | Behave like we do for V4L2_BUF_FLAG_ERROR, implemented in commit 28f20d2ff4 . For some devices (probably also related to the V4L driver implementation) it happens that when invoking the ioctl DQBUF, the returned buffer is not of the expected size. Here are two examples for such occurrences: [video4linux2,v4l2 @ 0x258b440] Dequeued v4l2 buffer contains 609596 bytes, but 614400 were expected. Flags: 0x00000001. /dev/video1: Invalid data found when processing input [video4linux2,v4l2 @ 0x225f440] Dequeued v4l2 buffer contains 609508 bytes, but 614400 were expected. Flags: 0x00000001. /dev/video1: Invalid data found when processing input For the ffmpeg CLI tool this means it will stop capturing and exit. The described behaviour was observed at least with one OmniVision USB web cam and with some stk1160 devices. If you search the web for the error message, you will find quite a few instances of this problem. Some of them experienced on other devices. Probably fixes ticket #4795 Signed-off-by: Alexander Strasser <eclipse7@gmx.net>
* Bump minor versions again on master to keep 4.2 versions separate from mastern4.3-devMichael Niedermayer2019-07-211-1/+1
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* Bump minor versions to separate 4.2 from masterMichael Niedermayer2019-07-211-1/+1
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* lavd/avfoundation: Set correct default value 0 for option capture_raw_data.Thilo Borgmann2019-07-081-1/+1
|
* lavd/avfoundation: Reindent after last commit.Thilo Borgmann2019-07-081-54/+54
|
* lavd/avfoundation: Support muxed type of devices including raw muxed data ↵Thilo Borgmann2019-07-081-9/+80
| | | | capture.
* lavd/avfoundation: Refine some log messages.Thilo Borgmann2019-07-081-4/+4
|
* lavd/avfoundation: Change binary Options to boolean type.Thilo Borgmann2019-07-081-5/+3
|
* lavd/avfoundation: Remove useless index increment.Thilo Borgmann2019-07-081-1/+0
|
* libavdevice/gdigrab: fix ffmpeg -devices doesn't show gdigrabJun Zhao2019-05-171-0/+1
| | | | | | | | | | | missed the category AV_CLASS_CATEGORY_DEVICE_VIDEO_INPUT lead to ffmpeg -devices doesn't show gdigrab as a input device FIx #7848 Found-by: dangibson Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
* avdevice/decklink: fix checking video mode in SDK version 11Marton Balint2019-05-052-13/+10
| | | | | | | | | Apparently in the new SDK one cannot query if VANC output is supported, so we will fall back to non-VANC output if enabling the video output with VANC fails. Fixes ticket #7867. Signed-off-by: Marton Balint <cus@passwd.hu>
* avdevice/alsa: fix indefinite stop on closing PCM captureTakayuki 'January June' Suwa2019-04-231-2/+4
| | | | | | | Fixes: https://bugs.archlinux.org/task/58619 Found-by: Elias (Bleuzen) https://bugs.archlinux.org/user/26956 Signed-off-by: Nicolas George <george@nsup.org>
* avdevice/decklink_common: add support for DeckLink SDK 11Marton Balint2019-04-152-4/+55
| | | | | | Fixes ticket #7789. Signed-off-by: Marton Balint <cus@passwd.hu>
* avdevice/decklink_common: properly check DoesSupportVideoMode result when ↵Marton Balint2019-04-151-1/+1
| | | | | | trying VANC flag Signed-off-by: Marton Balint <cus@passwd.hu>
* avdevice/decklink_dec: set configs before listing formatsMarton Balint2019-04-151-6/+6
| | | | | | Format list can be input and profile dependant. Signed-off-by: Marton Balint <cus@passwd.hu>
* avdevice/opengl_enc: fix build error using msvc compilerDon C. Bigler2019-04-101-1/+0
|
* lavd/x11grab: fix vertical repositioningOctavio Alvarez2019-04-061-1/+1
| | | | | | | | | | | | | | | | There is a calculation error in xcbgrab_reposition() that breaks vertical repositioning on follow_mouse. It made the bottom reposition occur when moving the mouse lower than N pixels after the capture bottom edge, instead of before. This commit fixes the calculation to match the documentation. follow_mouse: centered or number of pixels. The documentation says: When it is specified with "centered", the grabbing region follows the mouse pointer and keeps the pointer at the center of region; otherwise, the region follows only when the mouse pointer reaches within PIXELS (greater than zero) to the edge of region.
* lavd/v4l2: Fix the type of the probe function.Carl Eugen Hoyos2019-03-231-1/+1
|
* lavd/v4l2-common: Add an entry for Z16.Carl Eugen Hoyos2019-03-221-0/+3
|
* lavd: Remove libndi_newtekCarl Eugen Hoyos2019-03-206-679/+2
|