Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • F ffmpeg-python
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 402
    • Issues 402
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 34
    • Merge requests 34
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Karl Kroening
  • ffmpeg-python
  • Issues
  • #184
Closed
Open
Issue created Apr 09, 2019 by Administrator@rootContributor

How to cut (`trim`) video and audio with timestamps

Created by: rsomani95

Great work!

I'm confused as to how to solve this problem, but am sure that it is solvable with a little guidance. I'm trying to trim a clip that should be 600/25(fps) = 24s long.

(
    input_video
    .trim   (start_frame=10000, end_frame=10600) # output len --> 600 frames long
    .output ('out.mp4' )
    .run()
) 

However, the output gives me a file that is 10600 frames long, where the first 10000 frames don't play in some video players while they skip over in others. Nevertheless, what I wish for is a clip that is only 600 frames long.

Additionally, my output files do not have any audio. This isn't an issue though, but a solution would be a nice bonus.

Thanks!

Assignee
Assign to
Time tracking