Vlc

From 太極
Revision as of 09:40, 26 June 2018 by Brb (talk | contribs) (Created page with "= How to play DVDs = https://help.ubuntu.com/community/RestrictedFormats/PlayingDVDs = Find TuneIn streaming URL = Follow [https://youtu.be/1eZ6R1ki91c this video], I can get...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

How to play DVDs

https://help.ubuntu.com/community/RestrictedFormats/PlayingDVDs

Find TuneIn streaming URL

Follow this video, I can get the streaming url of WQER Chinese radio.

  1. Right click and select inspect
  2. On the right panel, select 'Network' tab
  3. Pay attention to the row with long 'Waterfall'
  4. Right click and select copy -> copy link address

This method also works to find out the cbsnews/live streaming URL (https://cbsnhls-i.akamaihd.net/hls/live/264710/cbsn_hlsprod_2/master_360.m3u8). I can watch the streaming in VLC.

Use VLC to listen tunein radio

Download link http://addons.videolan.org/content/show.php?content=152788. Click the download button to download the file "TuneIn-Radio-VLC-master.zip". Unzip it. A new folder "TuneIn-Radio-VLC-master" will be created.

Create two new subfolders and place the lua files

  • move the “tunein.lua” file to the VLC folder so it can be found and run by VLC.
    • In Linux, move the “tunein.lua” file to ~/.local/share/vlc/lua/sd/
      mkdir -p ~/.local/share/vlc/lua/sd/
      mkdir -p ~/.local/share/vlc/lua/playlist
      cp TuneIn-Radio-VLC-master/tunein.lua ~/.local/share/vlc/lua/sd/
    • In Windows, move the “tunein.lua” file to %AppData%/VLC/VideoLAN/lua/sd.
    • In Mac OS X, move the “tunein.lua” file to VLC.app/Contents/MacOS/share/lua/sd
      sudo cp TuneIn-Radio-VLC-master/tunein.lua /Applications/VLC.app/Contents/MacOS/share/lua/sd/
      sudo cp -R TuneIn-Radio-VLC-master/playlist/* /Applications/VLC.app/Contents/MacOS/share/lua/playlist/
  • move the “radiotimes.lua” and “streamtheworld.lua” files from the Playlist folder to “/lua/playlist” folder in the VLC directory.
    cp TuneIn-Radio-VLC-master/playlist/* ~/.local/share/vlc/lua/playlist/

Open VLC. Go to “View -> Playlist”. At the sidebar, under the Internet section, you should now see “TuneIn Radio” in the list. Click on it and you will be able to access your Favorites.

Taiwan radios

  • rtsp://live2.rti.org.tw/rti4.sdp (discovered by open http://music.rti.org.tw/music in Linux Chrome browser)
  • rtmp://news98-t24.griffinmas.com/live/news98

Local radios

Edit network streaming history

  • Linux, the configuration file is located at ~/.config/vlc/vlc-qt-interface.conf
  • Windows, the configure file is %appdata%/vlc/vlc-qt-interface.conf

Use VLC to record internet radio (suitable if the stream is continuous)

http://www.ubuntugeek.com/how-to-record-internet-radio-using-vlc.html

sudo apt-get install vlc browser-plugin-vlc
sudo apt-get install ubuntu-restricted-extras
sudo apt-get install lame  libmp3lame0
sudo apt-get install ffmpeg
sudo apt-get install libavcodec-extra-53 libavdevice-extra-53 libavfilter-extra-2 libavformat-extra-53 \
                     libavutil-extra-51 libpostproc-extra-52 libswscale-extra-2

A successful run will have an output like

VLC media player 2.0.3 Twoflower (revision 2.0.2-93-g77aa89e)
[0x2329ca8] dummy interface: using the dummy interface module...
[0x7fac2c007428] mux_dummy mux: Open
[0x7fac2c003598] access_mms access: selecting stream[0x1] audio (39 Kib/s)
[0x7fac2c003598] access_mms access: connection successful
[0x7fac2c003598] access_mms access error: failed to send command
[0x7fac2c005fe8] idummy demux: command `quit'

Play audio using a command line mode

See also my Beaglebone page for a comparison of different possibilities. For VLC, there are 3 interface modes. The following example is to run vlc in a text mode with the ncurses library.

sudo apt-get install vlc-nox
vlc -I ncurses XXX.mp3
vlc --help

Play youtube using VLC from a command line

See this post

vlc -I http https://www.youtube.com/watch?v=UlW77conmAc

Keyboard shortcuts

cheatography.com and howtogeek

  • Ctrl + arrow: forward/backward 1 minute (Add the 'CMD' key on macOS)
  • Alt + arrow: forward/backward 10 seconds (Add the 'CMD' key on macOS)
  • Shift + arrow: forward/backward 3 seconds (Add the 'CMD' key on macOS)
  • [ or -: decrease speed
  • ]: increase speed

VLC & screensaver

It seems the screensaver will be deactivated if some video is opened (even not it is not playing).