VideoTransformEffectDefinition'u kullanmaya çalışıyorum. VideoTransformEffectDefinition, Error ile biter: Video kodu çözülemedi
var clip = await MediaClip.CreateFromFileAsync(pickedFile);//creating clip from storage file
MediaComposition composition = new MediaComposition();
composition.Clips.Add(clip);
VideoTransformEffectDefinition videoEffect1 = new VideoTransformEffectDefinition();
videoEffect1.PaddingColor = Colors.Blue;//this line is not necessary, does not matter how videoEffect is changed
clip.VideoEffectDefinitions.Add(videoEffect1);//adding videoEffect
this.mediaElement.SetMediaStreamSource(composition.GenerateMediaStreamSource());//setting source to MediaElement
Bu
istisna gitmiyor ama bana medya öğesi üzerinde"Error: Video could not be decoded"
göstermektedir.
kod VideoStabilizationEffectDefinition ile iyi çalışıyor, çünkü garip:
var clip = await MediaClip.CreateFromFileAsync(pickedFile);//creating clip from storage file
MediaComposition composition = new MediaComposition();
composition.Clips.Add(clip);
VideoStabilizationEffectDefinition videoEffect = new VideoStabilizationEffectDefinition();
clip.VideoEffectDefinitions.Add(videoEffect);//adding videoEffect
this.mediaElement.SetMediaStreamSource(composition.GenerateMediaStreamSource());//setting source to MediaElement
Neyi yanlış yapıyorum?
Yani .. o gerçek zamanlı olarak dolgu rengi (örneğin) eklemek mümkün olmadığı anlamına gelir? Resmi örnek her zaman depolama dosyasına kaydetme ile .. – Alamakanambra
Öyle görünüyor, gerçek zamanlı olarak oynamak için bir yöntem bulamıyorum. –