x264 的交叉编译
开发板:三星 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 ex