ffmpeg

Posted on Di 19 September 2017 in Notebook • Tagged with notebook, linux, media, video

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 …

Continue reading

Images

Posted on Fr 08 August 2014 in Notebook • Tagged with notebook, linux, media, image

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 …


Continue reading

rtmpsrv

Posted on Di 01 Mai 2012 in Notebook • Tagged with notebook, linux, media, video

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 …


Continue reading

Converting DTS to AC3

Posted on Di 11 Januar 2011 in Notebook • Tagged with notebook, linux, media, audio

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 …


Continue reading

Encoding Audio

Posted on Do 21 Oktober 2010 in Notebook • Tagged with notebook, linux, media, 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 …


Continue reading