centos yum 安装 ffmpeg2

文章来源:
http://www.vr4servers.com/ffmpeg2/

Login as root

You have to add the repository
rpm -Uvh http://dl.atrpms.net/el6-x86_64/atrpms/stable/atrpms-repo-6-7.el6.x86_64.rpm

yum install -y ffmpeg ffmpeg-devel

不用自己编译了

更简单的办法是下载编译好的
http://johnvansickle.com/ffmpeg/
centos试验可以用,更靠谱,yum版本的没法打字幕,没libass

字体参考
https://gist.github.com/sxyx2008/9d5572a25063790db5fb
添加字幕

有的时候你需要给视频加一个字幕(subtitle),使用ffmpeg也可以做。一般我们见到的字幕以srt字幕为主,在ffmpeg里需要首先将srt字幕转化为ass字幕,然后就可以集成到视频中了(不是单独的字幕流,而是直接改写视频流)。

ffmpeg -i my_subtitle.srt my_subtitle.ass
ffmpeg -i inputfile.mp4 -vf ass=my_subtitle.ass outputfile.mp4

但是值得注意的是:

my_subtitle.srt需要使用UTF8编码,老外不会注意到这一点,但是中文这是必须要考虑的;

将字幕直接写入视频流需要将每个字符渲染到画面上,因此有一个字体的问题,在ass文件中会指定一个缺省字体,例如Arial,但是我们首先需要让ffmpeg能找到字体文件,不然文字的渲染就无从谈起了。ffmpeg使用了fontconfig来设置字体配置。你需要首先设置一下FONTCONFIG_PATH或者FONTCONFIG_FILE环境变量,不然fontconfig是无法找到配置文件的,这一点请参看这篇文章,如果你设置的是FONTCONFIG_PATH,那把配置文件保存为%FONTCONFIG_PATH%/font.conf即可,然后你可以在font.conf文件中配置字体文件的路径之类的。

Windows下为fontconfig设置如下的环境变量

FC_CONFIG_DIR=C:\ffmpeg
FONTCONFIG_FILE=font.conf
FONTCONFIG_PATH=C:\ffmpeg
PATH=C:\ffmpeg\bin;%PATH%

下面是一个简单的Windows版font.conf文件。

<?xml version="1.0"?>
<fontconfig>

<dir>C:\Windows\Fonts</dir>
<cache>C:\WINDOWS\Cache\Fontcache</cache>
<cachedir>C:\WINDOWS\Cache\Fontcache</cachedir>
<match target="pattern">
<test qual="any" name="family"><string>mono</string></test>
<edit name="family" mode="assign"><string>monospace</string></edit>
</match>

<match target="pattern">
<test qual="all" name="family" compare="not_eq"><string>sans-serif</string></test>
<test qual="all" name="family" compare="not_eq"><string>serif</string></test>
<test qual="all" name="family" compare="not_eq"><string>monospace</string></test>
<edit name="family" mode="append_last"><string>sans-serif</string></edit>
</match>

<alias>
<family>Times</family>
<prefer><family>Times New Roman</family></prefer>
<default><family>serif</family></default>
</alias>
<alias>
<family>Helvetica</family>
<prefer><family>Arial</family></prefer>
<default><family>sans</family></default>
</alias>
<alias>
<family>Courier</family>
<prefer><family>Courier New</family></prefer>
<default><family>monospace</family></default>
</alias>
<alias>
<family>serif</family>
<prefer><family>Times New Roman</family></prefer>
</alias>
<alias>
<family>sans</family>
<prefer><family>Arial</family></prefer>
</alias>
<alias>
<family>monospace</family>
<prefer><family>Andale Mono</family></prefer>
</alias>
<match target="pattern">
<test name="family" compare="eq">
<string>Courier New</string>
</test>
<edit name="family" mode="prepend">
<string>monospace</string>
</edit>
</match>
<match target="pattern">
<test name="family" compare="eq">
<string>Courier</string>
</test>
<edit name="family" mode="prepend">
<string>monospace</string>
</edit>
</match>

</fontconfig>

Entity Bean 需要实现 Serializable 否则 。。

服务端异常
23:53:29,131 ERROR [org.jboss.as.ejb3] (Remoting “wslhkpc” task-7) JBAS014248: 消息 Channel ID 3367520a (inbound) of Remoting connection 34916e44 to /127.0.0.1:62015 里的频道 org.jboss.remoting3.remote.InboundMessage$3@345c347c 上的异常: java.io.IOException: Stream is closed
at org.xnio.streams.BufferPipeOutputStream.closed(BufferPipeOutputStream.java:62) [xnio-api-3.0.10.GA-redhat-1.jar:3.0.10.GA-redhat-1]
at org.xnio.streams.BufferPipeOutputStream.checkClosed(BufferPipeOutputStream.java:68) [xnio-api-3.0.10.GA-redhat-1.jar:3.0.10.GA-redhat-1]
at org.xnio.streams.BufferPipeOutputStream.write(BufferPipeOutputStream.java:94) [xnio-api-3.0.10.GA-redhat-1.jar:3.0.10.GA-redhat-1]
at org.jboss.remoting3.remote.OutboundMessage.write(OutboundMessage.java:270) [jboss-remoting-3.3.1.Final-redhat-1.jar:3.3.1.Final-redhat-1]
at java.io.DataOutputStream.write(DataOutputStream.java:107) [rt.jar:1.8.0_11]
at org.jboss.as.ejb3.remote.protocol.AbstractMessageHandler$1.write(AbstractMessageHandler.java:217)
at org.jboss.marshalling.OutputStreamByteOutput.write(OutputStreamByteOutput.java:52) [jboss-marshalling-1.4.6.Final-redhat-1.jar:1.4.6.Final-redhat-1]
at org.jboss.marshalling.SimpleDataOutput.shallowFlush(SimpleDataOutput.java:353) [jboss-marshalling-1.4.6.Final-redhat-1.jar:1.4.6.Final-redhat-1]
at org.jboss.marshalling.river.RiverMarshaller.writeString(RiverMarshaller.java:1509)
at org.jboss.marshalling.river.RiverMarshaller.writeNewSerializableClass(RiverMarshaller.java:1415)
at org.jboss.marshalling.river.RiverMarshaller.writeNewClass(RiverMarshaller.java:1345)
at org.jboss.marshalling.river.RiverMarshaller.writeClass(RiverMarshaller.java:1199)
at org.jboss.marshalling.river.RiverMarshaller.writeNewSerializableClass(RiverMarshaller.java:1438)
at org.jboss.marshalling.river.RiverMarshaller.writeSerializableClass(RiverMarshaller.java:1398)
at org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:884)
at org.jboss.marshalling.AbstractObjectOutput.writeObject(AbstractObjectOutput.java:58) [jboss-marshalling-1.4.6.Final-redhat-1.jar:1.4.6.Final-redhat-1]
at org.jboss.marshalling.AbstractMarshaller.writeObject(AbstractMarshaller.java:111) [jboss-marshalling-1.4.6.Final-redhat-1.jar:1.4.6.Final-redhat-1]
at org.jboss.as.ejb3.remote.protocol.AbstractMessageHandler.writeException(AbstractMessageHandler.java:112)
at org.jboss.as.ejb3.remote.protocol.versionone.MethodInvocationMessageHandler.processMessage(MethodInvocationMessageHandler.java:166)
at org.jboss.as.ejb3.remote.protocol.versionone.VersionOneProtocolChannelReceiver.handleMessage(VersionOneProtocolChannelReceiver.java:160)
at org.jboss.remoting3.remote.RemoteConnectionChannel$5.run(RemoteConnectionChannel.java:452) [jboss-remoting-3.3.1.Final-redhat-1.jar:3.3.1.Final-redhat-1]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_11]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_11]
at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_11]
Caused by: an exception which occurred:
in object java.io.EOFException@5a234c92

客户端异常
Exception in thread “main” java.lang.IllegalStateException: EJBCLIENT000025: No EJB receiver available for handling [appName:, moduleName:TestEJB, distinctName:] combination for invocation context org.jboss.ejb.client.EJBClientInvocationContext@69a3d1d
at org.jboss.ejb.client.EJBClientContext.requireEJBReceiver(EJBClientContext.java:735)
at org.jboss.ejb.client.ReceiverInterceptor.handleInvocation(ReceiverInterceptor.java:116)
at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:183)
at org.jboss.ejb.client.EJBClientInvocationContext.retryRequest(EJBClientInvocationContext.java:208)
at org.jboss.ejb.client.EJBInvocationHandler.sendRequestWithPossibleRetries(EJBInvocationHandler.java:256)
at org.jboss.ejb.client.EJBInvocationHandler.sendRequestWithPossibleRetries(EJBInvocationHandler.java:265)
at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:198)
at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:181)
at org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:144)
at com.sun.proxy.$Proxy3.createCabin(Unknown Source)
at client.ClientTest.date(ClientTest.java:155)
at client.ClientTest.main(ClientTest.java:28)

————-
出现原因:Entity Bean 必须实现 Serializable

jboss eap 6.3 mysql数据源错误提示 JBAS010441

配置mysql数据源出现错误提示:
failure description: “JBAS010441: Failed to load module for driver
中文日志是无法加载模块

环境是jboss eap 6.3

网上找了n种答案,虽然不是我的问题,还是列举一下
答案1,说是版本问题,要mysql-5.1.30一下的
答案2,配置问题 eap的配置跟老版本的不太一样,得用modules
反正大家配置都差不多怎么都出不来,

我这里最后是因为这个:

看jboss自带的module.xml木有这行,去掉就好使了!!

ejb3 javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter,

ejb里面报异常 javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter,

其实就是个很简单的错误,需要引用jboss-client.jar 重点是合适的版本!
网上随便下了个jboss-client4.jar的包,一直报这个异常,其实就是缺少类

从jboss里复制一个新版本出来就好用了

If the tears celine outlet italy come

Her portrayals of al Qaeda and Islamic go to these guys State fighters and sympathizers in countries around the world make her memoir a work of significant merit. Politics or foreign policy, nor is it American racism or Islamophobia. The answer is elusive and troublingly mysterious..

Wiedefeld’s approach may be heartening celine outlet prices to the Montgomery County Council, and to riders who live near the terminus of each end of the Red Line. The council in its letter argued that the continued turn backs “severely diminishes service,” and threaten to hurt Metro’s ridership numbers. They want full service to the Shady Grove end of the line restored by July 1..

Celine Bags Online It’s easy for me to be sharp and sarcastic. I get in there like the rest of them, to be hip, to impress, to get fans. But I am learning here, on this site, that’s my cover up. You should not have celine outlet la vallee village to worry about marking transport, above all. With first class 24 Hour Airport Limo service in Los Angeles, you will celine outlet japan be able to avoid waiting shuttle bus celine outlet europe or taxi and you can lose your feet quickly. celine handbags outlet online Someone will come and take your bags and open the door for you. Celine Bags Online

Celine Replica Neither bear nor rattlesnake nor hurricane has prevented ecosystem ecologist Jeff Atkins from collecting water samples in Shenandoah National Park. But a recent letter from the government did what wildlife and storms could not: For the first time since the early 1980s, the monitoring program, which traces the forest’s recovery from acid rain, has a gap in its weekly data. Because the project uses federal money on federal land, the data point became another casualty of the ongoing shutdown.. Celine Replica

Says Bode, “It was absolutely above and beyond what my ability should have allowed me celine bag replica aliexpress to do at Celine Replica Bags that moment.” How did he do it? As Bode noted, “I surrendered certain parts of my ego and I was allowing my body to celine edge replica be more of a conduit for the collective energy that was there. I was in harmony.” His comment may sound pretty New Agey, but it is grounded in a simple reality: Bode allowed his mind to step aside at that pinnacle moment and gave his body permission to do what it knew how to do so well, which was to ski free and ski fast. This approach of getting your mind out of the celine nano cheap way of your performances is fundamental to your performing your best when it matters most..

Celine Luggage Tote Replica Bharata Natyam, this classical Indian dance form is known for its grace, elegance, purity and tenderness, it was originated in the temples of Tamil Nadu. “Lord Shiva in its Nataraja form is the god of this dance.” It is considered to be fire dance among five other dance forms including Odissi (element of water), Kuchipudi (element of earth), Mohiniattam (element of air) and Kathakali (element of sky or aether). celine nano fake This art form includes dance, characters, story and drama.. Celine Luggage Tote Replica

Celine Bags Replica Trump later tweeted that Germany’s energy arrangement undermines NATO and demanded allies increase defense spending immediately not by a goal set for 2024, which the president seemed to misconstrue as 2025 in his tweet. Is paying for Europe’s protection, then loses billions on Trade. Must pay 2% of GDP IMMEDIATELY, not by 2025.. Celine Bags Replica

When air quality is poor, it is essential that these populations be aware of the levels of ozone and fine particulate matter. AIRNow, which has state and local partners, makes it easy to celine mini luggage replica check out the air quality via a national map. Simple graphics describe the AQI with color codes that represent levels from “Hazardous” to “Good.” It’s easy to get hyperlocal with a zip code tool.

replica celine bags A tool for the celine replica shoes data recovery for hard disk recovers Images, videos, and other multimedia files. It supports effective scanning of storage space larger than 2 TB. Tools for the data recovery for hard disk combs lost or erased volumes on hard drive. The new 219 inch wall is Samsung’s showcase of the possibilities in resolution and sizes it can achieve with its MicroLED tech. The company also showcased a smaller MicroLED panel at 75 inches, which would be a more practical and affordable setup for most homes. The 75 inch panel supports 4K resolution, but no pricing details have been revealed by Samsung yet. replica celine bags

Celine Bags Outlet The protagonist tries to escape and only comes across more and more deranged beings from the darkest depths of the imagination, which condemn him for the “chickens he used to steal. Craps he used to shoot. Girls he used to chase.” Wait, that’s it? That’s all this cartoon doggie did to deserve being subjected to this horror?. Celine Bags Outlet

Celine Replica handbags Pakistani cricket: what a subject. What players and what characters: the regal Imran, the street fighter Javed, the mesmerising Qadir. Controversy and drama seems to surround the cheap celine dion tickets Pakistani Test team wherever and whenever it plays, be it in terms of spot fixing, umpires, ball tampering, on field confrontations, sporting brilliance or terrorism.. Celine Replica handbags

replica celine handbags Enjoy reminiscing through family photos and videos. Remember loved ones on birthdays, anniversaries and holidays in fun and creative ways. If the tears celine outlet italy come, let the tears come that’s OK too.. What makes the presidential election madness stand out is the fact that this event only happens once every four years. By the time it comes around again it’s fresh in people’s minds and you can repeat the same campaigns over and over again. Think about how you can take advantage of the presidential campaign and start your campaign now because time is quickly running out.. replica celine handbags

Well, you have to keep in mind that what we learn as kids is really hard to deprogram as an adult. When the https://www.celinereplicaus.com Karate Kid wins the tournament, his prize is a trophy and Elisabeth Shue. Neo saves the world and is awarded Trinity. Sub/mod bashing is not productive and will be met with a ban. Contact mods if you have a complaint. Please report any comments or posts violating these rules..

Celine Replica Bags Don’t limit yourself to one supplier either variety definitely pays dividends in the confectionery industry. Also, don’t be afraid to explore the sweets being offered by other cultures. You may be surprised how well Chinese, Jewish and Indian sweets (just for example) can sell even to customers who have celine replica tote no idea about those cultures. Celine Replica Bags

Celine Cheap Oh, North Korea, you’re so damn crazy we’re not sure anything you guys do is surprising anymore. To be honest, we really, really think we’ve covered how balls out insane that country is. Little has ever been officially confirmed by North Korea about what the Storm Corps are or how they operate. Celine Cheap

Celine Outlet The common mayfly is so short lived that Nature didn’t even bother giving the poor bastard a mouth, because starvation would take too long. Instead they spend their few hours of life tapping in new mayflies so quickly that it’s like they’re trying to keep up a generational combo multiplier. The moment they hit puberty, they literally spend the rest of their lives trying to fuck themselves to death Celine Outlet.

mq5.9 运行异常

运行直接异常

java.lang.IllegalStateException: LifecycleProcessor not initialized – call ‘refresh’ before invoking lifecycle methods via the context:

百思不得其解,直到看到这篇
http://zhidao.baidu.com/question/367406581580356204.html

说是计算机名不不能有-和下划线_,发现这台电脑确实有下划线,觉得不会这么邪门吧。
改后重启,好了。。。。。给跪了