Guest User

Cutting up video problems / overlap

a guest
May 25th, 2015
302
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.50 KB | None | 0 0
  1. ffprobe -i rw.mp4 -show_entries format=duration -v quiet
  2. # Outputs:
  3. #[FORMAT]
  4. #duration=186.198000
  5. #[/FORMAT]
  6.  
  7. # From this, I gather that rw.mp4 has a duration of 186.198 seconds.
  8. # So why then, do these two videos not line up? There is overlapping footage in both videos.
  9. /usr/local/bin/ffmpeg -ss 0 -t 181.198000 -i rw.mp4 -c copy -bsf:v h264_mp4toannexb -f mpegts -t 181.198000 -y rw_body.ts
  10. /usr/local/bin/ffmpeg -ss 181.198000 -t 5 -i rw.mp4 -c copy -bsf:v h264_mp4toannexb -f mpegts -t 5 -y rw_tail.ts
Advertisement
Add Comment
Please, Sign In to add comment