解决方案 »
- Android手机后台发短信/换SIM卡告警
- android怎么发布呀
- G7没有切换Activity没有动画效果
- 验证 Android Pad 是否真正进入了suspend
- Android中如何设置字体格式!!!
- asmack+openfire+spark 传文件问题
- Android expandableListView 的拖动效果类似QQ列表拖动好友的效果
- 遇到一个奇怪的问题,为何配置了ID,突然在R类中,没有更新?
- startActivity()和sendBroadcast()的区别是啥???
- 读取Apk文件名
- GridView无法显示图片,提示错误:outofMemory
- android面试问题
最后发现好像是自己的Ubuntu系统存在问题。 后来重装了Ubuntu 12.04 LTS编译ffmpeg-2.1:
./configure --enable-ffplay --enable-shared
make
make installSDL库:
sudo apt-get install libsdl1.2-devyasm:
sudo apt-get install yasm后面就能正常使用ffplay播放了。希望对你有帮助。
t@ubuntu:/home/hfl/hflsamb/ffmpeg-1.2.4# ./ffplay abc.avi
ffplay version 1.2.4 Copyright (c) 2003-2013 the FFmpeg developers
built on Feb 6 2014 06:38:02 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)
configuration:
libavutil 52. 18.100 / 52. 18.100
libavcodec 54. 92.100 / 54. 92.100
libavformat 54. 63.104 / 54. 63.104
libavdevice 54. 3.103 / 54. 3.103
libavfilter 3. 42.103 / 3. 42.103
libswscale 2. 2.100 / 2. 2.100
libswresample 0. 17.102 / 0. 17.102
Input #0, avi, from 'abc.avi':= 0KB vq= 0KB sq= 0B f=0/0
Metadata:
encoder : Lavf55.22.103
Duration: 00:01:02.81, start: 0.000000, bitrate: 710 kb/s
Stream #0:0 nan A-V: 0.000 fd= 0 aq= 0KB vq= 0KB sq= 0B f=0/0: Video: mpeg4 (Simple Profile) (FMP4 / 0x34504D46), yuv420p, 720x540 [SAR 135:136 DAR 45:34], 25 tbr, 25 tbn, 25 tbc
Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 48000 Hz, stereo, s16p, 128 kb/s
X Error of failed request: BadAlloc (insufficient resources for operation)
Major opcode of failed request: 134 (XVideo)
Minor opcode of failed request: 19 ()
Serial number of failed request: 25
Current serial number in output stream: 26