Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
e6e61496
Commit
e6e61496
authored
Nov 13, 2014
by
Thilo Borgmann
Committed by
Michael Niedermayer
Nov 14, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
doc/indevs: Rework and update documentation of AVFoundation device.
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
d525e662
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
72 additions
and
14 deletions
+72
-14
indevs.texi
doc/indevs.texi
+72
-14
No files found.
doc/indevs.texi
View file @
e6e61496
...
@@ -58,36 +58,94 @@ AVFoundation input device.
...
@@ -58,36 +58,94 @@ AVFoundation input device.
AVFoundation is the currently recommended framework by Apple for streamgrabbing on OSX >= 10.7 as well as on iOS.
AVFoundation is the currently recommended framework by Apple for streamgrabbing on OSX >= 10.7 as well as on iOS.
The older QTKit framework has been marked deprecated since OSX version 10.7.
The older QTKit framework has been marked deprecated since OSX version 10.7.
The filename passed as input is parsed to contain two input streams seperated by ":".
The input filename has to be given in the following syntax:
The first entry selects the video input while the latter selects the audio input @option{"<video>:<audio>"}.
@example
Each stream can either be specified by the device name or the index.
-i "[[VIDEO]:[AUDIO]]"
The device index can also be given by using @option{-video_device_index <index>} and/or @option{-audio_device_index <index>}, respectively.
@end example
A given device index will override any given device name.
The first entry selects the video input while the latter selects the audio input.
If the desired device consists of numbers only, use the device index option to identify it.
The stream has to be specified by the device name or the device index as shown by the device list.
The default device will be chosen if an empty string or the device name @code{default} is given.
Alternatively, the video and/or audio input device can be chosen by index using the
The available devices can be enumerated by using @option{-list_devices true}.
@option{
The pixel format can be set using @option{-pixel_format <format>}.
-video_device_index <INDEX>
Available formats:
}
and/or
@option{
-audio_device_index <INDEX>
}
, overriding any
device name or index given in the input filename.
All available devices can be enumerated by using @option{-list_devices true}, listing
all device names and corresponding indices.
There are two device name aliases:
@table @code
@item default
Select the AVFoundation default device of the corresponding type.
@item none
Do not record the corresponding media type.
This is equivalent to specifiying an empty device name or index.
@end table
@subsection Options
AVFoundation supports the following options:
@table @option
@item -list_devices <TRUE|FALSE>
If set to true, a list of all available input devices is given showing all
device names and indices.
@item -video_device_index <INDEX>
Specify the video device by its index. Overrides anything given in the input filename.
@item -audio_device_index <INDEX>
Specify the audio device by its index. Overrides anything given in the input filename.
@item -pixel_format <FORMAT>
Request the video device to use a specific pixel format.
If the specified format is not supported, a list of available formats is given
und the first one in this list is used instead. Available pixel formats are:
@code{monob, rgb555be, rgb555le, rgb565be, rgb565le, rgb24, bgr24, 0rgb, bgr0, 0bgr, rgb0,
@code{monob, rgb555be, rgb555le, rgb565be, rgb565le, rgb24, bgr24, 0rgb, bgr0, 0bgr, rgb0,
bgr48be, uyvy422, yuva444p, yuva444p16le, yuv444p, yuv422p16, yuv422p10, yuv444p10,
bgr48be, uyvy422, yuva444p, yuva444p16le, yuv444p, yuv422p16, yuv422p10, yuv444p10,
yuv420p, nv12, yuyv422, gray}
yuv420p, nv12, yuyv422, gray}
@end table
@subsection Examples
@itemize
@item
Print the list of AVFoundation supported devices and exit:
@example
@example
ffmpeg -f avfoundation -i "0:0" out.mpg
$ ffmpeg -f avfoundation -list_devices true -i ""
@end example
@end example
@item
Record video from video device 0 and audio from audio device 0 into out.avi:
@example
@example
ffmpeg -f avfoundation -video_device_index 0 -i ":0" out.mpg
$ ffmpeg -f avfoundation -i "0:0" out.avi
@end example
@end example
@item
Record video from video device 2 and audio from audio device 1 into out.avi:
@example
@example
ffmpeg -f avfoundation -pixel_format bgr0 -i "default:default" out.mpg
$ ffmpeg -f avfoundation -video_device_index 2 -i ":1" out.avi
@end example
@end example
@item
Record video from the system default video device using the pixel format bgr0 and do not record any audio into out.avi:
@example
@example
ffmpeg -f avfoundation -list_devices true -i ""
$ ffmpeg -f avfoundation -pixel_format bgr0 -i "default:none" out.avi
@end example
@end example
@end itemize
@section bktr
@section bktr
BSD video input device.
BSD video input device.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment