mxc_vpu_test.out播放视频

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

mxc_vpu_test.out播放视频

2,266 Views
1182614726
Contributor III

大家好,

            使用./mxc_vpu_test.out -D "-i akiyo.mp4 -f 0"播放unit_tests目录下的akiyo.mp4视频,报“unable to open /dev/video17”,请问这是怎么回事呢?

Labels (1)
0 Kudos
11 Replies

1,636 Views
joanxie
NXP TechSupport
NXP TechSupport

what board do you use? imx6S?

pls try to use the command as below, tell me what you get

cat /sys/class/graphics/fb0/mode? when the board boot up, dose anything show on the display?

0 Kudos

1,636 Views
1182614726
Contributor III

you are right, the chip I use is imx6solo. the output of the command is "U:1920x1080p-60", now the display I use is HDMI

0 Kudos

1,636 Views
joanxie
NXP TechSupport
NXP TechSupport

how about when you use "gplay-1.0 akiyo.mp4" ? pls check the log file if the board detect the hdmi or not, or check if your uboot set the correct hdmi output

0 Kudos

1,636 Views
1182614726
Contributor III

my hdmi output is normal, it can display picture from uboot to kernel, until the QT to run.

when i use gplay-1.0 akiyo.mp4, it output the wrong message like below:

root@imx6dlsabresd:/unit_tests# gplay-1.0 akiyo.mp4  
** Message: GStreamer version 1.8.1
Set VideoSink overlaysink
display(/dev/fb0) resolution is (1920x1080).
====== OVERLAYSINK: 4.1.6 build on Nov 26 2018 12:34:52. ======
State change from NULL to READY
display(/dev/fb0) resolution is (1920x1080).
[INFO]  Product Info: i.MX6Q/D/S
[INFO]  Product Info: i.MX6Q/D/S
====== VPUDEC: 4.1.6 build on Nov 26 2018 12:34:56. ======
        wrapper: 1.0.68 (VPUWRAPPER_ARM_LINUX Build on Nov 26 2018 12:33:55)
        vpulib: 5.4.35
        firmware: 3.1.1.46072
[INFO]  bitstreamMode 1, chromaInterleave 1, mapType 0, tiled2LinearEnable 0
[WARN]  VPU iram is less than needed, some parts don't use iram
State change from READY to PAUSED
[Pause (No Repeated)][Vol=1.0][00:00:00/00:00:00]
** (gplay-1.0:640): WARNING **: state change failed from PAUSED to PLAYING  
try to play failed
State change from PAUSED to READY
** Message: playengine destroyed
Exit display threa

0 Kudos

1,636 Views
joanxie
NXP TechSupport
NXP TechSupport

do you mind telling me what bsp version you use? do you use demo image or image you built? let me reproduce this on my imx6S board. and pls send the log file to me. let me double check it

0 Kudos

1,636 Views
1182614726
Contributor III

Hi Joan,

            Thank you very much. now the bsp i use is L4.1.15-2.1.0,I download my yocto bsp from imx-4.1-krogoth, the kernel built version is L4.1.15, uboot version is 2016.03.

0 Kudos

1,636 Views
joanxie
NXP TechSupport
NXP TechSupport

 I tested this bsp with demo image successfully last year, do you use the image you build by yourself? could you share the log file when the board boot up? let me double check it,

0 Kudos

1,636 Views
1182614726
Contributor III

您好,log日志如下:

U-Boot 2016.03-imx_v2016.03_4.1.15_2.0.0_ga+ga57b13b (Nov 27 2018 - 10:31:46 +0800)


CPU:   Freescale i.MX6SOLO rev1.2 996 MHz (running at 792 MHz)
CPU:   Commercial temperature grade (0C to 95C) at 41C
Reset cause: POR
Board: MX6SOLO RIoTboard
I2C:   ready
DRAM:  1 GiB

MMC:   FSL_SDHC: 0, FSL_SDHC: 1, FSL_SDHC: 2
In:    serial
Out:   serial
Err:   serial
config_ipu_di_clk: freq = 148500000.
wait for pll5 lock.
config_ipu_di_clk: set pll5 clock to 294000000Hz.
switch to partitions #0, OK
mmc2(part 0) is current device
Net:   FEC [PRIME]

Normal Boot
switch to partitions #0, OK
mmc2(part 0) is current device
reading zImage
6112320 bytes read in 325 ms (17.9 MiB/s)
Booting from mmc ...
reading imx6soloRIoTboard.dtb
35500 bytes read in 20 ms (1.7 MiB/s)
Kernel image @ 0x12000000 [ 0x000000 - 0x5d4440 ]
## Flattened Device Tree blob at 18000000
   Booting using the fdt blob at 0x18000000
   Using Device Tree in place at 18000000, end 1800baab

Starting kernel ...

console [ttymxc1] enabled
imx sema4 driver is registered.
[drm] Initialized drm 1.1.0 20060810
[drm] Initialized vivante 1.0.0 20120216 on minor 0
brd: module loaded
loop: module loaded
CAN device driver interface
2188000.ethernet supply phy not found, using dummy regulator
pps pps0: new PPS source ptp0
libphy: fec_enet_mii_bus: probed
fec 2188000.ethernet eth0: registered PHC device 0
usbcore: registered new interface driver asix
usbcore: registered new interface driver ax88179_178a
usbcore: registered new interface driver cdc_ether
usbcore: registered new interface driver net1080
usbcore: registered new interface driver cdc_subset
usbcore: registered new interface driver zaurus
usbcore: registered new interface driver cdc_ncm
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci-mxc: Freescale On-Chip EHCI Host driver
usbcore: registered new interface driver usb-storage
usbcore: registered new interface driver usb_ehset_test
2184800.usbmisc supply vbus-wakeup not found, using dummy regulator
2184200.usb supply vbus not found, using dummy regulator
ci_hdrc ci_hdrc.1: EHCI Host Controller
ci_hdrc ci_hdrc.1: new USB bus registered, assigned bus number 1
ci_hdrc ci_hdrc.1: USB 2.0 started, EHCI 1.00
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
mousedev: PS/2 mouse device common for all mice
snvs_rtc 20cc000.snvs:snvs-rtc-lp: rtc core: registered 20cc000.snvs:snvs-r as rtc0
i2c /dev entries driver
IR NEC protocol handler initialized
IR RC5(x/sz) protocol handler initialized
IR RC6 protocol handler initialized
IR JVC protocol handler initialized
IR Sony protocol handler initialized
IR SANYO protocol handler initialized
IR Sharp protocol handler initialized
IR MCE Keyboard/mouse protocol handler initialized
IR XMP protocol handler initialized
imx2-wdt 20bc000.wdog: timeout 60 sec (nowayout=0)
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
sdhci-pltfm: SDHCI platform and OF driver helper
/soc/aips-bus@02100000/usdhc@02194000: voltage-ranges unspecified
sdhci-esdhc-imx 2194000.usdhc: could not get ultra high speed state, work on normal mode
sdhci-esdhc-imx 2194000.usdhc: Got CD GPIO
sdhci-esdhc-imx 2194000.usdhc: Got WP GPIO
sdhci-esdhc-imx 2194000.usdhc: No vqmmc regulator found
mmc1: SDHCI controller on 2194000.usdhc [2194000.usdhc] using ADMA
/soc/aips-bus@02100000/usdhc@02198000: voltage-ranges unspecified
sdhci-esdhc-imx 2198000.usdhc: could not get ultra high speed state, work on normal mode
sdhci-esdhc-imx 2198000.usdhc: Got CD GPIO
sdhci-esdhc-imx 2198000.usdhc: Got WP GPIO
sdhci-esdhc-imx 2198000.usdhc: No vqmmc regulator found
mmc2: SDHCI controller on 2198000.usdhc [2198000.usdhc] using ADMA
/soc/aips-bus@02100000/usdhc@0219c000: voltage-ranges unspecified
sdhci-esdhc-imx 219c000.usdhc: could not get ultra high speed state, work on normal mode
sdhci-esdhc-imx 219c000.usdhc: No vqmmc regulator found
mmc3: SDHCI controller on 219c000.usdhc [219c000.usdhc] using ADMA
mxc_vpu 2040000.vpu_fsl: VPU initialized
mxc_vdoa 21e4000.vdoa: i.MX Video Data Order Adapter(VDOA) driver probed
usb 1-1: new high-speed USB device number 2 using ci_hdrc
galcore: clk_get vg clock failed, disable vg!
Galcore version 5.0.11.41671
mmc3: MAN_BKOPS_EN bit is not set
mmc3: new DDR MMC card at address 0001
mmcblk3: mmc3:0001 MMC04G 3.57 GiB
mmcblk3boot0: mmc3:0001 MMC04G partition 1 2.00 MiB
mmcblk3boot1: mmc3:0001 MMC04G partition 2 2.00 MiB
mmcblk3rpmb: mmc3:0001 MMC04G partition 3 128 KiB
 mmcblk3: p1 p2
hub 1-1:1.0: USB hub found
hub 1-1:1.0: 4 ports detected
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
NET: Registered protocol family 26
NET: Registered protocol family 10
sit: IPv6 over IPv4 tunneling driver
NET: Registered protocol family 17
can: controller area network core (rev 20120528 abi 9)
NET: Registered protocol family 29
can: raw protocol (rev 20120528)
can: broadcast manager protocol (rev 20120528 t)
can: netlink gateway (rev 20130117) max_hops=1
8021q: 802.1Q VLAN Support v1.8
Key type dns_resolver registered
dhd_module_init in
snvs_rtc 20cc000.snvs:snvs-rtc-lp: setting system clock to 2018-11-26 05:45:04 UTC (1543211104)
usb_otg_vbus: disabling
2P5V: disabling
EXT3-fs (mmcblk3p2): warning: maximal mount count reached, running e2fsck is recommended
kjournald starting.  Commit interval 5 seconds
EXT3-fs (mmcblk3p2): using internal journal
EXT3-fs (mmcblk3p2): recovery complete
EXT3-fs (mmcblk3p2): mounted filesystem with ordered data mode
VFS: Mounted root (ext3 filesystem) on device 179:2.
devtmpfs: mounted
Freeing unused kernel memory: 416K (80a10000 - 80a78000)
INIT: version 2.88 booting
Boot splashscreen disabled
Starting udev
udevd[125]: starting version 3.1.5
random: udevd urandom read with 16 bits of entropy available
depmod: ERROR: could not open directory /lib/modules/4.1.15+g30278ab: No such file or directory
depmod: WARNING: -e needs -E or -F
depmod: ERROR: could not open directory /lib/modules/4.1.15+g30278ab: No such file or directory
depmod: FATAL: could not search modules: No such file or directory
bootlogd: cannot allocate pseudo tty: No such file or directory
FAT-fs (mmcblk3p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
ALSA: Restoring mixer settings...
/usr/sbin/alsactl: load_state:1735: No soundcards found...
INIT: Entering runlevel: 5
Configuring network interfaces... fec 2188000.ethernet eth0: Freescale FEC PHY driver [Atheros 8035 ethernet] (mii_bus:phy_addr=2188000.ethernet:04, irq)
IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
done.
Starting system message bus: dbus.
Starting Connection Manager
Starting Dropbear SSH server: dropbear.
Starting rpcbind daemon...done.
starting statd: done
Starting advanced power management daemon: No APM support in kernel
(failed.)
Starting atd: OK
exportfs: can't open /etc/exports for reading
NFS daemon support not enabled in kernel
Starting system log daemon...0
Starting kernel log daemon...0
[ ok ]rting Avahi mDNS/DNS-SD Daemon: avahi-daemon
Starting Telephony daemon
Starting Linux NFC daemon
Starting crond: OK
Running local boot scripts (/etc/rc.local).
umount: /mnt/.psplash: not mounted

Freescale i.MX Release Distro 4.1.15-2.1.0 imx6dlsabresd /dev/ttymxc1

imx6dlsabresd login: root
root@imx6dlsabresd:~# cd /
root@imx6dlsabresd:/# ls
bin  boot  dev  etc  home  lib  lost+found  media  mnt  opt  proc  run  sbin  sys  tmp  unit_tests  usr  var
root@imx6dlsabresd:/# cd unit_tests/
root@imx6dlsabresd:/unit_tests# ls
acctest.out             autorun-sound.sh           daisy-640x480-565.rgb    mxc_fb_vsync_test.out     mxc_v4l2_capture.out
akiyo.mp4               autorun-usb-gadget.sh      dbg_monitor.sh           mxc_i2c_slave_test.out    mxc_v4l2_output.out
all-suite.txt           autorun-usb-host.sh        desk240x180-565.rgb      mxc_iim_test.out          mxc_v4l2_overlay.out
audio8k16S.wav          autorun-v4l2.sh            dryice.sh                mxc_ipudev_test.out       mxc_v4l2_still.out
autorun-asrc.sh         autorun-vpu.sh             dump-clocks-dot.sh       mxc_irlan_test.sh         mxc_v4l2_tvin.out
autorun-ata.sh          autorun-wdog.sh            dump-clocks.sh           mxc_isl29023.out          mxc_vpu_test.out
autorun-fb.sh           autorun.sh                 etm                      mxc_keyb_test.sh          pansy-1280x720-565.rgb
autorun-firi.sh         cam2mpeg4.out              evtest.out               mxc_l2switch_test.out     plumbago-1280x1024-565.rgb
autorun-hantro.sh       check_2w1r.out             gpu.sh                   mxc_mcc_tty_test.out      pxp_test.out
autorun-ipu.sh          check_audio.out            gpuinfo.sh               mxc_mlb_test.out          pxp_v4l2_out_test.sh
autorun-keypad.sh       check_ioctls.out           ipudev_config_file       mxc_sdma_test.out         pxp_v4l2_test.out
autorun-mmc-blockrw.sh  check_minor_open.out       memtool                  mxc_sim_test.out          rose-800x600-565.rgb
autorun-mmc-fdisk.sh    check_mixer.out            mmdc2                    mxc_spdc_fb_test.out      rtctest.out
autorun-mmc-fs.sh       check_recording.out        mx6s_v4l2_capture.out    mxc_spi_test1.out         rtcwakeup.out
autorun-mmc-mkfs.sh     check_synchronization.out  mxc_asrc_test.out        mxc_tuner_test.out        stefan_interlaced_320x240_5frames.yv12
autorun-mmc.sh          check_volume2.out          mxc_cec_test.out         mxc_tuner_test.sh         suspend_quick_auto.sh
autorun-mxc_uart.sh     config_dec                 mxc_dcic_test.out        mxc_tve_test.sh           suspend_random_auto.sh
autorun-oprofile.sh     config_enc                 mxc_epdc_fb_test.out     mxc_uart_stress_test.out  test-utils.sh
autorun-owire.sh        config_encdec              mxc_epdc_v2_fb_test.out  mxc_uart_test.out         wall-1024x768-565.rgb
autorun-rtc.sh          config_net                 mxc_fb_test.out          mxc_uart_xmit_test.out    wdt_driver_test.out
root@imx6dlsabresd:/unit_tests# ./mxc_vpu_test.out -D "-i akiyo.mp4 -f 0"
[INFO]  VPU test program built on Nov 26 2018 12:35:39
[INFO]  Product Info: i.MX6Q/D/S
[INFO]  VPU firmware version: 3.1.1_r46072
[INFO]  VPU library version: 5.4.35
[INFO]  Format: STD_MPEG4
[INFO]  MPEG4 class: MPEG4
[INFO]  Input file "akiyo.mp4" opened.
[INFO]  bitstreamMode 1, chromaInterleave 1, mapType 0, tiled2LinearEnable 0
[WARN]  VPU iram is less than needed, some parts don't use iram
[INFO]  Mpeg4 Profile: 0 Level: 3 Interlaced: 0
[INFO]  Aspect Ratio Table index: 1
[INFO]  Decoder: width = 176, height = 144, frameRateRes = 15, frameRateDiv = 4294967295, count = 4
[INFO]  CROP left/top/right/bottom 0 0 0 0
[ERR]   unable to open /dev/video17
root@imx6dlsabresd:/unit_tests#

0 Kudos

1,636 Views
joanxie
NXP TechSupport
NXP TechSupport

I don't find kernel command from your log file, I'm not sure if you set output to different frame buffer, if you use HDMI as primary output, try to add "video=mxcfb0:dev=hdmi,1920x1080M@60,if=RGB24" in the uboot, or use ./mxc_vpu_test.out -D "-i akiyo.mp4 -f 0 -x16" , x16 means video16, you can try to use x16 or x18, to check the output device status, you also can use the command “cat /sys/class/video4linux/video17/name”,

0 Kudos

1,636 Views
1182614726
Contributor III

你好,非常抱歉,之前做系统优化,把串口驱动初始化之前的log全部去掉了。

1.我目前使用的是HDMI作为输出,在命令行中的参数为:

video=mxcfb0:dev=hdmi,1920x1080M@60,if=RGB24,bpp=32 video=mxcfb1:off video=mxcfb2:off video=mxcfb3:off hdmi_audio_clk=148500000

2.在/sys/class/video4linux下没有任何设备节点

3.执行./mxc_vpu_test.out -D "-i akiyo.mp4 -f 0 -x16“命令报如下错误:

root@imx6dlsabresd:/unit_tests# ./mxc_vpu_test.out -D "-i akiyo.mp4 -f 0 -x16"
[INFO] VPU test program built on Nov 26 2018 12:35:39
[INFO] Product Info: i.MX6Q/D/S
[INFO] VPU firmware version: 3.1.1_r46072
[INFO] VPU library version: 5.4.35
[INFO] Display through V4L2
[INFO] Format: STD_MPEG4
[INFO] MPEG4 class: MPEG4
[INFO] Input file "akiyo.mp4" opened.
[INFO] bitstreamMode 1, chromaInterleave 1, mapType 0, tiled2LinearEnable 0
[WARN] VPU iram is less than needed, some parts don't use iram
[INFO] Mpeg4 Profile: 0 Level: 3 Interlaced: 0
[INFO] Aspect Ratio Table index: 1
[INFO] Decoder: width = 176, height = 144, frameRateRes = 15, frameRateDiv = 4294967295, count = 4
[INFO] CROP left/top/right/bottom 0 0 0 0
[ERR] unable to open /dev/video16

0 Kudos

1,636 Views
joanxie
NXP TechSupport
NXP TechSupport

since you use mxcfb1, pls try to use the command "./mxc_vpu_test.out -D "-i akiyo.mp4 -f 0 -x18“

0 Kudos