大家好!
手头上的软件是IPNC_RDK 5.1的,修改了ipnc_rdk里面的play.out程序,想用来播放一个MJPEG格式的视频文件,但程序运行的时候出错?
出错如下所示:
Qt: cmd: "/mnt/play.out /mnt/mmc/video/201706/test_400x400.avi"Filename = /mnt/mmc/video/201706/test_400x400.avi
length = 448748
status = 0 here 27
status = 0 here 29
status = 0 here 31
status = 0 here 33
status = 0 here 35
status = 0 here 37
status = 0 here 39
status = 0 here 41
status = 0 here 43
CLK Hz,
ARM Hz = 400000000
DDR Hz = 10000000
VPSS Hz = 200000000
IMCOP Hz = 200000000
samlutesting….>>>>>>>>>>>>>>>>>=/dev/dev_dma
samlu: DEBUG:DRV_dmaopen…>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
DM365MM Init Successful [OSA_FILE ] Reading file [/mnt/mmc/video/201706/test_400x400.avi] … addr = 0x40c93000
length…………. = (nil)
curAddr = 0x40cac000
curAddr = 0x40cc5000
curAddr = 0x40cde000
curAddr = 0x40cf7000
Done. [448748 bytes]size = 1572864, filesize = 448748
Play: createPrm.codec = ALG_VID_CODEC_MJPEG!
ERROR (alg_jpgDec.c|ALG_jpgDecCreate|48): Failed to open image decode algorithm: jpegdec (0x0)
ERROR (main.c|playH264|372): ALG_vidDecCreate()
Segmentation fault
不知道为什么,如果播放的是H264格式的视频,即解码codec为ALG_VID_CODEC_H264,就可以!
另外,想问下,DM368 IPNC平台的,调用MJCP来解码JPEG图片,难度大不大,查了一些资料,感觉好麻烦,但软解实在太慢了~
Chris Meng:
你好,
你使用的play.out的源代码路径是?
你看看下面讨论是否有帮助?
https://e2e.ti.com/support/embedded/multimedia_software_codecs/f/356/t/63637#pi239031350=1
bob2:
回复 Chris Meng:
play.out的源码路径位置: ipnc_rdk/av_capture/application/test/play/main.c