Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#5228 closed defect (invalid)

2 and more threads: hevc get_format cannot be called after ff_thread_finish_setup

Reported by: mkkot Owned by:
Priority: normal Component: undetermined
Version: unspecified Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Hello,

when I try to play attached h265 video (http://upload.koci.net.pl/uploads/1.mkv) with smplayer and I set Options/Performance/Threads for decoding (MPEG-1/2 and H.264 only): to value greater than 1, I get no picture (sound is fine) and following output:

/usr/bin/mplayer -noquiet -slave -identify -nofs -lavdopts threads=2 -sub-fuzziness 1 -vo xv -ao alsa -dr -double -nomouseinput -input nodefault-bindings:conf=/dev/null -nokeepaspect -wid 23068689 -monitorpixelaspect 1 -subfont-osd-scale 3 -ass -embeddedfonts -ass-line-spacing 0 -ass-font-scale 1 -noflip-hebrew -ass-styles /home/mk/.config/smplayer/styles.ass -subcp CP1250 -vid 0 -aid 0 -subpos 100 -volume 92 -nocache -osdlevel 0 -noslices -channels 2 -af-add scaletempo -af-add equalizer=0:0:0:0:0:0:0:0:0:0 -softvol -softvol-max 110 /tmp/1.mkv

MPlayer SVN-r37379 (C) 2000-2015 MPlayer Team
210 audio & 441 video codecs
do_connect: could not connect to socket
connect: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.
Terminal type `unknown' is not defined.

Playing /tmp/1.mkv.
libavformat version 56.25.101 (internal)
libavformat file format detected.
ID_VIDEO_ID=0
[lavf] stream 0: video (hevc), -vid 0
ID_AUDIO_ID=0
ID_AID_0_LANG=eng
ID_AID_0_NAME=Stereo
[lavf] stream 1: audio (aac), -aid 0, -alang eng, Stereo
ID_SUBTITLE_ID=0
ID_SID_0_LANG=fre
[lavf] stream 2: subtitle (pgssub), -sid 0, -slang fre
VIDEO:  [HEVC]  640x480  0bpp  29.970 fps    0.0 kbps ( 0.0 kbyte/s)
Clip info:
 title:
ID_CLIP_INFO_NAME0=title
ID_CLIP_INFO_VALUE0=
 CREATION_TIME: 
ID_CLIP_INFO_NAME1=CREATION_TIME
ID_CLIP_INFO_VALUE1=
 ENCODER: Lavf55.12.0
ID_CLIP_INFO_NAME2=ENCODER
ID_CLIP_INFO_VALUE2=Lavf55.12.0
ID_CLIP_INFO_N=3
Load subtitles in /tmp/
ID_FILENAME=/tmp/1.mkv
ID_DEMUXER=lavfpref
ID_VIDEO_FORMAT=HEVC
ID_VIDEO_BITRATE=0
ID_VIDEO_WIDTH=640
ID_VIDEO_HEIGHT=480
ID_VIDEO_FPS=29.970
ID_VIDEO_ASPECT=0.0000
ID_AUDIO_FORMAT=MP4A
ID_AUDIO_BITRATE=0
ID_AUDIO_RATE=48000
ID_AUDIO_NCH=2
ID_START_TIME=0.00
ID_LENGTH=405.38
ID_SEEKABLE=1
ID_CHAPTERS=0
Could not find a UTF-8 locale,
character keys beyond Latin-1 will not be handled.
Opening video filter: [ass auto=1]
[ass] auto-open
[ass] Shaper: FriBidi 0.19.7 (SIMPLE) HarfBuzz-ng 1.1.3 (COMPLEX)
[ass] Using font provider fontconfig
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 56.26.100 (internal)
Selected video codec: [ffhevc] vfm: ffmpeg (FFmpeg HEVC / H.265)
==========================================================================
ID_VIDEO_CODEC=ffhevc
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 2 ch, floatle, 0.0 kbit/0.00% (ratio: 0->384000)
ID_AUDIO_BITRATE=0
ID_AUDIO_RATE=48000
ID_AUDIO_NCH=2
Selected audio codec: [ffaac] afm: ffmpeg (FFmpeg AAC (MPEG-2/MPEG-4 Audio))
==========================================================================
AO: [alsa] 48000Hz 2ch floatle (4 bytes per sample)
ID_AUDIO_CODEC=ffaac
[Mixer] No hardware mixing, inserting volume filter.
Starting playback...
[hevc @ 0x55f181bd1960]get_format() cannot be called after ff_thread_finish_setup()
Error while decoding frame!
[hevc @ 0x55f181bd1960]get_format() cannot be called after ff_thread_finish_setup()
Error while decoding frame!
[...]

File info:

[mk@linux ~]$ ffmpeg -v 9 -loglevel 99 -i /tmp/1.mkv
ffmpeg version 2.8.6 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 5.3.0 (GCC)
  configuration: --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-avisynth --enable-avresample --enable-fontconfig --enable-gnutls --enable-gpl --enable-ladspa --enable-libass --enable-libbluray --enable-libdcadec --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-shared --enable-version3 --enable-x11grab
  libavutil      54. 31.100 / 54. 31.100
  libavcodec     56. 60.100 / 56. 60.100
  libavformat    56. 40.101 / 56. 40.101
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 40.101 /  5. 40.101
  libavresample   2.  1.  0 /  2.  1.  0
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  2.101 /  1.  2.101
  libpostproc    53.  3.100 / 53.  3.100
Splitting the commandline.
Reading option '-v' ... matched as option 'v' (set logging level) with argument '9'.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument '99'.
Reading option '-i' ... matched as input file with argument '/tmp/1.mkv'.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option v (set logging level) with argument 9.
Successfully parsed a group of options.
Parsing a group of options: input file /tmp/1.mkv.
Successfully parsed a group of options.
Opening an input file: /tmp/1.mkv.
Probing matroska,webm score:100 size:2048
Probing mp3 score:1 size:2048
[matroska,webm @ 0x5567f7c3dc60] Format matroska,webm probed with size=2048 and score=100
st:0 removing common factor 1000000 from timebase
st:1 removing common factor 1000000 from timebase
st:2 removing common factor 1000000 from timebase
[matroska,webm @ 0x5567f7c3dc60] Before avformat_find_stream_info() pos: 1782 bytes read:32768 seeks:0
[hevc @ 0x5567f7c403e0] nal_unit_type: 32(VPS), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x5567f7c403e0] Decoding VPS
[hevc @ 0x5567f7c403e0] Main profile bitstream
[hevc @ 0x5567f7c403e0] nal_unit_type: 33(SPS), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x5567f7c403e0] Decoding SPS
[hevc @ 0x5567f7c403e0] Main profile bitstream
[hevc @ 0x5567f7c403e0] Decoding VUI
[hevc @ 0x5567f7c403e0] nal_unit_type: 34(PPS), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x5567f7c403e0] Decoding PPS
[hevc @ 0x5567f7c403e0] nal_unit_type: 39(SEI_PREFIX), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x5567f7c403e0] Decoding SEI
[hevc @ 0x5567f7c403e0] Skipped PREFIX SEI 5
[matroska,webm @ 0x5567f7c3dc60] first_dts 105 not matching first dts NOPTS (pts 105, duration 33) in the queue
[matroska,webm @ 0x5567f7c3dc60] All info found
[matroska,webm @ 0x5567f7c3dc60] 0: start_time: 0.000 duration: -9223372036854.775
[matroska,webm @ 0x5567f7c3dc60] 1: start_time: 0.000 duration: -9223372036854.775
[matroska,webm @ 0x5567f7c3dc60] 2: start_time: 0.002 duration: -9223372036854.775
[matroska,webm @ 0x5567f7c3dc60] stream: start_time: 0.000 duration: 405.376 bitrate=223 kb/s
[matroska,webm @ 0x5567f7c3dc60] After avformat_find_stream_info() pos: 44493 bytes read:65536 seeks:0 frames:101
Input #0, matroska,webm, from '/tmp/1.mkv':
  Metadata:
    title           : 
    CREATION_TIME   : 
    ENCODER         : Lavf55.12.0
  Duration: 00:06:45.38, start: 0.000000, bitrate: 223 kb/s
    Stream #0:0, 56, 1/1000: Video: hevc (Main), 1 reference frame, yuv420p(tv, smpte170m/smpte170m/bt709), 640x480 [SAR 1:1 DAR 4:3], 1001/30000, 29.97 fps, 29.97 tbr, 1k tbn, 29.97 tbc (default)
    Stream #0:1(eng), 44, 1/1000: Audio: aac (HE-AAC), 48000 Hz, stereo, fltp (default)
    Metadata:
      title           : Stereo
      LANGUAGE        : eng
    Stream #0:2(fre), 1, 1/1000: Subtitle: hdmv_pgs_subtitle, 720x480
Successfully opened the file.
At least one output file must be specified
[AVIOContext @ 0x5567f7c466e0] Statistics: 65536 bytes read, 0 seeks

Processor:
model name : AMD Athlon(tm) 64 X2 Dual Core Processor 5600+
System:
[mk@linux ~]$ uname -a
Linux linux 4.3.3-3-ARCH #1 SMP PREEMPT Wed Jan 20 08:12:23 CET 2016 x86_64 GNU/Linux
GPU:
GeForce GT 610 with proprietary driver.

Please tell me if I can provide any other info if needed.

Change History (3)

comment:1 by Carl Eugen Hoyos, 8 years ago

Resolution: invalid
Status: newclosed

This is not the (s)MPlayer bug tracker (and it works fine here).

comment:2 by mkkot, 8 years ago

Ok, sorry, I was convinced it's ffmpeg problem which is used by (s)mplayer.

Note: See TracTickets for help on using tickets.