Skip to content

Commit

Permalink
Merge pull request #7 from comp-physics/vscode-terminals
Browse files Browse the repository at this point in the history
Add note about VSCode terminals
  • Loading branch information
wilfonba authored Oct 29, 2024
2 parents 85a0407 + 55f7e9f commit b98ee94
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Tutorials/FFMPEG-cheat-sheet.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ ffmpeg -r 30 -f image2 -i pic.%04d.png -vcodec libx264 -crf 25 -pix_fmt yuv420p
The inputs are:
* `-r` is the framerate
* `-crf` is the quality, lower means better quality
* `-S` (optional) video resolution in pixes
* `-S` (optional) video resolution in pixels
* `-pix_fmt` specifies the pixel format

## Playing one video after another
Expand Down Expand Up @@ -43,7 +43,7 @@ ffmpeg -i input0 -i input1 -i input2 -i input3 -filter_complex "[0:v][1:v][2:v][
```

## Dealing with an odd number of pixels
Adding `-vf "pad=ceil(iw/2)*2:ceil(ih/2)*2"` to your FFMPEG command as shown below allows you to create a video from PNGs that are not an even number of pixels in height and/or width.
Adding `-vf "pad=ceil(iw/2)*2:ceil(ih/2)*2"` to your FFMPEG command as shown below allows you to create a video from images that are not an even number of pixels in height and/or width.
```
ffmpeg -r 30 -f image2 -i pic.%04d.png -vcodec libx264 -vf "pad=ceil(iw/2)*2:ceil(ih/2)*2" -crf 25 -pix_fmt yuv420p test.mp4
```
Expand Down Expand Up @@ -72,4 +72,4 @@ where the inputs are
* `-vf` indicates the usage of a video filter
* `crop` is the name of the filter
* `w:h` is the width and height of the output video<
* `x:y` is the coordinate from which the video will be
* `x:y` is the coordinate from which the video will be
3 changes: 3 additions & 0 deletions Tutorials/interactive-visualization-on-Phoenix.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
This tutorial outlines how to perform interactive remove visualization on GATechs Phoenix cluster.
Using remote visualization allows for the visualization of much larger simulations interactively, without the need for Paraview's batch mode

> [!IMPORTANT]
> Note: Do not use VSCode terminals for the following steps. Use a bare, 'system' terminal instead as some connection oddities have been seen when using remote VSCode terminals for visualization setup.
## Step 1 - Setting up your Environment
Begin by downloading the .zip file here (https://gatech.box.com/s/1diud4lgequvuie5fg2ac6hcvoelndu5).
This file contains two things
Expand Down

0 comments on commit b98ee94

Please sign in to comment.