ffmpeg

concat FFmpeg has three concat methods. concat protocol ffmpeg -i 'concat:input1|input2' -codec copy output concat video filter ffmpeg -i opening.mkv -i episode.mkv -i ending.mkv \ -filter_complex '[0:0] [0:1] [1:0] [1:1] [2:0] [2:1] concat=n=3:v=1:a=1 [v] [a]' \ -map '[v]' -map '[a]' output.mkv concat demuxer $ cat mylist.txt file '/path/to/file1' file '/path/to/file2' file '/path/to/file3' $ ffmpeg -f concat -i mylist.txt -c copy output Which one to use concat protocol: use with formats that support file level concatenation (MPEG-1, MPEG-2 PS, DV)....

Images

pdfimages pdfimages -j foo.pdf bar This will extract all images from foo.pdf and save them in JPEG format (option -j) to bar-000.jpg, bar-001.jpg, bar-002.jpg, etc. delete metadata exiftool -exif:all= *.jpg exiftool -xmp:all= *.jpg or use MAT: Metadata Anonymisation Toolkit https://0xacab.org/jvoisin/mat2

rtmpsrv

rtmpsrv allows you to get all parameters that are required by rtmpdump. You don’t need packet sniffers or complex analysis to use rtmpdump when using rtmpsrv. The only problem you may have is when a video consists of several segments (chapters). In such cases just skip to the next chapter. How to compile rtmpdump with rtmpsrv and rtmpsuck in Linux: svn checkout svn://svn.mplayerhq.hu/rtmpdump/trunk rtmpdump cd rtmpdump make linux How to use rtmpsrv in Linux: Configure your firewall to redirect RTMP traffic through a local port:...

Converting DTS to AC3

Get the track information mkvmerge -i /path/to/matroska.file.mkv Sample output Track ID 1: video (V_MPEG4/ISO/AVC) Track ID 2: audio (A_DTS) This means that the matroska.file.mkv contains two tracks, a video track with id 1 and a DTS track with id 2. Extract the DTS track 2 is the DTS track ID from the given example. mkvextract tracks /path/to/matroska.file.mkv 2:/tmp/dts.file.dts Converting the DTS track to AC3 dcadec -o wavall /tmp/dts.file.dts | aften - /tmp/ac3....

Encoding Audio

cdparanoia cdparanoia -B -- "-3" flac for i in *.flac; do flac -d "$i"; done split cue shnsplit -o flac -f FILE.cue -t %n.%t FILE.flac mp3 for i in *.wav; do lame -vbr-new -V 0 "$i" "${i%.wav}.mp3"; done coverart eyeD3 --add-image=./cover.jpg:FRONT_COVER ./*.mp3 scan bitrate find . -type f -name "*.mp3" -exec mediainfo {} \; | grep -E 'Encoding settings'\|'Complete name'\|'Bit rate mode' > info.txt