aboutsummaryrefslogtreecommitdiff
path: root/libavdevice
AgeCommit message (Collapse)Author
2013-04-01lavd/v4l2: fully init an ioctl argument.Nicolas George
Silence a valgrind warning about uninitialized memory.
2013-03-28lavd/v4l2: fix printing of list_formats tableGiorgio Vazzana
In particular we needed a '\n' at the end of the line when the format is emulated. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2013-03-28lavd/v4l2: replace ioctl() with v4l2_ioctl()Giorgio Vazzana
This is consistent with the rest of the file and makes listing of emulated formats possible when ffmpeg is compiled with libv4l2. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2013-03-25dshow_pin: dont return a value from a void functionMichael Niedermayer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2013-03-23lavd/v4l2: honor previously selected input channelGiorgio Vazzana
An input channel could have been previously set with another application, like v4l2-ctl, so if no input channel is specified use the previosly selected one. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2013-03-19lavd/dshow: fix style and typo recently introduced.Clément Bœsch
2013-03-18libavdevice sdl: added window_fullscreen option to switch SDL output into ↵dronus
fullscreen mode
2013-03-17sndio_dec: add missing #include for av_gettime()Paul B Mahol
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2013-03-16lavd/v4l2: silence libv4l2 loggingGiorgio Vazzana
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2013-03-15lavd/lavfi: upgrade to AVFrame.Nicolas George
Fix a memory leak because the compat implementation of AV_BUFFERSINK_FLAG_PEEK is not identical to the previous one.
2013-03-14avdevice: bump majorMichael Niedermayer
Our previous release (1.1) contained a version 54 libavdevice and this version here is not ABI compatible thus a bump is needed Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2013-03-13bktr: add missing #include for av_gettime()Paul B Mahol
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2013-03-12Remove references to the "ff" variant of buffersink.Nicolas George
2013-03-12lavd/v4l2: fix bug in init_convert_timestamp()Giorgio Vazzana
The current code returned a period=0, resulting in identical pts for all frames after time-filtering. This is because AV_TIME_BASE_Q={1, AV_TIME_BASE} and not {AV_TIME_BASE, 1}. With this patch the correct period in microseconds is computed.
2013-03-12Merge commit 'd8b31be6caebd8d1321ecb754b6e7daaf81dc111'Michael Niedermayer
* commit 'd8b31be6caebd8d1321ecb754b6e7daaf81dc111': Add the bumps and APIchanges entries for reference counted buffers changes. Conflicts: Changelog doc/APIchanges libavcodec/version.h libavdevice/version.h libavfilter/version.h libavformat/version.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
2013-03-12avformat/avdevice: add missing time.h includesMichael Niedermayer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2013-03-09lavd/v4l2: simplify codeGiorgio Vazzana
struct buff_data contains a pointer to struct video_data, so passing the file descriptor again is redundant. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2013-03-09lavd/v4l2: correctly handle error conditions in mmap_read_frame()Giorgio Vazzana
In particular: 1) save errno before it (possibly) gets overwritten by other calls 2) do not forget to enqueue the buffer again in case of error Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2013-03-08Merge commit '1afddbe59e96af75f1c07605afc95615569f388f'Michael Niedermayer
* commit '1afddbe59e96af75f1c07605afc95615569f388f': avpacket: use AVBuffer to allow refcounting the packets. Conflicts: libavcodec/avpacket.c libavcodec/utils.c libavdevice/v4l2.c libavformat/avidec.c libavformat/flacdec.c libavformat/id3v2.c libavformat/matroskaenc.c libavformat/mux.c libavformat/utils.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
2013-03-08Add the bumps and APIchanges entries for reference counted buffers changes.Anton Khirnov
2013-03-08avpacket: use AVBuffer to allow refcounting the packets.Anton Khirnov
This will allow us to avoid copying the packets in many cases. This breaks ABI.
2013-03-02v4l2: fix regression that caused ffmpeg to occasionally get stuckMichael Niedermayer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2013-03-02lavd/v4l2: copy frames into normally allocated packets whenever there is ↵Giorgio Vazzana
just one buffer left available This will avoid the possibility that we dequeue more buffers than we have obtained from the v4l2 driver. Fixes ticket #1570 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2013-02-28avformat/lavfi: force probesize to cover at least 30 framesMichael Niedermayer
This ensures that fps and other values are estimated correctly, the probesize also is intended to limit disk/protocol reads which does not apply to lavfi inputs at all. Fixes Ticket1051 Something similar could be usefull to other input devices Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2013-02-18v4l2: try to fix build on BSDMichael Niedermayer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2013-02-17Add yvu410 as a supported v4l2 input format.Carl Eugen Hoyos
2013-02-17Add gray16 as a supported v4l2 input format.Carl Eugen Hoyos
2013-02-15dshow: Fix MSVC support, remove av_export, which was apparently unneeded anyway.rogerdpack
Also cleanup exported symbols Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2013-02-10lavd/v4l2: fix error logic when enumerating standardsStefano Sabatini
Set ret to 0 before enumerating standards in v4l2_set_parameters(), avoid use of uninitialized variable. Regression introduced in 60950adc18fe145a235211e75da68ab07123fcaa.
2013-02-10lavd/v4l2: implement consistent error handlingStefano Sabatini
In particular, avoid use of non-thread-safe strerror(), and store errno before calling av_log().
2013-01-17libcdio: support recent cdio-paranoiaLuca Barbato
Upstream decided to split the paranoia interface and move the headers accordingly.
2013-01-16dshow: allow for more codec ID'srogerdpack
Signed-off-by: rogerdpack <rogerpack2005@gmail.com>
2013-01-16dshow: better error reportingrogerdpack
Signed-off-by: rogerdpack <rogerpack2005@gmail.com>
2013-01-16dshow: fix log messagerogerdpack
Signed-off-by: rogerdpack <rogerpack2005@gmail.com>
2013-01-15Merge remote-tracking branch 'origin/master' into combinedrogerdpack
2013-02-02lavd/alsa: simplify reordering functions definition.Nicolas George
2013-01-31lavd/v4l2: read the correct time per frame from devices that support a standardGiorgio Vazzana
Generally speaking, there are two types of v4l2 devices [1]: 1) devices that support a standard, like PAL or NTFS (tv cards, for example). For this class of devices the framerate is fixed by the standard (for example PAL uses 25 fps) and the v4l2 driver cannot usually negotiate a different framerate (unless it can skip frames on the driver side, to save I/O bandwidth). 2) devices for which the notion of standard does not make sense (webcams, for example). For these devices it is usually possibile to request a desidered framerate. In either case, the desidered frame rate can be requested when the VIDIOC_G_PARM ioctl returns the V4L2_CAP_TIMEPERFRAME flag in the capability field. Currently the code does not check for V4L2_CAP_TIMEPERFRAME and supports only the second category of devices, returning a time per frame of 0/0 for devices in the first group that do not permit to negotiate the framerate. This patch adds support to read the correct framerate in all cases. [1] http://linuxtv.org/downloads/v4l-dvb-apis/standard.html Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
2013-01-31lavd/v4l2: add list_standards optionGiorgio Vazzana
Since the user is expected to choose the standard by name (with -standard option), add the possibility to list all the supported standards. Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
2013-01-28lavd/v4l2: use avcodec_find_decoder in list_formatsStephan Hilb
Because libavdevice/v4l2 is a demuxer, it makes sense to look for decoders instead of encoders when listing the formats supported by the device. Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
2013-01-27lavd/v4l2: select input immediately after opening the deviceGiorgio Vazzana
After opening the device, the first thing we should do is selecting the input. This is because the image formats (VIDIOC_ENUM_FMT ioctl) and the standards (VIDIOC_ENUMSTD ioctl) supported may depend on the selected input ([1] and [2]). [1] http://linuxtv.org/downloads/v4l-dvb-apis/vidioc-enum-fmt.html [2] http://linuxtv.org/downloads/v4l-dvb-apis/vidioc-enumstd.html Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
2013-01-27lavd/v4l2: sanitize logic of device_try_init(), so that it properly signal ↵Stefano Sabatini
errors Make device_try_init() return an error value, and allow to properly report errors which are not due to a wrong pixel/codec configuration. In particular, report intelligible feedback in case of busy device.
2013-01-18Merge commit '80ac87c13dc8c6c063e26a464c5c542357c0583f'Michael Niedermayer
* commit '80ac87c13dc8c6c063e26a464c5c542357c0583f': lavc: support ZenoXVID custom tag libcdio: support recent cdio-paranoia float_dsp: Add #ifdef HAVE_INLINE_ASM around vector_fmul_window theora: Skip zero-sized headers Conflicts: configure Merged-by: Michael Niedermayer <michaelni@gmx.at>
2013-01-16lavd/v4l2: init return value.Nicolas George
Fix a warning and random failures.
2013-01-16lavd/v4l2: update broken link to v4l2 video capture exampleStephan Hilb
Reviewed-by: Stefano Sabatini
2013-01-16lavd/v4l2: improve debug messageStephan Hilb
Reviewed-by: Stefano Sabatini
2013-01-15hdyc colrogerdpack
Signed-off-by: rogerdpack <rogerpack2005@gmail.com>
2013-01-15dshow: use standardized raw pixel format lookuprogerdpack
Signed-off-by: rogerdpack <rogerpack2005@gmail.com>
2013-01-15lavd/v4l2: apply grammar/consistency fixes to options help fieldsStefano Sabatini
2013-01-15lavd/v4l2: return meaningful error code from device_init()Stefano Sabatini
In particular, propagate errno value in case of device init failure.
2013-01-15lavd/v4l2: fix misc messagesStefano Sabatini