Menu

#709 SMPlayer cannot play live streams from youtube

smplayer
closed-fixed
nobody
None
5
2015-12-03
2015-11-01
Victor
No

SMPlayer cannot play live streams from youtube. For example https://www.youtube.com/watch?v=Siy69o-rKU4
Can`t find url video. Its play normaly in browser.
SMPlaer 14.9.0
Qt 4.8.6
MPlayer2 2.0-701-gd4c5b7f-2ubuntu2

Discussion

  • Victor

    Victor - 2015-11-01

    I have installed the latest version from your ppa, now i have 15.9.0
    in your ppa there is no mpv package for Ubuntu 14.04, the main ppa contains mpv v.0.3.4.
    According to instructions http://blog.smplayer.info/how-to-play-youtube-live-streams-with-smplayer/ , I have a problem:

    /usr/bin/mpv --no-config --no-quiet --terminal --no-msg-color --input-file=/dev/stdin --no-fs --hwdec=auto --sub-auto=fuzzy --ao=pulse --framedrop=vo --stop-screensaver --no-input-default-bindings --input-x11-keyboard=no --no-input-cursor --cursor-autohide=no --no-keepaspect --wid=67108919 --monitorpixelaspect=1 --osd-scale=1 --sub-ass --embeddedfonts --ass-line-spacing=0 --sub-scale=1 --sub-text-font=Arial --sub-text-color=#ffffff --sub-text-shadow-color=#000000 --sub-text-border-color=#000000 --sub-text-border-size=2.5 --sub-text-shadow-offset=5 --sub-codepage=utf8:KOI8-U/RU --sub-pos=100 --volume=44 --cache=2048 --osd-level=0 --audio-channels=6 --af-add=drc=1 --af-add=scaletempo --af-add=equalizer=0:0:0:0:0:0:0:0:0:0 --softvol=yes --softvol-max=110 --term-playing-msg=MPV_VERSION=${=mpv-version:}
    INFO_VIDEO_WIDTH=${=width}
    INFO_VIDEO_HEIGHT=${=height}
    INFO_VIDEO_ASPECT=${=video-aspect}
    INFO_VIDEO_FPS=${=fps}
    INFO_VIDEO_FORMAT=${=video-format}
    INFO_VIDEO_CODEC=${=video-codec}
    INFO_AUDIO_FORMAT=${=audio-codec-name:${=audio-format}}
    INFO_AUDIO_CODEC=${=audio-codec}
    INFO_AUDIO_RATE=${=audio-params/samplerate:${=audio-samplerate}}
    INFO_AUDIO_NCH=${=audio-params/channel-count:${=audio-channels}}
    INFO_LENGTH=${=duration:${=length}}
    INFO_DEMUXER=${=demuxer}
    INFO_TITLES=${=disc-titles}
    INFO_CHAPTERS=${=chapters}
    INFO_TRACKS_COUNT=${=track-list/count}
    METADATA_TITLE=${metadata/by-key/title:}
    METADATA_ARTIST=${metadata/by-key/artist:}
    METADATA_ALBUM=${metadata/by-key/album:}
    METADATA_GENRE=${metadata/by-key/genre:}
    METADATA_DATE=${metadata/by-key/date:}
    METADATA_TRACK=${metadata/by-key/track:}
    METADATA_COPYRIGHT=${metadata/by-key/copyright:}
    INFO_MEDIA_TITLE=${=media-title:}
     --term-status-msg=STATUS: ${=time-pos} / ${=duration:${=length:0}} P: ${=pause} B: ${=paused-for-cache} I: ${=core-idle} https://www.youtube.com/watch?v=Siy69o-rKU4
    
    Error parsing commandline option terminal: option not found
    Exiting... (Fatal error)
    
     

    Last edit: Victor 2015-11-02
  • Victor

    Victor - 2015-11-02

    Problem solved by installing packages from ppa:mc3man/mpv-tests by this instruction http://www.webupd8.org/2015/01/how-to-install-smplayer-with-mpv.html
    But I still have a question: why is so hard in SMPlayer to watch live video from youtube?

     
  • Ricardo Villalba

    The code for Youtube in SMPlayer doesn't support live streams yet so it's necessary to use mpv+youtube-dl.

     
    • Victor

      Victor - 2015-11-02

      So why there is no mpv & youtube-dl packages for Ubuntu 14.04 in your ppa?

       
  • Ricardo Villalba

    I've just added mpv for Ubuntu 14.04 in the SMPlayer PPA (copied from https://launchpad.net/~mc3man/+archive/ubuntu/mpv-tests).

     
  • Victor

    Victor - 2015-11-02

    And what about youtube-dl package? Is it needed too? Please don`t forget to update your ppa at least for LTS Ubuntu distro.
    And thank you for the great player.

     
  • Victor

    Victor - 2015-11-03

    There is a problem whithout youtube-dl package:

    /usr/bin/mpv --no-config --no-quiet --terminal --no-msg-color --input-file=/dev/stdin --no-fs --hwdec=auto --sub-auto=fuzzy --vo=opengl-hq --ao=pulse --framedrop=vo --stop-screensaver --no-input-default-bindings --input-x11-keyboard=no --no-input-cursor --cursor-autohide=no --no-keepaspect --wid=48234551 --monitorpixelaspect=1 --osd-scale=1 --sub-ass --embeddedfonts --ass-line-spacing=0 --sub-scale=1 --sub-text-font=Arial --sub-text-color=#ffffff --sub-text-shadow-color=#000000 --sub-text-border-color=#000000 --sub-text-border-size=2.5 --sub-text-shadow-offset=5 --sub-codepage=utf8:KOI8-U/RU --sub-pos=100 --volume=48 --cache=2048 --osd-level=0 --audio-channels=6 --af-add=drc=1 --af-add=scaletempo --af-add=equalizer=0:0:0:0:0:0:0:0:0:0 --softvol=yes --softvol-max=110 --ytdl --term-playing-msg=MPV_VERSION=${=mpv-version:}
    INFO_VIDEO_WIDTH=${=width}
    INFO_VIDEO_HEIGHT=${=height}
    INFO_VIDEO_ASPECT=${=video-aspect}
    INFO_VIDEO_FPS=${=fps}
    INFO_VIDEO_FORMAT=${=video-format}
    INFO_VIDEO_CODEC=${=video-codec}
    INFO_AUDIO_FORMAT=${=audio-codec-name:${=audio-format}}
    INFO_AUDIO_CODEC=${=audio-codec}
    INFO_AUDIO_RATE=${=audio-params/samplerate:${=audio-samplerate}}
    INFO_AUDIO_NCH=${=audio-params/channel-count:${=audio-channels}}
    INFO_LENGTH=${=duration:${=length}}
    INFO_DEMUXER=${=demuxer}
    INFO_TITLES=${=disc-titles}
    INFO_CHAPTERS=${=chapters}
    INFO_TRACKS_COUNT=${=track-list/count}
    METADATA_TITLE=${metadata/by-key/title:}
    METADATA_ARTIST=${metadata/by-key/artist:}
    METADATA_ALBUM=${metadata/by-key/album:}
    METADATA_GENRE=${metadata/by-key/genre:}
    METADATA_DATE=${metadata/by-key/date:}
    METADATA_TRACK=${metadata/by-key/track:}
    METADATA_COPYRIGHT=${metadata/by-key/copyright:}
    INFO_MEDIA_TITLE=${=media-title:}
     --term-status-msg=STATUS: ${=time-pos} / ${=duration:${=length:0}} P: ${=pause} B: ${=paused-for-cache} I: ${=core-idle} https://www.youtube.com/watch?v=-62LWTsykcw
    
    Playing: https://www.youtube.com/watch?v=-62LWTsykcw
    [ytdl_hook] youtube-dl failed, trying to play URL directly ... 
    [ffmpeg] tls: A TLS packet with unexpected length was received.
    Failed to recognize file format.
    Exiting... (Errors when loading file)
    

    Your ppa definitely needs youtube-dl package for correct work whith live stream video.
    I have get it from this ppa: https://launchpad.net/~nilarimogard/+archive/ubuntu/webupd8/+index?batch=75&direction=backwards&start=525

     
  • Ricardo Villalba

    The problem with youtube-dl is that it gets obsolete very often. I think it's best to get it manually from http://rg3.github.io/youtube-dl/download.html and update it with youtube-dl -U when necessary.

    Anyway I've just added youtube-dl to the SMPlayer PPA.

     
  • Victor

    Victor - 2015-11-04

    Thank you, all works properly.

     
  • Ricardo Villalba

    • status: open --> closed-fixed
     
  • Ricardo Villalba

    SMPlayer 15.11 includes support for Youtube live streams in its internal code so now it's not required youtube-dl. However it's still necessary mpv because mplayer doesn't support very well these streams.

     

Log in to post a comment.

MongoDB Logo MongoDB