Make a video from a still image and an audio file

https://video.stackexchange.com/questions/5291/how-to-make-a-video-from-a-still-image-and-an-audio-file

ffmpeg -loop 1 -r 1 -i input1.png -i input2.aiff -c:v libx264 -c:a copy -shortest output.mp4

-loop 1 -f image2 -r 2 -i input1.png tells ffmpeg to loop input1.png forever, at a frame rate of 2fps. -c:v libx264 tells it to use x264 to encode the video, and -c:a copy tells it to simply copy the audio, without encoding. -shortest makes ffmpeg stop when the shortest input ends – input2.aiff in this case.

Rotating videos with FFmpeg

Found this neat answer on stackoverflow:

https://stackoverflow.com/questions/3937387/rotating-videos-with-ffmpeg

Rotate 90 clockwise:

ffmpeg -i in.mov -vf "transpose=1" out.mov

For the transpose parameter you can pass:

0 = 90CounterCLockwise and Vertical Flip (default)
1 = 90Clockwise
2 = 90CounterClockwise
3 = 90Clockwise and Vertical Flip

Use -vf "transpose=2,transpose=2" for 180 degrees.

Make sure you use a recent ffmpeg version from here (a static build will work fine).

Note that this will re-encode the audio and video parts. You can usually copy the audio without touching it, by using -c:a copy. To change the video quality, set the bitrate (for example with -b:v 1M) or have a look at the H.264 encoding guide if you want VBR options.

Creating M4B audiobook file using m4b-tool

Here’s an example:

m4b-tool merge "Just Listen" --jobs=10 --output-fi
le="Just Listen.m4b" --name="Just Listen" --album="Just Listen" --artist="M
ark Goulston" --use-filenames-as-chapters

where “Just Listen” after merge is the folder containing the WAV, MP3 etc files. If “cover.jpg” is in that folder, it will be embedded in the final M4B file.

To add chapter information stored in file “chapters.txt” to an existing file, without recoding, use --no-conversion

m4b-tool can be found at https://github.com/sandreas/m4b-tool