Skip to content

Commit

Permalink
doc: fix README.md (#38)
Browse files Browse the repository at this point in the history
* doc: fix README.md

* feat: copy subs
  • Loading branch information
Tohrusky authored Oct 27, 2024
1 parent fe9d16d commit f4854a5
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ GO ?= go

.DEFAULT_GOAL := default

version := v0.0.1
version := v0.0.2
VS_PYTORCH_VERSION := v0.0.1

.PHONY: tidy
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ a distributed video processing tool, based on FFmpeg and VapourSynth

[![CI-test](https://github.com/TensoRaws/FinalRip/actions/workflows/CI-test.yml/badge.svg)](https://github.com/TensoRaws/FinalRip/actions/workflows/CI-test.yml)
[![golangci-lint](https://github.com/TensoRaws/FinalRip/actions/workflows/golangci-lint.yml/badge.svg)](https://github.com/TensoRaws/FinalRip/actions/workflows/golangci-lint.yml)
[![Docker Build CI](https://github.com/TensoRaws/FinalRip/actions/workflows/Docker-CI.yml/badge.svg)](https://github.com/TensoRaws/FinalRip/actions/workflows/Docker-CI.yml)
[![Docker Build Release](https://github.com/TensoRaws/FinalRip/actions/workflows/Docker-Release.yml/badge.svg)](https://github.com/TensoRaws/FinalRip/actions/workflows/Docker-Release.yml)
[![Docker Build CI](https://github.com/TensoRaws/FinalRip/actions/workflows/CI-docker.yml/badge.svg)](https://github.com/TensoRaws/FinalRip/actions/workflows/CI-docker.yml)
[![Release](https://github.com/TensoRaws/FinalRip/actions/workflows/Release.yml/badge.svg)](https://github.com/TensoRaws/FinalRip/actions/workflows/Release.yml)
[![CircleCI](https://dl.circleci.com/status-badge/img/circleci/RJWBNXdmdaDACvcacXFQ3e/Ge3dVaX4GmktGiL9Jb1ADB/tree/main.svg?style=svg)](https://dl.circleci.com/status-badge/redirect/circleci/RJWBNXdmdaDACvcacXFQ3e/Ge3dVaX4GmktGiL9Jb1ADB/tree/main)

### Architecture
Expand Down
2 changes: 1 addition & 1 deletion common/version/version.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
package version

const FINALRIP_VERSION = "v0.0.1"
const FINALRIP_VERSION = "v0.0.2"
4 changes: 2 additions & 2 deletions module/ffmpeg/merge.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ func MergeVideo(originFile string, inputFiles []string, outputPath string) error
log.Logger.Infof("Merge video output: %s", out)

// 拼接音频
commandStr = fmt.Sprintf("ffmpeg -i %s -i %s -map 0:a:0 -map 1:v:0 -c copy %s", originFile, tempVideoOutputPath, outputPath) //nolint: lll
commandStr = fmt.Sprintf("ffmpeg -i %s -i %s -map 0:a -map 0:s -map 1:v:0 -c copy %s", originFile, tempVideoOutputPath, outputPath) //nolint: lll
log.Logger.Infof("Merge audio command: %s", commandStr)
cmd = exec.Command("ffmpeg", "-i", originFile, "-i", tempVideoOutputPath, "-map", "0:a:0", "-map", "1:v:0", "-c", "copy", outputPath) //nolint: lll
cmd = exec.Command("ffmpeg", "-i", originFile, "-i", tempVideoOutputPath, "-map", "0:a", "-map", "0:s", "-map", "1:v:0", "-c", "copy", outputPath) //nolint: lll
out, err = cmd.CombinedOutput()
if err != nil {
log.Logger.Errorf("Merge audio failed: %v", err)
Expand Down

0 comments on commit f4854a5

Please sign in to comment.