Antoine Cellerier
04193d5097
v4l2 access can now find optimal frame rate and dimensions
...
Default is now to use the best available dimensions at the best framerate unless framerate was explicitly set, where it would use that frame rate.
2009-01-04 19:17:20 +01:00
Antoine Cellerier
92c0a8f51c
Input based input slaves sound better.
2009-01-04 17:53:37 +01:00
Antoine Cellerier
f931a4a484
Move v4l2.c back to the access/ directory
...
(No more splitting up planed in the forseable future)
2009-01-04 17:44:55 +01:00
Antoine Cellerier
22d8f2eccd
Move the v4l2 access to its own subdirectory.
2008-01-14 21:30:44 +00:00
Antoine Cellerier
3144520ace
Fix the v4l2 "reset all controls" code. Use the extended API when supported and fallback to old api in Control().
2008-01-13 18:42:43 +00:00
Antoine Cellerier
d372e0d833
If the v4l2 driver supports the extended control api, use it to enumerate all the controls when the ControlReset function is called (it will reset all the controls which aren't in the MPEG class), else fallback to the old api.
2008-01-13 15:04:04 +00:00
Antoine Cellerier
836f9311bd
Don't try setting the audio input source if the v4l2 device doesn't have any.
2008-01-13 01:01:49 +00:00
Antoine Cellerier
ae73d43d4c
Add audio input selection for encoder cards.
2008-01-12 23:30:58 +00:00
Antoine Cellerier
36ddb3bd7b
Add v4l2 tuner support. Example command line for Hauppauge PVR 250 to get France 2 (at ECP) and encode as MPEG2: ./vlc -I dummy -vvv 'v4l2c://:audio-method=0:controls-reset:set-ctrls={video_bitrate_mode=1,video_bitrate=4000000,video_peak_bitrate=4000000}:width=720:height=576:tuner=0:tuner-frequency=478550'
2008-01-12 22:40:34 +00:00
Antoine Cellerier
7678ad450b
Add audio bass, treble and loudness options (supported by PVR 250).
2008-01-12 21:11:43 +00:00
Antoine Cellerier
f9d6ca04a0
[PATCH] v4l2 mpeg2 controls by Dennis Lou. Thanks.
2008-01-12 20:46:36 +00:00
Antoine Cellerier
fd4a7f8cca
Comment out rgb444
2008-01-10 22:33:33 +00:00
Antoine Cellerier
53dfe76b95
Add YUV420 (I420) and RGB44 (RV32?) chromas to the list, change YVU420 mapping to YV12, change some of the chroma probing code and add information in some of the debug messages.
2008-01-06 18:37:47 +00:00
Richard Hosking
7831366229
Update the help section regarding the default ALSA device.
2008-01-06 14:13:56 +00:00
Richard Hosking
a1a8a5a6b7
Use 'hw' instead of 'default' for ALSA until we know more about 'default'.
2008-01-06 14:04:14 +00:00
Antoine Cellerier
e5a8e86006
Enable --v4l2-audio-method even if ALSA isn't available (makes it possible to disable the audio input using --v4l2-audio-method 0). Change a few variable types. Print the fourcc when a v4l2 format isn't supported.
2008-01-05 22:35:00 +00:00
Richard Hosking
b978e2d547
v4l2: Fixed audio init & close. Added some comments to help the readability of the main device detection logic.
2008-01-05 19:33:15 +00:00
Antoine Cellerier
7873bfc0f1
If the v4l2 driver supports the extended controls API, use it to list controls (instead of the user control API).
2008-01-05 17:42:55 +00:00
Pierre d'Herbemont
bae7c730d1
input/input.c: Define DEMUX_CAN_SEEK and correctly set "seekable" accordingly. (This could introduce regression such as seekable item no more seekable, but I should have greped enough...).
2008-01-04 02:36:00 +00:00
Antoine Cellerier
0f7683443f
Start splitting the ALSA and OSS code. The --v4l2-adev device will be tried first as an ALSA device, and then as OSS upon failure. If no audio device is specified, "default" is used for ALSA, "/dev/dsp" for OSS. You can disable/activate usage of ALSA and OSS using the --v4l2-audio-method option (see vlc -p v4l2 --advanced --help-verbose).
...
Next step will be to split the module in different source files, the current code is quite a mess.
Also fix compilation of the module if HAVE_ALSA isn't defined.
2008-01-02 23:32:56 +00:00
Antoine Cellerier
7f4aba6183
v4l2: Factorize code, fix the video controls init, add Dennis Lou's contributions to the v4l2 module in THANKS.
2008-01-01 14:54:42 +00:00
Richard Hosking
777871986a
v4l2.c: Patch by Dennis Lou to add MPEG2 support. Many thanks.
2007-12-24 00:15:47 +00:00
Richard Hosking
e43b973a16
v4l2: ALSA error handling.
2007-12-13 15:14:10 +00:00
Antoine Cellerier
2d40161cfc
Add option to reset controls to their default value at runtime. Add "controls-update" variable which is triggered if any of the controls value is changed. Add some comments and change some function names.
2007-12-09 15:23:06 +00:00
Antoine Cellerier
9af30a9b1e
Ooops, this wasn't supposed to be here anymore.
2007-12-08 17:28:57 +00:00
Antoine Cellerier
cab1dfb502
Rework the v4l2 control handling. Variables corresponding to controls don't have any v4l2 suffix anymore. Variables for custom controls are also created. See "vars v4l2" in the rc interface. The "controls" variables is a list of all controls available. Next step is to use all these changes in the Qt interface to create a v4l2 control pannel.
2007-12-08 17:26:20 +00:00
Antoine Cellerier
0a925f52a0
Change the v4l2-chroma long help string.
2007-12-07 21:33:16 +00:00
Antoine Cellerier
23a8765c1a
Add MJPEG support to the v4l2 access (and simplify the buffer size handling code). I now need people with v4l2 compatible devices with JPEG, DV and MPEG support to try to enable those features.
2007-12-07 21:27:03 +00:00
Richard Hosking
c45b364eac
v4l2: Workaround misbehaving devices (2 DVB cards in my case)
2007-12-05 22:51:29 +00:00
Richard Hosking
3fb0af1b2a
v4l2: Progress with Alsa. Sounds much better :-)
2007-12-02 18:49:18 +00:00
Richard Hosking
c1d8551f41
v4l2: Fixed Gamma.
2007-12-02 16:17:06 +00:00
Antoine Cellerier
835785d99d
Fix menu control value display code.
...
Display current control value in VideoControlList.
Add option to reset all video controls to their default value on startup.
2007-12-02 14:41:23 +00:00
Antoine Cellerier
800b1c1d93
Add "videocontrol" command variable to issue controls other than those which we explicitly support. For example, "@v4l2 videocontrol 8000002 30" changes the sharpness to something horrible on my webcam.
2007-12-02 14:14:50 +00:00
Antoine Cellerier
06bf999c82
Add v4l2-gamma control. Also print control details for private controls.
2007-12-02 14:04:32 +00:00
Richard Hosking
dc6c106f0c
v4l2: Fixed dynamic video metric updates. Better handling of defaults.
2007-12-02 12:53:35 +00:00
Richard Hosking
91f7205bee
v4l2: Fixed VideoControlList.
2007-12-02 00:13:45 +00:00
Antoine Cellerier
6d96102abf
Don't fail launching the video device if a video control failed. Update the hue/saturation/brightness/contrast values in the callback before issue the video control. (I haven't been able to test yet due to lack of hardware)
2007-12-01 23:41:40 +00:00
Antoine Cellerier
599cf09858
Factorise the Video Control code. List all available controls in debug messages. Add a callback to update those we already support on the flag (doesn't work properly yet, it might need a restart or something and people on #v4l aren't really helpfull).
2007-12-01 17:00:20 +00:00
Antoine Cellerier
cd54166520
Don't compile any of the alsa audio input code if HAVE_ALSA isn't defined. This mainly removes the --v4l2-alsa option if alsa devlopement headers aren't available.
2007-12-01 15:38:05 +00:00
Richard Hosking
9d7bb43b1c
v4l2: Experimental ALSA input support. Currently non functional. Still defaults to OSS.
2007-11-29 16:07:22 +00:00
Richard Hosking
956c05bafd
v4l2: Support for setting brightness, contrast, saturation and hue (if supported by device)
2007-11-27 16:44:13 +00:00
Richard Hosking
5980a23b77
v4l2: Cosmetics.
2007-11-27 12:13:18 +00:00
Richard Hosking
6b02aaf010
Fixed warnings.
2007-11-27 12:06:05 +00:00
Antoine Cellerier
6673b8c6e6
v4l2: Since the frame size and frame intervals ioctls are new in Linux 2.6.19, add some ifdef stuff to make sure that this still compiles on older kernels.
2007-11-24 22:24:34 +00:00
Antoine Cellerier
376c5593ab
v4l2: Display supported frame interval (inverse frame rate) for chosen chroma and resolution in debug output.
2007-11-24 22:17:27 +00:00
Antoine Cellerier
afc6e765c5
v4l2: Display supported framesizes in debug.
2007-11-24 21:57:33 +00:00
Richard Hosking
3eb935ba13
DQ buffers using correct io method for mmap.
2007-11-24 17:28:48 +00:00
Jean-Paul Saman
78a05dbc4c
Patch by Richard Hosking: Allow users specified width and height of v4l2 source.
2007-11-20 08:30:30 +00:00
Jean-Paul Saman
c532a10b0e
Patch by Richard Hosking: Honor user specified chroma if the device supports it.
2007-11-18 19:27:59 +00:00
Jean-Paul Saman
19c4b89b75
Patch by Richard Hosking: v4l2 minor patch to fix silly bug in handling of user specified caching value.
2007-11-17 13:34:43 +00:00