summaryrefslogtreecommitdiff
path: root/libavdevice
Commit message (Collapse)AuthorAgeFilesLines
* 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 branchpointn4.2-devMichael 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
|
* lavd/v4l2: Add ARGB and XRGB packed pixel formatsAnton Leontiev2018-05-101-0/+6
| | | | | | | | | | | Formats ARGB32, XRGB32, ABGR32, and XBGR32 were added to V4L2 instead of ill-defined deprecated RGB32/BGR32 pixel formats. When pixel format is not specified explicitly FFmpeg tries formats in order in which they are stored in the table. Therefore formats are sorted as follows: BGR is preferred over RGB and XBGR is preferred over ARGB, because it could give better performance by ignoring alpha component.
* avdevice/decklink_dec: unref packets on avpacket_queue_put errorMarton Balint2018-04-301-0/+3
| | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* avdevice/decklink_dec: do not copy video dataMarton Balint2018-04-301-0/+12
| | | | | | | Create a buffer from the data instead and use the buffer destructor to free the DeckLink frame. This avoids a memcpy of the frame data. Signed-off-by: Marton Balint <cus@passwd.hu>
* avdevice/android_camera: Fix AVClass.versionMichael Niedermayer2018-04-191-1/+1
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avdevice/iec61883: free the private context at the endJames Almer2018-04-181-0/+1
| | | | | | Fixes part of ticket #7146. Signed-off-by: James Almer <jamrial@gmail.com>
* avdevice/iec61883: return reference counted packetsJames Almer2018-04-181-4/+13
| | | | | | | Fixes part of ticket #7146, dealing with leaks of packet data since commit 87c88122703f2befcf96383d05bdf14373c22df9. Signed-off-by: James Almer <jamrial@gmail.com>
* avdevice/decklink_commmon: enhance error messages when iterator creation failsMarton Balint2018-04-181-14/+14
| | | | | | | Show a more useful error message which specifies the required driver version for the build, and use the correct context in the error message for WIN32. Signed-off-by: Marton Balint <cus@passwd.hu>
* lavd/vfwcap: Pass pointers to int instead of long to av_parse_video_size().Carl Eugen Hoyos2018-04-181-1/+4
| | | | | | | | Fixes the following warnings: libavdevice/vfwcap.c:331:35: warning: passing argument 1 of 'av_parse_video_size' from incompatible pointer type libavdevice/vfwcap.c:331:59: warning: passing argument 2 of 'av_parse_video_size' from incompatible pointer type Reported-by: Reino Wijnsma
* Bump minor versions after release/4.0 branchingn4.1-devMichael Niedermayer2018-04-161-1/+1
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* Bump minor versions for branching release/4.0Michael Niedermayer2018-04-161-1/+1
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* lavfi,lavd: add gitignore for generated static component listsJosh de Kock2018-04-051-0/+2
| | | | Signed-off-by: Josh de Kock <josh@itanimul.li>
* avdevice/decklink_dec: use av_packet_make_refcounted to ensure packets are ↵James Almer2018-04-021-8/+6
| | | | | | | | ref counted Partially reverts commit e91f0c4f8b, simplifying code. Signed-off-by: James Almer <jamrial@gmail.com>
* lav*,tests: remove several register_all callsJosh de Kock2018-04-021-2/+0
| | | | | | | avdevice_register_all() is still required to register devices into lavf (this is required due to lavd being somewhat of a hack). Signed-off-by: Josh de Kock <josh@itanimul.li>
* lavf: move avpriv function definition to internal.hJosh de Kock2018-04-021-0/+1
| | | | Signed-off-by: Josh de Kock <josh@itanimul.li>
* lavd: remove linked listsJosh de Kock2018-03-311-48/+39
| | | | Signed-off-by: Josh de Kock <josh@itanimul.li>
* Revert "lavd: add new API for iterating input and output devices"Josh de Kock2018-03-315-170/+89
| | | | | | | | | | This reverts commit 0fd475704e871ef3a535947596a012894bae3cbd. Revert "lavd: fix iterating of input and output devices" This reverts commit ce1d77a5e7cebce11074bf6f9e38ad6da37338ff. Signed-off-by: Josh de Kock <josh@itanimul.li>
* kmsgrab: add category for kmsgrabJun Zhao2018-03-261-0/+1
| | | | | | | Makes kmsgrab visible in "ffmpeg -devices". Signed-off-by: Jun Zhao <mypopydev@gmail.com> Signed-off-by: Mark Thompson <sw@jkqxz.net>
* avdevice/decklink: fix leak when listing devices and there is no memoryMarton Balint2018-03-241-12/+5
| | | | | | Fixes Coverity CID 1419523. Signed-off-by: Marton Balint <cus@passwd.hu>
* lavd: fix iterating of input and output devicesFelix Matouschek2018-03-181-5/+2
| | | | | | | | In the previous implementation the first input or output device was skipped when device_next was called with prev = NULL Signed-off-by: Felix Matouschek <felix@matouschek.org> Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
* avdevice: add android_camera indevFelix Matouschek2018-02-224-1/+874
| | | | | | | | This commit adds an indev for Android devices on API level 24+ which uses the Android NDK Camera2 API to capture video from builtin cameras Signed-off-by: Felix Matouschek <felix@matouschek.org> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avdevice/decklink_dec: Fix ;;Michael Niedermayer2018-02-151-1/+1
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avdevice/decklink_dec: extract NTSC VANCRay Tiley2018-02-131-3/+20
| | | | | | | | | | | | | | This changes how NTSC VANC is extracted from the buffer. In NTSC the vanc data is interleaved between luma and chroma, and not just the luma as in high definition resolutions. In my testing this allows a decklink card encoding valid NTSC closed captions to pass the caption data to the x264 encoder. Updated with reviews from Devin Heitmueller and Marton Balint. Signed-off-by: Ray Tiley <raytiley@gmail.com> Signed-off-by: Marton Balint <cus@passwd.hu>