Skip to content

Commit 06efa45

Browse files
committed
Update commands for Windows on Arm resource usage
1 parent f5300ca commit 06efa45

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

content/learning-paths/laptops-and-desktops/win-resource-ps1/how-to-1.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ The downloaded video file is in YUV raw format, which means playback of the vide
3838

3939
Use `ffmpeg.exe` to compress the YUV raw video with the x265 encoder and convert the file format to `.mp4`.
4040

41-
Open a terminal and run the following command:
41+
Assuming you downloaded the files and extraced them in the current directory, open a terminal and run the following command:
4242

4343
```console
44-
path\to\ffmpeg.exe -f rawvideo -pix_fmt yuv420p -s 3840x2160 -r 50 -i D:\path\to\RaceNight_YUV_RAW\RaceNight_3840x2160_50fps_8bit.yuv -vf scale=1920:1080 -c:v libx265 -preset medium -crf 20 D:\RaceNight_1080p.mp4 -benchmark -stats -report
44+
ffmpeg-n7.1.1-56-gc2184b65d2-win64-gpl-7.1\ffmpeg-n7.1.1-56-gc2184b65d2-win64-gpl-7.1\bin\ffmpeg.exe -f rawvideo -pix_fmt yuv420p -s 3840x2160 -r 50 -i RaceNight_3840x2160_50fps_420_8bit_YUV_RAW\RaceNight_3840x2160_50fps_8bit.yuv -vf scale=1920:1080 -c:v libx265 -preset medium -crf 20 RaceNight_1080p.mp4 -benchmark -stats -report
4545
```
4646

4747
{{% notice Note %}}
@@ -52,7 +52,7 @@ The command transforms the video size and compresses the video into an MP4 file
5252

5353
The `benchmark` option is turned on to show performance data at the same time.
5454

55-
The generated file will be at D:\RaceNight_1080p.mp4.
55+
The generated file will be at RaceNight_1080p.mp4.
5656

5757
Run the command with both the x86_64 and the Arm64 versions of FFmpeg and compare the output.
5858

@@ -63,7 +63,7 @@ The output below is from the x86_64 version of `ffmpeg.exe`:
6363
```output
6464
x265 [info]: tools: rd=3 psy-rd=2.00 early-skip rskip mode=1 signhide tmvp
6565
x265 [info]: tools: b-intra strong-intra-smoothing lslices=6 deblock sao
66-
Output #0, mp4, to 'D:\RaceNight_1080p.mp4':
66+
Output #0, mp4, to 'RaceNight_1080p.mp4':
6767
Metadata:
6868
encoder : Lavf61.7.100
6969
Stream #0:0: Video: hevc (hev1 / 0x31766568), yuv420p(tv, progressive), 1920x1080, q=2-31, 50 fps, 12800 tbn
@@ -88,7 +88,7 @@ The output below is from the Arm64 native compiled `ffmpeg.exe`:
8888
```output
8989
x265 [info]: tools: rd=3 psy-rd=2.00 early-skip rskip mode=1 signhide tmvp
9090
x265 [info]: tools: b-intra strong-intra-smoothing lslices=6 deblock sao
91-
Output #0, mp4, to 'D:\RaceNight_1080p.mp4':
91+
Output #0, mp4, to 'RaceNight_1080p.mp4':
9292
Metadata:
9393
encoder : Lavf61.7.100
9494
Stream #0:0: Video: hevc (hev1 / 0x31766568), yuv420p(tv, progressive), 1920x1080, q=2-31, 50 fps, 12800 tbn

content/learning-paths/laptops-and-desktops/win-resource-ps1/how-to-2.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ Open your code editor, copy the content below, and save it as `sample_decoding.p
1414

1515
```PowerShell { line_numbers = true }
1616
param (
17-
[string]$exePath = "path\to\ffplay.exe",
18-
[string[]]$argList = @("-loop", "15", "-autoexit", "D:\RaceNight_1080p.mp4"),
17+
[string]$exePath = "ffmpeg-n7.1.1-56-gc2184b65d2-win64-gpl-7.1\ffmpeg-n7.1.1-56-gc2184b65d2-win64-gpl-7.1\bin\ffplay.exe",
18+
[string[]]$argList = @("-loop", "15", "-autoexit", "RaceNight_1080p.mp4"),
1919
[int]$interval = 2,
2020
[string]$outputFile = "usage_log.csv"
2121
)

content/learning-paths/laptops-and-desktops/win-resource-ps1/how-to-3.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ Open your code editor, copy the content below, and save it as `sample_power.ps1`
1616

1717
```PowerShell { line_numbers = true }
1818
param (
19-
[string]$exePath = "path\to\ffplay.exe",
20-
[string[]]$argList = @("-loop", "150", "-autoexit", "D:\RaceNight_1080p.mp4"),
19+
[string]$exePath = "ffmpeg-n7.1.1-56-gc2184b65d2-win64-gpl-7.1\ffmpeg-n7.1.1-56-gc2184b65d2-win64-gpl-7.1\bin\ffplay.exe",
20+
[string[]]$argList = @("-loop", "15", "-autoexit", "RaceNight_1080p.mp4"),
2121
[int]$interval = 10,
2222
[string]$outputFile = "watts.csv"
2323
)

0 commit comments

Comments
 (0)