summaryrefslogtreecommitdiff
path: root/libavdevice
Commit message (Collapse)AuthorAge
* avdevice/v4l2enc: add video4linux2 name aliasLou Logan2018-06-18
| | | | | | 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-13
| | | | | | | | | | 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-13
| | | | | | | 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-13
| | | | | | 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-13
| | | | | | | 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-19
|
* avdevice/sdl2output : fix setting window_sizeMartin Vignali2018-05-19
|
* lavd/v4l2: Add ARGB and XRGB packed pixel formatsAnton Leontiev2018-05-10
| | | | | | | | | | | 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-30
| | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* avdevice/decklink_dec: do not copy video dataMarton Balint2018-04-30
| | | | | | | 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-19
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avdevice/iec61883: free the private context at the endJames Almer2018-04-18
| | | | | | Fixes part of ticket #7146. Signed-off-by: James Almer <jamrial@gmail.com>
* avdevice/iec61883: return reference counted packetsJames Almer2018-04-18
| | | | | | | 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-18
| | | | | | | 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-18
| | | | | | | | 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 branchingMichael Niedermayer2018-04-16
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* Bump minor versions for branching release/4.0Michael Niedermayer2018-04-16
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* lavfi,lavd: add gitignore for generated static component listsJosh de Kock2018-04-05
| | | | Signed-off-by: Josh de Kock <josh@itanimul.li>
* avdevice/decklink_dec: use av_packet_make_refcounted to ensure packets are ↵James Almer2018-04-02
| | | | | | | | 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-02
| | | | | | | 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-02
| | | | Signed-off-by: Josh de Kock <josh@itanimul.li>
* lavd: remove linked listsJosh de Kock2018-03-31
| | | | Signed-off-by: Josh de Kock <josh@itanimul.li>
* Revert "lavd: add new API for iterating input and output devices"Josh de Kock2018-03-31
| | | | | | | | | | 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-26
| | | | | | | 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-24
| | | | | | Fixes Coverity CID 1419523. Signed-off-by: Marton Balint <cus@passwd.hu>
* lavd: fix iterating of input and output devicesFelix Matouschek2018-03-18
| | | | | | | | 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-22
| | | | | | | | 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-15
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avdevice/decklink_dec: extract NTSC VANCRay Tiley2018-02-13
| | | | | | | | | | | | | | 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>
* api: add missing version bumps and APIChanges entriesJames Almer2018-02-06
| | | | | | | | | avcodec bump missed in 7e8eba2d8755962d9dca5eade57bf8f591a73c0c avformat bump missed in ff46124b0df17a1d35249e09ae8eae9a61f16e04 and 0694d8702421e7aff1340038559c438b61bb30dd avdevice bump missed in 0fd475704e871ef3a535947596a012894bae3cbd Signed-off-by: James Almer <jamrial@gmail.com>
* lavd: add new API for iterating input and output devicesJosh de Kock2018-02-06
| | | | | This also adds an avpriv function to register devices in libavformat
* avdevice: migrate to AVFormatContext->urlMarton Balint2018-01-28
| | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* avdevice/decklink: Fix compilation of module on OSXDevin Heitmueller2018-01-20
| | | | | | | | | | | | | Clang applies the missing-prototypes warning on C++ files, whereas gcc only applies it to C. As a result, the decklink_common.cpp file fails to build because of missing prototypes in DecklinkDispatch.cpp (which is #included by decklink_common.cpp). We don't want to change the actual Blackmagic SDK sources, so suppress the warning just for that one #include. Signed-off-by: Devin Heitmueller <dheitmueller@ltnglobal.com> Signed-off-by: Marton Balint <cus@passwd.hu>
* avdevice/decklink: Suppress warning about misuse of struct instead of classDevin Heitmueller2018-01-20
| | | | | | | | | | | | | When building with Clang, the following warning is shown: warning: struct 'IDeckLinkVideoFrame' was previously declared as a class [-Wmismatched-tags] The function incorrectly casts IDeckLinkVideoFrame as a struct instead of a class pointer. Signed-off-by: Devin Heitmueller <dheitmueller@ltnglobal.com> Signed-off-by: Marton Balint <cus@passwd.hu>
* avdevice/decklink: addition of absolute wallclock option for pts sourceVishwanath Dixit2018-01-20
| | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* avdevice/decklink: addition of PTS_SRC_NB in enum DecklinkPtsSourceVishwanath Dixit2018-01-20
| | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* avdevice/decklink: addition of copyts optionVishwanath Dixit2018-01-20
| | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* avdevice/gdigrab: Fix screen size and mouse position calculations on hi-DPI ↵Harald Gaechter2018-01-12
| | | | | | | screens Signed-off-by: Harald Gaechter <harald.gaechter@wolfvision.net> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* lavd/alsa: Double maximum alsa buffer size.Carl Eugen Hoyos2017-11-27
| | | | | | Fixes recording from ATI Wonder 600 USB adapter, regression since e35c674d. Reported and analyzed by: Marco Paolieri, paolieri at gmail
* avdevice/decklink_dec: autodetect the video input formatKarthick J2017-11-22
| | | | | | When -format_code is not specified autodetection will happen. Signed-off-by: Marton Balint <cus@passwd.hu>
* avdevice/decklink: refactor ff_decklink_set_format functionKarthick J2017-11-21
| | | | | | This is done to enable input format autodetection in decklink_dec. Signed-off-by: Marton Balint <cus@passwd.hu>
* Merge commit 'b586903ae1b89e2d8b99c79f33cabe9b3ca03784'James Almer2017-11-11
|\ | | | | | | | | | | | | * commit 'b586903ae1b89e2d8b99c79f33cabe9b3ca03784': build: Drop redundant check for soundcard.h Merged-by: James Almer <jamrial@gmail.com>
| * build: Drop redundant check for soundcard.hDiego Biurrun2017-10-10
| | | | | | | | It should be sys/soundcard.h nowadays.
| * avfoundation: update to use AVCodecParametersVittorio Giovara2017-04-26
| |
* | avdevice/decklink_dec: make some function staticJames Almer2017-11-09
| | | | | | | | | | Reviewed-by: Aaron Levinson <alevinsn_dev@levland.net> Signed-off-by: James Almer <jamrial@gmail.com>
* | avdevice/libndi_newtek_dec: remove extra bracketJames Almer2017-10-30
| | | | | | | | | | | | Fixes compilation broken in 2245476e5c451552f8f32a4a881f6b4968898a47 Signed-off-by: James Almer <jamrial@gmail.com>
* | avdevice/decklink_dec: remove extra bracketJames Almer2017-10-30
| | | | | | | | | | | | | | | | Fixes compilation broken in 2245476e5c451552f8f32a4a881f6b4968898a47 Fixes ticket #6791 Signed-off-by: James Almer <jamrial@gmail.com>
* | avdevice: remove usage of deprecated setter and getter functionsJames Almer2017-10-29
| | | | | | | | Signed-off-by: James Almer <jamrial@gmail.com>
* | Merge commit 'f5950b8fd61ec85e0ad8790bea56b37ceea19436'James Almer2017-10-26
|\| | | | | | | | | | | | | * commit 'f5950b8fd61ec85e0ad8790bea56b37ceea19436': lavfi: Drop unused and empty header file Merged-by: James Almer <jamrial@gmail.com>
* | Merge commit '5a969f64b9cf40bad923c73b66c3031b0018e848'James Almer2017-10-24
|\| | | | | | | | | | | | | * commit '5a969f64b9cf40bad923c73b66c3031b0018e848': jack: Drop support for old (2012) JACK versions Merged-by: James Almer <jamrial@gmail.com>