Why my ffplay(ffmpeg+sdl2) shows nothing but a black playing window while playing on imx6q?

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

Why my ffplay(ffmpeg+sdl2) shows nothing but a black playing window while playing on imx6q?

2,158 Views
qianjialin
Contributor I

I recently cross-compiled ffmpeg+SDL2 using configure as follows:

 ffmpeg:


./configure --cross-prefix=arm-poky-linux-gnueabi- --enable-ffplay --enable-ffmpeg --enable-cross-compile --target-os=linux --cc=arm-poky-linux-gnueabi-gcc --arch=arm --prefix=/home/h3c/limingzhe/ffmpeg  --extra-cflags="-march=armv7-a -mthumb-interwork -mfloat-abi=hard -mfpu=neon -mtune=cortex-a9 --sysroot=$SDKTARGETSYSROOT -I/home/h3c/limingzhe/include/SDL2 " --extra-ldflags="--sysroot=$SDKTARGETSYSROOT -L/home/h3c/limingzhe/lib "  --enable-shared --extra-libs=-lSDL2

sdl2:

 

./configure --prefix=/home/h3c/limingzhe --target=arm-poky-linux-gnueabi --host=arm-poky-linux-gnueabi --build=x86_64-linux --disable-video-vivante --enable-static --disable-esd

Of course I set up compile environment using given toolchain : environment-setup-cortexa9hf-vfp-neon-poky-linux-gnueabi

I am sure of there is nothing wrong with this compile.

But when I play a video file it shows nothing but a black playing window ...

Look at this :ffplay.PNG

It shows that it is playing the video file ,but i only can see a black window coming out .

Is there something wrong with my SDL2 ?OR the error shows above ?

I hope somebody can help me to deal with that ,it really matters!!!!!!

0 Kudos
1 Reply

1,293 Views
igorpadykov
NXP Employee
NXP Employee

Hi qian

one can install gstreamer with ffmpeg plugins as described on
https://community.nxp.com/thread/308513
https://boundarydevices.com/trusty-ubuntu-mx6/

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos