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

Video play with libsvt_hevc is stuck when play more then 7 hours #24

Open enzomao opened 5 years ago

enzomao commented 5 years ago

Issue Description: While using local stream as input (Intelligent.mp4 we used) to do SVT-HEVC transcoding with ffmpeg, and cofnig output as streaming with HLS (command line copied below), then use VLC or FFPLAY to playback the generated split file index.m3u8, the Intelligent_1920x1080 will be play stuck when play more then 7 hours. HTTP-HLS output Intelligent_1280x720 show normally after do reload at VLC side, but the Intelligent_1920x1080 will still be stuck next frame after reload, VLC error log show as screenshot attached. After reset Nginx, playback is normal.

Reproduce Steps:

  1. Setup v0.3 1toN Xcode Sample test environment based on the guide (CDN_Transcode_Sample_Getting_Started_Guide.md) in the E5 server.
  2. Run following three command lines were tried as required, and the results were the same. ffmpeg -re -stream_loop -1 -i /var/share/Intelligent.mp4 -vf scale=1920:1080 -c:v libsvt_hevc -b:v 20M -f flv rtmp://host IP/hls/Intelligent_1920x1080 -vf scale=1280:720 -c:v libx264 -b:v 10M -f flv rtmp://host IP/hls/Intelligent_1280x720 -abr_pipeline ffmpeg -re -stream_loop -1 -i /var/share/Intelligent.mp4 -vf scale=1920:1080 -c:v libsvt_hevc -b:v 10M -g 90 -r 30 -f flv rtmp://host IP/hls/Intelligent_1920x1080 -vf scale=1280:720 -c:v libx264 -b:v 10M -g 90 -r 30 -bf 0 -f flv rtmp://host IP/hls/Intelligent_1280x720 -abr_pipeline ffmpeg -re -stream_loop -1 -i stream/Intelligent.mp4 -vf scale=1920:1080 -c:v libsvt_hevc -b:v 10M -g 90 -r 30 -f flv rtmp://CDN IP/hls/Intelligent_1920x1080 -vf scale=1280:720 -c:v libx264 -b:v 10M -g 90 -r 30 -bf 0 -f flv rtmp://CDN IP/hls/Intelligent_1280x720 -abr_pipeline
  3. Run below command to use VLC and FFPLAY playback: http://host IP/hls/Intelligent_1920x1080/index.m3u8 http://host IP/hls/Intelligent_1280x720/index.m3u8

VLC_Intelligent_1920x1080

TangZhiZhen commented 5 years ago

it looks like it is timestamp issue.

xinglongx commented 5 years ago

still exist in the lastest code. commit id: 9512773 message