<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>格式 &#8211; 元几录</title>
	<atom:link href="https://blog.dpean.com/tag/%e6%a0%bc%e5%bc%8f/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.dpean.com</link>
	<description></description>
	<lastBuildDate>Wed, 10 Sep 2025 01:22:34 +0000</lastBuildDate>
	<language>zh-Hans</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.2</generator>

<image>
	<url>https://blog.dpean.com/wp-content/uploads/2025/08/cropped-logo-1-150x150.png</url>
	<title>格式 &#8211; 元几录</title>
	<link>https://blog.dpean.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>WordPress mkv格式视频无法播放</title>
		<link>https://blog.dpean.com/%e7%9f%a5%e8%af%86/wordpress%e4%b8%8d%e6%94%af%e6%8c%81mkv%e6%a0%bc%e5%bc%8f/</link>
		
		<dc:creator><![CDATA[dpecain]]></dc:creator>
		<pubDate>Tue, 09 Sep 2025 01:01:12 +0000</pubDate>
				<category><![CDATA[知识]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[格式]]></category>
		<category><![CDATA[视频]]></category>
		<guid isPermaLink="false">https://blog.dpean.com/?p=481</guid>

					<description><![CDATA[本文中&#60;video_home&#62;为视频所在文件夹，&#8230;]]></description>
										<content:encoded><![CDATA[
<p class="has-cyan-bluish-gray-color has-text-color has-link-color wp-elements-e5d972ea3fcf83828513b312a20e746e"><em>本文中&lt;video_home&gt;为视频所在文件夹，&lt;input.mkv&gt;为待转的mkv格式视频，&lt;output.mp4&gt;为输出的mp4格式视频</em></p>



<p><strong>WordPress支持的格式：</strong>MP4、M4V、MPG、MOV、VTT (text captions for video – upload by inserting a Video block)、AVI、OGV、WMV、3GP、3G2，<strong>其中并不包含mkv</strong></p>



<p><strong>Windows视频格式转换软件推荐</strong>    <a href="https://github.com/eibols/ffmpeg_batch" target="_blank" rel="noreferrer noopener">eibols/ffmpeg_batch</a></p>



<p><strong>Mac视频格式转换</strong></p>



<p>1.打开终端、安装FFmpeg</p>



<div class="wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:clamp(14px, .875rem, 21px);font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#f6f6f4;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:clamp(20px, 1.25rem, 30px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:flex;align-items:center;padding:10px 0px 0 16px;font-size:0.8em;width:100%;text-align:left;background-color:#282A36;font-style:italic;color:#f6f6f4"><span style="border-bottom:1px solid rgba(251, 251, 239, 0.2)">Bash</span></span><span role="button" tabindex="0" style="color:#f6f6f4;display:none" aria-label="复制" class="code-block-pro-copy-button"><pre class="code-block-pro-copy-button-pre" aria-hidden="true"><textarea class="code-block-pro-copy-button-textarea" tabindex="-1" aria-hidden="true" readonly>brew install ffmpeg
ffmpeg -version #验证ffmpeg是否安装成功</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki dracula-soft" style="background-color: #282A36" tabindex="0"><code><span class="line"><span style="color: #62E884">brew</span><span style="color: #F6F6F4"> </span><span style="color: #E7EE98">install</span><span style="color: #F6F6F4"> </span><span style="color: #E7EE98">ffmpeg</span></span>
<span class="line"><span style="color: #62E884">ffmpeg</span><span style="color: #F6F6F4"> </span><span style="color: #BF9EEE">-version</span><span style="color: #F6F6F4"> </span><span style="color: #7B7F8B">#验证ffmpeg是否安装成功</span></span></code></pre></div>



<p>2.开始转换</p>



<div class="wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:clamp(14px, .875rem, 21px);font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#f6f6f4;--cbp-line-number-width:calc(2 * 0.6 * .875rem);line-height:clamp(20px, 1.25rem, 30px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:flex;align-items:center;padding:10px 0px 0 16px;font-size:0.8em;width:100%;text-align:left;background-color:#282A36;font-style:italic;color:#f6f6f4"><span style="border-bottom:1px solid rgba(251, 251, 239, 0.2)">Bash</span></span><span role="button" tabindex="0" style="color:#f6f6f4;display:none" aria-label="复制" class="code-block-pro-copy-button"><pre class="code-block-pro-copy-button-pre" aria-hidden="true"><textarea class="code-block-pro-copy-button-textarea" tabindex="-1" aria-hidden="true" readonly>cd &lt;video_home>
ffmpeg -i &lt;input.mkv> -vcodec h264 -acodec aac &lt;output.mp4> 
# cd ~/Movies
# ffmpeg -i ScreenRecorderProject6.mkv -vcodec h264 -acodec aac test.mp4   
# ffmpeg version 8.0 Copyright (c) 2000-2025 the FFmpeg developers
#   built with Apple clang version 17.0.0 (clang-1700.0.13.3)
#   configuration: --prefix=/opt/homebrew/Cellar/ffmpeg/8.0_1 --enable-shared --enable-pthreads --enable-version3 --cc=clang --host-cflags= --host-ldflags='-Wl,-ld_classic' --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libaribb24 --enable-libbluray --enable-libdav1d --enable-libharfbuzz --enable-libjxl --enable-libmp3lame --enable-libopus --enable-librav1e --enable-librist --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libspeex --enable-libsoxr --enable-libzmq --enable-libzimg --disable-libjack --disable-indev=jack --enable-videotoolbox --enable-audiotoolbox --enable-neon
#   libavutil      60.  8.100 / 60.  8.100
#   *****
#   *****
# Input #0, matroska,webm, from 'ScreenRecorderProject6.mkv':
#   *****
#   *****
# Output #0, mp4, to 'test.mp4':
#   *****
#   *****
# &#91;libx264 @ 0x12c60f090&#93; 8x8 transform intra:47.6% inter:70.5%
# &#91;libx264 @ 0x12c60f090&#93; coded y,uvDC,uvAC intra: 28.8% 50.3% 23.2% inter: 0.8% 2.1% 0.3%
# &#91;libx264 @ 0x12c60f090&#93; i16 v,h,dc,p: 44% 29%  9% 18%
# &#91;libx264 @ 0x12c60f090&#93; i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 32% 14% 41%  2%  2%  2%  2%  3%  2%
# &#91;libx264 @ 0x12c60f090&#93; i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 29% 24% 21%  4%  4%  4%  5%  5%  4%
# &#91;libx264 @ 0x12c60f090&#93; i8c dc,h,v,p: 56% 20% 18%  6%
# &#91;libx264 @ 0x12c60f090&#93; Weighted P-Frames: Y:0.2% UV:0.2%
# &#91;libx264 @ 0x12c60f090&#93; ref P L0: 78.8%  4.7% 11.8%  4.7%  0.0%
# &#91;libx264 @ 0x12c60f090&#93; ref B L0: 81.8% 15.9%  2.3%
# &#91;libx264 @ 0x12c60f090&#93; ref B L1: 95.1%  4.9%
# &#91;libx264 @ 0x12c60f090&#93; kb/s:1516.29
# &#91;aac @ 0x12c653e80&#93; Qavg: 30484.852</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki dracula-soft" style="background-color: #282A36" tabindex="0"><code><span class="line"><span style="color: #97E1F1">cd</span><span style="color: #F6F6F4"> </span><span style="color: #F286C4">&lt;</span><span style="color: #E7EE98">video_hom</span><span style="color: #F6F6F4">e</span><span style="color: #F286C4">&gt;</span></span>
<span class="line"><span style="color: #62E884">ffmpeg</span><span style="color: #F6F6F4"> </span><span style="color: #BF9EEE">-i</span><span style="color: #F6F6F4"> </span><span style="color: #F286C4">&lt;</span><span style="color: #E7EE98">input.mk</span><span style="color: #F6F6F4">v</span><span style="color: #F286C4">&gt;</span><span style="color: #F6F6F4"> </span><span style="color: #BF9EEE">-vcodec</span><span style="color: #F6F6F4"> </span><span style="color: #E7EE98">h264</span><span style="color: #F6F6F4"> </span><span style="color: #BF9EEE">-acodec</span><span style="color: #F6F6F4"> </span><span style="color: #E7EE98">aac</span><span style="color: #F6F6F4"> </span><span style="color: #F286C4">&lt;</span><span style="color: #E7EE98">output.mp</span><span style="color: #F286C4">4&gt;</span><span style="color: #F6F6F4"> </span></span>
<span class="line"><span style="color: #7B7F8B"># cd ~/Movies</span></span>
<span class="line"><span style="color: #7B7F8B"># ffmpeg -i ScreenRecorderProject6.mkv -vcodec h264 -acodec aac test.mp4   </span></span>
<span class="line"><span style="color: #7B7F8B"># ffmpeg version 8.0 Copyright (c) 2000-2025 the FFmpeg developers</span></span>
<span class="line"><span style="color: #7B7F8B">#   built with Apple clang version 17.0.0 (clang-1700.0.13.3)</span></span>
<span class="line"><span style="color: #7B7F8B">#   configuration: --prefix=/opt/homebrew/Cellar/ffmpeg/8.0_1 --enable-shared --enable-pthreads --enable-version3 --cc=clang --host-cflags= --host-ldflags=&#39;-Wl,-ld_classic&#39; --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libaribb24 --enable-libbluray --enable-libdav1d --enable-libharfbuzz --enable-libjxl --enable-libmp3lame --enable-libopus --enable-librav1e --enable-librist --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libspeex --enable-libsoxr --enable-libzmq --enable-libzimg --disable-libjack --disable-indev=jack --enable-videotoolbox --enable-audiotoolbox --enable-neon</span></span>
<span class="line"><span style="color: #7B7F8B">#   libavutil      60.  8.100 / 60.  8.100</span></span>
<span class="line"><span style="color: #7B7F8B">#   *****</span></span>
<span class="line"><span style="color: #7B7F8B">#   *****</span></span>
<span class="line"><span style="color: #7B7F8B"># Input #0, matroska,webm, from &#39;ScreenRecorderProject6.mkv&#39;:</span></span>
<span class="line"><span style="color: #7B7F8B">#   *****</span></span>
<span class="line"><span style="color: #7B7F8B">#   *****</span></span>
<span class="line"><span style="color: #7B7F8B"># Output #0, mp4, to &#39;test.mp4&#39;:</span></span>
<span class="line"><span style="color: #7B7F8B">#   *****</span></span>
<span class="line"><span style="color: #7B7F8B">#   *****</span></span>
<span class="line"><span style="color: #7B7F8B"># &#91;libx264 @ 0x12c60f090&#93; 8x8 transform intra:47.6% inter:70.5%</span></span>
<span class="line"><span style="color: #7B7F8B"># &#91;libx264 @ 0x12c60f090&#93; coded y,uvDC,uvAC intra: 28.8% 50.3% 23.2% inter: 0.8% 2.1% 0.3%</span></span>
<span class="line"><span style="color: #7B7F8B"># &#91;libx264 @ 0x12c60f090&#93; i16 v,h,dc,p: 44% 29%  9% 18%</span></span>
<span class="line"><span style="color: #7B7F8B"># &#91;libx264 @ 0x12c60f090&#93; i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 32% 14% 41%  2%  2%  2%  2%  3%  2%</span></span>
<span class="line"><span style="color: #7B7F8B"># &#91;libx264 @ 0x12c60f090&#93; i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 29% 24% 21%  4%  4%  4%  5%  5%  4%</span></span>
<span class="line"><span style="color: #7B7F8B"># &#91;libx264 @ 0x12c60f090&#93; i8c dc,h,v,p: 56% 20% 18%  6%</span></span>
<span class="line"><span style="color: #7B7F8B"># &#91;libx264 @ 0x12c60f090&#93; Weighted P-Frames: Y:0.2% UV:0.2%</span></span>
<span class="line"><span style="color: #7B7F8B"># &#91;libx264 @ 0x12c60f090&#93; ref P L0: 78.8%  4.7% 11.8%  4.7%  0.0%</span></span>
<span class="line"><span style="color: #7B7F8B"># &#91;libx264 @ 0x12c60f090&#93; ref B L0: 81.8% 15.9%  2.3%</span></span>
<span class="line"><span style="color: #7B7F8B"># &#91;libx264 @ 0x12c60f090&#93; ref B L1: 95.1%  4.9%</span></span>
<span class="line"><span style="color: #7B7F8B"># &#91;libx264 @ 0x12c60f090&#93; kb/s:1516.29</span></span>
<span class="line"><span style="color: #7B7F8B"># &#91;aac @ 0x12c653e80&#93; Qavg: 30484.852</span></span></code></pre></div>



<p><strong>参考资料</strong></p>



<ol class="wp-block-list">
<li><a href="https://videoconvert.minitool.com/news/wordpress-video-not-playing.html" target="_blank" rel="noreferrer noopener">How to Fix the WordPress Video Not Playing Issue: 3 Methods</a></li>
</ol>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
