检查一下是否把正确的屏参.h,放到ffmpeg中。
使用SBC2D06开发板,下载git clone https://github.com/aaron201912/ffmpeg.git源码,适配自己的屏幕后编译生成ssplayer;
现象:运行ssplayer后无法播放视频,只有音频输出正常,LCD屏还是显示的开机logo,没有视频画面。
请问这是为什么导致到,我的分辨率是480x800,视频的长宽小于LCD分辨率,视频也是源码中自带的。一下是指令的log:
# ./ssplayer clock.avi
welcome to test client [2804] connected, module:sys
ssplayer!
client [2804] connected, module:disp
[MI_SYSCFG_GetPanelInfo 50] eTiming = 4, hdmiTx = 1 Not Fund!!!
[MI_SYSCFG_GetPanelInfo 50] eTiming = 2, hdmiTx = 1 Not Fund!!!
[MI_SYSCFG_GetPanelInfo 50] eTiming = 8, hdmiTx = 1 Not Fund!!!
[MI_SYSCFG_GetPanelInfo 50] eTiming = 9, hdmiTx = 1 Not Fund!!!
[MI_SYSCFG_GetPanelInfo 50] eTiming = 10, hdmiTx = 1 Not Fund!!!
[MI_SYSCFG_GetPanelInfo 50] eTiming = 6, hdmiTx = 1 Not Fund!!!
[MI_SYSCFG_GetPanelInfo 50] eTiming = 7, hdmiTx = 1 Not Fund!!!
[MI_SYSCFG_GetPanelInfo 50] eTiming = 11, hdmiTx = 1 Not Fund!!!
[MI_SYSCFG_GetPanelInfo 50] eTiming = 13, hdmiTx = 1 Not Fund!!!
[MI_SYSCFG_GetPanelInfo 50] eTiming = 12, hdmiTx = 1 Not Fund!!!
[MI_SYSCFG_GetPanelInfo 50] eTiming = 14, hdmiTx = 1 Not Fund!!!
[MI_SYSCFG_GetPanelInfo 50] eTiming = 5, hdmiTx = 1 Not Fund!!!
[MI_SYSCFG_GetPanelInfo 50] eTiming = 3, hdmiTx = 1 Not Fund!!!
[MI_SYSCFG_GetPanelInfo 50] eTiming = 38, hdmiTx = 1 Not Fund!!!
[MI_SYSCFG_GetPanelInfo 50] eTiming = 50, hdmiTx = 1 Not Fund!!!
[MI_SYSCFG_GetPanelInfo 50] eTiming = 40, hdmiTx = 1 Not Fund!!!
[MI_SYSCFG_GetPanelInfo 50] eTiming = 43, hdmiTx = 1 Not Fund!!!
[MI_SYSCFG_GetPanelInfo 50] eTiming = 41, hdmiTx = 1 Not Fund!!!
[MI_SYSCFG_GetPanelInfo 50] eTiming = 44, hdmiTx = 1 Not Fund!!!
[MI_SYSCFG_GetPanelInfo 50] eTiming = 42, hdmiTx = 1 Not Fund!!!
[MI_SYSCFG_GetPanelInfo 50] eTiming = 46, hdmiTx = 1 Not Fund!!!
[MI_SYSCFG_GetPanelInfo 50] eTiming = 50, hdmiTx = 1 Not Fund!!!
[MI_SYSCFG_GetPanelInfo 50] eTiming = 45, hdmiTx = 1 Not Fund!!!
[MI_SYSCFG_GetPanelInfo 50] eTiming = 50, hdmiTx = 1 Not Fund!!!
[MI_SYSCFG_GetPanelInfo 50] eTiming = 22, hdmiTx = 1 Not Fund!!!
[MI_SYSCFG_GetPanelInfo 50] eTiming = 23, hdmiTx = 1 Not Fund!!!
[MI_SYSCFG_GetPanelInfo 50] eTiming = 30, hdmiTx = 1 Not Fund!!!
[MI_SYSCFG_GetPanelInfo 50] eTiming = 32, hdmiTx = 1 Not Fund!!!
client [2804] connected, module:panel
[MI_PANEL_Init][332]LCD environment is Invalid
mmplayer audio_dev = 0
ssd20x_getpanel_wh = [480 800]
try playing clock.avi ...
mmplayer video_rotate = 0
mmplayer video_only = 0
mmplayer video_ratio = 1
mmplayer enable_scaler = 0
mmplayer rclient [2804] connected, module:gfx
esolution = 8294client [2804] connected, module:divp
400
mmplayer play_mode = 1
### enter mm_player[DIP] Virtual IRQ: 28
_open
ssplayer library version: git_commit.229222f build_time.2client [2804] connected, module:ao
0221119
set out[AUDIO ERROR]DrvAudApiDtsInit, Failed to gpio_request amp-gpio !
width/height = [AUDIO ERROR]DrvAudApiDtsInit, amp-gpio will use default:65535 0 !
[480 800]
ffmpe[AUDIO ERROR]DrvAudApiDtsInit, IS_MHAL_SUPPORT_ES_CODEC=0.
g_version..git_commit:229222f..build_time:20221119
[avi @ 0x355c0] non-interleaved AVI
[avi @ 0x355c0] [libavformat/utils.c 3749]set video max_resolution [8294400]
avio buffer size = 32768, probesize = 5000000
avformat demuxer name : avi
frame_mbs_only_flag = 1
max_bytes_per_pic_denom = 0
frame_cropping_flag = 0
conforma[_MI_AO_Init:1237] Init Ao Gain.
nce_window_flag = 0
video codec w/h = [0 0]
audio idx: 1, vide[MI_AO_IMPL_SendFrame:2666] Strat pcm out success!!!
o idx: 0
start time : 0.000, total time of input file : 12.000
Input #0, avi, from 'clock.avi':
Duration: 00:00:12.00, start: 0.000000, bitrate: 42 kb/s
Stream #0:0: Video: msrle ([1][0][0][0] / 0x0001), pal8, 320x320, 1 fps, 1 tbr, 1 tbn, 1 tbc
Stream #0:1: Audio: truespeech ([34][0][0][0] / 0x0022), 8000 Hz, mono, s16, 8 kb/s
avformat_seek_file success!
open_demux successful
open video codec: msrle
origin w/h=[320 320], screen w/h=[480 800], sar4:3 w/h=[480 360], sar16:9 w/h=[480 270]
scaler src w/h = [320 320], dst x/y/w/h = [0 0 480 800]
codec width: 320,height: 320
display w/h = [480 800], src w/h = [320 320]!
video time base : 1000.000000 ms.
fps : 1.000, frame rate num : 1. frame rate den : 1.
get in video decode thread!
avcodec_flush_buffers for video!
read packet over! ret : -541478725, feof : 0
alloc size: 153600,width: 320,height: 320
video prefix format : pal8.
open_video successful
video fps time : 1.000
video_playing_thread in
open audio codec: truespeech
audio channel layout[4]
player display first picture [69306]us
avcodec_flush_buffers for audio!
_MI_AO_OpenVqeLib: success
_MI_AO_OpenSrcLib: success
_MI_AO_OpenG711Lib: success
_MI_AO_OpenG726Lib: success
mm_audio_init dev[0] done!
open_audio successful
leave mm_player_open ###
get file duration time [12.000]
video avcodec_receive_frame(): the decoder has been fully flushed
video play completely, total/left frame = [12 1]!
read packet over! ret : -541478725, feof : 0
avcodec_flush_buffers for video!
avcodec_flush_buffers for audio!
video avcodec_receive_frame(): the decoder has been fully flushed
video play completely, total/left frame = [24 1]!
avcodec_flush_buffers for video!
read packet over! ret : -541478725, feof : 0
avcodec_flush_buffers for audio!