Opened 3 years ago

Last modified 3 years ago

#9029 open defect

ffmpeg can not open file while PotPlayer and VLC Player can

Reported by: popova-ksiusha912 Owned by:
Priority: important Component: avformat
Version: git-master Keywords: flv codecpar regression
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

Win10
Video file in attachment.
Pot Player and VLC Player can open thie file without any problem.
But ffmpeg,ffplay,ffprobe can not open it.

C:\external>ffmpeg -v 9 -loglevel 99 -i sample.flv
ffmpeg version n4.3.1-26-gca55240b8c Copyright (c) 2000-2020 the FFmpeg developers

built with gcc 9.3-win32 (GCC) 20200320
configuration: --prefix=/ffbuild/prefix --pkg-config-flags=--static --pkg-config=pkg-config --cross-prefix=x86_64-w64-mingw32- --arch=x86_64 --target-os=mingw32 --enable-version3 --disable-debug --disable-w32threads --enable-pthreads --enable-iconv --enable-zlib --enable-libxml2 --enable-libfreetype --enable-libfribidi --enable-gmp --enable-lzma --enable-fontconfig --enable-opencl --enable-libvmaf --disable-vulkan --enable-libvorbis --enable-amf --enable-libaom --disable-avisynth --enable-libdav1d --disable-libdavs2 --enable-ffnvcodec --enable-cuda-llvm --disable-libglslang --enable-libass --enable-libbluray --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvpx --enable-libwebp --enable-libmfx --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librav1e --disable-librubberband --enable-schannel --enable-sdl2 --enable-libsoxr --enable-libsrt --enable-libtwolame --disable-libvidstab --disable-libx264 --disable-libx265 --disable-libxavs2 --disable-libxvid --enable-libzimg --extra-cflags=-DLIBTWOLAME_STATIC --extra-cxxflags= --extra-ldflags=-pthread --extra-libs=-lgomp
libavutil 56. 51.100 / 56. 51.100
libavcodec 58. 91.100 / 58. 91.100
libavformat 58. 45.100 / 58. 45.100
libavdevice 58. 10.100 / 58. 10.100
libavfilter 7. 85.100 / 7. 85.100
libswscale 5. 7.100 / 5. 7.100
libswresample 3. 7.100 / 3. 7.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 url with argument 'sample.flv'.
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 url sample.flv.
Successfully parsed a group of options.
Opening an input file: sample.flv.
[NULL @ 000001e044da4580] Opening 'sample.flv' for reading
[file @ 000001e044da4e80] Setting default whitelist 'file,crypto,data'
Probing flv score:100 size:2048
Probing mp3 score:1 size:2048
[flv @ 000001e044da4580] Format flv probed with size=2048 and score=100
[flv @ 000001e044da4580] Before avformat_find_stream_info() pos: 13 bytes read:32768 seeks:0 nb_streams:0
[flv @ 000001e044da4580] type:18, size:626, last:-1, dts:0 pos:21
[flv @ 000001e044da4580] type:8, size:4, last:-1, dts:0 pos:662
[flv @ 000001e044da4580] 1 AF 0
[flv @ 000001e044da4580] type:8, size:287, last:-1, dts:0 pos:681
[flv @ 000001e044da4580] 1 AF 0
[flv @ 000001e044da4580] type:9, size:13245, last:-1, dts:0 pos:983
[flv @ 000001e044da4580] 0 27 0
[NULL @ 000001e044e4bd80] missing picture in access unit with size 13240
[extract_extradata @ 000001e044e50600] No start code is found.
[flv @ 000001e044da4580] After avformat_find_stream_info() pos: 14235 bytes read:65845 seeks:3 frames:1
sample.flv: could not find codec parameters
Input #0, flv, from 'sample.flv':

Metadata:

d_cate : 1
d_client : 10001
dy_app_version : 6.3.6.1
dy_device_model : HONOR YAL-AL50 YAL-AL50
dy_level : Level51
dy_live_start_time: Sat Nov 28 22:05:50 GMT+08:00 2020
dy_location : null
dy_network : 4G 4
dy_os_version : 29
dy_profile : High
dy_pusher_version: 1.3.3
dy_timezone : Asia/Shanghai
hasWatermark : 1
encoder : Lavf56.40.101
cdn_ip : 61.156.196.105

Duration: 00:01:14.46, start: 0.000000, bitrate: N/A

Stream #0:0, 1, 1/1000: Audio: aac, 44100 Hz, stereo, 98 kb/s
Stream #0:1, 0, 1/1000: Video: h264, 1 reference frame, none, 2048 kb/s, 1k tbn

Successfully opened the file.
At least one output file must be specified
[AVIOContext @ 000001e044dadd40] Statistics: 65845 bytes read, 3 seeks

C:\external>which ffmpeg

Attachments (1)

sample_cut.flv (2.4 MB ) - added by Carl Eugen Hoyos 3 years ago.

Change History (6)

comment:1 by popova-ksiusha912, 3 years ago

https://www.mediafire.com/file/7b7w8ssio32qo2p/sample.flv/file
Video file here.
21.83 MB, can't make it an attachment.

comment:2 by Carl Eugen Hoyos, 3 years ago

Component: undeterminedavformat
Keywords: flv regression added
Reproduced by developer: set

by Carl Eugen Hoyos, 3 years ago

Attachment: sample_cut.flv added

in reply to:  1 ; comment:3 by Linjie.Fu, 3 years ago

Replying to popova-ksiusha912:

https://www.mediafire.com/file/7b7w8ssio32qo2p/sample.flv/file
Video file here.
21.83 MB, can't make it an attachment.

HI,

This seems to be related with 87f0c8280:
"ist->st->event_flags & AVSTREAM_EVENT_FLAG_NEW_PACKETS" differs from "ist->st->codec_info_nb_frames", if extradata is not extracted correctly.

Would you please help to verify the patch in [1]?

[1] https://patchwork.ffmpeg.org/project/ffmpeg/patch/20210124130033.1086545-1-linjie.justin.fu@gmail.com/

comment:4 by Carl Eugen Hoyos, 3 years ago

Keywords: codecpar added
Priority: normalimportant
Status: newopen

This is a codecpar regression since 6f69f7a8bf6a0d013985578df2ef42ee6b1c7994

in reply to:  3 comment:5 by popova-ksiusha912, 3 years ago

Replying to fulinjie:

Replying to popova-ksiusha912:

https://www.mediafire.com/file/7b7w8ssio32qo2p/sample.flv/file
Video file here.
21.83 MB, can't make it an attachment.

HI,

This seems to be related with 87f0c8280:
"ist->st->event_flags & AVSTREAM_EVENT_FLAG_NEW_PACKETS" differs from "ist->st->codec_info_nb_frames", if extradata is not extracted correctly.

Would you please help to verify the patch in [1]?

[1] https://patchwork.ffmpeg.org/project/ffmpeg/patch/20210124130033.1086545-1-linjie.justin.fu@gmail.com/

Hmm, sorry, I am not a developer, I have no idea how to verify it.

Note: See TracTickets for help on using tickets.