iOS VLCKit / libVLCSharp transcoding has no effect on output video

This forum is about all development around libVLC.
voidsstr
New Cone
New Cone
Posts: 1
Joined: 20 Apr 2021 14:23

iOS VLCKit / libVLCSharp transcoding has no effect on output video

Postby voidsstr » 20 Apr 2021 14:54

I've been using the libvlc player (VideoLan.LibVLC.iOS version 3.3.10) for a while on iOS and Android and it works well. I've added a transcoding feature, but for some reason the Android libvlc code works fine to transcode (change codec, bitrate, fps), but the same transcode media options on iOS (iPhone 12 pro, iOS 14.4.2) produce no changes in the output video file compared to the input video file. I have attached the sample video file which I am attempting to transcode. I'm using the libvlcsharp wrapper using Xamarin, but that team seems to think this issue could be with libvlc and it's plugins.

Here is my C# code (which contains the transcode media options that works on Android, but not iOS):

Code: Select all

Core.Initialize(); _vlc = new LibVLC(); _player = new LibVLCSharp.Shared.MediaPlayer(_vlc); _media = new Media(_vlc, _source, FromType.FromPath); _media.AddOption($":sout=#transcode{{vcodec=h264,vb=700000,acodec=aac,ab=96,channels=2,samplerate=44100,scodec=none}}:std{{access=file,mux=ts,dst={destination}}}"); var result = _player.Play(_media);
Any help or pointers on why this transcoding command is not producing any change in the output media file compared to the original would be greatly appreciated!

iOS Logfile
https://drive.google.com/file/d/1C0UGzE ... sp=sharing

Sample file I'm using to test transcoding:
https://drive.google.com/file/d/1MvJKJn ... sp=sharing

Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 28 guests