Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. PeerTube
  3. PeerTube CLI

PeerTube CLI

Scheduled Pinned Locked Moved Solved PeerTube
39 Posts 5 Posters 5.4k Views 5 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • rmdesR rmdes

    it seems to work here :
    e7e48dfb-76d8-42d3-a9d0-c52d63219dc4-image.png

    and transcoding works too :
    32b8181f-75a6-41a4-9763-2413fb69dc31-image.png

    the "solution" is to disable HLS

    Requires ffmpeg >= 4.1

    Generate HLS playlists and fragmented MP4 files resulting in a better playback than with the current default player:

    Resolution change is smoother
    Faster playback in particular with long videos
    More stable playback (less bugs/infinite loading)
    

    If you also enabled WebTorrent support, it will multiply videos storage by 2

    robiR Offline
    robiR Offline
    robi
    wrote on last edited by
    #30

    @rmdes HLS seems to be messy.

    is ffmpeg not >=4.1 by default?

    does HLS being enabled mean the fragmented MP4 and original are in place? That already means 2x the original.

    What is it about WebTorrent that 2x that even more?

    Conscious tech

    rmdesR 1 Reply Last reply
    0
    • robiR robi

      @rmdes HLS seems to be messy.

      is ffmpeg not >=4.1 by default?

      does HLS being enabled mean the fragmented MP4 and original are in place? That already means 2x the original.

      What is it about WebTorrent that 2x that even more?

      rmdesR Offline
      rmdesR Offline
      rmdes
      wrote on last edited by
      #31

      @robi I have no idea about all 3 questions 😕

      rmdesR 1 Reply Last reply
      0
      • rmdesR rmdes

        @robi I have no idea about all 3 questions 😕

        rmdesR Offline
        rmdesR Offline
        rmdes
        wrote on last edited by
        #32

        Fresh update with the latest version on a fresh cloudron :

        when I follow the doc here : https://docs.cloudron.io/apps/peertube/ to import a video from cli
        I get

        peertube import --url https://domain.com --username user --password bloodypass --target-url https://www.youtube.com/watch?v=xxxx --tmpdir /tmp

        the shell returns this :
        --username field is required
        --password field is required

        Anything changed perhaps for the cli & latest peertube version ?

        rmdesR girishG 2 Replies Last reply
        0
        • rmdesR rmdes

          Fresh update with the latest version on a fresh cloudron :

          when I follow the doc here : https://docs.cloudron.io/apps/peertube/ to import a video from cli
          I get

          peertube import --url https://domain.com --username user --password bloodypass --target-url https://www.youtube.com/watch?v=xxxx --tmpdir /tmp

          the shell returns this :
          --username field is required
          --password field is required

          Anything changed perhaps for the cli & latest peertube version ?

          rmdesR Offline
          rmdesR Offline
          rmdes
          wrote on last edited by
          #33

          So the peertube cli has now a neat feature to remember instances it is being used to upload from the cli :

          peertube auth :

          add [options] remember your accounts on remote instances for easier use
          del <url> unregisters a remote instance
          list lists registered remote instances
          set-default <url> set an existing entry as default
          help [command] display help for command

          Examples:

          $ peertube auth add -u https://peertube.cpy.re -U "PEERTUBE_USER" --password "PEERTUBE_PASSWORD"
          $ peertube auth add -u https://peertube.cpy.re -U root
          $ peertube auth list
          $ peertube auth del https://peertube.cpy.re
          

          When I try to use it, I get this :

          node:internal/process/promises:246
                    triggerUncaughtException(err, true /* fromPromise */);
                    ^
          
          [Error: ENOENT: no such file or directory, mkdir '/root/.config'] {
            errno: -2,
            code: 'ENOENT',
            syscall: 'mkdir',
            path: '/root/.config'
          }
          

          2290608d-fca4-4144-9db7-f122191320ca-image.png

          nebulonN 1 Reply Last reply
          0
          • rmdesR rmdes

            So the peertube cli has now a neat feature to remember instances it is being used to upload from the cli :

            peertube auth :

            add [options] remember your accounts on remote instances for easier use
            del <url> unregisters a remote instance
            list lists registered remote instances
            set-default <url> set an existing entry as default
            help [command] display help for command

            Examples:

            $ peertube auth add -u https://peertube.cpy.re -U "PEERTUBE_USER" --password "PEERTUBE_PASSWORD"
            $ peertube auth add -u https://peertube.cpy.re -U root
            $ peertube auth list
            $ peertube auth del https://peertube.cpy.re
            

            When I try to use it, I get this :

            node:internal/process/promises:246
                      triggerUncaughtException(err, true /* fromPromise */);
                      ^
            
            [Error: ENOENT: no such file or directory, mkdir '/root/.config'] {
              errno: -2,
              code: 'ENOENT',
              syscall: 'mkdir',
              path: '/root/.config'
            }
            

            2290608d-fca4-4144-9db7-f122191320ca-image.png

            nebulonN Offline
            nebulonN Offline
            nebulon
            Staff
            wrote on last edited by
            #34

            @rmdes looks like it now requires a config file. Obviously on Cloudron that path is not writeable. Have you checked if the config file may be specified via environment variable or commandline argument?

            rmdesR 2 Replies Last reply
            1
            • nebulonN nebulon

              @rmdes looks like it now requires a config file. Obviously on Cloudron that path is not writeable. Have you checked if the config file may be specified via environment variable or commandline argument?

              rmdesR Offline
              rmdesR Offline
              rmdes
              wrote on last edited by
              #35

              @nebulon I tried to find this information but up to now I have nothing 😕

              1 Reply Last reply
              0
              • nebulonN nebulon

                @rmdes looks like it now requires a config file. Obviously on Cloudron that path is not writeable. Have you checked if the config file may be specified via environment variable or commandline argument?

                rmdesR Offline
                rmdesR Offline
                rmdes
                wrote on last edited by
                #36

                @nebulon from what I can see here : https://docs.joinpeertube.org/maintain-tools?id=remote-tools
                or better here : https://docs.joinpeertube.org/maintain-tools?id=server-tools

                There is nothing that indicate how to specify this on the command line.

                robiR 1 Reply Last reply
                0
                • rmdesR rmdes

                  @nebulon from what I can see here : https://docs.joinpeertube.org/maintain-tools?id=remote-tools
                  or better here : https://docs.joinpeertube.org/maintain-tools?id=server-tools

                  There is nothing that indicate how to specify this on the command line.

                  robiR Offline
                  robiR Offline
                  robi
                  wrote on last edited by
                  #37

                  @rmdes is there a -C option?

                  Conscious tech

                  1 Reply Last reply
                  0
                  • girishG Offline
                    girishG Offline
                    girish
                    Staff
                    wrote on last edited by
                    #38

                    Just debugged this a bit . It seems the CLI uses application-config npm package which writes configs to https://www.npmjs.com/package/application-config#config-location .

                    1 Reply Last reply
                    0
                    • rmdesR rmdes

                      Fresh update with the latest version on a fresh cloudron :

                      when I follow the doc here : https://docs.cloudron.io/apps/peertube/ to import a video from cli
                      I get

                      peertube import --url https://domain.com --username user --password bloodypass --target-url https://www.youtube.com/watch?v=xxxx --tmpdir /tmp

                      the shell returns this :
                      --username field is required
                      --password field is required

                      Anything changed perhaps for the cli & latest peertube version ?

                      girishG Offline
                      girishG Offline
                      girish
                      Staff
                      wrote on last edited by
                      #39

                      @rmdes it seems the CLI is broken: upstream issue is https://github.com/Chocobozzz/PeerTube/issues/4858 . I will make a new package with the patch since it makes the CLI unusable without it.

                      1 Reply Last reply
                      2
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Bookmarks
                      • Search