<?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>绿野仙踪 &#187; 我的网站</title>
	<atom:link href="http://w.wkdisk.cn/tag/%e6%88%91%e7%9a%84%e7%bd%91%e7%ab%99/feed/" rel="self" type="application/rss+xml" />
	<link>http://w.wkdisk.cn</link>
	<description>仍在路上</description>
	<lastBuildDate>Mon, 18 Dec 2023 16:50:17 +0000</lastBuildDate>
	<language>zh-CN</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=4.1</generator>
	<item>
		<title>我使用的flv转换代码</title>
		<link>http://w.wkdisk.cn/my-flv-encode/</link>
		<comments>http://w.wkdisk.cn/my-flv-encode/#comments</comments>
		<pubDate>Thu, 06 Nov 2008 00:57:33 +0000</pubDate>
		<dc:creator><![CDATA[billy]]></dc:creator>
				<category><![CDATA[我的网站]]></category>
		<category><![CDATA[mencoder]]></category>
		<category><![CDATA[视频处理]]></category>

		<guid isPermaLink="false">/?p=112</guid>
		<description><![CDATA[首先解压视频文件 rarcomm = “cmd.exe /c ” &#38; “e:cnrarrar.exe  [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>首先解压视频文件</p>
<blockquote><p>rarcomm = “cmd.exe /c ” &amp; “e:cnrarrar.exe  x ” &amp; filepath &amp; rarname &amp; ” -w ” &amp; swfpath &amp; “  -c -y -inul”</p></blockquote>
<p>获取视频截图</p>
<blockquote><p>getpic = “cmd.exe /c F:mencodermplayer ” &amp; newswf &amp; ” -ss 1 -nosound -vo jpeg:outdir=v -frames 2 ”<br />
FileCopy App.Path &amp; “v0000002.jpg”, picname<br />
Kill App.Path &amp; “v0000001.jpg”<br />
Kill App.Path &amp; “v0000002.jpg”</p></blockquote>
<p>获取视频信息</p>
<blockquote><p>vinfo = “cmd.exe /c F:mencodermplayer -identify ” &amp; newswf &amp; ” -nosound -vc dummy -vo null &gt;&gt;” &amp; picpath &amp; id &amp; “.txt”</p></blockquote>
<p>这里原来考虑直接使用上面getpic所获得的信息，但其主要是少一项视频时间，没有办法只有单独获取了</p>
<p>转换成flv</p>
<blockquote><p>
flvcom = “cmd.exe /c F:mencodermencoder.exe ” &amp; newswf &amp; ” -o “”&#8221; &amp; flvname &amp; “”&#8221; -of lavf -oac mp3lame -lameopts abr:br=32:vol=1 -srate 22050 -ovc lavc -lavcopts vcodec=flv:vbitrate=400:mbd=2:v4mv:turbo:vb_strategy=1:last_pred=2:trell:mv0:<br />
dia=4:cbp -vf scale=320:-3 -subpos 100  -subwidth 100 -subfont-text-scale 3 -utf8 -font “”F:mencoderMSYHBD.TTF”&#8221; -sub “”F:mencodertest.srt”&#8221;”
</p></blockquote>
<p>水印的问题：</p>
<p>mencoder使用srt，主要的问题是水平位置的控制 和字幕编码的问题。</p>
<p>水平位置：好像没有具体的参数来配置字幕的水平位置只有-subpos来控制垂直的位置，经过测试你可以在srt字幕文件中以空格的方式来控制水平（视频的宽度也有影响，需要根据视频宽度调整），另外-subwidth 决定了字幕的宽度，是否会分两行显示。<br />
对于rmvb wmv等可变码率格式的文件在转换时要确定帧率否则音画不同步 -ofps 12</p>
]]></content:encoded>
			<wfw:commentRss>http://w.wkdisk.cn/my-flv-encode/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
