x264 的交叉编译

hero1985 2009-04-10 04:55:38
开发板:三星 2440
交叉编译器:arm-linux-gcc 4.0
x264版本: x264-snapshot-20090408-2245
压缩参数:./x264 -q 26 -o out.264 hall_qcif.yuv 176x144

在pc机上用gcc编译x264,一切ok,编码后的264文件也可以用mplayer播放
可是用arm-linux-gcc交叉编译后,在开发板上进行编码,生成的文件却用mplayer播放不了,很困惑,同样的代码为什么产生了不同的输出?


下面是mplayer的出错信息:
hero2008@debian:~/rootfs/home/x264-arm$ mplayer out.264 -fps 25
MPlayer dev-SVN-r26940
CPU: Intel(R) Pentium(R) M processor 1.70GHz (Family: 6, Model: 13, Stepping: 6)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
Can't open joystick device /dev/input/js0: No such file or directory
Can't init input joystick
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing out.264.
H264-ES file format detected.
open: No such file or directory
[MGA] Couldn't open: /dev/mga_vid
open: No such file or directory
[MGA] Couldn't open: /dev/mga_vid
[VO_TDFXFB] Can't open /dev/fb0: No such file or directory.
s3fb: can't open /dev/fb0: No such file or directory
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
Audio: no sound
FPS forced to be 25.000 (ftime: 0.040).
Starting playback...
[h264 @ 0x87a0f90]sps_id out of range
[h264 @ 0x87a0f90]non existing PPS referenced
[h264 @ 0x87a0f90]decode_slice_header error
[h264 @ 0x87a0f90]no frame!
Error while decoding frame!
[h264 @ 0x87a0f90]non existing PPS referenced
[h264 @ 0x87a0f90]decode_slice_header error
[h264 @ 0x87a0f90]no frame!
Error while decoding frame!
[h264 @ 0x87a0f90]non existing PPS referenced
[h264 @ 0x87a0f90]decode_slice_header error
[h264 @ 0x87a0f90]no frame!
Error while decoding frame!
[h264 @ 0x87a0f90]non existing PPS referenced
[h264 @ 0x87a0f90]decode_slice_header error
[h264 @ 0x87a0f90]no frame!
Error while decoding frame!
[h264 @ 0x87a0f90]non existing PPS referenced
[h264 @ 0x87a0f90]decode_slice_header error
[h264 @ 0x87a0f90]no frame!
Error while decoding frame!
[h264 @ 0x87a0f90]non existing PPS referenced
[h264 @ 0x87a0f90]decode_slice_header error
[h264 @ 0x87a0f90]no frame!
Error while decoding frame!
[h264 @ 0x87a0f90]non existing PPS referenced
[h264 @ 0x87a0f90]decode_slice_header error
[h264 @ 0x87a0f90]no frame!
Error while decoding frame!
[h264 @ 0x87a0f90]non existing PPS referenced
[h264 @ 0x87a0f90]decode_slice_header error
[h264 @ 0x87a0f90]no frame!
Error while decoding frame!
[h264 @ 0x87a0f90]non existing PPS referenced
[h264 @ 0x87a0f90]decode_slice_header error
[h264 @ 0x87a0f90]no frame!
Error while decoding frame!
[h264 @ 0x87a0f90]non existing PPS referenced
[h264 @ 0x87a0f90]decode_slice_header error
[h264 @ 0x87a0f90]no frame!
Error while decoding frame!
[h264 @ 0x87a0f90]non existing PPS referenced
[h264 @ 0x87a0f90]decode_slice_header error
[h264 @ 0x87a0f90]no frame!
Error while decoding frame!
[h264 @ 0x87a0f90]non existing PPS referenced
[h264 @ 0x87a0f90]decode_slice_header error
[h264 @ 0x87a0f90]no frame!
Error while decoding frame!
[h264 @ 0x87a0f90]non existing PPS referenced
[h264 @ 0x87a0f90]decode_slice_header error
[h264 @ 0x87a0f90]no frame!
Error while decoding frame!
[h264 @ 0x87a0f90]non existing PPS referenced
[h264 @ 0x87a0f90]decode_slice_header error
[h264 @ 0x87a0f90]no frame!
Error while decoding frame!
[h264 @ 0x87a0f90]non existing PPS referenced
[h264 @ 0x87a0f90]decode_slice_header error
[h264 @ 0x87a0f90]no frame!
Error while decoding frame!
[h264 @ 0x87a0f90]non existing PPS referenced
[h264 @ 0x87a0f90]decode_slice_header error
[h264 @ 0x87a0f90]no frame!
Error while decoding frame!
[h264 @ 0x87a0f90]non existing PPS referenced
[h264 @ 0x87a0f90]decode_slice_header error
[h264 @ 0x87a0f90]no frame!
Error while decoding frame!
[h264 @ 0x87a0f90]non existing PPS referenced
[h264 @ 0x87a0f90]decode_slice_header error
[h264 @ 0x87a0f90]no frame!
Error while decoding frame!
[h264 @ 0x87a0f90]non existing PPS referenced
[h264 @ 0x87a0f90]decode_slice_header error
[h264 @ 0x87a0f90]no frame!
Error while decoding frame!
[h264 @ 0x87a0f90]non existing PPS referenced
[h264 @ 0x87a0f90]decode_slice_header error
[h264 @ 0x87a0f90]no frame!
Error while decoding frame!
[h264 @ 0x87a0f90]non existing PPS referenced
[h264 @ 0x87a0f90]decode_slice_header error
[h264 @ 0x87a0f90]no frame!
Error while decoding frame!
[h264 @ 0x87a0f90]non existing PPS referenced
[h264 @ 0x87a0f90]decode_slice_header error
[h264 @ 0x87a0f90]no frame!
Error while decoding frame!
[h264 @ 0x87a0f90]non existing PPS referenced
[h264 @ 0x87a0f90]decode_slice_header error
[h264 @ 0x87a0f90]no frame!
Error while decoding frame!
[h264 @ 0x87a0f90]non existing PPS referenced
[h264 @ 0x87a0f90]decode_slice_header error
[h264 @ 0x87a0f90]no frame!
Error while decoding frame!
[h264 @ 0x87a0f90]non existing PPS referenced
[h264 @ 0x87a0f90]decode_slice_header error
[h264 @ 0x87a0f90]no frame!
Error while decoding frame!
[h264 @ 0x87a0f90]non existing PPS referenced
[h264 @ 0x87a0f90]decode_slice_header error
[h264 @ 0x87a0f90]no frame!
Error while decoding frame!
[h264 @ 0x87a0f90]non existing PPS referenced
[h264 @ 0x87a0f90]decode_slice_header error
[h264 @ 0x87a0f90]no frame!
Error while decoding frame!
[h264 @ 0x87a0f90]non existing PPS referenced
[h264 @ 0x87a0f90]decode_slice_header error
[h264 @ 0x87a0f90]no frame!
Error while decoding frame!
[h264 @ 0x87a0f90]non existing PPS referenced
[h264 @ 0x87a0f90]decode_slice_header error
[h264 @ 0x87a0f90]no frame!
Error while decoding frame!
[h264 @ 0x87a0f90]non existing PPS referenced
[h264 @ 0x87a0f90]decode_slice_header error
[h264 @ 0x87a0f90]no frame!
Error while decoding frame!
[h264 @ 0x87a0f90]non existing PPS referenced
[h264 @ 0x87a0f90]decode_slice_header error
[h264 @ 0x87a0f90]no frame!
Error while decoding frame!
[h264 @ 0x87a0f90]non existing PPS referenced
[h264 @ 0x87a0f90]decode_slice_header error
[h264 @ 0x87a0f90]no frame!
Error while decoding frame!


MPlayer interrupted by signal 2 in module: sleep_timer
V: 0.0 32/ 32 0% 0% 0.0% 0 0
Exiting... (Quit)
...全文
1154 12 打赏 收藏 转发到动态 举报
写回复
用AI写文章
12 条回复
切换为时间正序
请发表友善的回复…
发表回复
babyhelloworld 2012-05-22
  • 打赏
  • 举报
回复
你好,可以加QQ吗?512828145。我最近在ARM9 2440上做x264编码,x264版本是2011,库版本libx264.so.116。在x86上能够正确编码,但交叉编译放到ARM上运行程序极慢,并且编码出来的数据不对。我怀疑ARM9 2440是否有能力做x264编码啊?楼主的意思是2007版本可以在ARM上编码是吧?
lovewdxz 2011-08-25
  • 打赏
  • 举报
回复
必须要看看哦
Eearbird 2009-11-13
  • 打赏
  • 举报
回复
look
XiaoJuanJuan 2009-09-16
  • 打赏
  • 举报
回复
看一下解决方法
zhj8727 2009-05-14
  • 打赏
  • 举报
回复
uping
hexun80149128 2009-05-13
  • 打赏
  • 举报
回复
hero1985你好。能+下qq吗。我的qq80149128,有些问题向你请教下啊。关于264移植到2440上的问题,谢谢
hero1985 2009-04-10
  • 打赏
  • 举报
回复
[Quote=引用 4 楼 morris88 的回复:]
是不是大小端的问题哦

[/Quote]
也不是这个问题,如果是大小端问题,那程序在arm上都不能运行
事实上在arm板子上可以编码,也有编码信息的输出,只是在pc端上不能播放压缩后的视频
现在换用2007年的x264版本就可以了,估计后续的版本在代码上有所调整,导致交叉编译出现问题
hero1985 2009-04-10
  • 打赏
  • 举报
回复
[Quote=引用 3 楼 hairetz 的回复:]
Can't open joystick device /dev/input/js0: No such file or directory
Can't init input joystick


这里是连接设备的权限不够吧
[/Quote]
这个没有关系,joystick是手柄,我本来就没有
播放一般的视频也有这个错误
morris88 2009-04-10
  • 打赏
  • 举报
回复
是不是大小端的问题哦
  • 打赏
  • 举报
回复
Can't open joystick device /dev/input/js0: No such file or directory
Can't init input joystick


这里是连接设备的权限不够吧
hero1985 2009-04-10
  • 打赏
  • 举报
回复
我在arm上编码,然后在pc上用mplayer播放arm上压缩后的视频,呵呵
刚才很奇怪,我使用2007-11-28的版本就可以,不过还是想知道为什么2009这些版本不行,我换了2009-2-14的也是一样的问题
morris88 2009-04-10
  • 打赏
  • 举报
回复

hero2008@debian:~/rootfs/home/x264-arm$ mplayer out.264 -fps 25
MPlayer dev-SVN-r26940
CPU: Intel(R) Pentium(R) M processor 1.70GHz (Family: 6, Model: 13, Stepping: 6)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
Can't open joystick device /dev/input/js0: No such file or directory


这个不是 ARM CPU 么?怎么变成了 Intel(R) Pentium(R) M processor 1.70GHz

4,436

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 内核源代码研究区
社区管理员
  • 内核源代码研究区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧