html播放rtp,GitHub - AOMediaCodec/av1-rtp-spec: Current draft (HTML): https://aomediacodec.github.io/a...

RTP Payload Format for the AV1 Video Codec

This project is for authoring and generating the AV1 RTP Payload Format

specification document, in HTML and PDF.

Summary

The document is sourced in a light-duty markup format called Markdown. Markdown

is a readable plain text format that transforms to HTML. See

HTML output is

generated automatically by GitHub Pages,

always reflects the current HEAD, and

PDF output must be generated locally, using the commercial HTML-to-PDF

transformer non-commercial version is

fully-functional but leaves a small watermark on the first page.

Note that print-like output (PDF) requires styling not germane to HTML

presentation, so this project generates a specially-annotated HTML version for

use as PDF input. Nevertheless, both HTML and PDF use the same content file

(av1-rtp-spec.md).

GitHub workflow

GitHub workflow primers abound on the web. Following is a summary.

To collaborate on a GitHub project it's necessary to have a GitHub account and

to have git installed locally. Then:

Fork the project you want to work on to your own GitHub account, using

the Fork button on the project's home page (top-right). You now have a

remote copy.

Clone the fork down to your local system and enter the directory that's

created:

git clone git@github.com:AOMediaCodec/av1-rtp-spec.git

cd av1-rtp-spec

By default, your clone will point to the "master" branch.

Set up your remotes. This is done only once.

Your locally-cloned repository will know of one remote: your fork, on

GitHub, from which it was cloned. This remote will be named "upstream"

by default, but we're going to rename it.

We want your fork to be called "origin" and the authoritative, parent

repository to be called "upstream." In a text editor, edit the [remote]

stanzas in the file .git/config to look like this example:

[remote "upstream"]

url = git@github.com:AOMediaCodec/av1-rtp-spec.git

fetch = +refs/heads/*:refs/remotes/upstream/*

[remote "origin"]

url = git@github.com:[GitHub username]/av1-rtp-spec.git

fetch = +refs/heads/*:refs/remotes/origin/*

"origin" now points to your fork, and "upstream" points to its source.

Most work will be done in av1-rtp-spec.md. Before starting, make a

branch in your cloned repo, to contain your changes. Choose a

meaningful name.

git checkout -b clarify-section-3

This both creates the branch (-b) and checks-out the new branch in your

local clone.

Edit as desired, using your chosen text editor. Save your changes.

When ready, add your changes to the branch:

git add av1-rtp-spec.md

Commit your changes locally:

git commit -m "Added section 3.3, Completely New Stuff"

Alternatively (and preferably), do git commit only, which will spawn your

git-default text editor for composing a multi-line commit message.

You will also have a chance to annotate your commit later, on the GitHub

website.

Push your branch to "origin" (your remote fork):

git push origin clarify-section-3

Now visit the project's page on GitHub.

GitHub sees that you've pushed a new branch to your fork, and offers to

create a pull request. Follow the steps given. Annotate your pull

request with any details that an approver might need, and submit it.

The project maintainers will be notified of your pull request and will

either merge it directly into "upstream," ask for changes, or ignore/reject

it. The pull request, then, is both a patch and a comment thread.

Once your pull request ("PR") is merged, you'll want to sync your local

clone (and your remote fork) with the adopted changes:

git fetch upstream

git merge upstream/master

git push origin

Now everything is synchronized. We no longer need your working branch, so

it's best to delete it:

git checkout master ## leave your branch, return to "master"

git branch -d clarify-section-3

Note that it's usually wise to fetch and merge upstream/master before

beginning new work, to ensure that you have the latest commits made by others.

This matters less in a documentation project (vs. code), because resolving merge

conflicts is usually quite easy, but it's good practice absent a reason not to.

Building locally

The file av1-rtp-spec.md is quite readable, and you can probably work in it

without regenerating the HTML output.

Generating and previewing your changes locally before submitting them requires

a local pipeline that mirrors the build done automatically by GitHub Pages.

Those steps are detailed in the av1-spec GitHub project's README:

Ignore the steps related to Node, npm and Grunt. These are not needed because

the av1-rtp-spec document is far simpler than the AV1 bitstream spec.

Local PDF generation

Building the document locally writes output to an untracked/ignored directory

_site. The PDF input file is _site/pdf.html.

prince _site/pdf.html -o /tmp/av1-rtp-spec.pdf

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值