Back to Blog
Record gif chrome6/23/2023 ![]() ![]() ![]() If you specify an incorrect syntax, for example video/webm codecs:vp9,opus in Firefox, you do not get an error, you just get a file that is encoded in VP8,opus. When creating a MediaRecorder, you should take extra-care: for example, on Firefox, video/webm codecs=vp8 is supported, but when creating a MediaRecorder you should use " video/webm" or " video/webm codecs=vp8,opus You should use the syntax: video/webm codecs=vp8, not video/webm codecs:vp8 In this way, you now get the file encoded in VP8,Opus, but the actual video and audio encoder defaults could change over time, so if you want to be sure that VP8 and Opus are used, you need to specify them. You need to specify both: "video/webm codecs=vp8,opus", or you can just rely on defaults, specifying only the container format "video/webm". If you specify "video/webm codecs=vp8", you get an error because vp8 cannot encode audio. If you open the file using a tool like MediaInfo, you realize that it is encoded in VP8,Opus. Part 1: Make Animated GIF Screen Recording with GIF Screen Recorder Part 2: Transfer Video File to GIF Screen Recording with Online Converter Part 3: GIF Screen Recording with Chrome Extension Part 1: Make Animated GIF Screen Recording with GIF Screen Recorder Theoretically, people can make GIFs either by a GIF screen recorder or a video converter. If you try to create a MediaRecorder on Firefox using the wrong syntax "video/webm codecs:vp9,opus" or "video/webm codecs:notatall,opus", you do not get an error, you just get a video encoded in VP8 and Opus. I have created another jsfiddle to experiment with MediaRecorder: This is because isTypeSupported on Firefox is able to understand the request "video/webm codecs=vp9.0" or "video/webm codecs=notatall" and it responds that it is not supported but it is not able to understand the request "video/webm codecs:vp9.0" or "video/webm codecs:notatall", so isTypeSupported on Firefox (as of version 92.0, ) responds that it is supported. Note that you will not find "video/webm codecs=vp9.0", and you will not find "video/webm codecs=notatall" either. I also added a non-existent codec ("notatall").Īmong the results of this script, if you call it from Firefox, you will find: video/webm codecs:vp9.0 Function getSupportedMimeTypes(media, types, codecs) `Ĭonst videoTypes = Ĭonst audioTypes = Ĭonst codecs = Ĭonst supportedVideos = getSupportedMimeTypes("video", videoTypes, codecs) Ĭonst supportedAudios = getSupportedMimeTypes("audio", audioTypes, codecs) Ĭonsole.log('- Top supported Video : ', supportedVideos)Ĭonsole.log('- Top supported Audio : ', supportedAudios)Ĭonsole.log('- All supported Videos : ', supportedVideos)Ĭonsole.log('- All supported Audios : ', supportedAudios)īuilding on the previous answers (thanks I have created a jsfiddle to list all the supported types. ![]()
0 Comments
Read More
Leave a Reply. |