Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • P PyAV
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 37
    • Issues 37
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 26
    • Merge requests 26
  • 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
  • PyAV
  • PyAV
  • Merge requests
  • !5

Basic encoding support!

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Administrator requested to merge github/fork/markreidvfx/master into master Aug 14, 2013
  • Overview 1
  • Commits 6
  • Pipelines 0
  • Changes 17

Created by: markreidvfx

Okay this is a big one, too big. I promise I won't do a big one like this ever again. Really need to start writing tests now! I tried to add lots of docs and comments. see example/encode.py for a example.

Heres a small list of some the things I added or changed

open with mode "w" enables encode. added mux method to Context (opposite of demux, takes a packet as a argument). added encoding methods to VideoStream and AudioStream (opposite of decode, takes a Frame). stream.codec is where you set your encoding options for your codec. moved the reformatting of video frames from VideoStream to the VideoFrame object. reformat(width, height, pix_fmt) I also added a to_rgba() for convenience Added resample method to the AudioFrame Object, very similar to reformat, but for audio. resample(channel_layout, sample_fmt, sample_rate) added Basic AudioFifo object, need for changing audio frame_size on certain codecs.

and lots more other stuff....

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/markreidvfx/master