# AVAssetWriter Example in Swift 4?

**URL:** <https://forums.kodeco.com/t/avassetwriter-example-in-swift-4/43659>\
**Category:** iOS\
**Created:** [June 16, 2018, 2:20pm UTC](https://forums.kodeco.com/t/avassetwriter-example-in-swift-4/43659 "2018-06-16T14:20:02Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![xnooby](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/xnooby/32/102075_2.png) [@xnooby](https://forums.kodeco.com/u/xnooby)\
**Post date:** [June 16, 2018, 2:20pm UTC](https://forums.kodeco.com/t/avassetwriter-example-in-swift-4/43659/1 "2018-06-16T14:20:03Z")

</div>

I want to be able to read a video file, alter some frames, and write them to a new video file. Apple’s “AVReaderWriter” example program is for Swift 2.3, and I have not been unable to get it to run under Swift 4.+. I tried using XCode 8 to get the code to Swift 3, but that did not work either. I assume they have no plan to update their example program to Swift 4, if Swift 5 is coming out next year. Any suggestions, or is video processing better documented on Android?

---

<div class="post-metadata">

**Author:** ![jayantvarma](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/jayantvarma/32/111768_2.png) [@jayantvarma](https://forums.kodeco.com/u/jayantvarma)\
**Post date:** [June 17, 2018, 8:53am UTC](https://forums.kodeco.com/t/avassetwriter-example-in-swift-4/43659/2 "2018-06-17T08:53:41Z")

</div>

Hi @xnooby,  
I personally do agree with you on the lack of documentation. However, here at the Ray Wenderlich team there are many tutorials that provide as a learning and reference document. I am sure that if there isn’t a tutorial on AVReaderWriter already, request for one and you might find one from one of our talented team soon.

Cheers,

Jayant

---

<div class="post-metadata">

**Author:** ![xnooby](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/xnooby/32/102075_2.png) [@xnooby](https://forums.kodeco.com/u/xnooby)\
**Post date:** [June 17, 2018, 12:55pm UTC](https://forums.kodeco.com/t/avassetwriter-example-in-swift-4/43659/3 "2018-06-17T12:55:25Z")

</div>

How do you request a tutorial be made? I am looking on the site, and Google, and don’t see any official way. or do I just post the request in the forum?

---

<div class="post-metadata">

**Author:** ![jayantvarma](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/jayantvarma/32/111768_2.png) [@jayantvarma](https://forums.kodeco.com/u/jayantvarma)\
**Post date:** [June 17, 2018, 12:57pm UTC](https://forums.kodeco.com/t/avassetwriter-example-in-swift-4/43659/4 "2018-06-17T12:57:42Z")

</div>

Hi @xnooby,  
you can request on the forum, and then there are frequent polls on the topic of the tutorial from time to time. So if you engage with the Ray Wenderlich site, you could be able to help influence accordingly.

I can also get someone from the tutorial team to confirm.

cheers,

Jayant

---

<div class="post-metadata">

**Author:** ![xnooby](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/xnooby/32/102075_2.png) [@xnooby](https://forums.kodeco.com/u/xnooby)\
**Post date:** [June 29, 2018, 2:51am UTC](https://forums.kodeco.com/t/avassetwriter-example-in-swift-4/43659/5 "2018-06-29T02:51:48Z")

</div>

It appears the only way to see an app in Swift 4 that uses AVAssetWriter, is to convert Apples Swift 2 example to Swift 3, and then convert it from Swift 3 to Swift 4. I guess I will go start learning Swift 2.

---

<div class="post-metadata">

**Author:** ![system](https://s3.amazonaws.com/cdn.raywenderlich.com/community/forum-assets/noun-game-ghost-878668.png) [@system](https://forums.kodeco.com/u/system)\
**Post date:** [November 30, 2018, 6:27am UTC](https://forums.kodeco.com/t/avassetwriter-example-in-swift-4/43659/6 "2018-11-30T06:27:12Z")

</div>

Closed on November 30, 2018, 6:27am UTC

This topic was automatically closed after 166 days. New replies are no longer allowed.
