Video Playing in Video Track 2 in VLC Media Player - Set Video Track - vlc

I am currently using VlcControl ( Vlc.DotNet.Forms ) to play the video in latest VLC Media player using rtsp url in
c# code _videoControl.Play(new Uri(networkUrl), options);
The issue here is ,the video is not playing in default Video Track 1 but it is playing in Video Track 2.
Is there any way to set the Video Track to 1?
Kindly let me know if any options available to set the video track and play.

You can use this to select the track you want to play :
(disclaimer : I'm on my phone and I didn't test the code)
mediaPlayer.SetMedia(...);
mediaPlayer.Parse();
var videoTracks = mediaPlayer.Video.Tracks.All.ToArray();
mediaPlayer.Video.Tracks.Current = videoTracks[0];
mediaPlayer.Play();
The same can be achieved with Audio for audio tracks

Related

iOS : How to apply audio effect on recorded video

I am developing an application which require to apply audio effect on recorded video.
I am recording video using GPUImage library. I can successfully done with it. Now, I need to apply audio effect like Chipmunk, Gorila, Large Room, etc.
I looked into Apple's document and it say that AudioEngine can't apply AVAudioUnitTimePitch on Input Node (as Microphone).
For solving this problem, I use following mechanism.
Record video & audio at same time.
Play video. While playing video, start AudioEngine on Audio file and apply AVAudioUnitTimePitch on it.
[playerNode play]; // Start playing audio file with video preview
Merge video and new effected audio file.
Problem :
User have to preview a full video for audio effect merge. This is not a good solution.
If I set volume of playerNode to 0 (zero). Then It record mute video.
Please provide any better suggestion to do this things. Thanks in advance.

Recording avplayer playing live streaming byte data...in iOS

I want to save avplayer playing byte data save on document directory.(like recording) but i don't want record side voice only song music.
AVAudioRecorder is take speaker voice so, thats why i want to save player live streaming data.
So, Please give any suggestion and source code which apply in my code.

Select audio track in HLS Stream using MPMoviePlayerViewController

I use MPMoviePlayerViewController to play HLS stream. I can chose between subtitles, but I don't know how to select audio tracks. Video has several audio tracks (e.g. in VLC I can select them).
How can I get all audio tracks and select them during playing video?

Using AVPlayer to make audio tinny (adjust playback EQ).

I would like to be able to have music playback that can allow me to make the audio tinny. Like an Equalizer, i would like to alter the Channel EQ of the audio using a slider to choose whether the audio is full and rich, or light and tinny during playback of the audio file. Is this implementation possible?
Thanks,

iOS Capture Video from Camera and Mixing with audio file in real time

I am trying to capture video from iPhone camera and save the movie mixed with an audio file.
I can capture the video with the audio (from mic) with no problems. What I want to do is capture the video but instead of mic audio, use a music track (a .caf file).
I am capturing the video with AVAssetWriter. I've tried to set up an AVAssetReader to read the audio file, but I couldn't make it work with the AVAssetWriter (maybe because the decoding of audio happens real fast).
Also, I don't want to save the movie without audio and mix it afterwards with an AVAssetExportSession. It would be to slow for my purpose.
Any Ideas ? Thanks in advance.
Capture the video using AVAssetWriter, Capture audio lets say with AvAudioRecorder , then mix audio and video using AVExportSession , lots of posts on this topic.
If you do it after (with AVAssetExportSession) , you will problem with the sync. and short delay (time...) between the video and the audio...didn't find better solution

Resources