From 59edbbfae2fc52c42b62eeb8ab12c9d384ed14aa Mon Sep 17 00:00:00 2001 From: RocketRobz Date: Tue, 21 Jun 2022 23:22:38 -0600 Subject: [PATCH] Replace example code with .bat files --- assets/files/dsmp4.bat | 2 ++ assets/files/xvid-ds-vol4.bat | 1 + assets/files/xvid-ds.bat | 1 + assets/files/xvid-dsi-vol4.bat | 1 + assets/files/xvid-dsi.bat | 1 + pages/_en-US/ds-index/videoplayers.md | 21 +++++++++------------ 6 files changed, 15 insertions(+), 12 deletions(-) create mode 100644 assets/files/dsmp4.bat create mode 100644 assets/files/xvid-ds-vol4.bat create mode 100644 assets/files/xvid-ds.bat create mode 100644 assets/files/xvid-dsi-vol4.bat create mode 100644 assets/files/xvid-dsi.bat diff --git a/assets/files/dsmp4.bat b/assets/files/dsmp4.bat new file mode 100644 index 00000000..48daf633 --- /dev/null +++ b/assets/files/dsmp4.bat @@ -0,0 +1,2 @@ +ffmpeg -i %1 -f mp4 -vf "fps=24000/1001, colorspace=space=ycgco:primaries=bt709:trc=bt709:range=pc:iprimaries=bt709:iall=bt709, scale=256:144" -dst_range 1 -color_range 2 -vcodec mpeg4 -profile:v 0 -level 8 -q:v 2 -maxrate 500k -acodec aac -ar 32k -b:a 64000 -ac 1 -slices 1 -g 50 %1_ds.mp4 +pause diff --git a/assets/files/xvid-ds-vol4.bat b/assets/files/xvid-ds-vol4.bat new file mode 100644 index 00000000..e95f5997 --- /dev/null +++ b/assets/files/xvid-ds-vol4.bat @@ -0,0 +1 @@ +ffmpeg -i %1 -f avi -r 12 -vf "scale=256:-2" -b 192k -bt 64k -vcodec libxvid -acodec libmp3lame -ar 32000 -ab 96k -ac 2 -filter:a "volume=4" %1_ds.avi \ No newline at end of file diff --git a/assets/files/xvid-ds.bat b/assets/files/xvid-ds.bat new file mode 100644 index 00000000..10a8685a --- /dev/null +++ b/assets/files/xvid-ds.bat @@ -0,0 +1 @@ +ffmpeg -i %1 -f avi -r 12 -vf "scale=256:-2" -b 192k -bt 64k -vcodec libxvid -acodec libmp3lame -ar 32000 -ab 96k -ac 2 %1_ds.avi \ No newline at end of file diff --git a/assets/files/xvid-dsi-vol4.bat b/assets/files/xvid-dsi-vol4.bat new file mode 100644 index 00000000..13a5d92b --- /dev/null +++ b/assets/files/xvid-dsi-vol4.bat @@ -0,0 +1 @@ +ffmpeg -i %1 -f avi -r 12 -vf "scale=256:-2" -b 512k -bt 64k -vcodec libxvid -acodec libmp3lame -ar 32000 -ab 96k -ac 2 -filter:a "volume=4" %1_dsi.avi \ No newline at end of file diff --git a/assets/files/xvid-dsi.bat b/assets/files/xvid-dsi.bat new file mode 100644 index 00000000..fc08064f --- /dev/null +++ b/assets/files/xvid-dsi.bat @@ -0,0 +1 @@ +ffmpeg -i %1 -f avi -r 12 -vf "scale=256:-2" -b 512k -bt 64k -vcodec libxvid -acodec libmp3lame -ar 32000 -ab 96k -ac 2 %1_dsi.avi \ No newline at end of file diff --git a/pages/_en-US/ds-index/videoplayers.md b/pages/_en-US/ds-index/videoplayers.md index 83b21dd3..c1e29f66 100644 --- a/pages/_en-US/ds-index/videoplayers.md +++ b/pages/_en-US/ds-index/videoplayers.md @@ -43,14 +43,13 @@ You should probably stay in the safe zone for converting videos (10-15fps), othe To use FFmpeg everywhere, it is recommended to add the directory to your system environment variable path. This may break programs which rely on FFmpeg, so make sure to remove the entry when you're done. -Use this example code to convert your videos -``` -ffmpeg -i video.mp4 -vsync cfr -f avi -r 15 -vf "scale=256:-2" -b 192k -bt 64k -vcodec libxvid -deinterlace -acodec libmp3lame -ar 32000 -ab 96k -ac 2 -filter:a "volume=4" video-ds.avi -``` -where `video.mp4` is the filename of the video you want to convert. Feel free to mess around with some of the settings. -- Try changing `-b 192k` to `-b 320k` for optimal quality, or (for DSi) `-b 512k` for the best quality available. -- Only use `-filter:a "volume=4"` if your video is a bit quiet. If the resulting video plays too loudly, please re-run the example code, but with `-filter:a "volume=4"` removed. -- If you're converting a 24fps video, change `-r 15` to `-r 12` to fix image jumping. +Drag and drop your video into one of these batch files to convert your videos +- [xvid-ds.bat](/assets/files/xvid-ds.bat): Converts to 12FPS video optimal for DS consoles +- [xvid-dsi.bat](/assets/files/xvid-dsi.bat): Converts to 12FPS video optimal for DSi consoles +- [xvid-ds-vol4.bat](/assets/files/xvid-ds-vol4.bat): Converts to 12FPS video optimal for DS consoles with 400% volume increase +- [xvid-dsi-vol4.bat](/assets/files/xvid-dsi-vol4.bat): Converts to 12FPS video optimal for DSi consoles with 400% volume increase + +You can change `12` in `-r 12` to a different one between `10` and `15`. When this process is done, it should be easy as drag and drop to SD card. Once you put the video on your SD card, it will be ready for playback via **TW**i**L**ight Menu++. @@ -60,7 +59,5 @@ The video will quit to the menu after it is done playing, so if you want to loop ### Windows -The process is the same for Tuna-ViDS, but you can have videos up to 24fps, and the example code is different. -``` -ffmpeg -i video.mp4 -f mp4 -vf "fps=24000/1001, colorspace=space=ycgco:primaries=bt709:trc=bt709:range=pc:iprimaries=bt709:iall=bt709, scale=256:144" -dst_range 1 -color_range 2 -vcodec mpeg4 -profile:v 0 -level 8 -q:v 2 -maxrate 500k -acodec aac -ar 32k -b:a 64000 -ac 1 -slices 1 -g 50 %2 -``` +The process is the same for Tuna-ViDS, but you can have videos up to 24fps. +- [dsmp4.bat](/assets/files/dsmp4.bat)