Skip to content

Commit e01c971

Browse files
committed
@posts/TranscodeMuxHowto.md: improves
Is followup to: commit dcf067a (@`posts/TranscodeMuxHowto.md`: Markdown improved), plus others? TODO: `squash` this
1 parent de8b447 commit e01c971

File tree

1 file changed

+18
-13
lines changed

1 file changed

+18
-13
lines changed

posts/TranscodeMuxHowto.md

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,9 @@
11
**[`ffmpeg`](https://github.com/FFmpeg/FFmpeg) is [FLOSS](https://wikipedia.org/wiki/FLOSS) (no cost), plus is the best tool to transcode/trim/demux/mux. `ffmpeg` is on [_**MS** Windows_](https://wikipedia.org/wiki/Windows)&[_Linux_](https://wikipedia.org/wiki/Linux)&[_Android OS_](https://wikipedia.org/wiki/Android_(operating_system))&[_iOS_](https://wikipedia.org/wiki/iOS)&[_macOS_](https://wikipedia.org/wiki/macOS).**
22

3-
\[This post (which [is also on *SubStack*](https://swudususuwu.substack.com/p/ffmpeg-is-floss-no-cost-mux-tool)) allows [all uses](https://creativecommons.org/licenses/by/2.0/).\]
4-
5-
Tools compatible with this howto:
6-
- For `/bin/sh`: `apt install ffmpeg`
7-
- For _Android OS_: [_FFmpeg Media Encoder_ - Apps on _Google_](https://play.google.com/store/apps/details?id=com.silentlexx.ffmpeggui) (_SilentLexx_) with much success; has a visual interface to `ffmpeg` but can process commands through console.
8-
- \[Alternative (have not used): [_FFmpeg_ - Apps on _Google_](https://play.google.com/store/apps/details?id=com.crossplat.ffmpegmobile) (_FFmpeg_ from _CrossPlat_).\]
9-
- For misc _Linux_ OSs (suchas [_Ubuntu_](https://ubuntu.com/) or [_Android OS_ +_Termux_](https://play.google.com/store/apps/details?id=com.termux)): `apt install ffmpeg`.
10-
- For _iOS_: [https://shaunhevey.com/posts/how-to-use-ffmpeg-on-ios/](https://shaunhevey.com/posts/how-to-use-ffmpeg-on-ios/).
11-
- For _macOS_: `brew install ffmpeg --with-fdk-aac --with-ffplay --with-freetype --with-libass --with-libvorbis --with-libvpx --with-opus` (or [alternatives](https://superuser.com/questions/624561/install-ffmpeg-on-os-x/624562#624562)).
12-
- For _Microsoft Windows_: [_FFmpeg_ - Official app in the _Microsoft Store_](https://apps.microsoft.com/detail/9nb2flx7x7wg?hl=en-za&gl=ZA).
3+
\[[This post](./TranscodeMuxHowto.md) is [released through *Creative Commons Generic Attribution 2* (which allows all uses)](https://creativecommons.org/licenses/by/2.0/). **Notice**: not affiliated to `ffmpeg`, just skilled user.\]
134

145
# Table of Contents
6+
- [Requisites](#Requisites)
157
- [Howto](#howto)
168
- [Produce `.mp4`](#produce-mp4)
179
- [Produce `.m4a`](#produce-m4a)
@@ -21,6 +13,18 @@ Tools compatible with this howto:
2113
- [Produce `.gif`](#produce-gif)
2214
- [Synopsis](#synopsis)
2315

16+
******************************************
17+
# Requisites
18+
Tools compatible with this howto:
19+
- For `/bin/sh`: `apt install ffmpeg`
20+
- For _Android OS_: [_FFmpeg Media Encoder_ - Apps on _Google_](https://play.google.com/store/apps/details?id=com.silentlexx.ffmpeggui) (`ffmpeg` wrapper from _SilentLexx_) with much success; has a visual interface to `ffmpeg` but can process commands through console.
21+
- \[Alternative (have not used): [_FFmpeg_ - Apps on _Google_](https://play.google.com/store/apps/details?id=com.crossplat.ffmpegmobile) (`ffmpeg` wrapper from _CrossPlat_).\]
22+
- For misc _Linux_ OSs (suchas [_Ubuntu_](https://ubuntu.com/) or [_Android OS_ +_Termux_](https://play.google.com/store/apps/details?id=com.termux)): `apt install ffmpeg`.
23+
- For _iOS_: [https://shaunhevey.com/posts/how-to-use-ffmpeg-on-ios/](https://shaunhevey.com/posts/how-to-use-ffmpeg-on-ios/).
24+
- For _macOS_: `brew install ffmpeg --with-fdk-aac --with-ffplay --with-freetype --with-libass --with-libvorbis --with-libvpx --with-opus` (or [alternatives](https://superuser.com/questions/624561/install-ffmpeg-on-os-x/624562#624562)).
25+
- For _Microsoft Windows_: [_FFmpeg_ - Official app in the _Microsoft Store_](https://apps.microsoft.com/detail/9nb2flx7x7wg?hl=en-za&gl=ZA).
26+
27+
******************************************
2428
# Howto
2529
You can use [`../sh/Transcode.sh`](../sh/Transcode.sh) to do all of this for you; what follows is the manual route.
2630
\[*Notice*: versus stock _Android_, have moved default paths `/Music/` to `/Sounds/`, `/Movies/` to `/Visuals/`.\]
@@ -94,14 +98,15 @@ or, if you have _ImageMagick_ installed (`apt install magick || apt install imag
9498
```sh
9599
nice ffmpeg -i "/storage/emulated/0/Visuals/visual.mp4" -map 0:v:0 -r 10 -s 1920x1080 -t 24 -f image2pipe -vcodec ppm - | convert -delay $(expr 100 / 10) - "/storage/emulated/0/Visuals/visual.gif"
96100
```
97-
will use more disk but has dither and palette improved.
98-
Optimization (lossless compression, such as: duplicate frames and duplicate palettes are reduced) through _Gifsicle_ (`apt install gifsicle`):
101+
will use more disk but has dither plus palette improved.
102+
Optimization (lossless compression, such as: duplicate frames plus duplicate palettes are reduced) through _Gifsicle_ (`apt install gifsicle`):
99103
```sh
100104
nice gifsicle -O2 "/storage/emulated/0/Visuals/visual.gif" --batch
101105
```
102106

107+
******************************************
103108
# Synopsis
104-
Lists of commands&options which `ffmpeg` can use:
109+
Lists of commands (plus options) which `ffmpeg` can use:
105110
- [ffmpeg Documentation](https://ffmpeg.org/ffmpeg.html)
106111
- [complete list of `ffmpeg` flags / commands](https://gist.github.com/tayvano/6e2d456a9897f55025e25035478a3a50#file-gistfile1-txt)
107112

0 commit comments

Comments
 (0)