encoded videos handling