现在问题来了,编译完成后输入:
ffplay test.video (test.video是h264视频文件)
出现一个播放窗口,但是都是黑黑的
以下是终端输出信息:
懂的朋友帮忙解答一下,或者有对移植过程比较熟悉的朋友也可以谈谈思路
我的ffmpeg版本是2.1,编译过程使用的指令如下:
./configure --enable-memalign-hack --enable-shared --disable-yasm
make
make install
ffplay正常输出:
7 个解决方案
#1
有没有懂的朋友帮忙解答下
#2
玩过ffmpeg的朋友都可以讨论一下问题
#3
看一下config参数,应该要加一个 --enable-h264
#4
没有 --enable-h264这个参数选项
#5
我也遇到的同样的问题,你是否解决,如果解决,请告诉我一下!!!万分感谢!!!
#6
TO u011916740:
最后发现好像是自己的Ubuntu系统存在问题。 后来重装了Ubuntu 12.04 LTS
编译ffmpeg-2.1:
./configure --enable-ffplay --enable-shared
make
make install
SDL库:
sudo apt-get install libsdl1.2-dev
yasm:
sudo apt-get install yasm
后面就能正常使用ffplay播放了。希望对你有帮助。
最后发现好像是自己的Ubuntu系统存在问题。 后来重装了Ubuntu 12.04 LTS
编译ffmpeg-2.1:
./configure --enable-ffplay --enable-shared
make
make install
SDL库:
sudo apt-get install libsdl1.2-dev
yasm:
sudo apt-get install yasm
后面就能正常使用ffplay播放了。希望对你有帮助。
#7
前辈,你好,我安装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.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
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
#1
有没有懂的朋友帮忙解答下
#2
玩过ffmpeg的朋友都可以讨论一下问题
#3
看一下config参数,应该要加一个 --enable-h264
#4
没有 --enable-h264这个参数选项
#5
我也遇到的同样的问题,你是否解决,如果解决,请告诉我一下!!!万分感谢!!!
#6
TO u011916740:
最后发现好像是自己的Ubuntu系统存在问题。 后来重装了Ubuntu 12.04 LTS
编译ffmpeg-2.1:
./configure --enable-ffplay --enable-shared
make
make install
SDL库:
sudo apt-get install libsdl1.2-dev
yasm:
sudo apt-get install yasm
后面就能正常使用ffplay播放了。希望对你有帮助。
最后发现好像是自己的Ubuntu系统存在问题。 后来重装了Ubuntu 12.04 LTS
编译ffmpeg-2.1:
./configure --enable-ffplay --enable-shared
make
make install
SDL库:
sudo apt-get install libsdl1.2-dev
yasm:
sudo apt-get install yasm
后面就能正常使用ffplay播放了。希望对你有帮助。
#7
前辈,你好,我安装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.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
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