Skip to content

Commit 8db137d

Browse files
committed
added Codecs
1 parent 451d5a5 commit 8db137d

File tree

8 files changed

+65
-13
lines changed

8 files changed

+65
-13
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
1720801785:F:/Box/NM_research/mizumoto-lab-manual/book.bib
2-
1720804878:F:/Box/NM_research/mizumoto-lab-manual/packages.bib
1+
1720801785:F:/OneDrive_Auburn/mizumoto-lab-manual/book.bib
2+
1720804878:F:/OneDrive_Auburn/mizumoto-lab-manual/packages.bib

.Rproj.user/FC00D0F0/sources/prop/INDEX

+2
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,7 @@ F%3A%2FOneDrive_Auburn%2Fmizumoto-lab-manual%2F01-expectation_and_responsibility
1616
F%3A%2FOneDrive_Auburn%2Fmizumoto-lab-manual%2F02-training_and_research_compliance.Rmd="2EA6A45E"
1717
F%3A%2FOneDrive_Auburn%2Fmizumoto-lab-manual%2F04-technologies.Rmd="C1FC9CF4"
1818
F%3A%2FOneDrive_Auburn%2Fmizumoto-lab-manual%2F05-funding.Rmd="DF43E651"
19+
F%3A%2FOneDrive_Auburn%2Fmizumoto-lab-manual%2F_book%2Findex.html="5E849996"
1920
F%3A%2FOneDrive_Auburn%2Fmizumoto-lab-manual%2F_main.Rmd="5E8F589B"
21+
F%3A%2FOneDrive_Auburn%2Fmizumoto-lab-manual%2F_output.yml="1FF3ECC2"
2022
F%3A%2FOneDrive_Auburn%2Fmizumoto-lab-manual%2Findex.Rmd="4D4100FF"

.Rproj.user/shared/notebooks/paths

+3-1
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,7 @@ F:/OneDrive_Auburn/mizumoto-lab-manual/01-expectation_and_responsibility.Rmd="34
99
F:/OneDrive_Auburn/mizumoto-lab-manual/02-training_and_research_compliance.Rmd="4E635367"
1010
F:/OneDrive_Auburn/mizumoto-lab-manual/04-technologies.Rmd="2273441D"
1111
F:/OneDrive_Auburn/mizumoto-lab-manual/05-funding.Rmd="07A0B596"
12-
F:/OneDrive_Auburn/mizumoto-lab-manual/_main.Rmd="5DD65BEC"
12+
F:/OneDrive_Auburn/mizumoto-lab-manual/_book/index.html="AA09D41A"
13+
F:/OneDrive_Auburn/mizumoto-lab-manual/_main.Rmd="BF60E26F"
14+
F:/OneDrive_Auburn/mizumoto-lab-manual/_output.yml="57537740"
1315
F:/OneDrive_Auburn/mizumoto-lab-manual/index.Rmd="156E9CBC"

04-technologies.Rmd

+27-5
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,7 @@ Here are some rules when you name files
115115
provides a good solution. Here are summary of what we will do.
116116
1. Open the command prompt as administrator
117117
2. Navigate to the parent folder of your current OneDrive folder
118-
3. execute this command: mklink /J OneDrive_Auburn "OneDrive -
119-
Auburn University"
118+
3. execute this command: ```mklink /J OneDrive_Auburn "OneDrive - Auburn University"```
120119
4. You may modify "OneDrive_Auburn" and "OneDrive - Auburn
121120
University" as you want
122121
5. Now you can access to OneDrive from "OneDrive_Auburn". From now
@@ -205,9 +204,9 @@ Windows
205204
Mac
206205

207206
- Install Homebrew (if not installed):
208-
- Open Terminal and run: ```{bash} /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" ```
207+
- Open Terminal and run: ```/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" ```
209208
- Install FFmpeg:
210-
- ```{bash} brew install ffmpeg ```
209+
- ```brew install ffmpeg ```
211210

212211
[Sample codes](https://github.com/nobuaki-mzmt/memo/blob/main/cmd.cmd). We can always ask ChatGPT that e.g., "write a code to use ffmpeg to change the resolution 640 in width in windows PC". They provide "ffmpeg -i input.mp4 -vf scale=640:-1 -c:a copy output.mp4"
213212

@@ -246,4 +245,27 @@ Mac
246245

247246
### What is PATH?
248247
The ```PATH``` is an environment variable in your operating system that tells the system where to look for executable files (e.g., FFmpeg, imagemagick, anaconda, opencv) when you run commands in the Command Prompt or terminal.
249-
For example, by adding FFmpeg's bin directory to the ```PATH```, you enable the system to find and run FFmpeg from anywhere, without needing to navigate to its folder every time. You can just type ```ffmpeg``` in the Command Prompt and it will work. Without adding it to the PATH, you would need to navigate to the folder where FFmpeg is installed and run the command from there.
248+
For example, by adding FFmpeg's bin directory to the ```PATH```, you enable the system to find and run FFmpeg from anywhere, without needing to navigate to its folder every time. You can just type ```ffmpeg``` in the Command Prompt and it will work. Without adding it to the PATH, you would need to navigate to the folder where FFmpeg is installed and run the command from there.
249+
250+
### Codecs (I cannot play a video in my PC)
251+
A codec (short for compressor-decompressor) is a tool that compresses and decompresses digital media files, such as videos and audio. There are various methods of codecs, and due to this variation, some videos may not be able to play in your PC.
252+
**Examples of Codecs**
253+
254+
- H.264 (video)
255+
- This is a widely used codec.
256+
257+
- HEVC (H.265) (video):
258+
- Compresses video files even more efficiently than H.264, often with similar or better quality.
259+
- However, windows PC stops supporting this codec since Windows 10. This is frustrating. We need to buy the extension from the [Miscrosoft Store](https://apps.microsoft.com/detail/9nmzlz57r3t7?hl=en-US&gl=US). This is just $0.99. I don't understand why windows stop providing this as default. Most problems happen due to this.
260+
261+
**Change the codec of your video**
262+
This can be done using [FFmpeg (Video edits)] very easily.
263+
```ffmpeg -i input.mov -c:v libx264 -c:a aac output.mp4```
264+
This command specifies H.264 for video and AAC for audio.
265+
266+
```ffmpeg -i input.mov -c:v libx265 -c:a aac output.mp4```
267+
This command specifies H.265 for video and AAC for audio.
268+
269+
**Investigate the codec of your video**
270+
```ffmpeg -i video.mp4```
271+

_book/404.html

+1
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@
141141
<li class="chapter" data-level="5.7" data-path="technologies.html"><a href="technologies.html#notes-1"><i class="fa fa-check"></i><b>5.7</b> Notes</a>
142142
<ul>
143143
<li class="chapter" data-level="5.7.1" data-path="technologies.html"><a href="technologies.html#what-is-path"><i class="fa fa-check"></i><b>5.7.1</b> What is PATH?</a></li>
144+
<li class="chapter" data-level="5.7.2" data-path="technologies.html"><a href="technologies.html#codecs-i-cannot-play-a-video-in-my-pc"><i class="fa fa-check"></i><b>5.7.2</b> Codecs (I cannot play a video in my PC)</a></li>
144145
</ul></li>
145146
</ul></li>
146147
<li class="chapter" data-level="6" data-path="opporunities.html"><a href="opporunities.html"><i class="fa fa-check"></i><b>6</b> Opporunities</a>

_book/reference-keys.txt

+1
Original file line numberDiff line numberDiff line change
@@ -112,3 +112,4 @@ ffmpeg
112112
ffmpeg-video-edits
113113
notes-1
114114
what-is-path
115+
codecs-i-cannot-play-a-video-in-my-pc

0 commit comments

Comments
 (0)