Hi, I want to ask if sound/video playback of an youtube URL can be done with mod_vlc. Looking in freeswitch mod_vlc.c I can see "vlc_file_supported_formats[argc++] = "youtube";". I have tried <action application="playback" data="vlc:// https://youtu.be/VoeCcCQuJrM"/> without success: " EXECUTE sofia/internal/7479572798 playback(vlc:// https://youtu.be/VoeCcCQuJrM) 2016-11-11 13:23:36.772643 [DEBUG] mod_vlc.c:832 VLC attempt to open https://youtu.be/VoeCcCQuJrM read 2016-11-11 13:23:36.772643 [DEBUG] mod_vlc.c:857 VLC open https://youtu.be/VoeCcCQuJrM for reading 2016-11-11 13:23:36.772643 [NOTICE] mod_vlc.c:863 VLC Path is http https://youtu.be/VoeCcCQuJrM 2016-11-11 13:23:36.772643 [DEBUG] switch_ivr_play_say.c:1467 Codec Activated L16@8000hz 1 channels 20ms 2016-11-11 13:23:36.772643 [DEBUG] mod_vlc.c:242 Got a libvlc_MediaStateChanged callback. New state: 1 2016-11-11 13:23:37.472579 [DEBUG] mod_vlc.c:242 Got a libvlc_MediaStateChanged callback. New state: 3 2016-11-11 13:23:37.532634 [DEBUG] mod_vlc.c:242 Got a libvlc_MediaStateChanged callback. New state: 7 2016-11-11 13:23:37.532634 [DEBUG] mod_vlc.c:227 Got a libvlc_MediaPlayerEncounteredError callback. mediaPlayer Status: 7 2016-11-11 13:23:37.532634 [ERR] mod_vlc.c:1094 VLC error 2016-11-11 13:23:37.532634 [DEBUG] switch_ivr_play_say.c:1910 done playing file vlc://https://youtu.be/VoeCcCQuJrM 2016-11-11 13:23:37.572584 [DEBUG] mod_vlc.c:242 Got a libvlc_MediaStateChanged callback. New state: 5 2016-11-11 13:23:37.572584 [DEBUG] mod_python.c:286 Finished calling python script 2016-11-11 13:23:37.572584 [DEBUG] switch_cpp.cpp:1107 sofia/internal/7479572798 destroy/unlink session from object EXECUTE sofia/internal/7479572798 hangup() " Couldn't find any documentation/examples about youtube playback using mod_vlc. Can someone help me with some examples, please? Thank you, Stefan
It's mostly focused on broadcasting not playing youtube. I remember getting it to work at least once but its a bit fragile because it has to parse all the dash manifests etc which keep changing. I'd recommend caching it by downloading it with youtube-dl first then playing it. This will probably improve as the industry finally adopts all the streaming stuff. On Fri, Nov 11, 2016 at 7:31 AM, Anonim Stefan <fanx07@gmail.com> wrote:
Hi,
I want to ask if sound/video playback of an youtube URL can be done with mod_vlc. Looking in freeswitch mod_vlc.c I can see "vlc_file_supported_formats[argc++] = "youtube";".
I have tried <action application="playback" data="vlc://https://youtu.be/ VoeCcCQuJrM"/> without success:
" EXECUTE sofia/internal/7479572798 playback(vlc://https://youtu. be/VoeCcCQuJrM) 2016-11-11 13:23:36.772643 [DEBUG] mod_vlc.c:832 VLC attempt to open https://youtu.be/VoeCcCQuJrM read 2016-11-11 13:23:36.772643 [DEBUG] mod_vlc.c:857 VLC open https://youtu.be/VoeCcCQuJrM for reading 2016-11-11 13:23:36.772643 [NOTICE] mod_vlc.c:863 VLC Path is http https://youtu.be/VoeCcCQuJrM 2016-11-11 13:23:36.772643 [DEBUG] switch_ivr_play_say.c:1467 Codec Activated L16@8000hz 1 channels 20ms 2016-11-11 13:23:36.772643 [DEBUG] mod_vlc.c:242 Got a libvlc_MediaStateChanged callback. New state: 1 2016-11-11 13:23:37.472579 [DEBUG] mod_vlc.c:242 Got a libvlc_MediaStateChanged callback. New state: 3 2016-11-11 13:23:37.532634 [DEBUG] mod_vlc.c:242 Got a libvlc_MediaStateChanged callback. New state: 7 2016-11-11 13:23:37.532634 [DEBUG] mod_vlc.c:227 Got a libvlc_MediaPlayerEncounteredError callback. mediaPlayer Status: 7 2016-11-11 13:23:37.532634 [ERR] mod_vlc.c:1094 VLC error 2016-11-11 13:23:37.532634 [DEBUG] switch_ivr_play_say.c:1910 done playing file vlc://https://youtu.be/VoeCcCQuJrM 2016-11-11 13:23:37.572584 [DEBUG] mod_vlc.c:242 Got a libvlc_MediaStateChanged callback. New state: 5 2016-11-11 13:23:37.572584 [DEBUG] mod_python.c:286 Finished calling python script 2016-11-11 13:23:37.572584 [DEBUG] switch_cpp.cpp:1107 sofia/internal/ 7479572798 destroy/unlink session from object EXECUTE sofia/internal/7479572798 hangup() "
Couldn't find any documentation/examples about youtube playback using mod_vlc. Can someone help me with some examples, please?
Thank you, Stefan
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II ♬ @anthmfs ♬ @FreeSWITCH ♬ ☞ http://freeswitch.org/ ☞ http://cluecon.com/ ☞ http://twitter.com/FreeSWITCH ☞ irc.freenode.net #freeswitch ☞ *http://freeswitch.org/g+ <http://freeswitch.org/g+>* ClueCon Weekly Development Call ☎ sip:888@conference.freeswitch.org ☎ +19193869900 https://www.youtube.com/watch?v=9XXgW34t40s https://www.youtube.com/watch?v=NLaDpGQuZDA
participants (2)
-
Anonim Stefan
-
Anthony Minessale