summaryrefslogtreecommitdiffstats
path: root/libavdevice
Commit message (Collapse)AuthorAgeFilesLines
* 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 masterMichael 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
|
* libavdevice/gdigrab: fix HIDPI support for mouse positioningDilshod Mukhtarov2019-01-301-9/+10
| | | | | | Mouse position was not calculated properly in area or window mode Signed-off-by: Dilshod Mukhtarov <dilshodm@gmail.com>
* libavdevice/gdigrab: fix HIDPI support for window captureDilshod Mukhtarov2019-01-301-4/+10
| | | | | | In Windows if using scaling other than 100% then the grabbed window was not captured fully (cropped) Signed-off-by: Dilshod Mukhtarov <dilshodm@gmail.com>
* lavd/iec61883: Fix the include path for poll.h.Carl Eugen Hoyos2019-01-161-1/+1
|
* avdevice/dshow: Fixed some minor memory leaksOliver Collyer2019-01-032-4/+22
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* lavd/v4l2: Use "int request" as second parameter for ioctl() on Android.Carl Eugen Hoyos2018-12-111-0/+4
| | | | Fixes build with new Android toolchain.
* avdevice/decklink_enc: add support for setting genlock timing offsetMarton Balint2018-12-024-1/+9
| | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* Bump minor version for master after 4.1 branchpointMichael Niedermayer2018-11-021-1/+1
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* Bump minor versions for branching 4.1Michael Niedermayer2018-11-021-2/+2
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avdevice/libndi_newtek_dec: add extra_ips option to libndi_newtek allowing ↵Anton Platov2018-11-012-2/+4
| | | | | | | use remote network sources Signed-off-by: Anton Platov <anton@platov.net> Signed-off-by: Marton Balint <cus@passwd.hu>
* avdevice/decklink_dec: fix codec_tag of RGBA formatsBIGLER Don (Framatome)2018-11-011-2/+2
| | | | | | Fixes ticket #7505. Signed-off-by: Marton Balint <cus@passwd.hu>
* avdevice/sdl2: add option to set window positionDave Rice2018-10-232-5/+9
| | | | | | | | | | | | | | | | Allows arrangement of multiple windows such as: ffmpeg -re -f lavfi -i mandelbrot -f sdl -window_x 1 -window_y 1 mandelbrot -vf waveform,format=yuv420p -f sdl -window_x 641 -window_y 1 waveform -vf vectorscope,format=yuv420p -f sdl -window_x 1 -window_y 481 vectorscop Some changes by Marton Balint: - allow negative position (partially or fully out-of-screen positions seem to be sanitized automatically by SDL (or my WM?), so no special handling is needed) - only show window after the position is set - do not use resizable and borderless flags at the same time, that caused issues in ffplay - add docs Signed-off-by: Marton Balint <cus@passwd.hu>
* avdevice/decklink: Fix compile breakage on OSXDevin Heitmueller2018-10-201-1/+1
| | | | | | | | | Make the function static, or else Clang complains with: error: no previous prototype for function 'decklink_get_attr_string' [-Werror,-Wmissing-prototypes] Signed-off-by: Devin Heitmueller <dheitmueller@ltnglobal.com> Signed-off-by: Marton Balint <cus@passwd.hu>
* avdevice/decklink_dec: add option to align capture start timeKarthick Jeyapal2018-09-304-1/+13
| | | | | | | | | This option is useful for maintaining input synchronization across N different hardware devices deployed for 'N-way' redundancy. The system time of different hardware devices should be synchronized with protocols such as NTP or PTP, before using this option. Signed-off-by: Marton Balint <cus@passwd.hu>
* avdevice/decklink: add support for selecting devices based on their unique IDMarton Balint2018-09-233-21/+41
| | | | | | | | Also bump the API version requirement to 10.9.5, because on olders versions there were some reports of crashes using the undocumented, yet available BMDDeckLinkDeviceHandle. Signed-off-by: Marton Balint <cus@passwd.hu>
* Cosmetics: Reindent after last commit.Carl Eugen Hoyos2018-09-191-5/+5
|
* lavd/dshow: Interpret negative height as bottom-down frame.Carl Eugen Hoyos2018-09-191-0/+4
| | | | Fixes ticket #7436.
* avdevice/pulse_audio_dec: set channel mapPaul B Mahol2018-09-141-1/+4
| | | | This fixes opening devices with >6 channels.
* lavd/avfoundation: Fix skewed video outputRick Kern2018-09-141-7/+49
| | | | | | | | Fixes ticket #5654. The linesize can be greater than the minimum required. This copies the frame taking linesize into account. Signed-off-by: Rick Kern <kernrj@gmail.com>
* avdevice/decklink: Add support for EIA-708 output over SDIDevin Heitmueller2018-09-094-12/+195
| | | | | | | | | | | | | | | | Hook in libklvanc and use it for output of EIA-708 captions over SDI. The bulk of this patch is just general support for ancillary data for the Decklink SDI module - the real work for construction of the EIA-708 CDP and VANC line construction is done by libklvanc. Libklvanc can be found at: https://github.com/stoth68000/libklvanc Updated to reflect feedback from Marton Balint <cus@passwd.hu>, Carl Eugen Hoyos <ceffmpeg@gmail.com>, Aaron Levinson <alevinsn_dev@levland.net>, and Moritz Barsnick <barsnick@gmx.net> Signed-off-by: Devin Heitmueller <dheitmueller@ltnglobal.com> Signed-off-by: Marton Balint <cus@passwd.hu>
* avdevice/decklink_enc: add support for setting duplex modeMarton Balint2018-09-093-1/+6
| | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* avdevice/decklink_enc: print preroll and buffer sizeGyan Doshi2018-08-241-0/+3
| | | | Helpful in diagnosing latency issues.
* avdevice/v4l2enc: add video4linux2 name aliasLou Logan2018-06-181-1/+1
| | | | | | Makes the v4l2 outdev name consistent with the v4l2 indev name. Signed-off-by: Lou Logan <lou@lrcd.com>
* avdevice/decklink_dec: capture timecode to metadata when requestedJon Morley2018-06-135-1/+63
| | | | | | | | | | If the user provides a valid timecode_format look for timecode of that format in the capture and if found store it on the video avstream's metadata. Slightly modified by Marton Balint to capture per-frame timecode as well. Signed-off-by: Marton Balint <cus@passwd.hu>
* avdevice/decklink_common: Move DECKLINK_* string functions into headerJon Morley2018-06-132-30/+30
| | | | | | | This allows other decklink source access to these cross-platform convenience functions. Signed-off-by: Marton Balint <cus@passwd.hu>
* avdevice/decklink_dec: use std::atomic for decklink_input_callback refcountingMarton Balint2018-06-132-22/+14
| | | | | | Also remove the callback from the context, and add proper error handling. Signed-off-by: Marton Balint <cus@passwd.hu>
* avdevice/decklink_dec: use a custom memory allocatorMarton Balint2018-06-131-0/+50
| | | | | | | The default memory allocator is limited in the max number of frames available, and therefore caused frame drops if the frames were not freed fast enough. Signed-off-by: Marton Balint <cus@passwd.hu>
* avdevice/sdl2 : add option to define if the window quit action is availableMartin Vignali2018-05-191-1/+3
|
* avdevice/sdl2output : fix setting window_sizeMartin Vignali2018-05-191-4/+2
|
OpenPOWER on IntegriCloud