[FFmpeg-user] ffplay doesn't decode hevc correctly

mohammed bey ahmed khernache mohbeyinfo at gmail.com
Sun May 20 20:01:20 EEST 2018


Thank you for your quick reply.
The output of the command line "ffplay -threads 8 <video_input>" is:
--------------------------------------------------------------------------------------------------------------------------------------------------------
root at odroid:~/bin# ./ffplay -threads 8 ../video-h265.mkv
ffplay version N-91111-g380ca1bc Copyright (c) 2003-2018 the FFmpeg
developers
  built with gcc 4.8 (Ubuntu/Linaro 4.8.2-19ubuntu1)
  configuration: --prefix=/root/ffmpeg_build --pkg-config-flags=--static
--extra-cflags=-I/root/ffmpeg_build/include
--extra-ldflags=-L/root/ffmpeg_build/lib --extra-libs='-lpthread -lm'
--bindir=/root/bin --enable-gpl --enable-libass --enable-libfdk-aac
--enable-libfreetype --enable-libmp3lame --enable-libopus
--enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264
--enable-libx265 --arch=arm --arch=arm --enable-neon --enable-thumb
--enable-optimizations --enable-pthreads --enable-gray --enable-version3
--enable-postproc --enable-libxcb --enable-libopencore-amrnb
--enable-libopencore-amrwb --enable-libdc1394 --enable-libgsm
--enable-libopenjpeg --enable-libspeex --enable-libtheora
--enable-libvorbis --enable-libxvid --enable-yasm --enable-nonfree
  libavutil      56. 18.102 / 56. 18.102
  libavcodec     58. 19.102 / 58. 19.102
  libavformat    58. 13.102 / 58. 13.102
  libavdevice    58.  4.100 / 58.  4.100
  libavfilter     7. 23.100 /  7. 23.100
  libswscale      5.  2.100 /  5.  2.100
  libswresample   3.  2.100 /  3.  2.100
  libpostproc    55.  2.100 / 55.  2.100
libGL error: MESA-LOADER: malformed or no PCI ID
libGL error: dlopen /usr/lib/arm-linux-gnueabihf/dri/exynos_dri.so failed
(/usr/lib/arm-linux-gnueabihf/dri/exynos_dri.so: cannot open shared object
file: No such file or directory)
libGL error: dlopen ${ORIGIN}/dri/exynos_dri.so failed
(${ORIGIN}/dri/exynos_dri.so: cannot open shared object file: No such file
or directory)
libGL error: dlopen /usr/lib/dri/exynos_dri.so failed
(/usr/lib/dri/exynos_dri.so: cannot open shared object file: No such file
or directory)
libGL error: unable to load driver: exynos_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: exynos
Input #0, matroska,webm, from '../video-h265.mkv':sq=    0B f=0/0
  Metadata:
    ENCODER         : Lavf55.12.0
  Duration: 00:00:16.16, start: 0.099000, bitrate: 2619 kb/s
    Stream #0:0: Video: hevc (Main), yuv420p(tv, bt709), 1920x960 [SAR 1:1
DAR 2:1], 25 fps, 25 tbr, 1k tbn, 25 tbc (default)
    Stream #0:1(eng): Audio: aac (LC), 48000 Hz, stereo, fltp (default)
    Metadata:
      title           : Stereo
      LANGUAGE        : eng
  20.48 A-V:  2.591 fd= 383 aq=    0KB vq=    0KB sq=    0B f=0/0
--------------------------------------------------------------------------------------------------------------------------------------------------------


The output of the command line "  ffmpeg -i <video_input> -t 30 -f null - "
is:
--------------------------------------------------------------------------------------------------------------------------------------------------------

root at odroid:~/bin# ./ffmpeg -i ../video-h265.mkv -t 30 -f null -
ffmpeg version N-91111-g380ca1bc Copyright (c) 2000-2018 the FFmpeg
developers
  built with gcc 4.8 (Ubuntu/Linaro 4.8.2-19ubuntu1)
  configuration: --prefix=/root/ffmpeg_build --pkg-config-flags=--static
--extra-cflags=-I/root/ffmpeg_build/include
--extra-ldflags=-L/root/ffmpeg_build/lib --extra-libs='-lpthread -lm'
--bindir=/root/bin --enable-gpl --enable-libass --enable-libfdk-aac
--enable-libfreetype --enable-libmp3lame --enable-libopus
--enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264
--enable-libx265 --arch=arm --arch=arm --enable-neon --enable-thumb
--enable-optimizations --enable-pthreads --enable-gray --enable-version3
--enable-postproc --enable-libxcb --enable-libopencore-amrnb
--enable-libopencore-amrwb --enable-libdc1394 --enable-libgsm
--enable-libopenjpeg --enable-libspeex --enable-libtheora
--enable-libvorbis --enable-libxvid --enable-yasm --enable-nonfree
  libavutil      56. 18.102 / 56. 18.102
  libavcodec     58. 19.102 / 58. 19.102
  libavformat    58. 13.102 / 58. 13.102
  libavdevice    58.  4.100 / 58.  4.100
  libavfilter     7. 23.100 /  7. 23.100
  libswscale      5.  2.100 /  5.  2.100
  libswresample   3.  2.100 /  3.  2.100
  libpostproc    55.  2.100 / 55.  2.100
Input #0, matroska,webm, from '../video-h265.mkv':
  Metadata:
    ENCODER         : Lavf55.12.0
  Duration: 00:00:16.16, start: 0.099000, bitrate: 2619 kb/s
    Stream #0:0: Video: hevc (Main), yuv420p(tv, bt709), 1920x960 [SAR 1:1
DAR 2:1], 25 fps, 25 tbr, 1k tbn, 25 tbc (default)
    Stream #0:1(eng): Audio: aac (LC), 48000 Hz, stereo, fltp (default)
    Metadata:
      title           : Stereo
      LANGUAGE        : eng
Stream mapping:
  Stream #0:0 -> #0:0 (hevc (native) -> wrapped_avframe (native))
  Stream #0:1 -> #0:1 (aac (native) -> pcm_s16le (native))
Press [q] to stop, [?] for help
Output #0, null, to 'pipe:':
  Metadata:
    encoder         : Lavf58.13.102
    Stream #0:0: Video: wrapped_avframe, yuv420p, 1920x960 [SAR 1:1 DAR
2:1], q=2-31, 200 kb/s, 25 fps, 25 tbn, 25 tbc (default)
    Metadata:
      encoder         : Lavc58.19.102 wrapped_avframe
    Stream #0:1(eng): Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s
(default)
    Metadata:
      title           : Stereo
      LANGUAGE        : eng
      encoder         : Lavc58.19.102 pcm_s16le
frame=  291 fps= 80 q=-0.0 size=N/A time=00:00:12.01 bitrate=N/A speed=
3.3x
--------------------------------------------------------------------------------------------------------------------------------------------------------





​
___________________________________________________________

                        Mohammed BEY AHMED KHERNACHE
                                PhD student at Lab-STICC
                      Université Bretagne Sud, Lorient, France
                 mohammed.bey-ahmed-khernache at univ-ubs.fr

                             mohbeyinfo at gmail.com

___________________________________________________________

On Sun, May 20, 2018 at 6:45 PM, Moritz Barsnick <barsnick at gmx.net> wrote:

> On Sun, May 20, 2018 at 16:32:05 +0200, mohammed bey ahmed khernache wrote:
> > 2) how can decode *hevc *content ?
> > I compiled ffmpeg with libx265.
>
> libx265 isn't used for decoding, only for encoding.
>
> > When I try to play back a video encoded
> > with hevc, I can not decode it correctly, i.e. ffplay plays it very
> slowly
> > as I don't see all the frames.
>
> I can only guess your computer is too slow. Can you show us the
> complete console output of your ffplay command?
>
> > ffplay -threads 8 <video_input>
>
> Additionally, can you show us the complete output of
> $ ffmpeg -i <video_input> -t 30 -f null -
>
> Moritz
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".


More information about the ffmpeg-user mailing list