flutter_vlc_player icon indicating copy to clipboard operation
flutter_vlc_player copied to clipboard

VLC extras options

Open renatomotorline opened this issue 1 year ago • 3 comments

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.

renatomotorline avatar Apr 17 '23 11:04 renatomotorline

Hey! Can you please tell me where can I find those extra options?

itsSagarBro avatar Sep 12 '23 11:09 itsSagarBro

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/

ailtondvieira avatar Mar 10 '24 03:03 ailtondvieira

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

ailtondvieira avatar Mar 10 '24 03:03 ailtondvieira