Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for streaming on afplay #4635

Closed
vegetableman opened this issue Jan 4, 2015 · 2 comments
Closed

Support for streaming on afplay #4635

vegetableman opened this issue Jan 4, 2015 · 2 comments

Comments

@vegetableman
Copy link

@vegetableman vegetableman commented Jan 4, 2015

Would like to know if it's possible to support streaming on a command-line player like afplay (a mac app)?
afplay allows audio playback of a video with out opening up any gui.

Using command:
youtube-dl -o - https://www.youtube.com/watch?v=z4PKzz81m5c | afplay -

gives the following error:-

unknown argument: -


    Audio File Play
    Version: 2.0
    Copyright 2003-2013, Apple Inc. All Rights Reserved.
    Specify -h (-help) for command options

Usage:
afplay [option...] audio_file

Options: (may appear before or after arguments)
  {-v | --volume} VOLUME
    set the volume for playback of the file
  {-h | --help}
    print help
  { --leaks}
    run leaks analysis
  {-t | --time} TIME
    play for TIME seconds
  {-r | --rate} RATE
    play at playback rate
  {-q | --rQuality} QUALITY
    set the quality used for rate-scaled playback (default is 0 - low quality, 1 - high quality)
  {-d | --debug}
    debug print output
[youtube] z4PKzz81m5c: Downloading webpage
[youtube] z4PKzz81m5c: Extracting video information
[youtube] z4PKzz81m5c: Downloading DASH manifest
[download] Destination: -
[download]   0.1% of 12.92MiB at  1.29MiB/s ETA 00:09

ERROR: unable to write data: [Errno 32] Broken pipe
@dstftw
Copy link
Collaborator

@dstftw dstftw commented Jan 4, 2015

Looks like afplay does not support playing from stdin.

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Jan 4, 2015

There's an open issue for adding a --play option: #628.
Since this doesn't seem to be a problem in youtube-dl I'll close the issue (mplayer or mpv work without problem with that command).

@jaimeMF jaimeMF closed this Jan 4, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.