Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • VLCKit VLCKit
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 107
    • Issues 107
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 9
    • Merge requests 9
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • VideoLAN
  • VLCKitVLCKit
  • Issues
  • #468

Closed
Open
Created Jan 26, 2021 by Nathan Horrigan@nathhorrigan

How to play a raw h264 stream??

I'm trying to execute a binary using Process/NSTask on MacOS and then play the raw video output to the user using VLCKit. Is this possible?

Something along the lines of the following doesn't seem to work:

let task = Process()
task.launchPath = "binary"
task.arguments = [...]
let adOutput = Pipe()
task.standardOutput = adOutput
task.standardError = adOutput
task.launch()

let data = adOutput.fileHandleForReading.readDataToEndOfFile()
player.media = VLCMedia(stream: InputStream(data: data))
player.play()

I appreciate this isn't a very encouraging issue but I don't know where else to look?

Edited Jan 26, 2021 by Nathan Horrigan
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking

VideoLAN code repository instance