YoferZhang 的博客

数学出身,功底扎实,热爱编程,虽然编程起步晚,但是冲劲十足。


  • 索引 | Index

  • 关于 | About

  • 标签 | tags

  • 分类 | categories

  • 归档 | Archives

【iOS】About HTTP Live Streaming官方文档翻译

发表于 2016-08-10 | 更新于 2018-06-06 | 分类于 iOS |

新博客文章地址:About HTTP Live Streaming官方文档翻译 [iOS]
CSDN文章地址:About HTTP Live Streaming官方文档翻译 [iOS]

版权声明:本文为博主原创翻译,如需转载请注明出处。

苹果源文档地址 - 点击这里

About HTTP Live Streaming - HTTP实时流

HTTP Live Streaming (HLS) is Apple’s technology for streaming live and on-demand audio/video content to iPhone, iPad, iPod touch, Apple TV, and Mac. Central to HLS is the delivery of content using the HTTP protocol—the same protocol that powers the web. HTTP lets you easily deploy media content in streams using commonplace web servers rather than specialized streaming servers. HLS streams behave like regular web traffic. They work with preexisting caching infrastructure, such as Content Delivery Networks (CDNs), and reliably pass through typical firewalls and routers. HLS adapts to variable network conditions, dynamically adjusting playback to match the available speed of wired and wireless connections.

HTTP Live Streaming (HLS) 是苹果公司的技术,有关流媒体直播和点播音频/视频内容,支持iPhone, iPad, iPod touch, Apple TV, 和 Mac。内部 对 HLS 内容的传递 使用与HTTP协议相同的协议来处理网络服务。 HTTP可以轻松地使用普通的Web服务器,而不是专门的流媒体服务器 来部署流媒体内容。HLS流行为像常规的网络流量。工作方式为预先缓存基础结构,比如内容分发网络(CDN),以及可靠地通过典型的防火墙和路由器。HLS适应可变的网络状况,动态地调整播放以匹配有线和无线连接的可用速度。

阅读全文 »

AVFoundation Programming Guide(官方文档翻译7)Time and Media Representations 时间和媒体表示

发表于 2016-08-03 | 更新于 2017-02-09 | 分类于 iOS |

新博客:
完整版 - AVFoundation Programming Guide

分章节版:
— 第1章:About AVFoundation - AVFoundation概述
— 第2章:Using Assets - 使用Assets
— 第3章:Playback - 播放
— 第4章:Editing - 编辑
— 第5章:Still and Video Media Capture - 静态视频媒体捕获
— 第6章:Export - 输出
— 第7章:Time and Media Representations 时间和媒体表现

CSDN博客:
完整版 - AVFoundation Programming Guide

分章节版:
— 第1章:About AVFoundation - AVFoundation概述
— 第2章:Using Assets - 使用Assets
— 第3章:Playback - 播放
— 第4章:Editing - 编辑
— 第5章:Still and Video Media Capture - 静态视频媒体捕获
— 第6章:Export - 输出
— 第7章:Time and Media Representations 时间和媒体表现

版权声明:本文为博主原创翻译,如需转载请注明出处。

苹果源文档地址 - 点击这里

Time and Media Representations - 时间和媒体表现

Time-based audiovisual data, such as a movie file or a video stream, is represented in the AV Foundation framework by AVAsset. Its structure dictates much of the framework works. Several low-level data structures that AV Foundation uses to represent time and media such as sample buffers come from the Core Media framework.

基于视听资料的时间,比如一个电影文件或视频流,在AV Foundation 框架中是由 AVAsset 代表的。它的结构决定了大部分的框架工程。一些低层的数据结构(AV Foundation 使用来表示时间和媒体,比如样本缓冲区)来自 Core Media framework。

阅读全文 »

AVFoundation Programming Guide(官方文档翻译6)Export - 输出

发表于 2016-08-03 | 更新于 2017-02-09 | 分类于 iOS |

新博客:
完整版 - AVFoundation Programming Guide

分章节版:
— 第1章:About AVFoundation - AVFoundation概述
— 第2章:Using Assets - 使用Assets
— 第3章:Playback - 播放
— 第4章:Editing - 编辑
— 第5章:Still and Video Media Capture - 静态视频媒体捕获
— 第6章:Export - 输出
— 第7章:Time and Media Representations 时间和媒体表现

CSDN博客:
完整版 - AVFoundation Programming Guide

分章节版:
— 第1章:About AVFoundation - AVFoundation概述
— 第2章:Using Assets - 使用Assets
— 第3章:Playback - 播放
— 第4章:Editing - 编辑
— 第5章:Still and Video Media Capture - 静态视频媒体捕获
— 第6章:Export - 输出
— 第7章:Time and Media Representations 时间和媒体表现

版权声明:本文为博主原创翻译,如需转载请注明出处。

苹果源文档地址 - 点击这里

Export - 输出

To read and write audiovisual assets, you must use the export APIs provided by the AVFoundation framework. The AVAssetExportSession class provides an interface for simple exporting needs, such as modifying the file format or trimming the length of an asset (see Trimming and Transcoding a Movie). For more in-depth exporting needs, use the AVAssetReader and AVAssetWriter classes.

必须使用 AVFoundation 框架提供的导出 APIs 去读写音视频资产。AVAssetExportSession 类为简单输出需要,提供了一个接口,例如修改文件格式或者削减资产的长度(见 Trimming and Transcoding a Movie)。为了更深入的导出需求,使用 AVAssetReader 和 AVAssetWriter 类。

阅读全文 »

AVFoundation Programming Guide(官方文档翻译5)Still and Video Media Capture - 静态视频媒体捕获。

发表于 2016-08-03 | 更新于 2017-02-16 | 分类于 iOS |
新博客文章地址: 完整版 - AVFoundation Programming Guide 分章节版:— 第1章:About AVFoundation - AVFoundation概述— 第2章:Using Assets - 使用Assets— 第3章:Playback - 播放— 第4章:Edi ...
阅读全文 »

AVFoundation Programming Guide(官方文档翻译4)Editing - 编辑

发表于 2016-08-03 | 更新于 2017-02-09 | 分类于 iOS |

新博客:
完整版 - AVFoundation Programming Guide

分章节版:
— 第1章:About AVFoundation - AVFoundation概述
— 第2章:Using Assets - 使用Assets
— 第3章:Playback - 播放
— 第4章:Editing - 编辑
— 第5章:Still and Video Media Capture - 静态视频媒体捕获
— 第6章:Export - 输出
— 第7章:Time and Media Representations 时间和媒体表现

CSDN博客:
完整版 - AVFoundation Programming Guide

分章节版:
— 第1章:About AVFoundation - AVFoundation概述
— 第2章:Using Assets - 使用Assets
— 第3章:Playback - 播放
— 第4章:Editing - 编辑
— 第5章:Still and Video Media Capture - 静态视频媒体捕获
— 第6章:Export - 输出
— 第7章:Time and Media Representations 时间和媒体表现

版权声明:本文为博主原创翻译,如需转载请注明出处。

苹果源文档地址 - 点击这里

Editing - 编辑

The AVFoundation framework provides a feature-rich set of classes to facilitate the editing of audio visual assets. At the heart of AVFoundation’s editing API are compositions. A composition is simply a collection of tracks from one or more different media assets. The AVMutableComposition class provides an interface for inserting and removing tracks, as well as managing their temporal orderings. Figure 3-1 shows how a new composition is pieced together from a combination of existing assets to form a new asset. If all you want to do is merge multiple assets together sequentially into a single file, that is as much detail as you need. If you want to perform any custom audio or video processing on the tracks in your composition, you need to incorporate an audio mix or a video composition, respectively.

AVFoundation 框架提供了一个功能丰富的类集合去帮助音视频资产的编辑。 AVFoundation
编辑 API 的核心是一些组合。一种组合物是简单的一个或者多个不同媒体资产的轨道的集合。AVMutableComposition 类提供一个可以插入和移除轨道的接口,以及管理它们的时间序列。图3-1显示了一个新的组合是怎样从一些现有的资产拼凑起来,形成新的资产。如果你想做的是将多个资产合并为一个单一的文件,这里有尽可能多的你需要掌握的细节。如果你想在你的作品中的轨道上执行任何自定义音频或视频处理,你需要分别将一个音频组合或者视频组成。

![Figure 3-1 AVMutableComposition assembles assets together](http://ww4.sinaimg.cn/large/a9c4d5f6gw1f6fu4l7pu1j20wu0goaal.jpg)
阅读全文 »

AVFoundation Programming Guide(官方文档翻译3)Playback - 播放

发表于 2016-08-03 | 更新于 2017-02-09 | 分类于 iOS |

新博客:
完整版 - AVFoundation Programming Guide

分章节版:
— 第1章:About AVFoundation - AVFoundation概述
— 第2章:Using Assets - 使用Assets
— 第3章:Playback - 播放
— 第4章:Editing - 编辑
— 第5章:Still and Video Media Capture - 静态视频媒体捕获
— 第6章:Export - 输出
— 第7章:Time and Media Representations 时间和媒体表现

CSDN博客:
完整版 - AVFoundation Programming Guide

分章节版:
— 第1章:About AVFoundation - AVFoundation概述
— 第2章:Using Assets - 使用Assets
— 第3章:Playback - 播放
— 第4章:Editing - 编辑
— 第5章:Still and Video Media Capture - 静态视频媒体捕获
— 第6章:Export - 输出
— 第7章:Time and Media Representations 时间和媒体表现

版权声明:本文为博主原创翻译,如需转载请注明出处。

苹果源文档地址 - 点击这里

Playback - 播放

To control the playback of assets, you use an AVPlayer object. During playback, you can use an AVPlayerItem instance to manage the presentation state of an asset as a whole, and an AVPlayerItemTrack object to manage the presentation state of an individual track. To display video, you use an AVPlayerLayer object.

使用 AVPlayer 对象控制资产的播放。在播放期间,可以使用一个 AVPlayerItem 实例去管理资产作为一个整体的显示状态,AVPlayerItemTrack 对象来管理一个单独轨道的显示状态。使用 AVPlayerLayer 显示视频。

阅读全文 »

AVFoundation Programming Guide(官方文档翻译2)Using Assets - 使用Assets

发表于 2016-08-03 | 更新于 2017-02-09 | 分类于 iOS |

新博客:
完整版 - AVFoundation Programming Guide

分章节版:
— 第1章:About AVFoundation - AVFoundation概述
— 第2章:Using Assets - 使用Assets
— 第3章:Playback - 播放
— 第4章:Editing - 编辑
— 第5章:Still and Video Media Capture - 静态视频媒体捕获
— 第6章:Export - 输出
— 第7章:Time and Media Representations 时间和媒体表现

CSDN博客:
完整版 - AVFoundation Programming Guide

分章节版:
— 第1章:About AVFoundation - AVFoundation概述
— 第2章:Using Assets - 使用Assets
— 第3章:Playback - 播放
— 第4章:Editing - 编辑
— 第5章:Still and Video Media Capture - 静态视频媒体捕获
— 第6章:Export - 输出
— 第7章:Time and Media Representations 时间和媒体表现

版权声明:本文为博主原创翻译,如需转载请注明出处。

苹果源文档地址 - 点击这里

Using Assets - 使用Assets

Assets can come from a file or from media in the user’s iPod library or Photo library. When you create an asset object all the information that you might want to retrieve for that item is not immediately available. Once you have a movie asset, you can extract still images from it, transcode it to another format, or trim the contents.

Assets 可以来自文件或者媒体用户的iPod库、图片库。当你创建一个 asset 对象时,所有你可能想要检索该项目的信息不是立即可用的。一旦你有了一个电影 asset ,你可以从里面提取静态图像,转换到另一个格式,或者对内容就行修剪。

阅读全文 »

AVFoundation Programming Guide(官方文档翻译1)About AVFoundation - AVFoundation概述

发表于 2016-08-03 | 更新于 2017-02-09 | 分类于 iOS |

新博客:
完整版 - AVFoundation Programming Guide

分章节版:
— 第1章:About AVFoundation - AVFoundation概述
— 第2章:Using Assets - 使用Assets
— 第3章:Playback - 播放
— 第4章:Editing - 编辑
— 第5章:Still and Video Media Capture - 静态视频媒体捕获
— 第6章:Export - 输出
— 第7章:Time and Media Representations 时间和媒体表现

CSDN博客:
完整版 - AVFoundation Programming Guide

分章节版:
— 第1章:About AVFoundation - AVFoundation概述
— 第2章:Using Assets - 使用Assets
— 第3章:Playback - 播放
— 第4章:Editing - 编辑
— 第5章:Still and Video Media Capture - 静态视频媒体捕获
— 第6章:Export - 输出
— 第7章:Time and Media Representations 时间和媒体表现

版权声明:本文为博主原创翻译,如需转载请注明出处。

苹果源文档地址 - 点击这里

About AVFoundation - AVFoundation概述

AVFoundation is one of several frameworks that you can use to play and create time-based audiovisual media. It provides an Objective-C interface you use to work on a detailed level with time-based audiovisual data. For example, you can use it to examine, create, edit, or reencode media files. You can also get input streams from devices and manipulate video during realtime capture and playback. Figure I-1 shows the architecture on iOS.

AVFoundation 是可以用它来播放和创建基于时间的视听媒体的几个框架之一。它提供了基于时间的视听数据的详细级别上的Objective-C接口。例如,你可以用它来检查,创建,编辑或重新编码媒体文件。您也可以从设备得到输入流和在实时捕捉回放过程中操控视频。图I-1显示了iOS上的架构。

![Figure I-1 AVFoundation stack on iOS](http://ww3.sinaimg.cn/large/a9c4d5f6gw1f650lssb7bj20l80d5jsa.jpg)
阅读全文 »

AVFoundation Programming Guide(官方文档翻译)完整版中英对照

发表于 2016-07-24 | 更新于 2017-02-09 | 分类于 iOS |

新博客:
完整版 - AVFoundation Programming Guide

分章节版:
— 第1章:About AVFoundation - AVFoundation概述
— 第2章:Using Assets - 使用Assets
— 第3章:Playback - 播放
— 第4章:Editing - 编辑
— 第5章:Still and Video Media Capture - 静态视频媒体捕获
— 第6章:Export - 输出
— 第7章:Time and Media Representations 时间和媒体表现

CSDN博客:
完整版 - AVFoundation Programming Guide

分章节版:
— 第1章:About AVFoundation - AVFoundation概述
— 第2章:Using Assets - 使用Assets
— 第3章:Playback - 播放
— 第4章:Editing - 编辑
— 第5章:Still and Video Media Capture - 静态视频媒体捕获
— 第6章:Export - 输出
— 第7章:Time and Media Representations 时间和媒体表现

版权声明:本文为博主原创翻译,如需转载请注明出处。

苹果源文档地址 - 点击这里

About AVFoundation - AVFoundation概述

AVFoundation is one of several frameworks that you can use to play and create time-based audiovisual media. It provides an Objective-C interface you use to work on a detailed level with time-based audiovisual data. For example, you can use it to examine, create, edit, or reencode media files. You can also get input streams from devices and manipulate video during realtime capture and playback. Figure I-1 shows the architecture on iOS.

AVFoundation 是可以用它来播放和创建基于时间的视听媒体的几个框架之一。它提供了基于时间的视听数据的详细级别上的Objective-C接口。例如,你可以用它来检查,创建,编辑或重新编码媒体文件。您也可以从设备得到输入流和在实时捕捉回放过程中操控视频。图I-1显示了iOS上的架构。

![Figure I-1 AVFoundation stack on iOS](http://ww3.sinaimg.cn/large/a9c4d5f6gw1f650lssb7bj20l80d5jsa.jpg)
阅读全文 »

【iOS】Stanford iOS7 Assignment - Matchismo

发表于 2016-04-26 | 更新于 2017-02-09 | 分类于 iOS |

版权声明:本文为博主原创文章,如需转载请注明出处。

Github地址:https://github.com/yoferzhang/Matchismo

Matchismo

Stanford iOS7 Assignment

Use Xcode 7.3 AND OS X EI Captian 10.11.4

更新时间:2016.04.22

简单牌面翻转

修改Main.storyboard:设置背景色,添加一个Button,添加背景图和前景图。设置Title为A♣︎。并在ViewController.m中添加一个方法:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
- (IBAction)touchCardButton:(UIButton *)sender {
if ([sender.currentTitle length]) {
[sender setBackgroundImage:[UIImage imageNamed:@"CardBack"]
forState:UIControlStateNormal];
[sender setTitle:@"" forState:UIControlStateNormal];
} else {
[sender setBackgroundImage:[UIImage imageNamed:@"CardFront"]
forState:UIControlStateNormal];
[sender setTitle:@"A♣︎" forState:UIControlStateNormal];
}

// update flipCount in there
// because every time touch the button, this method will be call
self.flipCount++;
}
阅读全文 »

【iOS】Objective C Programming The Big Nerd Ranch Guide 2nd Edition - Note

发表于 2016-04-20 | 更新于 2017-02-16 | 分类于 iOS |

版权声明:本文为博主原创文章,如需转载请注明出处。

直接上图,只为记录,复习oc知识,看的也蛮快的

  • 若图太大,无法加载,直接给笔记原地址 - 点此进入
  • 这本书记录的词汇 - 点此进入
  • Xmind存放地址 - 点此进入
阅读全文 »

【C语言】结构体内存对齐模式

发表于 2016-04-19 | 更新于 2017-02-16 | 分类于 C语言 |
版权声明:本文为博主原创文章,如需转载请注明出处。   结构体内存对齐模式各种情况代码详解: 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051#include ...
阅读全文 »

【C语言】C语言内存四区 - 概念与代码示例

发表于 2016-04-17 | 更新于 2017-02-16 | 分类于 C语言 |

版权声明:本文为博主原创文章,如需转载请注明出处。

从我源博客那里搬过来的文章,边复习边搬家。

![内存四区图示](http://ww4.sinaimg.cn/large/a9c4d5f6jw1f3020ta1aej20g70bbglr.jpg)
阅读全文 »

【C语言】malloc,calloc,relloc异同示例

发表于 2016-04-17 | 更新于 2017-02-16 | 分类于 C语言 |
版权声明:本文为博主原创文章,如需转载请注明出处。 从我源博客那里搬过来的文章,边复习边搬家。 malloc1void * malloc(size_t _Size);   malloc函数在堆中分配参数_Size指定大小的内存,单位:字节,函数返回void *指针。 calloc1void * ...
阅读全文 »

【渔】NTFS转HFS

发表于 2016-04-16 | 更新于 2017-02-16 | 分类于 渔 |

版权声明:本文为博主原创文章,如需转载请注明出处。

前言

  今天用git的时候遇到一个问题:

fatal: failed to read object 0419b2704f64367e58aa621e7e0c457276bc9d48:
Interrupted system call
error: failed to push some refs to

  搜了一下stackoverflow上找到了原因和解决办法:

I have a Mac on an SSD with an internal NTFS-formatted HDD I use for storage. I was having the same issue trying to push a repo located in the HDD, but as soon as I copied the repo to the SSD the push worked just fine. On Linux I have no problem pushing from the HDD, so this must be an issue with Tuxera NTFS, which is the NTFS driver I’m using on Mac.
If you’re in the same situation as me, I suggest you move that repository to an HFS+ formatted drive or try pushing from a different Operating System.

阅读全文 »
1…678
Yofer Zhang

Yofer Zhang

接下来自己能够坚持写博客,记录是一个好习惯

113 日志
7 分类
127 标签
RSS
GitHub E-Mail Google StackOverflow Instagram
Links
  • WeChat
  • LinkedIn
© 2019 Yofer Zhang
由 Hexo 强力驱动 v3.2.0
|
主题 – NexT.Pisces v6.4.0