Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions content/about/video-codecs.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ Convert recursively mkv and avi and remove original file.

```
#! /bin/bash
while IFS= read -r -d '' file
for file in $( find ./ -iname "*.mkv" -o -iname "*.avi")
do
ffmpeg -nostdin -i "$file" -vcodec h264 -acodec aac -strict -2 "${file%.*}.mp4"
rm -f "$file"
done < <(find mydir -name '*.mkv' -print0 -o -name '*.avi' -print0)
ffmpeg -i "$file" -vcodec copy -acodec aac -strict 2 "${file%.*}.mp4"
rm "$file" #! This will delete the original .mkv/.avi file
done
```


Expand Down