Repository navigation
Replies: 2 comments 15 replies
|
Hi @Dush27, for the loop filter, you need to specify all three options: This would loop the first frame infinitely: If you want to loop the whole video, you need to know the number of frames contained. I can use this with or without scaling. What troubles me is that I see skyrocketing memory usage. Not sure yet what is going on. Other approach: How about using MediaPlayer.IsLoopingEnabled instead of a filter? The loop filter is generally memory intensive. Looping on MediaPlayer would be the preferred approach. Also, MediaPlayer does not like it when the file plays longer than the duration we set. |
14 replies
|
Hi @lukasf, Now the filter branch seems to work fine. Thanks, |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi Team,
I am trying to loop the video by using below code, but for some reason the looping option seems to fail.
ffmpegMediaSource2_.SetFFmpegVideoFilters(L"loop=loop=-1,crop=322:181:0:149,scale=640:360");
The same looping issue is not observed if I don't use above line of code to crop and scale the video.
Can you please provide your suggestions ?
NOTE: My intention is to crop, scale and perform loop on the video.
Thanks,
Dushyanth
All reactions