[FFmpeg-user] why ffplay cannot decode a sequence that can be decoded by ffmpeg

mohammed bey ahmed khernache mohbeyinfo at gmail.com
Thu Jun 7 18:25:30 EEST 2018


Thank you for your quick reply.

----------------------------- ffplay command line
---------------------------------------------
ffplay -nodisp -autoexit <input_video>
----------------------------- ffplay output
-------------------------------------------------------
root at odroid:~/HEVC# ffplay -nodisp -autoexit Tears_400_x265.mp4 >
ffplay_output
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
xcb_connection_has_error() returned true
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Tears_400_x265.mp4':=0/0
  Metadata:
    major_brand     : iso4
    minor_version   : 1
    compatible_brands: iso4hvc1
    creation_time   : 2014-08-25T18:10:46.000000Z
  Duration: 00:00:13.96, start: 0.125000, bitrate: 404 kb/s
    Stream #0:0(und): Video: hevc (Main) (hvc1 / 0x31637668), yuv420p(tv),
1920x800, 402 kb/s, 24 fps, 24 tbr, 24k tbn, 24 tbc (default)
    Metadata:
      creation_time   : 2014-08-25T18:10:46.000000Z
      handler_name    : hevc:fps=24 at GPAC0.5.1-DEV-rev4807
Failed to open file 'Tears_400_x265.mp4' or configure filtergraph
______________________________________________________________
-------------------------------------------------------------------------------------------------------

----------------------------- ffmpeg command line
---------------------------------------------
ffmpeg -benchmark -i <input_video> -f null /dev/null
----------------------------- ffmpeg output
-------------------------------------------------------
root at odroid:~/HEVC# ffmpeg -benchmark -i Tears_400_x265.mp4 -f null
/dev/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, mov,mp4,m4a,3gp,3g2,mj2, from 'Tears_400_x265.mp4':
  Metadata:
    major_brand     : iso4
    minor_version   : 1
    compatible_brands: iso4hvc1
    creation_time   : 2014-08-25T18:10:46.000000Z
  Duration: 00:00:13.96, start: 0.125000, bitrate: 404 kb/s
    Stream #0:0(und): Video: hevc (Main) (hvc1 / 0x31637668), yuv420p(tv),
1920x800, 402 kb/s, 24 fps, 24 tbr, 24k tbn, 24 tbc (default)
    Metadata:
      creation_time   : 2014-08-25T18:10:46.000000Z
      handler_name    : hevc:fps=24 at GPAC0.5.1-DEV-rev4807
Stream mapping:
  Stream #0:0 -> #0:0 (hevc (native) -> wrapped_avframe (native))
Press [q] to stop, [?] for help
Output #0, null, to '/dev/null':
  Metadata:
    major_brand     : iso4
    minor_version   : 1
    compatible_brands: iso4hvc1
    encoder         : Lavf58.13.102
    Stream #0:0(und): Video: wrapped_avframe, yuv420p, 1920x800, q=2-31,
200 kb/s, 24 fps, 24 tbn, 24 tbc (default)
    Metadata:
      creation_time   : 2014-08-25T18:10:46.000000Z
      handler_name    : hevc:fps=24 at GPAC0.5.1-DEV-rev4807
      encoder         : Lavc58.19.102 wrapped_avframe
frame=  335 fps=103 q=-0.0 Lsize=N/A time=00:00:13.95 bitrate=N/A
speed=4.31x
video:133kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: unknown
bench: utime=13.910s stime=0.385s rtime=3.281s
bench: maxrss=88464kB
______________________________________________________________
-------------------------------------------------------------------------------------------------------

Thank you again

On Thu, Jun 7, 2018 at 5:04 PM Moritz Barsnick <barsnick at gmx.net> wrote:

> On Thu, Jun 07, 2018 at 16:50:32 +0200, mohammed bey ahmed khernache wrote:
> > Hello,
> > I have a video encoded with HEVC.
> > Is there a reason why *ffmpeg* can decode it whereas *ffplay* can not?
>
> Yes, perhaps.
>
> Instead of letting us guess, you could provide both your command lines
> (i.e. of both ffmpeg and ffplay) and each of their uncut console
> outputs. ffplay does for example show warnings and error messages, they
> are not there for pure fun, but to indicate what went wrong.
>
> (Please use the commands *without* "-hide_banner" and without changing
> the default loglevel.)
>
> Thanks,
> 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