Transcoding configuration not taken into account

The transcoding config set in my production.yaml seems not been taken into account :

Here is my transcoding configuration :

transcoding:
  enabled: true

  original_file:
    # If false the uploaded file is deleted after transcoding
    # If yes it is not deleted but moved in a dedicated folder or object storage
    keep: false

  # Allow your users to upload .mkv, .mov, .avi, .wmv, .flv, .f4v, .3g2, .3gp, .mts, m2ts, .mxf, .nut videos
  allow_additional_extensions: true

  # If a user uploads an audio file, PeerTube will create a video by merging the preview file and the audio file
  allow_audio_files: true

  # Enable remote runners to transcode your videos
  # If enabled, your instance won't transcode the videos itself
  # At least 1 remote runner must be configured to transcode your videos
  remote_runners:
    enabled: false

  # Amount of threads used by ffmpeg for 1 local transcoding job
  threads: 1
  # Amount of local transcoding jobs to execute in parallel
  concurrency: 1

  # Choose the local transcoding profile
  # New profiles can be added by plugins
  # Available in core PeerTube: 'default'
  profile: 'default'

  resolutions: # Only created if the original video has a higher resolution, uses more storage!
    0p: false # audio-only (creates mp4 without video stream)
    144p: false
    240p: false
    360p: false
    480p: false
    720p: true
    1080p: false
    1440p: false
    2160p: false

  # Transcode and keep original resolution, even if it's above your maximum enabled resolution
  always_transcode_original_resolution: false

  fps:
    # Cap transcoded video FPS
    # Max resolution file still keeps the original FPS
    max: 60

  # Generate videos in a web compatible format
  # If you also enabled the hls format, it will multiply videos storage by 2
  # If disabled, breaks federation with PeerTube instances < 2.1
  web_videos:
    enabled: false

  # /!\ Requires ffmpeg >= 4.1
  # Generate HLS playlists and fragmented MP4 files. Better playback than with Web Videos:
  #     * Resolution change is smoother
  #     * Faster playback in particular with long videos
  #     * More stable playback (less bugs/infinite loading)
  # If you also enabled the web videos format, it will multiply videos storage by 2
  hls:
    enabled: true

    # Store the audio stream in a separate file from the video
    # This option adds the ability for the HLS player to propose the "Audio only" quality to users
    # It also saves disk space by not duplicating the audio stream in each resolution file
    # /!\ If enabled, remote PeerTube instances < 6.3.0 won't be able to play these videos
    split_audio_and_video: false

I want a configuration based on the production.yaml file,
then I have disabled the configuration via the webadmin :

webadmin:
  configuration:
    edition:
      # Set this to false if you don't want to allow config edition in the web interface by instance admins
      allowed: false

Of course I have restarted the Peertube instance but in the interface it doesn’t reflect my transcoding configuration :

I’m using the version v6.3.1.

Thank you for your help :slightly_smiling_face:

Hi,

See PeerTube/config/production.yaml.example at develop · Chocobozzz/PeerTube · GitHub

You need to update local-production.json

Wonderful help ! :partying_face:

In production.yaml I didn’t see :
From this point, almost all following keys can be overridden by the web interface (local-production.json file).
:see_no_evil:

To use only the file configuration I have:

  • moved all the configuration from local-production.json to production.yaml
  • removed the file local-production.json
  • set in production.yaml webadmin: configuration: edition: allowed: false
  • restart the Peertube server

And it works like a charm !

Thanks !!!