flutter_vlc_player
flutter_vlc_player copied to clipboard
VLC extras options
Hi,
I'm trying to rotate the video 180º, aspect ratio, and remove the audio in the extra parameters, but it only removes the audio. Does the package support rotation and aspect ratio change?
Code:
controller = VlcPlayerController.network(
url,
autoPlay: true,
options: VlcPlayerOptions(
advanced: VlcAdvancedOptions([
VlcAdvancedOptions.fileCaching(300),
VlcAdvancedOptions.networkCaching(2000),
]),
video: VlcVideoOptions([
VlcVideoOptions.dropLateFrames(true),
VlcVideoOptions.skipFrames(true),
]),
// extras: [ "--video-filter=transform", "--transform-type=180" ],
extras: [ "--video-filter=transform", "--transform-type=180", "--aspect-ratio=16:9", "--no-audio" ],
),
);
If I try vlc rtsp://user:[email protected]:554 --video-filter=transform --transform-type=180 --aspect-ratio=16:9
works fine.
Thanks in advance.
Hey! Can you please tell me where can I find those extra options?
Hey! Can you please tell me where can I find those extra options?
You can find the commands here, I believe that not all of them will have any effect in Flutter. https://wiki.videolan.org/VLC_command-line_help/
Hi,
I'm trying to rotate the video 180º, aspect ratio, and remove the audio in the extra parameters, but it only removes the audio. Does the package support rotation and aspect ratio change?
Code:
controller = VlcPlayerController.network( url, autoPlay: true, options: VlcPlayerOptions( advanced: VlcAdvancedOptions([ VlcAdvancedOptions.fileCaching(300), VlcAdvancedOptions.networkCaching(2000), ]), video: VlcVideoOptions([ VlcVideoOptions.dropLateFrames(true), VlcVideoOptions.skipFrames(true), ]), // extras: [ "--video-filter=transform", "--transform-type=180" ], extras: [ "--video-filter=transform", "--transform-type=180", "--aspect-ratio=16:9", "--no-audio" ], ), );
If I try
vlc rtsp://user:[email protected]:554 --video-filter=transform --transform-type=180 --aspect-ratio=16:9
works fine.Thanks in advance.
For some reason, you need to enter the parameters with two dots before them and not two dashes.
extras: [ "--video-filter=transform", "--transform-type=180" ] //wrong extras: [ ":video-filter=transform", ":transform-type=180" ] //right