Giter Club home page Giter Club logo

x264's Introduction

x264

Crates.io Docs.rs

This crate gives you safe but still extremely fast H.264 encoding.

Usage

  1. Add x264 to your Cargo.toml.
  2. Look at an example and copy it.
  3. Read some documentation.

Contributing

You could...

  • star this repository.
  • open issues if you find anything that can be improved.
  • add some beautiful examples.

x264's People

Contributors

quadrupleslap avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

x264's Issues

Decoding

It would be great if this API allowed you to decode video as well. Are you planning on doing this in the future?

error[E0423]: expected function, tuple struct or tuple variant, found struct `ast::Name`

Hi, I try to install this crate but I have this error:

error[E0423]: expected function, tuple struct or tuple variant, found struct `ast::Name`
   --> /home/jourdelune/.cargo/registry/src/github.com-1ecc6299db9ec823/syntex_syntax-0.58.1/src/symbol.rs:146:27
    |
146 |                       name: ast::Name($index),
    |                             ^^^^^^^^^
...
165 | / declare_keywords! {
166 | |     // Invalid identifier
167 | |     (0,  Invalid,        "")
168 | |
...   |
231 | |     (56, CrateRoot, "{{root}}")
232 | | }
    | |_- in this macro invocation
    |
    = note: this error originates in the macro `declare_keywords` (in Nightly builds, run with -Z macro-backtrace for more info)```
    
Someone can help me?

"annexb"

Hi! Filing this issue because of the comment:

/// Please file an issue if you know what this does, because I have no idea.
pub fn annexb(mut self, annexb: bool) -> Self {

This repo doesn't seem very active anymore, but maybe this helps someone else struggling with the same thing as me.

The way I understand it, "Annex B" start codes are a way to be able to seek to the next/previous NAL unit from anywhere in a stream. The mp4 container does not use Annex B start codes, so if you're trying to use this library in combination with for example the mp4 crate, you need to make sure to turn off the Annex B start codes, because they're enabled by default. For example:

let mut encoder =
    Setup::preset(Preset::Medium, Tune::None, false, true)
        .annexb(false)
        .build(Colorspace::I420, WIDTH as _, HEIGHT as _)
        .unwrap();

(also, make sure to crop off the first 4 bytes of the SPS and PPS headers before passing them to mp4)

I-frame control

As far as I can tell, this crate doesn't give any way to control the I-frame interval, although the underlying x264-sys crate does, with the i_scenecut_threshold and i_keyint_max fields in x264_param_t. Would this be possible?

Maintainership

It seems like this crate is unmaintained. I would be interested in maintaining it, and for now I will publish and maintain my fork of it under the name x264-next. If you would be interested in transferring ownership of this crate or plan to maintain it, just let me know.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.