Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
LibVLCSharp
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Othman
LibVLCSharp
Commits
8ef2e490
Commit
8ef2e490
authored
5 years ago
by
Martin Finkel
Browse files
Options
Downloads
Patches
Plain Diff
Docs: Add info about subtitles customization
parent
5c895883
Branches
3.x
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/how_do_I_do_X.md
+21
-1
21 additions, 1 deletion
docs/how_do_I_do_X.md
with
21 additions
and
1 deletion
docs/how_do_I_do_X.md
+
21
−
1
View file @
8ef2e490
...
...
@@ -54,6 +54,10 @@ Pretty similarly to how you would do it from the CLI. Read https://wiki.videolan
## How do I enable/disable hardware decoding?
```
csharp
MediaPlayer
.
EnableHardwareDecoding
=
true
```
## How do I play a YouTube video?
Like this, for example:
...
...
@@ -75,6 +79,8 @@ using(var libVLC = new LibVLC())
# Subtitles
Full list commands and arguments https://wiki.videolan.org/VLC_command-line_help/
## How do I set subtitles?
```
csharp
...
...
@@ -92,10 +98,24 @@ using(var libVLC = new LibVLC())
}
```
## How do I change the subtitle font?
## How do I change the subtitle font size?
```
csharp
media
.
AddOption
(
":freetype-rel-fontsize=10"
);
// Usually 10, 13, 16 or 19
```
## How do I change the subtitle color?
```
csharp
media
.
AddOption
(
":freetype-color=16711680"
);
// Red
```
## How do I change the subtitle encoding?
```
csharp
media
.
AddOption
(
":subsdec-encoding=Windows-125"
);
```
# How do I change aspect ratio?
# How do I change the movie play rate?
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment