Skip to content

Commit

Permalink
README updates
Browse files Browse the repository at this point in the history
  • Loading branch information
neri14 committed Aug 29, 2024
1 parent b066647 commit b126624
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 30 deletions.
30 changes: 24 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,30 @@

## Pipeline

1. Get video and telemetry
1. Run concat tool to combine the clips
1. Run trim tool to create final raw video
1. Run alignment tool and figure out offset
1. Run generator app to generate final video (for YT - set upscale to 4K (```-r 3840x2160```))
1. Upload
1. Gather video clips (.mp4) and telemetry file (.fit) to be used

1. Concatenate video clips

example ffmpeg command: ```ffmpeg -f concat -safe 0 -i mylist.txt -c copy output.mp4```

with ```mylist.txt``` content:
```
file '/path/to/clip/1.mp4'
file '/path/to/clip/2.mp4'
file '/path/to/clip/3.mp4'
```

1. Trim concatenated video

example ffmpeg command: ```ffmpeg -ss 00:00:30.0 -to 00:01:00.0 -i input.mp4 -c copy output.mp4```

1. Run alignment tool and figure out offset (tool instruction below - functionality to be integrated into main generator (#21))

1. Run generator app to generate final video

> for YT - use upscale to 4K and 80mbit/s bitrate (```-r 3840x2160 -b 80000```)
1. Upload video


## Dependencies
Expand Down
24 changes: 0 additions & 24 deletions tools/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,3 @@ List of tools that make life easier and make overlay generator simpler (and fast

## Alignment tool
Allows to quickly figure out telemetry offset required.

## ToDo
Tools to be wrapped in nice interface

### Concat tool
```ffmpeg -f concat -safe 0 -i mylist.txt -c copy output.mp4```

example mylist.txt:
```
file '/home/neri/videos/gopro/raw/2024-03-27/GX010009.MP4'
file '/home/neri/videos/gopro/raw/2024-03-27/GX020009.MP4'
file '/home/neri/videos/gopro/raw/2024-03-27/GX030009.MP4'
```

Very fast - much easier than concating in app.

### Trim tool
```ffmpeg -ss 00:00:30.0 -to 00:01:00.0 -i input.mp4 -c copy output.mp4```


### Upscale tool
```ffmpeg -hwaccel cuda -hwaccel_output_format cuda -i input.mp4 -c:a copy -vf "scale_cuda=w=3840:h=2160:format=yuv420p" -c:v h264_nvenc -profile:v high -b:v 60M output.mp4```

From quick test has around 3.5x speed

0 comments on commit b126624

Please sign in to comment.