Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segment ts files deletion speed is faster than index.m3u8 updated speed that caused the output stream can’t be played when the input is IP camera. #23

Open
enzomao opened this issue Apr 24, 2019 · 2 comments

Comments

@enzomao
Copy link

enzomao commented Apr 24, 2019

[Issue Description]
When use IP camera stream as input to do SVT-HEVC transcoding with ffmpeg, the output stream can’t be played after about three minutes of transcoding.
The error message of VLC is "Failed reading https://host IP/hls/4kStream/0.ts: HTTP/1.1 404 Not Found", please refer to VCL.png attach file for
details.
After checking index.m3u8 file, it was found that Segment ts files deletion speed is faster than index.m3u8 updated speed.Please refer to ts.png attach file for details.
The issue only can't be reproduced on E3 server and VCA2 server.

[Reproduce Steps]

  1. Setup 1toN Xcode Sample test environment based on the guide (CDN_Transcode_Sample_Getting_Started_Guide.md).
  2. Run below command line to do transcoding:
    ffmpeg -i rtsp://admin:password@IP cameras/101 -s 40962160 -c:a copy -c:v libsvt_hevc -f flv rtmp://CDN IP/hls/4kStream -s 20481024 -c:a copy -c:v libsvt_hevc -f flv rtmp://CDN IP/hls/2kStream -s 19201080 -c:a copy -c:v libsvt_hevc -f flv rtmp://CDN IP/hls/1080Stream -s 1080720 -c:a copy -c:v libsvt_hevc -f flv rtmp://CDN IP/hls/720Stream -s 720480 -c:a copy -c:v libsvt_hevc -f flv rtmp://CDN IP/hls/480Stream -s 320240 -c:a copy -c:v libsvt_hevc -f flv rtmp://CDN IP/hls/240Stream
  3. Run below command to use VLC playback after about three minutes.
    vlc https://host IP/hls/4kStream/index.m3u8
  4. Check Segment ts files and index.m3u8 file under /var/www/hls/4kStream

[Actual Phenomenon]

  1. The output stream can’t be played.
  2. Segment ts files deletion speed is faster than index.m3u8 updated speed.

ts
VLC

@enzomao enzomao changed the title 1toN XcodeSample]Segment ts files deletion speed is faster than index.m3u8 updated speed that caused the output stream can’t be played when the input is IP camera. 1toN XcodeSample Segment ts files deletion speed is faster than index.m3u8 updated speed that caused the output stream can’t be played when the input is IP camera. Apr 24, 2019
@enzomao enzomao changed the title 1toN XcodeSample Segment ts files deletion speed is faster than index.m3u8 updated speed that caused the output stream can’t be played when the input is IP camera. Segment ts files deletion speed is faster than index.m3u8 updated speed that caused the output stream can’t be played when the input is IP camera. Apr 24, 2019
@TangZhiZhen
Copy link
Contributor

we need check its env.

@xinglongx
Copy link

still exist in the lastest code.
commit id: 9512773
vlc client will hangup after play finish one ts file.
Segment ts files deletion speed is faster than index.m3u8 updated speed in the live transcode server.
index
hang

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants