mkv

Converting DVD image with subtitles to MKV using avconv

笑着哭i 提交于 2019-12-31 10:18:10
问题 This is the procedure I know to convert a DVD image to another videoformat (v.g. MP4): concatenate the VTS_01_ n .VOB files inside VIDEO_TS folder (for n >= 0) into a single VOB file. use avconv or ffmpeg in order to convert that VOB into another format. So far so good, however now I want to convert the DVD image with the subtitles. As far as I know the MKV format supports subtitles, so it seems an obvious choice. Alternatively I might use any other format with hard subtitles (subtitles as

音视频编码格式和封装格式的关系和区别是什么?

喜夏-厌秋 提交于 2019-12-28 23:47:04
编码本身不就是对数据的压缩了吗,是不是封装只是对编码后的数据一种包装,那为什么还有这么多种封装格式? 不同的封装格式对文件的大小影响大吗? 1 著作权归作者所有。 商业转载请联系作者获得授权,非商业转载请注明出处。 作者:王强 链接:http://www.zhihu.com/question/22854380/answer/22970936 来源:知乎 不同封装格式对文件大小影响可以忽略不计。 之所以有这么多不同的封装格式是为了适应不同的播放需求。典型的三种视频封装:ts、mp4和mkv,ts适合网络流媒体播放,将一段视频无损拆成多段,客户端播放时可以一段一段缓冲;mp4一般只包括一条视频轨和一条音频轨,适合大多数设备,兼容性最好;mkv可以封装入多个音频轨、字幕轨,适合网络传播分享。此外还有适合摄像设备录制视频用的m2ts封装等。 著作权归作者所有。 商业转载请联系作者获得授权,非商业转载请注明出处。 作者:蒋晟 链接:http://www.zhihu.com/question/22854380/answer/22971014 来源:知乎 格式由软件决定,每个软件都可以有自己的文件格式。问为什么有这么多文件格式,等于问为什么有这么多饮料品牌,有这么多车型一样,生产厂家不同而已。 一般封装格式都允许你无压缩插入各种编码的原始数据而不是再编一次码

VIDEO - soundcodec AC3 (MKV)

一世执手 提交于 2019-12-25 07:15:08
问题 Im trying to get a HTML page set up where a video is playing. My video is an .mkv file. It works fine on Chrome, but I dont have any sound. Audio codec is AC3. My code: <p><video src="video.mkv" type='video/x-matroska; codecs="a_ac3, avc"' autoplay controls onerror="failed(event)" ></video></p> https://jsfiddle.net/wc2fn02s/ 回答1: AC3 is not supported by Chrome due to licensing issues. No support for ac3 and dts - Current status: WontFix Media player silently ignores AC3 audio (pun intended).

How to make my video in landscape mode using ffmpeg

纵饮孤独 提交于 2019-12-24 18:15:12
问题 I have four video chats. Somehow I have managed to cut videos into pieces , stored in array then stacked and finally concat the video which is in the youtube link down below. I have used the size in the portrait view is 640*480. But I need to show them in the landscape. Suggest me any ideas. Landscape view: https://youtu.be/u8tmL2-CdK0 Portrait view: https://youtu.be/lO-Q3I9X8OA These are my inputs Input #0, matroska,webm, from 'PA473fbf06ed1f952f95c88b9cf22ed0ba_pre.mkv': Metadata: encoder :

How to make my video in landscape mode using ffmpeg

为君一笑 提交于 2019-12-24 18:14:12
问题 I have four video chats. Somehow I have managed to cut videos into pieces , stored in array then stacked and finally concat the video which is in the youtube link down below. I have used the size in the portrait view is 640*480. But I need to show them in the landscape. Suggest me any ideas. Landscape view: https://youtu.be/u8tmL2-CdK0 Portrait view: https://youtu.be/lO-Q3I9X8OA These are my inputs Input #0, matroska,webm, from 'PA473fbf06ed1f952f95c88b9cf22ed0ba_pre.mkv': Metadata: encoder :

How to play MKV file in browser?

☆樱花仙子☆ 提交于 2019-12-20 11:30:56
问题 I have a video file in MKV format, i want to play that file in the browser without converting, how can i play this file format in browser? <video width="320" height="240" controls> <source src="movie.mkv" type="video/mkv"> Your browser does not support the video tag. </video> i want this file to be played in full screen mode always. My browser is chrome. 回答1: It will refuse to play Matroska if the type attribute is set to video/x-matroska . Try removing the type attribute completely. After

How to playback MKV video in web browser

若如初见. 提交于 2019-12-18 12:15:20
问题 I am trying to make a MKV video with a MPEG4 video codec and AC3 audio codec available to be played online using Mozilla or Chrome. I have tried multiple methods including native HTML5, which plays back the video but no audio and from what I've read AC3 is a proprietary codec so it is not included in the supported codecs. The code for that was as follows: <video width='1024' height='768' controls autoplay> <source src="path_to_src" type='video/x-matroska'</video> I then tried to use the VLC

How to extract subtitles from MKV files in pure Java?

99封情书 提交于 2019-12-12 11:38:23
问题 does anybody know how to extract subtiles from MKV files using pure Java? (I know how to do it using tools such as mkvtoolnix. I know I could call them from Java but that's not what I want) Thanks! 回答1: This looks like the file format specification: http://www.matroska.org/technical/specs/index.html#track 回答2: I‘m not quite sure what exactly you expect as an answer. You can of course write your own Matroska parser (specification is available at matroska.org) and then simple extract the

h264格式的flv和mkv无损转换成mp4的方法

ぃ、小莉子 提交于 2019-12-06 22:57:48
现在很多flv和mkv视频都是采用的h264封装,移动设备往往并不支持这些格式的文件,但却对h264封装的mp4支持良好。因此,为了视频能在电脑和移动设备间共享,我通常会将其转换成h264封装的mp4文件。 由于视频转码非常耗时间和cpu,如果flv和mkv本来就是采用的h264封装,完全不需要转码,只需要把h264视频和音频文件分离出来,重新混流一次即可,十几秒内即可完成,非常快速,并且由于没有转码操作,也避免了转码过程的画面损失。 下面我就介绍几种将h264格式的flv和mkv无损转换为mp4的方法。 一、通过ffmpeg转换mkv文件 ffmpge( 点击下载 )可以非常快速的实现h264视频的分离和混流,并且是命令行的操作,也没有什么参数需要设置,非常适合批量转换: ffmpeg.exe -i input.mkv -y -vcodec copy -acodec copy output.mp4 要实现批量转换,可以直接用这个批处理文件: for %%i in ( *.mkv ) do ffmpeg.exe -i "%%i" -vcodec copy -acodec copy " %%~ni.mp4 " 二、通过FlvExtract + mp4box转换mkv文件 这个方法本身也支持转换flv文件,但是ffmpeg貌似对flv的支持不够好,很容易转换失败。对于flv文件

Tagging mkv files with cover images?

送分小仙女□ 提交于 2019-12-06 19:06:39
问题 I found this screenshot which shows that you can add a cover image to an mkv file in a way that it is displayed as the icon of the file in the Windows explorer using Shark007 + icaros . But these tools are messing with the system in a really bad way. A lot of people are having problems with it and I too very much regret that I've installed it. I'm really glad I got my Windows to boot again... Anyway, how could I programmatically add a cover image to an mkv file? And would I need to change