Advertisement
ATField

Notes

Oct 25th, 2016
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.51 KB | None | 0 0
  1. Some notes: INPUT.mkv is the original videofile, INPUT.dts is the original but external audiofile, OUTPUT.ogg is the converted output from INPUT.dts.
  2.  
  3. If I make a short fragment using the original INPUT.mkv and INPUT.dts and with a 「-c copy」 or 「-c:v copy」 parameter, then it either has an audio desync problem, or a mute portion of audio at the beginning of the file. With reencoding, the fragment seems to be building fine, but the goal is to make a lossless copy (without re-encoding).
  4.  
  5. If I use OUTPUT.ogg, no matter what I do the file will have desync problems.
  6.  
  7. ffmpeg -i test001Vs.mkv -i 001_testFrag002.ogg test114.mkv
  8. test114 (desync, merging short files, ccopy).mkv
  9. ffmpeg -ss 01:06:26.739 -i "INPUT.mkv" -t 0:00:25.942 -ss 01:06:26.739 -i "OUTPUT.ogg" -t 0:00:25.942 -map 0:0 -map 1:0 -c copy test115.mkv
  10. test115 (synced, but no sound in front, c_copy)
  11. ffmpeg -ss 01:06:26.739 -i "INPUT.mkv" -t 0:00:25.942 -ss 01:06:26.739 -i "OUTPUT.ogg" -t 0:00:25.942 -map 0:0 -map 1:0 test116.mkv
  12. ffmpeg -ss 01:06:26.739 -i "INPUT.mkv" -t 0:00:25.942 -ss 01:06:26.739 -i "OUTPUT.ogg" -t 0:00:25.942 -map 0:0 -map 1:0 -c:v copy test116.mkv
  13. test116 (sound is ok, but video is not lossless)
  14. ffmpeg -ss 01:06:26.739 -i "INPUT.mkv" -t 0:00:25.942 -ss 01:06:26.739 -i "OUTPUT.ogg" -t 0:00:25.942 -map 0:0 -map 1:0 -c:v copy test117.mkv
  15. ffmpeg -ss 01:06:26.739 -i "INPUT.mkv" -t 0:00:25.942 -ss 01:06:26.739 -i "OUTPUT.ogg" -t 0:00:25.942 -map 0:0 -map 1:0 -vcodec copy test117.mkv
  16. test117 (synced, but no sound in front, vc_copy)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement