交叉编译生成了ffpaly,移植到开发板上运行时:
格式ffplay+需要播放的文件名。
ffplay播放视频时,视频没有显示画面并且没有声音,出现如下提示:
/mnt/hd-sata/StationPisPlayer/ffmpeg # ./ffplay ../../animal.mp4
ffplay version 2.3.6 Copyright (c) 2003-2014 the FFmpeg developers
built on Nov 6 2017 13:22:58 with gcc 4.8.3 (Hisilicon_v400) 20131202 (prerelease)
configuration: --enable-cross-compile --target-os=linux --cross-prefix=arm-hisiv400-linux- --cc=arm-hisiv400-linux-gcc --enable-shared --arch=arm --enable-gpl --prefi
x=/home/pub/ffmpeg-2.3.6/tmp --enable-ffplay --extra-cflags=-I/home/pub/SDL-1.2.15/tmp/include/SDL --extra-ldflags=-L/home/pub/SDL-1.2.15/tmp/lib --extra-libs=-lSDL --d
isable-yasm --enable-swscale --enable-postproc --enable-pthreads --enable-libx264 --extra-cflags=-I/home/pub/x264-snapshot-20171008-2245/tmp/include --extra-ldflags=-L/
home/pub/x264-snapshot-20171008-2245/tmp/lib --enable-decoder=mpeg4 --enable-decoder=h264 --enable-libfaac --enable-nonfree --extra-cflags=-I/home/pub/faac-1.28/tmp/inc
lude --extra-ldflags=-L/home/pub/faac-1.28/tmp/lib --enable-libmp3lame --enable-version3 --extra-cflags=-I/home/pub/lame-3.99.5/tmp/include --extra-ldflags=-L/home/pub/
lame-3.99.5/tmp/lib --disable-decoders --enable-decoder=mp3 --enable-decoder=aac --enable-decoder=ac3
libavutil 52. 92.100 / 52. 92.100
libavcodec 55. 69.100 / 55. 69.100
libavformat 55. 48.100 / 55. 48.100
libavdevice 55. 13.102 / 55. 13.102
libavfilter 4. 11.100 / 4. 11.100
libswscale 2. 6.100 / 2. 6.100
libswresample 0. 19.100 / 0. 19.100
libpostproc 52. 3.100 / 52. 3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '../../animal.mp4': f=0/0
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: isom
creation_time : 2013-09-26 22:01:12
Duration: 00:01:41.15, start: 0.000000, bitrate: 4201 kb/s
Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv), 1920x1080 [SAR 1:1 DAR 16:9], 4009 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 47.95 tbc (default)
Metadata:
creation_time : 2013-09-26 22:01:12
handler_name : MP4 Video Media Handler
encoder : AVC Coding
Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 189 kb/s (default)
Metadata:
creation_time : 2013-09-26 22:01:12
handler_name : MP4 Sound Media Handler
SDL_OpenAudio (2 channels, 44100 Hz):
SDL_OpenAudio (1 channels, 44100 Hz):
No more combinations to try, audio open failed
nan M-V: nan fd= 0 aq= 0KB vq= 2KB sq= 0B f=0/0
ffplay播放音频时也没有声音,程序异常退出,出现如下提示:
/mnt/hd-sata/StationPisPlayer/ffmpeg # ./ffplay ./music.mp3
ffplay version 2.3.6 Copyright (c) 2003-2014 the FFmpeg developers
built on Nov 6 2017 13:22:58 with gcc 4.8.3 (Hisilicon_v400) 20131202 (prerelease)
configuration: --enable-cross-compile --target-os=linux --cross-prefix=arm-hisiv400-linux- --cc=arm-hisiv400-linux-gcc --enable-shared --arch=arm --enable-gpl --prefi
x=/home/pub/ffmpeg-2.3.6/tmp --enable-ffplay --extra-cflags=-I/home/pub/SDL-1.2.15/tmp/include/SDL --extra-ldflags=-L/home/pub/SDL-1.2.15/tmp/lib --extra-libs=-lSDL --d
isable-yasm --enable-swscale --enable-postproc --enable-pthreads --enable-libx264 --extra-cflags=-I/home/pub/x264-snapshot-20171008-2245/tmp/include --extra-ldflags=-L/
home/pub/x264-snapshot-20171008-2245/tmp/lib --enable-decoder=mpeg4 --enable-decoder=h264 --enable-libfaac --enable-nonfree --extra-cflags=-I/home/pub/faac-1.28/tmp/inc
lude --extra-ldflags=-L/home/pub/faac-1.28/tmp/lib --enable-libmp3lame --enable-version3 --extra-cflags=-I/home/pub/lame-3.99.5/tmp/include --extra-ldflags=-L/home/pub/
lame-3.99.5/tmp/lib --disable-decoders --enable-decoder=mp3 --enable-decoder=aac --enable-decoder=ac3
libavutil 52. 92.100 / 52. 92.100
libavcodec 55. 69.100 / 55. 69.100
libavformat 55. 48.100 / 55. 48.100
libavdevice 55. 13.102 / 55. 13.102
libavfilter 4. 11.100 / 4. 11.100
libswscale 2. 6.100 / 2. 6.100
libswresample 0. 19.100 / 0. 19.100
libpostproc 52. 3.100 / 52. 3.100
[mp3 @ 0xb25004a0] Format mp3 detected only with low score of 1, misdetection possible!
[mp3 @ 0xb25004a0] Could not find codec parameters for stream 0 (Audio: mp3, 0 channels, s16p): unspecified frame size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
./music.mp3: could not find codec parameters
/mnt/hd-sata/StationPisPlayer/ffmpeg #
急求各位大佬帮忙解决。谢谢