编译ffmpeg后,其中的ffplay无法使用 ffplayffmpegandroidh264 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 玩过ffmpeg的朋友都可以讨论一下问题 看一下config参数,应该要加一个 --enable-h264 没有 --enable-h264这个参数选项 TO u011916740:最后发现好像是自己的Ubuntu系统存在问题。 后来重装了Ubuntu 12.04 LTS编译ffmpeg-2.1:./configure --enable-ffplay --enable-sharedmakemake installSDL库:sudo apt-get install libsdl1.2-devyasm:sudo apt-get install yasm后面就能正常使用ffplay播放了。希望对你有帮助。 前辈,你好,我安装SDL库和yasm后,按你的方法在ubuntu12.04编译一下,产生ffplay,播放一个视频,视频窗口一闪1s就没了。播放纯音频没问题,请问还有什么特殊库要安装的吗?是什么原因?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.102Input #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/sX 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 system.loadLibrary崩溃 关于android使用xmpp实现数据推动 超强容错,智能英文输入法 listview有多个view,怎么回填 ListView點選之後跳到其他的XML 关于android里面安全与权限里面的SharedUserId? 代码中的布局适应各种分辨率的问题 请帮看看下面的代码,想实现按回退按钮,浏览器返回上一页,但实现结果是程序崩溃了? 跪求,openFileOutput()函数为什么不能调用 Activity的onFocusChange和onClick事件 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