Chocobozzz / PeerTube

ActivityPub-federated video streaming platform using P2P directly in your web browser
https://joinpeertube.org/
GNU Affero General Public License v3.0
12.99k stars 1.49k forks source link

Support HLS for import-video-file-job CLI script #4248

Closed Izorkin closed 2 months ago

Izorkin commented 3 years ago

Describe the current behavior After re-uploaded the video with using create-import-video-file-job.js video is duplicated in the 'storage/video' and 'streaming-playlists/hls' folders.

Steps to reproduce:

  1. Use this configuration:
    "transcoding": {
    "enabled": true,
    "threads": 4,
    "allow_additional_extensions": true,
    "allow_audio_files": true,
    "profile": "custom-vod",
    "concurrency": 2,
    "resolutions": {
      "0p": false,
      "240p": false,
      "360p": false,
      "480p": false,
      "720p": false,
      "1080p": false,
      "1440p": false,
      "2160p": false
    },
    "hls": {
      "enabled": true
    },
    "webtorrent": {
      "enabled": false
    }
    },
  2. Replace video with create-import-video-file-job.js

Describe the expected behavior Save video to folder 'streaming-playlists/hls' and remove video from 'streaming-playlists/hls' folder.

Additional information

Chocobozzz commented 3 years ago

Hello,

create-import-video-file-job.js only support webtorrent files

Chocobozzz commented 2 months ago

Closing this issue because unfortunately there are too many constraints to import a video file compatible with HLS. PeerTube needs to generate the file by itself.