Skip to content
This repository was archived by the owner on Nov 11, 2024. It is now read-only.
This repository was archived by the owner on Nov 11, 2024. It is now read-only.

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

Description

@enzomao

[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

Activity

  1. 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.[/+] on Apr 24, 2019
  2. 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.[/+] on Apr 24, 2019
  3. zhtang83 commented on May 30, 2019

    @zhtang83

    we need check its env.

  4. xinglongx commented on Jun 12, 2019

    @xinglongx

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions