OpenVisualCloud / CDN-Transcode-Sample

Media transcoding is a key function for live video broadcasting, streaming, and video on demand use cases in a CDN network. The CDN Transcode sample (not a finished product) provides a reference pipeline to build an out-of-box 1:N CDN streaming transcode service example.
Other
120 stars 37 forks source link

[Stress]Video freeze when using VLC and FFPLAY to playback the streaming SVT-HEVC clip with DASH #25

Open liweki opened 5 years ago

liweki commented 5 years ago

Describe the bug While using local stream as input to do SVT-HEVC transcoding with ffmpeg, and config output as streaming with DASH, then use VLC or FFPLAY to playback the generated segment file index.mpd, we found video freeze after playing some time with VLC or FFPLAY.

We tried 3 times with VLC about this issue: 1st time used about 3 minutes 2nd time used about 5 minutes 3rd time used about 5+ hours

While the issue happened, both VLC and FFPLAY print error info in terminal, please see below pictures for detail. VLC error info: image FFPLAY error info: image

To Reproduce Steps to reproduce the behavior:

  1. Setup the test environment based on the guide.
  2. Run below command line to do transcoding to SVT-HEVC (make sure add parameter "-stream_loop -1" to loop input stream): ffmpeg -re -stream_loop -1 -i Nature.mp4 -s 40962160 -c:a copy -c:v libsvt_hevc -b:v 20M -f flv rtmp://nginx_ip1/dash/4kCamera -s 40962160 -c:a copy -c:v libsvt_hevc -f flv rtmp://nginx_ip2/dash/2kCamera
  3. Run below command to use VLC and FFPLAY playback: ffplay http://host_ip:port_ID/dash/4kCamera/index.mpd vlc http://host_ip:port_ID/dash/4kCamera/index.mpd

Expected behavior Video playback should be smooth, no freeze and no error.

TangZhiZhen commented 5 years ago

it looks like svt-hevc issue, will submit issue into svt-hevc.

chuchenyan commented 5 years ago

@TangZhiZhen , what's the status? please add SVT-HEVC link here.

xinglongx commented 5 years ago

still exist in the lastest code. commit id: 9512773a1091dade41a9271f0a4b24182a1044d9 dash