Offline playback of a fireplace video on your Apple TV

Fireplace

Offline playback of a fireplace video on your Apple TV

Screenshots

Bring Your Own Video

For copyright reasons the file fire.mp4 is not included. It can be supplied for example in the following way:

  • Search for “fireplace 4k” on YouTube, choose a video
  • Show video and audio formats and file sizes youtube-dl https://www.youtube.com/watch\?v\=Ux8xAuQBdkk --list-formats
  • Choose a video of acceptable size
  • Download it youtube-dl https://www.youtube.com/watch\?v\=Ux8xAuQBdkk --format 137 --output video.m4v
  • Choose an audio track of acceptable size
  • Download it youtube-dl https://www.youtube.com/watch\?v\=Ux8xAuQBdkk --format 140 --output audio.m4a
  • Combine them ffmpeg -i video.m4v -i audio.m4a -c:v copy -c:a copy fire.mp4
  • Drag & drop the resulting file fire.mp4 into Xcode and add it as an asset that is bundled on build
    • Project -> Build Phases -> Copy Bundle Resources -> fire.mp4 must appear in the list

Resources

TODO

  • Loop video when end is reached

GitHub

View Github