[FFmpeg-devel] ffplay is not working on ARM processor

Parameshwaran Thangaraj param at techartus.com
Mon Jan 13 08:38:28 EET 2020


Hi Team,

I would like to cross compile ffmpeg and ffplay for linux embedded with ARM
processor.
Other parameters:
*Toradex Apalis iMX6*
*RAM 1GB*

ffmpeg is working fine. But ffplay is not working. Shows following error,















































































*sh-4.4# ./ffplay -loglevel debug -an -i SampleVideo_1280x720_2mb.mp4
ffplay version N-95941-g637742b45d Copyright (c) 2003-2019 the FFmpeg
developers  built with gcc 7.3.0 (GCC)  configuration:
--pkg-config=/usr/local/oecore-x86_64/sysroots/x86_64-angstromsdk-linux/usr/bin/pkg-config
--enable-cross-compile --cross-prefix=arm-angstrom-linux-gnueabi-
--sysroot=/usr/local/oecore-x86_64/sysroots/armv7at2hf-neon-angstrom-linux-gnueabi
--prefix=/usr/local/oecore-x86_64/sysroots/armv7at2hf-neon-angstrom-linux-gnueabi/usr
--arch=armv8 --target-os=linux --target-path=/usr/local --cpu=cortex-a8
--cc='arm-angstrom-linux-gnueabi-gcc -march=armv7-a -mthumb -mfpu=neon
-mfloat-abi=hard
--sysroot=/usr/local/oecore-x86_64/sysroots/armv7at2hf-neon-angstrom-linux-gnueabi'
--extra-cflags=-I/usr/local/oecore-x86_64/sysroots/armv7at2hf-neon-angstrom-linux-gnueabi/usr/include
--extra-ldflags=-L/usr/local/oecore-x86_64/sysroots/armv7at2hf-neon-angstrom-linux-gnueabi/usr/lib
--strip=arm-angstrom-linux-gnueabi-strip
--ranlib=arm-angstrom-linux-gnueabi-ranlib
--nm=arm-angstrom-linux-gnueabi-nm --ar=arm-angstrom-linux-gnueabi-ar
--cxx='arm-angstrom-linux-gnueabi-g++ -march=armv7-a -mthumb -mfpu=neon
-mfloat-abi=hard
--sysroot=/usr/local/oecore-x86_64/sysroots/armv7at2hf-neon-angstrom-linux-gnueabi'
--extra-cxxflags=' -O2 -pipe -g -feliminate-unused-debug-types '
--enable-pic --enable-neon --disable-doc --disable-htmlpages
--disable-txtpages --disable-protocols --disable-filters --disable-indevs
--disable-outdevs --disable-muxers --disable-demuxers --disable-encoders
--disable-decoders --disable-parsers --disable-alsa --disable-sndio
--enable-filter=scale --enable-sdl2 --enable-ffplay --enable-protocol=udp
--enable-protocol=tcp --enable-protocol=file --enable-protocol=async
--enable-protocol=cache --enable-protocol=data --enable-demuxer=nut
--enable-demuxer=flv --enable-demuxer=avi --enable-demuxer=rawvideo
--enable-demuxer=h264 --enable-demuxer='mov,mp4,m4a,3gp,3g2,mj2'
--enable-muxer=mp4 --enable-muxer=flv --enable-muxer=avi --enable-muxer=nut
--enable-muxer=rawvideo --enable-muxer=h264 --enable-libx264
--enable-encoder=alias_pix --enable-encoder=dpx --enable-encoder=dvvideo
--enable-encoder=ffv1 --enable-encoder=ffvhuff --enable-encoder=fits
--enable-encoder=flashsv --enable-encoder=flashsv2 --enable-encoder=flv
--enable-encoder=libx264 --enable-encoder=libx264rgb
--enable-encoder=h264_v4l2m2m --enable-encoder=png --enable-encoder=ppm
--enable-encoder=rawvideo --enable-encoder=wrapped_avframe
--enable-encoder=zlib --enable-encoder=zmbv --enable-encoder=mpeg4
--enable-decoder=mpeg4 --enable-decoder=alias_pix --enable-decoder=dpx
--enable-decoder=dvvideo --enable-decoder=ffv1 --enable-decoder=ffvhuff
--enable-decoder=fits --enable-decoder=flashsv --enable-decoder=flashsv2
--enable-decoder=flv --enable-decoder=h264 --enable-decoder=h264_v4l2m2m
--enable-decoder=png --enable-decoder=ppm --enable-decoder=rawvideo
--enable-decoder=wrapped_avframe --enable-decoder=zlib
--enable-decoder=zmbv --enable-indev=xcbgrab --enable-gpl  libavutil
 56. 36.101 / 56. 36.101  libavcodec     58. 64.101 / 58. 64.101
libavformat    58. 35.100 / 58. 35.100  libavdevice    58.  9.101 / 58.
 9.101  libavfilter     7. 67.100 /  7. 67.100  libswscale      5.  6.100 /
 5.  6.100  libswresample   3.  6.100 /  3.  6.100  libpostproc    55.
 6.100 / 55.  6.100Initialized opengl renderer.    Last message repeated 1
times    Last message repeated 2 times    Last message repeated 2
times[NULL @ 0x6b6005f0] Opening 'SampleVideo_1280x720_2mb.mp4' for
reading[file @ 0x6b600d60] Setting default whitelist
'file,crypto'[mov,mp4,m4a,3gp,3g2,mj2 @ 0x6b6005f0] Format
mov,mp4,m4a,3gp,3g2,mj2 probed with size=2048 and
score=100[mov,mp4,m4a,3gp,3g2,mj2 @ 0x6b6005f0] ISO: File Type Major Brand:
isom[mov,mp4,m4a,3gp,3g2,mj2 @ 0x6b6005f0] Unknown dref type 0x206c7275
size 12[mov,mp4,m4a,3gp,3g2,mj2 @ 0x6b6005f0] Processing st: 0, edit list 0
- media time: 0, duration: 172544[mov,mp4,m4a,3gp,3g2,mj2 @ 0x6b6005f0]
Unknown dref type 0x206c7275 size 12[mov,mp4,m4a,3gp,3g2,mj2 @ 0x6b6005f0]
Processing st: 1, edit list 0 - media time: 0, duration:
648192[mov,mp4,m4a,3gp,3g2,mj2 @ 0x6b6005f0] Before
avformat_find_stream_info() pos: 2107842 bytes read:41625 seeks:1
nb_streams:2[h264 @ 0x6b601b70] nal_unit_type: 7(SPS), nal_ref_idc: 3[h264
@ 0x6b601b70] nal_unit_type: 8(PPS), nal_ref_idc: 3[h264 @ 0x6b601b70]
nal_unit_type: 5(IDR), nal_ref_idc: 3[h264 @ 0x6b601b70] Format yuv420p
chosen by get_format().[h264 @ 0x6b601b70] Reinit context to 1280x720,
pix_fmt: yuv420p[mov,mp4,m4a,3gp,3g2,mj2 @ 0x6b6005f0] All info
found[mov,mp4,m4a,3gp,3g2,mj2 @ 0x6b6005f0] After
avformat_find_stream_info() pos: 106237 bytes read:147814 seeks:2
frames:2Input #0, mov,mp4,m4a,3gp,3g2,mj2, from
'SampleVideo_1280x720_2mb.mp4':  Metadata:    major_brand     : isom
minor_version   : 512    compatible_brands: isomiso2avc1mp41
creation_time   : 1970-01-01T00:00:00.000000Z    encoder         :
Lavf53.24.2  Duration: 00:00:13.50, start: 0.000000, bitrate: 1248 kb/s
Stream #0:0(und), 1, 1/12800: Video: h264 (Main), 1 reference frame (avc1 /
0x31637661), yuv420p(left), 1280x720 [SAR 1:1 DAR 16:9], 0/1, 862 kb/s, 25
fps, 25 tbr, 12800 tbn, 50 tbc (default)    Metadata:      creation_time
: 1970-01-01T00:00:00.000000Z      handler_name    : VideoHandler    Stream
#0:1(und), 1, 1/48000: Audio: aac (mp4a / 0x6134706D), 48000 Hz, 6
channels, 381 kb/s (default)    Metadata:      creation_time   :
1970-01-01T00:00:00.000000Z      handler_name    : SoundHandlerdetected 4
logical cores[h264 @ 0x6b6154d0] nal_unit_type: 7(SPS), nal_ref_idc: 3[h264
@ 0x6b6154d0] nal_unit_type: 8(PPS), nal_ref_idc: 3[h264 @ 0x6b6154d0]
nal_unit_type: 5(IDR), nal_ref_idc: 3[h264 @ 0x6b6154d0] Format yuv420p
chosen by get_format().[h264 @ 0x6b6154d0] Reinit context to 1280x720,
pix_fmt: yuv420p[h264 @ 0x6b630ff0] nal_unit_type: 1(Coded slice of a
non-IDR picture), nal_ref_idc: 2[h264 @ 0x6b64af40] nal_unit_type: 1(Coded
slice of a non-IDR picture), nal_ref_idc: 2[h264 @ 0x6b65ae60]
nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2[h264 @
0x6b6c0200] nal_unit_type: 1(Coded slice of a non-IDR picture),
nal_ref_idc: 2Video frame changed from size:0x0 format:none serial:-1 to
size:1280x720 format:yuv420p serial:1[ffplay_buffer @ 0x67b76a80] Setting
'pix_fmt' to value '0'[ffplay_buffer @ 0x67b76a80] Setting 'time_base' to
value '1/12800'[ffplay_buffer @ 0x67b76a80] Setting 'pixel_aspect' to value
'1/1'[ffplay_buffer @ 0x67b76a80] Setting 'frame_rate' to value
'25/1'[ffplay_buffer @ 0x67b76a80] w:1280 h:720 pixfmt:yuv420p tb:1/12800
fr:25/1 sar:1/1 sws_param:[auto_scaler_0 @ 0x67b77160] Setting 'flags' to
value 'bicubic'[auto_scaler_0 @ 0x67b77160] w:iw h:ih flags:'bicubic'
interl:0[ffplay_buffersink @ 0x67b76e60] auto-inserting filter
'auto_scaler_0' between the filter 'ffplay_buffer' and the filter
'ffplay_buffersink'[AVFilterGraph @ 0x67b764e0] query_formats: 2 queried, 0
merged, 1 already done, 0 delayed[auto_scaler_0 @ 0x67b77160] picking rgb0
out of 4 ref:yuv420p alpha:0[swscaler @ 0x67b77a00] No accelerated
colorspace conversion found from yuv420p to rgba.[auto_scaler_0 @
0x67b77160] w:1280 h:720 fmt:yuv420p sar:1/1 -> w:1280 h:720 fmt:rgb0
sar:1/1 flags:0x4[h264 @ 0x6b7154d0] nal_unit_type: 1(Coded slice of a
non-IDR picture), nal_ref_idc: 2[h264 @ 0x6b730ff0] nal_unit_type: 1(Coded
slice of a non-IDR picture), nal_ref_idc: 2[h264 @ 0x6b74af40]
nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2Created
1280x720 texture with SDL_PIXELFORMAT_BGR888.Segmentation fault (core
dumped)sh-4.4# *


Kindly help me to solve this issue.

Regards,
Paramesh


More information about the ffmpeg-devel mailing list