blaanima
20th February 2014, 12:28
Dear all
I am ripping video from my DVD into MKV and the size is 300MB, then I want a smaller size for my tablet due to limited space, and I re-encode the 300MB file into smaller size. I use below syntax
ffmpeg -i "input.mkv" -level 5.1 -preset veryslow -tune animation -keyint_min 12 -sc_threshold 45 -bf 8 -b_strategy 2 -refs 10 -qmin 10 -qmax 51 -qcomp 0.6 -direct-pred auto -me_range 24 -me_method umh -subq 10 -trellis 2 -an -sn -vcodec libx264 -crf 28.0 output1.mkv
ffmpeg -i "input.mkv" -f wav -| neroAacEnc -ignorelength -lc -q 0.4 -if - -of output2.aac
mkvmerge -o outputFF.mkv --language "0:jpn" --track-name "0:CRF 28.0" output1.mkv --no-chapters --language "0:jpn" --track-name "0:2.0 AAC-LC @ 0.4" output2.aac -A -D --language "2:eng" --track-name "2:Styled Subtitle (.ass)" "input.mkv"
1. First I encode the video only by forcing ffmpeg to disable subtitle and audio encoding
2. Then I encode the audio separately into AAC
3. Later I mix the two source into one, the video + audio + subtitle using mkvmerge
The problem here is that the subtitle appear 0.4 second late from the audio. I try to play using all player and it happens all the same. The ffmpeg libx264 is configured using 10 bit
Anybody knows why this happen?
Correct should be : http://i61.tinypic.com/16lwfwj.jpg
Mine is like this : http://i60.tinypic.com/29lkd1u.jpg
I am ripping video from my DVD into MKV and the size is 300MB, then I want a smaller size for my tablet due to limited space, and I re-encode the 300MB file into smaller size. I use below syntax
ffmpeg -i "input.mkv" -level 5.1 -preset veryslow -tune animation -keyint_min 12 -sc_threshold 45 -bf 8 -b_strategy 2 -refs 10 -qmin 10 -qmax 51 -qcomp 0.6 -direct-pred auto -me_range 24 -me_method umh -subq 10 -trellis 2 -an -sn -vcodec libx264 -crf 28.0 output1.mkv
ffmpeg -i "input.mkv" -f wav -| neroAacEnc -ignorelength -lc -q 0.4 -if - -of output2.aac
mkvmerge -o outputFF.mkv --language "0:jpn" --track-name "0:CRF 28.0" output1.mkv --no-chapters --language "0:jpn" --track-name "0:2.0 AAC-LC @ 0.4" output2.aac -A -D --language "2:eng" --track-name "2:Styled Subtitle (.ass)" "input.mkv"
1. First I encode the video only by forcing ffmpeg to disable subtitle and audio encoding
2. Then I encode the audio separately into AAC
3. Later I mix the two source into one, the video + audio + subtitle using mkvmerge
The problem here is that the subtitle appear 0.4 second late from the audio. I try to play using all player and it happens all the same. The ffmpeg libx264 is configured using 10 bit
Anybody knows why this happen?
Correct should be : http://i61.tinypic.com/16lwfwj.jpg
Mine is like this : http://i60.tinypic.com/29lkd1u.jpg