Skip to content

Commit

Permalink
Change default value of --with-audio to true
Browse files Browse the repository at this point in the history
  • Loading branch information
petergeneric committed Oct 9, 2024
1 parent 1251bcb commit 2c36ef2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Instructions for Cloud Key Gen 2 Plus (and other Ubiquiti hardware). Due to the
5. Run the following on your cloudkey: ```export PATH=$HOME:$PATH``` (you'll either need to run this every time you log in or put it in your ```.bashrc``` file)
6. Navigate to where your .ubv video is located (base path: /srv/unifi-protect/video).
7. Run: ```remux *.ubv```
8. By default, only video is extracted. If you need to extract audio too, add "--with-audio=true" to your command
8. By default, audio and video is extracted. If you do not need to extract audio, add "--with-audio=false" to your command

If FFmpeg is not installed (or if the command fails) the remux tool will leave the raw .aac and .h264 bitstream files; these can be combined with a variety of tools.

Expand Down Expand Up @@ -69,7 +69,7 @@ Once the dependencies are installed, use the following instructions to get the u
2. Upload this to your Linux server and extract with ```tar -zxf remux-x86_64.tar.gz```
3. Transfer .ubv files from your CloudKey to your x86 server (on cloudkey, .ubv files are found under /srv/unifi-protect/video).
4. Run: ```remux *.ubv```
5. By default, only video is extracted. If you need to extract audio too, add "--with-audio=true" to your command
5. By default, audio and video is extracted. If you do not need to extract audio, add "--with-audio=false" to your command

If FFmpeg is not installed (or if the command fails) the remux tool will leave the raw .aac and .h264 bitstream files; these can be combined with a variety of tools.

Expand Down
2 changes: 1 addition & 1 deletion remux.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ var GitCommit string

// Parses and validates commandline options and passes them to RemuxCLI
func main() {
includeAudioPtr := flag.Bool("with-audio", false, "If true, extract audio")
includeAudioPtr := flag.Bool("with-audio", true, "If true, extract audio")
includeVideoPtr := flag.Bool("with-video", true, "If true, extract video")
forceRatePtr := flag.Int("force-rate", 0, "If non-zero, adds a -r argument to FFmpeg invocations")
outputFolder := flag.String("output-folder", "./", "The path to output remuxed files to. \"SRC-FOLDER\" to put alongside .ubv files")
Expand Down

0 comments on commit 2c36ef2

Please sign in to comment.