hack into my computer and steal my illegal porn? and then make my computer explode infront of my face but not before you throw up a 10 second counter on my screen as soon as i turn it on?
Name:
Anonymous2013-07-22 21:03
How do I fix this fucking shit?
#!/bin/bash
cp OP.mkv ~/; cp ED.mkv ~/
for a in *.mkv
do ffmpeg -i "$a" -f mpegts -c copy -bsf:v h264_mp4toannexb "${a%.mkv}".mpeg.ts
done
for b in *.mpeg.ts
do ffmpeg -y -isync -i "concat:OP.mpeg.ts|$b|ED.mpeg.ts" -f matroska -c copy "${b%.mpeg.ts}".mkv
done
Now see, I would just immediately do the -isync -i "concat:things|stuff" but it doesn't seem to work with just mkv formats? Can you get it working with just mkv formats? Because converting to mpeg.ts first strips it of all subtitles, and when I convert it back into mkv mkvmerge has problems getting subs back in their due to some retarded codec error.
How would I batch convert all mkvs in a directory to append "OP.mkv" to the front of them, and "ED.mkv" to the end of them?