当前位置:网站首页>解决Typescript文件被识别为视频的问题
解决Typescript文件被识别为视频的问题
2022-06-10 09:51:00 【若海】
概念引入
TypeScript是微软开发的一个开源的编程语言,通过在JavaScript的基础上添加静态类型定义构建而成Transport Stream即传输流,是一种常见的视频封装格式,基于MPEG-2的封装格式(所以也叫MPEG-TS)TypeScript和Transport Stream的文件扩展名均为ts
问题现象
在Windows操作系统上.ts被默认标记为Transport Stream,对于普通用户来讲这完全没有问题,但对于TypeScript开发者来说简直就是个灾难了:用文件浏览器打开一个.ts文件较多的项目时,系统需要把所有文件扫描一遍,并尝试识别视频的封面,这个过程几乎就是逐帧动画,严重影响工作效率。
解决办法
要解决这个问题,必然是要修改Windows的注册表,将下面的代码保存为typescript.reg,然后双击导入注册表,重启系统即可。
Windows Registry Editor Version 5.00
[-HKEY_CLASSES_ROOT\.ts]
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Kindmap]
".ts"="document"恢复视频模式
那有人可能要说了,如果哪天我想恢复回去怎么办?下面给出恢复用的注册表代码:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\.ts]
"Content Type"="video/vnd.dlna.mpeg-tts"
"PerceivedType"="video"
[HKEY_CLASSES_ROOT\.ts\OpenWithProgids]
"AppX6eg8h5sxqq90pv53845wmnbewywdqq5h"=hex(0):
[HKEY_CLASSES_ROOT\.ts\ShellEx]
[HKEY_CLASSES_ROOT\.ts\ShellEx\{BB2E617C-0920-11D1-9A0B-00C04FC2D6C1}]
@="{9DBD2C50-62AD-11D0-B806-00C04FD706EC}"
[HKEY_CLASSES_ROOT\.ts\ShellEx\{e357fccd-a995-4576-b01f-234630154e96}]
@="{9DBD2C50-62AD-11D0-B806-00C04FD706EC}"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Kindmap]
".ts"="video"本文同步发布于作者博客: https://www.rehiy.com/post/430
腾云先锋(TDP,Tencent Cloud Developer Pioneer)是腾讯云GTS官方组建并运营的技术开发者群体。这里有最专业的开发者&客户,能与产品人员亲密接触,专有的问题&需求反馈渠道,有一群志同道合的兄弟姐妹。来加入属于我们开发者的社群吧 。
边栏推荐
- 金融风控实战——异常检测(一)
- 四种最简单的防反接电路
- Lambda表达式
- PHP微信H5支付Demo
- [image denoising] image denoising based on MATLAB bdcnn [including Matlab source code 1866]
- 一行代码制作数据分析交叉表,太便捷了
- 2022年金属非金属矿山提升机操作考试题库及答案
- "Pit" of mongoreplay
- R language plot visualization: plot visualization of stacked histograms and custom setting of the spacing between bars
- Requirements and business model analysis - Requirements 17- requirements management
猜你喜欢

In 2025, the output value, added value and other scale indicators of the construction industry will continue to remain at the forefront of the country

Réflexions sur la conception de la gestion du réseau Unicom 5g

领导提拔你的原因,只有这点最真实,其他都是瞎扯!

如何在微信小程序中优雅地发送异步请求?

Only this is the most true reason why leaders promote you. The rest is nonsense!

On how T-level interactive development shines on our hands

威纶通触摸屏直接与台达变频器进行MODBUS RTU通信的具体方法(图文)

Personnalisation de l'équipement d'essai de Chengdu Introduction préliminaire aux types de données du langage C du micro - ordinateur à puce unique

618来袭,大量优惠券生成太耗时?ThreadPoolTaskExecutor线程池帮你来搞定

Important technological breakthrough in privacy computing! 100 million level data density analysis can be completed in 10 minutes
随机推荐
【图像特征提取】基于matlab脉冲耦合神经网络(PCNN)图像特征提取【含Matlab源码 1868期】
axure弹框设置
Lambda ellipsis rule
Theory and application of image processing
Genius! Only use four integers to write a snake game!
Stream stream overview
【摸鱼神器】UI库秒变LowCode工具——列表篇(二)维护json的小工具
2022年金属非金属矿山提升机操作考试题库及答案
R language plot visualization: plot visualization of stacked histograms and custom setting of the spacing between bars
Ce soir - là, j'ai battu mon collègue...
Learning notes on panoramic segmentation of point cloud
Requirements and business model analysis - Requirements 16 - requirements validation
Do you know all the wonderful functions of the vlookup function?
R语言plotly可视化:plotly可视化堆叠stacked的直方图、自定义设置条形之间的间距(Stacked Histograms)
Uncaught TypeError: Cannot read properties of undefined (reading ‘colspan‘)
Development of raspberry pie IO port driver
使用 nsenter 进入 netns 抓包
[edge detection] eight direction Sobel image edge detection based on MATLAB [including Matlab source code 1865]
R语言使用lmPerm包应用于线性模型的置换方法(置换检验、permutation tests)、使用lm模型构建多项式回归模型、使用lmp函数生成置换检验多项式回归模型
收藏 | VLOOKUP函数的这些妙用你都知道吗?