Documentation:Modules/fake: Difference between revisions
Jump to navigation
Jump to search
Remove {{Check}}: information is documented in source code: see #define ASPECT_RATIO_LONGTEXT in https://git.videolan.org/?p=vlc/vlc-0.9.git;a=blob;f=modules/codec/fake.c |
m Various: add wikilinks, some of the defaults were wrong, add more data, format, -{{Stub}} |
||
| Line 1: | Line 1: | ||
{{Module|name=fake|type=Access demux|last_version=0.9.0|description=simulate a fake input}} | {{Module|name=fake|type=Access demux|last_version=0.9.0|description=simulate a fake input}} | ||
{{Clear|right}} | |||
{{Module|name=fake|type=Codec|last_version=0.9.0|description=handle a fake input stream}} | {{Module|name=fake|type=Codec|last_version=0.9.0|description=handle a fake input stream}} | ||
| Line 7: | Line 8: | ||
|name=fake-caching | |name=fake-caching | ||
|value=integer | |value=integer | ||
|description=Caching in | |default=<code><var>DEFAULT_PTS_DELAY</var>/1000</code> | ||
|description=Caching in [[millisecond]]s | |||
}} | }} | ||
{{Option | {{Option | ||
|name=fake-fps | |name=fake-fps | ||
|value=float | |value=float | ||
|default=25. | |default=25.0 | ||
|description=Framerate | |description=[[Framerate]] e.g. 24, 25, 29.97, 30 | ||
}} | }} | ||
{{Option | {{Option | ||
| Line 19: | Line 21: | ||
|value=integer | |value=integer | ||
|default=0 | |default=0 | ||
|description= | |description=Set the ID of the fake [[elementary stream]] for use in <samp>#{{docmod|duplicate}}{}</samp> constructs | ||
}} | }} | ||
{{Option | {{Option | ||
| Line 25: | Line 27: | ||
|value=integer | |value=integer | ||
|default=0 | |default=0 | ||
|description=Duration in | |description=Duration of the fake streaming (in milliseconds) before faking an end-of-file (default is 0, meaning that the stream is unlimited) | ||
}} | }} | ||
| Line 55: | Line 57: | ||
{{Option | {{Option | ||
|name=fake-keep-ar | |name=fake-keep-ar | ||
|value=boolean | |||
|default=disabled | |default=disabled | ||
|description=Keep aspect ratio when resizing | |description=Keep [[aspect ratio]] when resizing | ||
}} | }} | ||
{{Option | {{Option | ||
| Line 62: | Line 65: | ||
|value=string | |value=string | ||
|default="" | |default="" | ||
|description=Aspect ratio of the image file (4:3, 16:9). Default is square pixels | |description=Aspect ratio of the image file (4:3, 16:9). Default is square pixels | ||
}} | }} | ||
{{Option | {{Option | ||
|name=fake-deinterlace | |name=fake-deinterlace | ||
|value=boolean | |||
|default=disabled | |default=disabled | ||
|description=Deinterlace the image after loading it | |description=[[Deinterlace]] the image after loading it | ||
}} | }} | ||
{{Option | {{Option | ||
|name=fake-deinterlace-module | |name=fake-deinterlace-module | ||
|value=string | |value=string | ||
|default="" | |default="deinterlace" | ||
|description=Deinterlace module | |description=Deinterlace module | ||
}} | }} | ||
| Line 79: | Line 83: | ||
|value=string | |value=string | ||
|default="I420" | |default="I420" | ||
|description=Image chroma | |description=Image [[chroma]] | ||
}} | }} | ||
== Example == | == Example == | ||
{{$}} '''vlc fake:// --fake-file someimage.png''' | |||
== Source code == | == Source code == | ||
* {{VLCSourceFile|modules/access/fake.c|p=vlc/vlc-0.9.git}} | * {{VLCSourceFile|modules/access/fake.c|p=vlc/vlc-0.9.git}} | ||
* {{VLCSourceFile|modules/codec/fake.c|p=vlc/vlc-0.9.git}} | * {{VLCSourceFile|modules/codec/fake.c|p=vlc/vlc-0.9.git}} | ||
{{Documentation footer}} | {{Documentation footer}} | ||
Revision as of 00:57, 14 March 2019
| Module: fake | |
|---|---|
| Type | Access demux |
| First VLC version | - |
| Last VLC version | 0.9.0 |
| Operating system(s) | all |
| Description | simulate a fake input |
| Shortcut(s) | - |
| Module: fake | |
|---|---|
| Type | Codec |
| First VLC version | - |
| Last VLC version | 0.9.0 |
| Operating system(s) | all |
| Description | handle a fake input stream |
| Shortcut(s) | - |
Options
Access Demux
- fake-caching <integer> : Caching in milliseconds default value:
DEFAULT_PTS_DELAY/1000 - fake-fps <float> : Framerate e.g. 24, 25, 29.97, 30 default value: 25.0
- fake-id <integer> : Set the ID of the fake elementary stream for use in #duplicate{} constructs default value: 0
- fake-duration <integer> : Duration of the fake streaming (in milliseconds) before faking an end-of-file (default is 0, meaning that the stream is unlimited) default value: 0
Codec
- fake-file <string> : Image to use as video for the fake stream default value: ""
- fake-file-reload <integer> : Number of seconds between each reload of the image default value: 0
- fake-width <integer> : Width default value: 0
- fake-height <integer> : Height default value: 0
- fake-keep-ar <boolean> : Keep aspect ratio when resizing default value: disabled
- fake-aspect-ratio <string> : Aspect ratio of the image file (4:3, 16:9). Default is square pixels default value: ""
- fake-deinterlace <boolean> : Deinterlace the image after loading it default value: disabled
- fake-deinterlace-module <string> : Deinterlace module default value: "deinterlace"
- fake-chroma <string> : Image chroma default value: "I420"
Example
$ vlc fake:// --fake-file someimage.png
Source code
- modules/access/fake.c (vlc/vlc-0.9.git)
- modules/codec/fake.c (vlc/vlc-0.9.git)
This page is part of official VLC media player Documentation (User Guide • Streaming HowTo • Hacker Guide • Modules)
Please read the Documentation Editing Guidelines before you edit the documentation
Please read the Documentation Editing Guidelines before you edit the documentation
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.