Closed sunmingtao closed 3 years ago
If getting
[mp4 @ 0x7fffe98ae500] track 1: codec frame size is not set
[mp4 @ 0x7fffe98ae500] opus in MP4 support is experimental, add '-strict -2' if you want to use it.
Could not write header for output file #0 (incorrect codec parameters ?): Experimental feature
Try command
ffmpeg -i "13.mkv" -map 0 -c copy -c:a aac "13.mp4"
Check file info
ffmpeg -i input.mp4
Convert from mkv to mp4
ffmpeg -i input.mkv -c:v copy -c:a copy output.mp4
Compress mp4
ffmpeg -i input.mp4 -b:v 1.5M -s 854x480 -preset ultrafast output.mp4
Concatenate multiple ts2 files
cat *.ts > all.ts
Fix ts files
ffmpeg -y -i all.ts -copyts -map 0 -c copy -ignore_unknown all-fixed.ts
Convert ts to mp4
ffmpeg -i all-fixed.ts -c:v libx264 -c:a aac all-fixed-new.mp4
Sync two folders
rsync -rzv /source/ /destination/
Note: r=recursive (include folder), z=compress, v=verbose