[FFmpeg-user] ffplay.exe automatically stops playing MP3 from the network after a while

506735973 gimholg1992 at foxmail.com
Mon Mar 22 11:36:54 EET 2021


Hi.




I am trying to use ffplay.exe to play an MP3 file from the Internet. It can play normally at the beginning, but after a while it stopped(about two to four minutes). 



 
Later I found out that this problem occurred at some urls, such as:



 
./ffplay.exe "https://zhujianhaobucket.oss-cn-shenzhen.aliyuncs.com/8311033988141615780914724.mp3"
 
 
 
In some other urls, it's ok, such as: 
 
 
 
./ffplay.exe "http://applicationteam.gitee.io/nsb-classroom-doc/8311033988141615780914724.mp3"
 
 
 
here is console output:


剑豪@GimOmen2Pro MINGW64 /d/Download/ffmpeg-4.3.2-2021-02-27-full_build/bin
$ ./ffplay.exe "https://zhujianhaobucket.oss-cn-shenzhen.aliyuncs.com/8311033988141615780914724.mp3" -v 9 -loglevel 99 -i
ffplay version 4.3.2-2021-02-27-full_build-www.gyan.dev Copyright (c) 2003-2021 the FFmpeg developers
  built with gcc 10.2.0 (Rev6, Built by MSYS2 project)
  configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-lzma --enable-libsnappy --enable-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libdav1d --enable-libzvbi --enable-librav1e --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libilbc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite --enable-libmysofa --enable-librubberband --enable-libsoxr --enable-chromaprint
  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
  libpostproc    55.  7.100 / 55.  7.100
Initialized direct3d renderer.
[NULL @ 000002b66c1af1c0] Opening 'https://zhujianhaobucket.oss-cn-shenzhen.aliyuncs.com/8311033988141615780914724.mp3' for reading
[https @ 000002b66c1ab280] Setting default whitelist 'http,https,tls,rtp,tcp,udp,crypto,httpproxy'
[tcp @ 000002b66c1a6540] Original list of addresses:=    0B f=0/0
[tcp @ 000002b66c1a6540] Address 120.77.166.177 port 443
[tcp @ 000002b66c1a6540] Interleaved list of addresses:
[tcp @ 000002b66c1a6540] Address 120.77.166.177 port 443
[tcp @ 000002b66c1a6540] Starting connection attempt to 120.77.166.177 port 443
[tcp @ 000002b66c1a6540] Successfully connected to 120.77.166.177 port 443
[https @ 000002b66c1ab280] request: GET /8311033988141615780914724.mp3 HTTP/1.1
User-Agent: Lavf/58.45.100
Accept: */*
Range: bytes=0-
Connection: close
Host: zhujianhaobucket.oss-cn-shenzhen.aliyuncs.com
Icy-MetaData: 1




[https @ 000002b66c1ab280] header='HTTP/1.1 206 Partial Content'0
[https @ 000002b66c1ab280] http_code=206
[https @ 000002b66c1ab280] header='Server: AliyunOSS'
[https @ 000002b66c1ab280] header='Date: Mon, 22 Mar 2021 09:08:26 GMT'
[https @ 000002b66c1ab280] header='Content-Type: audio/mpeg'
[https @ 000002b66c1ab280] header='Content-Length: 6559630'
[https @ 000002b66c1ab280] header='Connection: close'
[https @ 000002b66c1ab280] header='x-oss-request-id: 60585E8A9ACC073835754852'
[https @ 000002b66c1ab280] header='Content-Range: bytes 0-6559629/6559630'
[https @ 000002b66c1ab280] header='Accept-Ranges: bytes'
[https @ 000002b66c1ab280] header='ETag: "9261C9AC31BCCDE7CC90B43FF5C9FFFA"'
[https @ 000002b66c1ab280] header='Last-Modified: Mon, 22 Mar 2021 06:29:29 GMT'
[https @ 000002b66c1ab280] header='x-oss-object-type: Normal'
[https @ 000002b66c1ab280] header='x-oss-hash-crc64ecma: 830816610189136781'
[https @ 000002b66c1ab280] header='x-oss-storage-class: Standard'
[https @ 000002b66c1ab280] header='Content-MD5: kmHJrDG8zefMkLQ/9cn/+g=='
[https @ 000002b66c1ab280] header='x-oss-server-time: 30'
[https @ 000002b66c1ab280] header=''
Probing mp3 score:51 size:2048
[mp3 @ 000002b66c1af1c0] Format mp3 probed with size=2048 and score=51
[tcp @ 000002b66c1a6900] Original list of addresses:
[tcp @ 000002b66c1a6900] Address 120.77.166.177 port 443
[tcp @ 000002b66c1a6900] Interleaved list of addresses:
[tcp @ 000002b66c1a6900] Address 120.77.166.177 port 443
[tcp @ 000002b66c1a6900] Starting connection attempt to 120.77.166.177 port 443
[tcp @ 000002b66c1a6900] Successfully connected to 120.77.166.177 port 443
[https @ 000002b66c1ab280] request: GET /8311033988141615780914724.mp3 HTTP/1.1
User-Agent: Lavf/58.45.100
Accept: */*
Range: bytes=6559502-
Connection: close
Host: zhujianhaobucket.oss-cn-shenzhen.aliyuncs.com
Icy-MetaData: 1




[https @ 000002b66c1ab280] header='HTTP/1.1 206 Partial Content'0
[https @ 000002b66c1ab280] http_code=206
[https @ 000002b66c1ab280] header='Server: AliyunOSS'
[https @ 000002b66c1ab280] header='Date: Mon, 22 Mar 2021 09:08:27 GMT'
[https @ 000002b66c1ab280] header='Content-Type: audio/mpeg'
[https @ 000002b66c1ab280] header='Content-Length: 128'
[https @ 000002b66c1ab280] header='Connection: close'
[https @ 000002b66c1ab280] header='x-oss-request-id: 60585E8B41F2DE3937852F33'
[https @ 000002b66c1ab280] header='Content-Range: bytes 6559502-6559629/6559630'
[https @ 000002b66c1ab280] header='Accept-Ranges: bytes'
[https @ 000002b66c1ab280] header='ETag: "9261C9AC31BCCDE7CC90B43FF5C9FFFA"'
[https @ 000002b66c1ab280] header='Last-Modified: Mon, 22 Mar 2021 06:29:29 GMT'
[https @ 000002b66c1ab280] header='x-oss-object-type: Normal'
[https @ 000002b66c1ab280] header='x-oss-hash-crc64ecma: 830816610189136781'
[https @ 000002b66c1ab280] header='x-oss-storage-class: Standard'
[https @ 000002b66c1ab280] header='x-oss-server-time: 40'
[https @ 000002b66c1ab280] header=''
[tcp @ 000002b66c1a7080] Original list of addresses:=    0B f=0/0
[tcp @ 000002b66c1a7080] Address 120.77.166.177 port 443
[tcp @ 000002b66c1a7080] Interleaved list of addresses:
[tcp @ 000002b66c1a7080] Address 120.77.166.177 port 443
[tcp @ 000002b66c1a7080] Starting connection attempt to 120.77.166.177 port 443
[tcp @ 000002b66c1a7080] Successfully connected to 120.77.166.177 port 443
[https @ 000002b66c1ab280] request: GET /8311033988141615780914724.mp3 HTTP/1.1
User-Agent: Lavf/58.45.100
Accept: */*
Range: bytes=0-
Connection: close
Host: zhujianhaobucket.oss-cn-shenzhen.aliyuncs.com
Icy-MetaData: 1




[https @ 000002b66c1ab280] header='HTTP/1.1 206 Partial Content'0
[https @ 000002b66c1ab280] http_code=206
[https @ 000002b66c1ab280] header='Server: AliyunOSS'
[https @ 000002b66c1ab280] header='Date: Mon, 22 Mar 2021 09:08:27 GMT'
[https @ 000002b66c1ab280] header='Content-Type: audio/mpeg'
[https @ 000002b66c1ab280] header='Content-Length: 6559630'
[https @ 000002b66c1ab280] header='Connection: close'
[https @ 000002b66c1ab280] header='x-oss-request-id: 60585E8BB8509934345C6A57'
[https @ 000002b66c1ab280] header='Content-Range: bytes 0-6559629/6559630'
[https @ 000002b66c1ab280] header='Accept-Ranges: bytes'
[https @ 000002b66c1ab280] header='ETag: "9261C9AC31BCCDE7CC90B43FF5C9FFFA"'
[https @ 000002b66c1ab280] header='Last-Modified: Mon, 22 Mar 2021 06:29:29 GMT'
[https @ 000002b66c1ab280] header='x-oss-object-type: Normal'
[https @ 000002b66c1ab280] header='x-oss-hash-crc64ecma: 830816610189136781'
[https @ 000002b66c1ab280] header='x-oss-storage-class: Standard'
[https @ 000002b66c1ab280] header='Content-MD5: kmHJrDG8zefMkLQ/9cn/+g=='
[https @ 000002b66c1ab280] header='x-oss-server-time: 19'
[https @ 000002b66c1ab280] header=''
[mp3 @ 000002b66c1af1c0] pad 576 1386
[mp3 @ 000002b66c1af1c0] Skipping 0 bytes of junk at 417.
[mp3 @ 000002b66c1af1c0] Before avformat_find_stream_info() pos: 417 bytes read:3300 seeks:2 nb_streams:1
[mp3 @ 000002b66c1af1c0] demuxer injecting skip 1105 / discard 0
[mp3float @ 000002b6732cdcc0] skip 1105 / discard 0 samples due to side data
[mp3float @ 000002b6732cdcc0] skip 1105/1152 samples
[mp3 @ 000002b66c1af1c0] All info found
[mp3 @ 000002b66c1af1c0] stream 0: start_time: 0.0250567 duration: 648.751
[mp3 @ 000002b66c1af1c0] format: start_time: 0.025057 duration: 648.751 (estimate from stream) bitrate=80 kb/s
[mp3 @ 000002b66c1af1c0] After avformat_find_stream_info() pos: 12705 bytes read:15900 seeks:2 frames:50
Input #0, mp3, from 'https://zhujianhaobucket.oss-cn-shenzhen.aliyuncs.com/8311033988141615780914724.mp3':
  Duration: 00:10:48.75, start: 0.025057, bitrate: 80 kb/s
    Stream #0:0, 50, 1/14112000: Audio: mp3, 44100 Hz, stereo, fltp, 80 kb/s
    Metadata:
      encoder         : LAME3.98r
detected 8 logical cores
[ffplay_abuffer @ 000002b673621280] Setting 'sample_rate' to value '44100'
[ffplay_abuffer @ 000002b673621280] Setting 'sample_fmt' to value 'fltp'
[ffplay_abuffer @ 000002b673621280] Setting 'channels' to value '2'
[ffplay_abuffer @ 000002b673621280] Setting 'time_base' to value '1/44100'
[ffplay_abuffer @ 000002b673621280] Setting 'channel_layout' to value '0x3'
[ffplay_abuffer @ 000002b673621280] tb:1/44100 samplefmt:fltp samplerate:44100 chlayout:0x3
[ffplay_abuffersink @ 000002b673620380] auto-inserting filter 'auto_resampler_0' between the filter 'ffplay_abuffer' and the filter 'ffplay_abuffersink'
[AVFilterGraph @ 000002b673363cc0] query_formats: 2 queried, 0 merged, 3 already done, 0 delayed
[auto_resampler_0 @ 000002b673621780] [SWR @ 000002b66c200ac0] Using fltp internally between filters
[auto_resampler_0 @ 000002b673621780] ch:2 chl:stereo fmt:fltp r:44100Hz -> ch:2 chl:stereo fmt:s16 r:44100Hz
[mp3float @ 000002b6735d2140] skip 1105 / discard 0 samples due to side data
[mp3float @ 000002b6735d2140] skip 1105/1152 samples
Audio frame changed from rate:44100 ch:2 fmt:fltp layout:stereo serial:-1 to rate:44100 ch:2 fmt:fltp layout:stereo serial:1
[ffplay_abuffer @ 000002b673620b80] Setting 'sample_rate' to value '44100'
[ffplay_abuffer @ 000002b673620b80] Setting 'sample_fmt' to value 'fltp'
[ffplay_abuffer @ 000002b673620b80] Setting 'channels' to value '2'
[ffplay_abuffer @ 000002b673620b80] Setting 'time_base' to value '1/44100'
[ffplay_abuffer @ 000002b673620b80] Setting 'channel_layout' to value '0x3'
[ffplay_abuffer @ 000002b673620b80] tb:1/44100 samplefmt:fltp samplerate:44100 chlayout:0x3
[ffplay_abuffersink @ 000002b673621280] auto-inserting filter 'auto_resampler_0' between the filter 'ffplay_abuffer' and the filter 'ffplay_abuffersink'
[AVFilterGraph @ 000002b6733628c0] query_formats: 2 queried, 0 merged, 3 already done, 0 delayed
[auto_resampler_0 @ 000002b673620e80] [SWR @ 000002b66c200ac0] Using fltp internally between filters
[auto_resampler_0 @ 000002b673620e80] ch:2 chl:stereo fmt:fltp r:44100Hz -> ch:2 chl:stereo fmt:s16 r:44100Hz
Created 640x480 texture with SDL_PIXELFORMAT_ARGB8888.
Created 640x480 texture with SDL_PIXELFORMAT_ARGB8888.   0B f=0/0
[tls @ 000002b66c1a5ec0] Error in the pull function.=    0B f=0/0
[tls @ 000002b66c1a5ec0] The specified session has been invalidated for some reason.
[mp3float @ 000002b6735d2140] invalid new backstep -1    0B f=0/0
  90.34 M-A:  0.000 fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0



Thank.


More information about the ffmpeg-user mailing list