GithubHelp home page GithubHelp logo

channeladam / channeladam.hevc Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 9.04 MB

Change the metadata encoded into an HEVC / H.265 video stream

Home Page: https://devzone.channeladam.com

License: Apache License 2.0

C# 100.00%
channeladam hevc video-stream sar sample-aspect-ratio bitstream dotnet

channeladam.hevc's Introduction

ChannelAdam.Hevc

DEPRECATION NOTE

FFmpeg 4.0 (2018-04-20) now has an HEVC bitstream filter with functionality to manipulate the HEVC metadata.

This is still good sample C# code...

Overview

An HEVC / H.265 C# library.

Provides an INCOMPLETE implementation for parsing and manipulating the data in an HEVC / H.265 byte stream, WITHOUT re-encoding and changing the video quality.

The .NET Core console application can currently change the Sample Aspect Ratio (SAR) that is encoded into the video stream.

Usage

To change the Sample Aspect Ratio of a HEVC video:

  1. You need to de-mux or extract the raw HEVC / H.265 video stream - using a tool such as FFMpeg or MkvExtract.

    • e.g. ffmpeg -i "myvideo.h265.mkv" -vcodec copy -an "myvideo.hevc"
    • e.g. mkvextract tracks "myvideo.h265.mkv" 0:"myvideo.hevc"
  2. Run this console application to change the SAR enbedded within that video stream. e.g. C:\ChannelAdam.Hevc\ChannelAdam.Hevc.NalUnitChanger.Console> dotnet run /in="myvideo.hevc" /out="out.hevc" /sarWidth=1 /sarHeight=1

  3. Use your favourite tool (e.g. FFMPeg, MkvMerge, Mkvtoolnix-gui, etc) to re-mux the video stream with your original audio stream to bring it all back together again.

channeladam.hevc's People

Contributors

channeladam avatar

Watchers

 avatar  avatar

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.