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.
  • girishG Offline
    girishG Offline
    girish
    Staff
    wrote on last edited by
    #11

    @imc67 👍 Yup, got a notification for it, very nice!

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

      @imc67 BTW, did you manage to import your videos or is it in hold?

      imc67I 1 Reply Last reply
      0
      • girishG girish

        @imc67 BTW, did you manage to import your videos or is it in hold?

        imc67I Offline
        imc67I Offline
        imc67
        translator
        wrote on last edited by
        #13

        @girish I uploaded (via YT URL) 1 video just to test. Then discovered the, for us blocking issues and since then waiting for the update.

        However, I remember that importing a YT playlist by URL didn’t seem to work (nothing happened). So I really prefer a build in CLI to do this.

        1 Reply Last reply
        0
        • imc67I imc67

          @girish this morning they released 2.4.0 adding many features and solving even more bugs of which 2 of them where blocking for us 🙂

          imc67I Offline
          imc67I Offline
          imc67
          translator
          wrote on last edited by
          #14

          @imc67 said in PeerTube CLI:

          @girish this morning they released 2.4.0 adding many features and solving even more bugs of which 2 of them where blocking for us 🙂

          Friendly reminder 😀

          girishG 1 Reply Last reply
          0
          • imc67I imc67

            @imc67 said in PeerTube CLI:

            @girish this morning they released 2.4.0 adding many features and solving even more bugs of which 2 of them where blocking for us 🙂

            Friendly reminder 😀

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

            @imc67 Noted 😄 I will get to this next week though since we are rolling out 5.6 this week. But I am very interested in getting that app to stable state asap.

            imc67I 1 Reply Last reply
            0
            • rmdesR Offline
              rmdesR Offline
              rmdes
              wrote on last edited by
              #16

              Also interested in the cli to be able to relaunch transcoding jobs

              example :
              sudo -u peertube NODE_CONFIG_DIR=/var/www/peertube/config NODE_ENV=production npm run create-transcoding-job -- --generate-hls -v c249320b-5263-4b2b-b1e8-14d07403079c

              from : https://github.com/Chocobozzz/PeerTube/issues/3121

              1 Reply Last reply
              0
              • girishG girish

                @imc67 Noted 😄 I will get to this next week though since we are rolling out 5.6 this week. But I am very interested in getting that app to stable state asap.

                imc67I Offline
                imc67I Offline
                imc67
                translator
                wrote on last edited by
                #17

                @girish friendly reminder

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

                  @imc67 I pushed a new package with youtube-dl and the CLI installed. Do you require the cron support?

                  1 Reply Last reply
                  1
                  • imc67I Offline
                    imc67I Offline
                    imc67
                    translator
                    wrote on last edited by
                    #19

                    I tried (in the 0.7 version) the following command:

                    sudo -u root NODE_CONFIG_DIR=/var/www/peertube/config NODE_ENV=production npm run create-transcoding-job -- -v b8b791eb-9e38-4c4f-b797-0347662bb45f
                    

                    but this error returns:

                    sudo: npm: command not found
                    

                    Is the path in the command ok?

                    1 Reply Last reply
                    0
                    • nebulonN Offline
                      nebulonN Offline
                      nebulon
                      Staff
                      wrote on last edited by
                      #20

                      peertube as many other apps should ideally run with the cloudron user, so maybe try that user instead of root.

                      imc67I 1 Reply Last reply
                      1
                      • nebulonN nebulon

                        peertube as many other apps should ideally run with the cloudron user, so maybe try that user instead of root.

                        imc67I Offline
                        imc67I Offline
                        imc67
                        translator
                        wrote on last edited by
                        #21

                        @nebulon same result

                        sudo -u cloudron NODE_CONFIG_DIR=/var/www/peertube/config NODE_ENV=production npm run create-transcoding-job -- -v db21c654-6ca3-470e-b6a0-0f31bbcb3c37
                        sudo: npm: command not found
                        
                        1 Reply Last reply
                        0
                        • nebulonN Offline
                          nebulonN Offline
                          nebulon
                          Staff
                          wrote on last edited by
                          #22

                          Ah sudo apparently does not carry over the env bits for this. So instead use gosu cloudron:cloudron npm ... that should do.

                          imc67I 1 Reply Last reply
                          1
                          • nebulonN nebulon

                            Ah sudo apparently does not carry over the env bits for this. So instead use gosu cloudron:cloudron npm ... that should do.

                            imc67I Offline
                            imc67I Offline
                            imc67
                            translator
                            wrote on last edited by
                            #23

                            @nebulon said in PeerTube CLI:

                            gosu cloudron:cloudron

                            getting one step closer but still an error:

                            gosu cloudron:cloudron NODE_CONFIG_DIR=/var/www/peertube/config NODE_ENV=production npm run create-transcoding-job -- -v db21c654-6ca3-470e-b6a0-0f31bbcb3c37
                            error: exec: "NODE_CONFIG_DIR=/var/www/peertube/config": stat NODE_CONFIG_DIR=/var/www/peertube/config: no such file or directory
                            
                            1 Reply Last reply
                            0
                            • nebulonN Offline
                              nebulonN Offline
                              nebulon
                              Staff
                              wrote on last edited by
                              #24

                              NODE_CONFIG_DIR is already properly set in the environment pointing to /app/code/server/config so remove that from your commandline.

                              imc67I 1 Reply Last reply
                              0
                              • nebulonN nebulon

                                NODE_CONFIG_DIR is already properly set in the environment pointing to /app/code/server/config so remove that from your commandline.

                                imc67I Offline
                                imc67I Offline
                                imc67
                                translator
                                wrote on last edited by
                                #25

                                @nebulon again one step closer, but...

                                /app/code/server# gosu cloudron:cloudron NODE_ENV=production npm run create-transcoding-job -- -v db21c654-6ca3-470e-b6a0-0f31bbcb3c37
                                error: exec: "NODE_ENV=production": executable file not found in $PATHwith the current size.
                                
                                1 Reply Last reply
                                0
                                • girishG Offline
                                  girishG Offline
                                  girish
                                  Staff
                                  wrote on last edited by
                                  #26

                                  All my docs go unread 🙂 it's just peertube

                                  imc67I 1 Reply Last reply
                                  1
                                  • nebulonN Offline
                                    nebulonN Offline
                                    nebulon
                                    Staff
                                    wrote on last edited by
                                    #27

                                    Oh haha, great https://docs.cloudron.io/apps/peertube/

                                    1 Reply Last reply
                                    0
                                    • girishG girish

                                      All my docs go unread 🙂 it's just peertube

                                      imc67I Offline
                                      imc67I Offline
                                      imc67
                                      translator
                                      wrote on last edited by
                                      #28

                                      @girish stupid me!

                                      1 Reply Last reply
                                      0
                                      • rmdesR Offline
                                        rmdesR Offline
                                        rmdes
                                        wrote on last edited by rmdes
                                        #29

                                        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 1 Reply Last reply
                                        2
                                        • 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
                                          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