Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
VLCKit
VLCKit
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 84
    • Issues 84
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 1
    • Merge Requests 1
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Members
    • Members
  • 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
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None