Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to cut video exactly where we want? #61

Open
sunshinetpu opened this issue Mar 24, 2015 · 2 comments
Open

How to cut video exactly where we want? #61

sunshinetpu opened this issue Mar 24, 2015 · 2 comments

Comments

@sunshinetpu
Copy link

I understand that position, where we will cut the video, must be the begin of an Iframe. But how should we do if Iframe interval is 10 seconds? What should we do if we want to crop the first 6 seconds of video?

@sannies
Copy link
Owner

sannies commented Mar 24, 2015

You have to re-encode at least a part of the video. On modern Androids you
should have access to the encoder. What I would do:

  • Identify the GOP that contains the desired start frame
  • Decode and reencode only from the desired start frame
  • append all GOPs that are completely within the desired time
  • Decode the GOP that contains the final sample and re-encode to the
    desired last sample

This should be the quickest and most battery saving variant

2015-03-24 11:23 GMT+02:00 sunshinetpu notifications@github.com:

I understand that position, where we will cut the video, must be the begin
of an Iframe. But how should we do if Iframe interval is 10 seconds? What
should we do if we want to crop the first 6 seconds of video?


Reply to this email directly or view it on GitHub
#61.

@sunshinetpu
Copy link
Author

Thank you for your reply!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants