MPD Subtitles

[MPD Subtitles (AUR)] is a Python application, written out of boredom (and out of a yearning for something like Crimsonsoft's [MiniLyrics] for Linux), that downloads and displays Simple LRC-format synchronized (with extensions for color, positioning, timeout, and voices) lyrics and captions for tracks you play in MPD.  It also comes with an LRC editor to write and synchronize lyrics, an uploader to submit them to an mpd-lrcserver database, and the mpd-lrcserver.php script to host your own LRC lyric database.
Here are a few screenshots of it in action:
By default, it uses [wintervenom.mycrosoft.us] and [wintervenom.brandonw.net/Misc] as the database servers (which haven't but a few songs at the moment).
MPD Subtitles is currently in alpha.  Bugs, improvements, tips, and criticism are much welcome. 
Last edited by Wintervenom (2011-03-23 19:06:19)

This is simply amazing! Thanks for spending the time to contribute this Wintervenom, much appreciated
Ahhh love open source communities

Similar Messages

  • Subtitles are not getting displayed while playing movies

    Hi,
    Recently I have upgraded with Max OS X 10.6 Snow Leopard. After this upgrade whenever I play movies in my VLC player, I am getting a message as "freetype: failed to load font file /System/Library/Fonts/LucidaGrande.dfont" and then the subtitles are not displayed.
    Can someone advise how to resolve it? I tried to download LucidaGrande.dfont from internet. But I couldnt find one. Please help.
    Thanks.
    Ravi

    Hello, Ravi & welcome to the forums.
    Lucida Grande is included with Mac OS X.
    Check and validate all of your fonts with Apple's Font Book (look in the Applications folder). Search for Lucida Grande to be sure it was properly installed. Find and remove duplicates as well.
    Also, don't hesisate to perform wholesale deletion of old and/or little used fonts - be skeptical of anything that has come from Office 2008, including those related to an Equation Editor installation.
    Finally, be sure all the apps you are using are compatible with SnowLeopard. Check with their authors for updates.

  • [SOLVED] unable to play mp3 or flac files in mpd, .dts files play fine

    I had a perfect running mpd setup before I tried to fiddle around with some dependancies to get xbmc-svn to compile without errors. I installed some AUR packages (ffmpeg-svn, x264-git, libva-sds, libvpx, libid3tag).
    After that I started to experience trouble with mpd, it start fine and says it plays audio files just fine but whenever i play a mp3 or flac file the progress bar just looks like it's playing the file but I hear no sound. Whenever I play a .dts file i hear the sound correct.
    I'm very curious to why this happends.
    I rolled back the packages mentioned above but the issue remains unsolved.
    My setup: pc is connected to receiver by hdmi cable using the latest alsa version with digital passthrough over hdmi, currently using mpd-git from AUR
    mpd -v --no-daemon shows the following:
    # mpd -v --no-daemon /etc/mpd.conf
    config: loading file /etc/mpd.conf
    listen: binding to address for 192.168.1.3
    listen: binding to socket address 192.168.1.3:6600
    path: path_set_fs_charset: fs charset is: UTF-8
    database: reading DB
    disabling the last.fm playlist plugin because account is not configured
    daemon: opening pid file
    daemon: writing pid file
    snippet from mpd.log:
    Jun 28 00:54 : client: [0] process command "playlistfind filename "Lossy - Tagged and Sorted/Wild Oats/WO-0001 - Kyle Hall - Worx Of Art EP 1 - 2008/Kyle Hall - 01 - Fuse N Me .mp3""
    Jun 28 00:54 : client: [0] command returned 0
    Jun 28 00:54 : client: [0] process command "addid "Lossy - Tagged and Sorted/Wild Oats/WO-0001 - Kyle Hall - Worx Of Art EP 1 - 2008/Kyle Hall - 01 - Fuse N Me .mp3""
    Jun 28 00:54 : add to playlist: Lossy - Tagged and Sorted/Wild Oats/WO-0001 - Kyle Hall - Worx Of Art EP 1 - 2008/Kyle Hall - 01 - Fuse N Me .mp3
    Jun 28 00:54 : database: get song: Lossy - Tagged and Sorted/Wild Oats/WO-0001 - Kyle Hall - Worx Of Art EP 1 - 2008/Kyle Hall - 01 - Fuse N Me .mp3
    Jun 28 00:54 : client: [0] command returned 0
    Jun 28 00:54 : client: [0] process command "playid "7""
    Jun 28 00:54 : playlist: play 7:"Lossy - Tagged and Sorted/Wild Oats/WO-0001 - Kyle Hall - Worx Of Art EP 1 - 2008/Kyle Hall - 01 - Fuse N Me .mp3"
    Jun 28 00:54 : decoder_thread: clearing mixramp tags
    Jun 28 00:54 : decoder_control: mixramp_start = NULL
    Jun 28 00:54 : decoder_control: mixramp_prev_end = NULL
    Jun 28 00:54 : client: [0] command returned 0
    Jun 28 00:54 : client: [0] process command "status"
    Jun 28 00:54 : client: [0] command returned 0
    Jun 28 00:54 : client: [0] process command "idle"
    Jun 28 00:54 : client: [0] command returned 1
    Jun 28 00:54 : client: [0] process command "playlistid "7""
    Jun 28 00:54 : client: [0] command returned 0
    Jun 28 00:54 : mad: detected LAME version 3.97 ("LAME3.97 ")
    Jun 28 00:54 : mad: LAME peak found: 0.000000
    Jun 28 00:54 : mad: LAME track gain found: -5.000000
    Jun 28 00:54 : mad: encoder delay is 576, encoder padding is 1818
    Jun 28 00:54 : decoder: audio_format=44100:24:2, seekable=true
    Jun 28 00:54 : alsa: default period_time = buffer_time/4 = 185759/4 = 46439
    Jun 28 00:54 : client: [0] process command "plchangesposid "2""
    Jun 28 00:54 : client: [0] command returned 0
    Jun 28 00:54 : alsa: buffer_size=8192 period_size=2048
    Jun 28 00:54 : output: opened plugin=alsa name="My ALSA Device" audio_format=44100:32:2
    Jun 28 00:54 : output: converting from 44100:24:2
    Jun 28 00:54 : Failed to open mixer for 'My ALSA Device': no such mixer control: PCM
    mpd.conf:
    # An example configuration file for MPD
    # See the mpd.conf man page for a more detailed description of each parameter.
    # Files and directories #######################################################
    # This setting controls the top directory which MPD will search to discover the
    # available audio files and add them to the daemon's online database. This
    # setting defaults to the XDG directory, otherwise the music directory will be
    # be disabled and audio files will only be accepted over ipc socket (using
    # file:// protocol) or streaming files over an accepted protocol.
    music_directory "/media/media9/Muziek/"
    # This setting sets the MPD internal playlist directory. The purpose of this
    # directory is storage for playlists created by MPD. The server will use
    # playlist files not created by the server but only if they are in the MPD
    # format. This setting defaults to playlist saving being disabled.
    playlist_directory "/var/lib/mpd/playlists"
    # This setting sets the location of the MPD database. This file is used to
    # load the database at server start up and store the database while the
    # server is not up. This setting defaults to disabled which will allow
    # MPD to accept files over ipc socket (using file:// protocol) or streaming
    # files over an accepted protocol.
    db_file "/var/lib/mpd/mpd.db"
    # These settings are the locations for the daemon log files for the daemon.
    # These logs are great for troubleshooting, depending on your log_level
    # settings.
    # The special value "syslog" makes MPD use the local syslog daemon. This
    # setting defaults to logging to syslog, otherwise logging is disabled.
    log_file "/var/log/mpd/mpd.log"
    # This setting sets the location of the file which stores the process ID
    # for use of mpd --kill and some init scripts. This setting is disabled by
    # default and the pid file will not be stored.
    pid_file "/var/run/mpd/mpd.pid"
    # This setting sets the location of the file which contains information about
    # most variables to get MPD back into the same general shape it was in before
    # it was brought down. This setting is disabled by default and the server
    # state will be reset on server start up.
    state_file "/var/lib/mpd/mpdstate"
    # The location of the sticker database. This is a database which
    # manages dynamic information attached to songs.
    #sticker_file "~/.mpd/sticker.sql"
    # General music daemon options ################################################
    # This setting specifies the user that MPD will run as. MPD should never run as
    # root and you may use this setting to make MPD change its user ID after
    # initialization. This setting is disabled by default and MPD is run as the
    # current user.
    user "mpd"
    # This setting specifies the group that MPD will run as. If not specified
    # primary group of user specified with "user" setting will be used (if set).
    # This is useful if MPD needs to be a member of group such as "audio" to
    # have permission to use sound card.
    #group "nogroup"
    # This setting sets the address for the daemon to listen on. Careful attention
    # should be paid if this is assigned to anything other then the default, any.
    # This setting can deny access to control of the daemon.
    # For network
    bind_to_address "192.168.1.3"
    # And for Unix Socket
    #bind_to_address "~/.mpd/socket"
    # This setting is the TCP port that is desired for the daemon to get assigned
    # to.
    port "6600"
    # This setting controls the type of information which is logged. Available
    # setting arguments are "default", "secure" or "verbose". The "verbose" setting
    # argument is recommended for troubleshooting, though can quickly stretch
    # available resources on limited hardware storage.
    log_level "verbose"
    # If you have a problem with your MP3s ending abruptly it is recommended that
    # you set this argument to "no" to attempt to fix the problem. If this solves
    # the problem, it is highly recommended to fix the MP3 files with vbrfix
    # (available from <http://www.willwap.co.uk/Programs/vbrfix.php>), at which
    # point gapless MP3 playback can be enabled.
    #gapless_mp3_playback "yes"
    # This setting enables MPD to create playlists in a format usable by other
    # music players.
    #save_absolute_paths_in_playlists "no"
    # This setting defines a list of tag types that will be extracted during the
    # audio file discovery process. Optionally, 'comment' can be added to this
    # list.
    #metadata_to_use "artist,album,title,track,name,genre,date,composer,performer,disc"
    # This setting enables automatic update of MPD's database when files in
    # #music_directory "path_to_your_music_collection"
    auto_update "yes"
    # Limit the depth of the directories being watched, 0 means only watch
    # the music directory itself. There is no limit by default.
    #auto_update_depth "3"
    # Symbolic link behavior ######################################################
    # If this setting is set to "yes", MPD will discover audio files by following
    # symbolic links outside of the configured #music_directory "path_to_your_music_collection"
    #follow_outside_symlinks "yes"
    # If this setting is set to "yes", MPD will discover audio files by following
    # symbolic links inside of the configured #music_directory "path_to_your_music_collection"
    #follow_inside_symlinks "yes"
    # Zeroconf / Avahi Service Discovery ##########################################
    # If this setting is set to "yes", service information will be published with
    # Zeroconf / Avahi.
    #zeroconf_enabled "yes"
    # The argument to this setting will be the Zeroconf / Avahi unique name for
    # this MPD server on the network.
    #zeroconf_name "Music Player"
    # Permissions #################################################################
    # If this setting is set, MPD will require password authorization. The password
    # can setting can be specified multiple times for different password profiles.
    #password "password@read,add,control,admin"
    # This setting specifies the permissions a user has who has not yet logged in.
    #default_permissions "read,add,control,admin"
    # Input #######################################################################
    input {
    plugin "curl"
    # proxy "proxy.isp.com:8080"
    # proxy_user "user"
    # proxy_password "password"
    # Audio Output ################################################################
    # MPD supports various audio output types, as well as playing through multiple
    # audio outputs at the same time, through multiple audio_output settings
    # blocks. Setting this block is optional, though the server will only attempt
    # autodetection for one sound card.
    # See <http://mpd.wikia.com/wiki/Configuration#Audio_Outputs> for examples of
    # other audio outputs.
    # An example of an ALSA output:
    audio_output {
    type "alsa"
    name "My ALSA Device"
    device "hw:0,3" # optional
    ## format "44100:16:2" # optional
    ## mixer_type "hardware" # optional
    ## mixer_device "default" # optional
    ## mixer_control "Master" # optional
    ## mixer_index "0" # optional
    # An example of an OSS output:
    #audio_output {
    # type "oss"
    # name "My OSS Device"
    ## device "/dev/dsp" # optional
    ## format "44100:16:2" # optional
    ## mixer_type "hardware" # optional
    ## mixer_device "/dev/mixer" # optional
    ## mixer_control "PCM" # optional
    # An example of a shout output (for streaming to Icecast):
    #audio_output {
    # type "shout"
    # encoding "ogg" # optional
    # name "My Shout Stream"
    # host "localhost"
    # port "8000"
    # mount "/mpd.ogg"
    # password "hackme"
    # quality "5.0"
    # bitrate "128"
    # format "44100:16:1"
    ## protocol "icecast2" # optional
    ## user "source" # optional
    ## description "My Stream Description" # optional
    ## genre "jazz" # optional
    ## public "no" # optional
    ## timeout "2" # optional
    ## mixer_type "software" # optional
    # An example of a recorder output:
    #audio_output {
    # type "recorder"
    # name "My recorder"
    # encoder "vorbis" # optional, vorbis or lame
    # path "/var/lib/mpd/recorder/mpd.ogg"
    ## quality "5.0" # do not define if bitrate is defined
    # bitrate "128" # do not define if quality is defined
    # format "44100:16:1"
    # An example of a httpd output (built-in HTTP streaming server):
    #audio_output {
    # type "httpd"
    # name "My HTTP Stream"
    # encoder "vorbis" # optional, vorbis or lame
    # port "8000"
    ## quality "5.0" # do not define if bitrate is defined
    # bitrate "128" # do not define if quality is defined
    # format "44100:16:1"
    # max_clients "0" # optional 0=no limit
    # An example of a pulseaudio output (streaming to a remote pulseaudio server)
    #audio_output {
    # type "pulse"
    # name "My Pulse Output"
    ## server "remote_server" # optional
    ## sink "remote_server_sink" # optional
    ## Example "pipe" output:
    #audio_output {
    # type "pipe"
    # name "my pipe"
    # command "aplay -f cd 2>/dev/null"
    ## Or if you're want to use AudioCompress
    # command "AudioCompress -m | aplay -f cd 2>/dev/null"
    ## Or to send raw PCM stream through PCM:
    # command "nc example.org 8765"
    # format "44100:16:2"
    ## An example of a null output (for no audio output):
    #audio_output {
    # type "null"
    # name "My Null Output"
    # mixer_type "none" # optional
    # This setting will change all decoded audio to be converted to the specified
    # format before being passed to the audio outputs. By default, this setting is
    # disabled.
    #audio_output_format "44100:16:2"
    # If MPD has been compiled with libsamplerate support, this setting specifies
    # the sample rate converter to use. Possible values can be found in the
    # mpd.conf man page or the libsamplerate documentation. By default, this is
    # setting is disabled.
    #samplerate_converter "Fastest Sinc Interpolator"
    # Normalization automatic volume adjustments ##################################
    # This setting specifies the type of ReplayGain to use. This setting can have
    # the argument "off", "album" or "track". See <http://www.replaygain.org>
    # for more details. This setting is off by default.
    #replaygain "album"
    # This setting sets the pre-amp used for files that have ReplayGain tags. By
    # default this setting is disabled.
    #replaygain_preamp "0"
    # This setting enables on-the-fly normalization volume adjustment. This will
    # result in the volume of all playing audio to be adjusted so the output has
    # equal "loudness". This setting is disabled by default.
    #volume_normalization "no"
    # MPD Internal Buffering ######################################################
    # This setting adjusts the size of internal decoded audio buffering. Changing
    # this may have undesired effects. Don't change this if you don't know what you
    # are doing.
    #audio_buffer_size "2048"
    # This setting controls the percentage of the buffer which is filled before
    # beginning to play. Increasing this reduces the chance of audio file skipping,
    # at the cost of increased time prior to audio playback.
    #buffer_before_play "10%"
    # Resource Limitations ########################################################
    # These settings are various limitations to prevent MPD from using too many
    # resources. Generally, these settings should be minimized to prevent security
    # risks, depending on the operating resources.
    #connection_timeout "60"
    #max_connections "10"
    #max_playlist_length "16384"
    #max_command_list_size "2048"
    #max_output_buffer_size "8192"
    # Character Encoding ##########################################################
    # If file or directory names do not display correctly for your locale then you
    # may need to modify this setting.
    #filesystem_charset "UTF-8"
    # This setting controls the encoding that ID3v1 tags should be converted from.
    #id3v1_encoding "ISO-8859-1"
    # SIDPlay decoder #############################################################
    # songlength_database:
    # Location of your songlengths file, as distributed with the HVSC.
    # The sidplay plugin checks this for matching MD5 fingerprints.
    # See http://www.c64.org/HVSC/DOCUMENTS/Songlengths.faq
    # default_songlength:
    # This is the default playing time in seconds for songs not in the
    # songlength database, or in case you're not using a database.
    # A value of 0 means play indefinitely.
    # filter:
    # Turns the SID filter emulation on or off.
    #decoder {
    # plugin "sidplay"
    # songlength_database "/media/C64Music/DOCUMENTS/Songlengths.txt"
    # default_songlength "120"
    # filter "true"
    Whenever I run xbmc using the hdmi digital output it just plays mp3 and flac files without problems.
    Anyone any clues on how to solve this issue?
    TIA, dafart
    Since
    Last edited by dafart (2010-07-01 00:38:09)

    aplay -l
    **** List of PLAYBACK Hardware Devices ****
    card 0: NVidia [HDA NVidia], device 3: NVIDIA HDMI [NVIDIA HDMI]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    Which correspondents fine with the
    device "hw:0,3"
    in my mpd.conf alsa section.
    Also sound worked fine withh this config before I started installing ffmpeg-svn and alikes
    hokasch:
    I tried changing the mixer to "Master" but that did not change much.

  • Fields missing in MPD report after change to structure and program

    I have been working on a consistency report for transaction MPD.
    I had created a structure in SE11 for handling the data.  it was all working, but then i had to go and change the name of the fields in the structure.  Now those fields are missing from the report. 
    When i step through the debugger, all the fields are being populated correctly, but these fields are not displayed on screen.  if i change the field names back in the structure and change the code for populating these fields, they appear okay.
    i have created a custom implementation within BAdi MPD_WKB_REPORTING. 
    i have checked the config and it all points to my Z Structure and Z Table Type.  I have logged off and logged back on!  made sure my code is saved and activated...
    any ideas on how i can display these new fields names/values?
    Just for clarity, the field name has changed. not the linked data type.

    thanks for your response, however those notes and program have not done anything to assist my issue.
    i have found the anwser now!
    within the BAdi was a method i had to amend:  IF_EX_MPD_WKB_REPORTING~GET_ALV_PARAMETERS 
    all fixed now!

  • Vicious MPD widget not displaying the artist and song title

    EDIT: This thread can be closed now. It turns out Clementine doesn't support mpd and I'm now running ncmpcpp and the widget shows the artist and song title.
    I have trouble getting the mpd widget running in awesome wm, it will only display "N/A - N/A". I've read the wiki and done a lot of googling but I can't figure out what I'm missing.
    Here's my rc.lua
    -- Standard awesome library
    local gears = require("gears")
    local awful = require("awful")
    awful.rules = require("awful.rules")
    require("awful.autofocus")
    -- Widget and layout library
    local wibox = require("wibox")
    local vicious = require("vicious")
    -- Theme handling library
    local beautiful = require("beautiful")
    -- Notification library
    local naughty = require("naughty")
    local menubar = require("menubar")
    -- {{{ Error handling
    -- Check if awesome encountered an error during startup and fell back to
    -- another config (This code will only ever execute for the fallback config)
    if awesome.startup_errors then
    naughty.notify({ preset = naughty.config.presets.critical,
    title = "Oops, there were errors during startup!",
    text = awesome.startup_errors })
    end
    -- Handle runtime errors after startup
    do
    local in_error = false
    awesome.connect_signal("debug::error", function (err)
    -- Make sure we don't go into an endless error loop
    if in_error then return end
    in_error = true
    naughty.notify({ preset = naughty.config.presets.critical,
    title = "Oops, an error happened!",
    text = err })
    in_error = false
    end)
    end
    -- {{{ Variable definitions
    -- Themes define colours, icons, and wallpapers
    beautiful.init("/usr/share/awesome/themes/zenburn/theme.lua")
    -- This is used later as the default terminal and editor to run.
    terminal = "tilda"
    editor = "gedit"
    -- os.getenv("EDITOR") or
    editor_cmd = terminal .. " -e " .. editor
    -- Default modkey.
    -- Usually, Mod4 is the key with a logo between Control and Alt.
    -- If you do not like this or do not have such a key,
    -- I suggest you to remap Mod4 to another key using xmodmap or other tools.
    -- However, you can use another modifier like Mod1, but it may interact with others.
    modkey = "Mod4"
    -- Table of layouts to cover with awful.layout.inc, order matters.
    local layouts =
    awful.layout.suit.floating,
    awful.layout.suit.tile,
    awful.layout.suit.tile.left,
    awful.layout.suit.tile.bottom,
    awful.layout.suit.tile.top,
    awful.layout.suit.fair,
    awful.layout.suit.fair.horizontal,
    awful.layout.suit.spiral,
    awful.layout.suit.spiral.dwindle,
    awful.layout.suit.max,
    awful.layout.suit.max.fullscreen,
    awful.layout.suit.magnifier
    -- {{{ Wallpaper
    if beautiful.wallpaper then
    for s = 1, screen.count() do
    gears.wallpaper.maximized(beautiful.wallpaper, s, true)
    end
    end
    -- {{{ Tags
    -- Define a tag table which will hold all screen tags.
    tags = {}
    for s = 1, screen.count() do
    -- Each screen has its own tag table.
    tags[s] = awful.tag({"term", "www", "mp3", "skype", "office", "dev", "misc" }, s)
    end
    -- {{{ Menu
    -- Create a laucher widget and a main menu
    myawesomemenu = {
    { "manual", terminal .. " -e man awesome" },
    { "edit config", editor_cmd .. " " .. awesome.conffile },
    { "reboot", "gksudo reboot" },
    { "restart", awesome.restart },
    { "quit", awesome.quit }
    mymainmenu = awful.menu({ items = { { "awesome", myawesomemenu, beautiful.awesome_icon },
    { "open terminal", terminal }
    mylauncher = awful.widget.launcher({ image = beautiful.awesome_icon,
    menu = mymainmenu })
    -- Menubar configuration
    menubar.utils.terminal = terminal -- Set the terminal for applications that require it
    -- Initialize widget
    mpdwidget = wibox.widget.textbox()
    -- Register widget
    vicious.register(mpdwidget, vicious.widgets.mpd,
    function (mpdwidget, args)
    if args["{state}"] == "Stop" then
    return " - "
    else
    return args["{Artist}"]..' - '.. args["{Title}"]
    end
    end, 10)
    -- {{{ Wibox
    -- Create a textclock widget
    mytextclock = awful.widget.textclock()
    -- Create a wibox for each screen and add it
    mywibox = {}
    mypromptbox = {}
    mylayoutbox = {}
    mytaglist = {}
    mytaglist.buttons = awful.util.table.join(
    awful.button({ }, 1, awful.tag.viewonly),
    awful.button({ modkey }, 1, awful.client.movetotag),
    awful.button({ }, 3, awful.tag.viewtoggle),
    awful.button({ modkey }, 3, awful.client.toggletag),
    awful.button({ }, 4, function(t) awful.tag.viewnext(awful.tag.getscreen(t)) end),
    awful.button({ }, 5, function(t) awful.tag.viewprev(awful.tag.getscreen(t)) end)
    mytasklist = {}
    mytasklist.buttons = awful.util.table.join(
    awful.button({ }, 1, function (c)
    if c == client.focus then
    c.minimized = true
    else
    -- Without this, the following
    -- :isvisible() makes no sense
    c.minimized = false
    if not c:isvisible() then
    awful.tag.viewonly(c:tags()[1])
    end
    -- This will also un-minimize
    -- the client, if needed
    client.focus = c
    c:raise()
    end
    end),
    awful.button({ }, 3, function ()
    if instance then
    instance:hide()
    instance = nil
    else
    instance = awful.menu.clients({ width=250 })
    end
    end),
    awful.button({ }, 4, function ()
    awful.client.focus.byidx(1)
    if client.focus then client.focus:raise() end
    end),
    awful.button({ }, 5, function ()
    awful.client.focus.byidx(-1)
    if client.focus then client.focus:raise() end
    end))
    for s = 1, screen.count() do
    -- Create a promptbox for each screen
    mypromptbox[s] = awful.widget.prompt()
    -- Create an imagebox widget which will contains an icon indicating which layout we're using.
    -- We need one layoutbox per screen.
    mylayoutbox[s] = awful.widget.layoutbox(s)
    mylayoutbox[s]:buttons(awful.util.table.join(
    awful.button({ }, 1, function () awful.layout.inc(layouts, 1) end),
    awful.button({ }, 3, function () awful.layout.inc(layouts, -1) end),
    awful.button({ }, 4, function () awful.layout.inc(layouts, 1) end),
    awful.button({ }, 5, function () awful.layout.inc(layouts, -1) end)))
    -- Create a taglist widget
    mytaglist[s] = awful.widget.taglist(s, awful.widget.taglist.filter.all, mytaglist.buttons)
    -- Create a tasklist widget
    mytasklist[s] = awful.widget.tasklist(s, awful.widget.tasklist.filter.currenttags, mytasklist.buttons)
    -- Create the wibox
    mywibox[s] = awful.wibox({ position = "top", screen = s })
    -- Widgets that are aligned to the left
    local left_layout = wibox.layout.fixed.horizontal()
    left_layout:add(mylauncher)
    left_layout:add(mytaglist[s])
    left_layout:add(mypromptbox[s])
    -- Widgets that are aligned to the right
    local right_layout = wibox.layout.fixed.horizontal()
    right_layout:add(mpdwidget)
    if s == 1 then right_layout:add(wibox.widget.systray()) end
    right_layout:add(mytextclock)
    right_layout:add(mylayoutbox[s])
    -- Now bring it all together (with the tasklist in the middle)
    local layout = wibox.layout.align.horizontal()
    layout:set_left(left_layout)
    layout:set_middle(mytasklist[s])
    layout:set_right(right_layout)
    mywibox[s]:set_widget(layout)
    end
    -- {{{ Mouse bindings
    root.buttons(awful.util.table.join(
    awful.button({ }, 3, function () mymainmenu:toggle() end),
    awful.button({ }, 4, awful.tag.viewnext),
    awful.button({ }, 5, awful.tag.viewprev)
    -- {{{ Key bindings
    globalkeys = awful.util.table.join(
    awful.key({ modkey, }, "Left", awful.tag.viewprev ),
    awful.key({ modkey, }, "Right", awful.tag.viewnext ),
    awful.key({ modkey, }, "Escape", awful.tag.history.restore),
    awful.key({ modkey, }, "j",
    function ()
    awful.client.focus.byidx( 1)
    if client.focus then client.focus:raise() end
    end),
    awful.key({ modkey, }, "k",
    function ()
    awful.client.focus.byidx(-1)
    if client.focus then client.focus:raise() end
    end),
    awful.key({ modkey, }, "w", function () mymainmenu:show() end),
    -- Layout manipulation
    awful.key({ modkey, "Shift" }, "j", function () awful.client.swap.byidx( 1) end),
    awful.key({ modkey, "Shift" }, "k", function () awful.client.swap.byidx( -1) end),
    awful.key({ modkey, "Control" }, "j", function () awful.screen.focus_relative( 1) end),
    awful.key({ modkey, "Control" }, "k", function () awful.screen.focus_relative(-1) end),
    awful.key({ modkey, }, "u", awful.client.urgent.jumpto),
    awful.key({ modkey, }, "Tab",
    function ()
    awful.client.focus.history.previous()
    if client.focus then
    client.focus:raise()
    end
    end),
    -- Standard program
    awful.key({ modkey, }, "Return", function () awful.util.spawn(terminal) end),
    awful.key({ modkey, "Control" }, "r", awesome.restart),
    awful.key({ modkey, "Shift" }, "q", awesome.quit),
    awful.key({ modkey, }, "l", function () awful.tag.incmwfact( 0.05) end),
    awful.key({ modkey, }, "h", function () awful.tag.incmwfact(-0.05) end),
    awful.key({ modkey, "Shift" }, "h", function () awful.tag.incnmaster( 1) end),
    awful.key({ modkey, "Shift" }, "l", function () awful.tag.incnmaster(-1) end),
    awful.key({ modkey, "Control" }, "h", function () awful.tag.incncol( 1) end),
    awful.key({ modkey, "Control" }, "l", function () awful.tag.incncol(-1) end),
    awful.key({ modkey, }, "space", function () awful.layout.inc(layouts, 1) end),
    awful.key({ modkey, "Shift" }, "space", function () awful.layout.inc(layouts, -1) end),
    awful.key({ modkey, "Control" }, "n", awful.client.restore),
    -- Prompt
    awful.key({ modkey }, "r", function () mypromptbox[mouse.screen]:run() end),
    awful.key({ modkey }, "x",
    function ()
    awful.prompt.run({ prompt = "Run Lua code: " },
    mypromptbox[mouse.screen].widget,
    awful.util.eval, nil,
    awful.util.getdir("cache") .. "/history_eval")
    end),
    -- Menubar
    awful.key({ modkey }, "p", function() menubar.show() end)
    clientkeys = awful.util.table.join(
    awful.key({ modkey, }, "f", function (c) c.fullscreen = not c.fullscreen end),
    awful.key({ modkey, "Shift" }, "c", function (c) c:kill() end),
    awful.key({ modkey, "Control" }, "space", awful.client.floating.toggle ),
    awful.key({ modkey, "Control" }, "Return", function (c) c:swap(awful.client.getmaster()) end),
    awful.key({ modkey, }, "o", awful.client.movetoscreen ),
    awful.key({ modkey, }, "t", function (c) c.ontop = not c.ontop end),
    awful.key({ modkey, }, "n",
    function (c)
    -- The client currently has the input focus, so it cannot be
    -- minimized, since minimized clients can't have the focus.
    c.minimized = true
    end),
    awful.key({ modkey, }, "m",
    function (c)
    c.maximized_horizontal = not c.maximized_horizontal
    c.maximized_vertical = not c.maximized_vertical
    end)
    -- Bind all key numbers to tags.
    -- Be careful: we use keycodes to make it works on any keyboard layout.
    -- This should map on the top row of your keyboard, usually 1 to 9.
    for i = 1, 9 do
    globalkeys = awful.util.table.join(globalkeys,
    awful.key({ modkey }, "#" .. i + 9,
    function ()
    local screen = mouse.screen
    local tag = awful.tag.gettags(screen)[i]
    if tag then
    awful.tag.viewonly(tag)
    end
    end),
    awful.key({ modkey, "Control" }, "#" .. i + 9,
    function ()
    local screen = mouse.screen
    local tag = awful.tag.gettags(screen)[i]
    if tag then
    awful.tag.viewtoggle(tag)
    end
    end),
    awful.key({ modkey, "Shift" }, "#" .. i + 9,
    function ()
    if client.focus then
    local tag = awful.tag.gettags(client.focus.screen)[i]
    if tag then
    awful.client.movetotag(tag)
    end
    end
    end),
    awful.key({ modkey, "Control", "Shift" }, "#" .. i + 9,
    function ()
    if client.focus then
    local tag = awful.tag.gettags(client.focus.screen)[i]
    if tag then
    awful.client.toggletag(tag)
    end
    end
    end))
    end
    clientbuttons = awful.util.table.join(
    awful.button({ }, 1, function (c) client.focus = c; c:raise() end),
    awful.button({ modkey }, 1, awful.mouse.client.move),
    awful.button({ modkey }, 3, awful.mouse.client.resize))
    -- Set keys
    root.keys(globalkeys)
    -- {{{ Rules
    awful.rules.rules = {
    -- All clients will match this rule.
    { rule = { },
    properties = { border_width = beautiful.border_width,
    border_color = beautiful.border_normal,
    focus = awful.client.focus.filter,
    keys = clientkeys,
    buttons = clientbuttons } },
    { rule = { class = "MPlayer" },
    properties = { floating = true } },
    { rule = { class = "pinentry" },
    properties = { floating = true } },
    { rule = { class = "gimp" },
    properties = { floating = true } },
    -- Set Firefox to always map on tags number 2 of screen 1.
    { rule = { class = "Firefox" },
    properties = { tag = tags[2] } },
    -- {{{ Signals
    -- Signal function to execute when a new client appears.
    client.connect_signal("manage", function (c, startup)
    -- Enable sloppy focus
    c:connect_signal("mouse::enter", function(c)
    if awful.layout.get(c.screen) ~= awful.layout.suit.magnifier
    and awful.client.focus.filter(c) then
    client.focus = c
    end
    end)
    if not startup then
    -- Set the windows at the slave,
    -- i.e. put it at the end of others instead of setting it master.
    -- awful.client.setslave(c)
    -- Put windows in a smart way, only if they does not set an initial position.
    if not c.size_hints.user_position and not c.size_hints.program_position then
    awful.placement.no_overlap(c)
    awful.placement.no_offscreen(c)
    end
    end
    local titlebars_enabled = false
    if titlebars_enabled and (c.type == "normal" or c.type == "dialog") then
    -- buttons for the titlebar
    local buttons = awful.util.table.join(
    awful.button({ }, 1, function()
    client.focus = c
    c:raise()
    awful.mouse.client.move(c)
    end),
    awful.button({ }, 3, function()
    client.focus = c
    c:raise()
    awful.mouse.client.resize(c)
    end)
    -- Widgets that are aligned to the left
    local left_layout = wibox.layout.fixed.horizontal()
    left_layout:add(awful.titlebar.widget.iconwidget(c))
    left_layout:buttons(buttons)
    -- Widgets that are aligned to the right
    local right_layout = wibox.layout.fixed.horizontal()
    right_layout:add(awful.titlebar.widget.floatingbutton(c))
    right_layout:add(awful.titlebar.widget.maximizedbutton(c))
    right_layout:add(awful.titlebar.widget.stickybutton(c))
    right_layout:add(awful.titlebar.widget.ontopbutton(c))
    right_layout:add(awful.titlebar.widget.closebutton(c))
    -- The title goes in the middle
    local middle_layout = wibox.layout.flex.horizontal()
    local title = awful.titlebar.widget.titlewidget(c)
    title:set_align("center")
    middle_layout:add(title)
    middle_layout:buttons(buttons)
    -- Now bring it all together
    local layout = wibox.layout.align.horizontal()
    layout:set_left(left_layout)
    layout:set_right(right_layout)
    layout:set_middle(middle_layout)
    awful.titlebar(c):set_widget(layout)
    end
    end)
    client.connect_signal("focus", function(c) c.border_color = beautiful.border_focus end)
    client.connect_signal("unfocus", function(c) c.border_color = beautiful.border_normal end)
    function run_once(prg,arg_string,pname,screen)
    if not prg then
    do return nil end
    end
    if not pname then
    pname = prg
    end
    if not arg_string then
    awful.util.spawn_with_shell("pgrep -f -u $USER -x '" .. pname .. "' || (" .. prg .. ")",screen)
    else
    awful.util.spawn_with_shell("pgrep -f -u $USER -x '" .. pname .. " ".. arg_string .."' || (" .. prg .. " " .. arg_string .. ")",screen)
    end
    end
    awful.util.spawn_with_shell("setxkbmap -layout se")
    run_once("tilda",nil,nil,"term")
    run_once("firefox &",nil,nil,"www")
    run_once("clementine ",nil,nil,"mp3")
    run_once("skype ",nil,nil,"skype")
    run_once("dropboxd &",nil,nil,nil)
    run_once("keepassx ",nil,nil,"www")
    run_once("volumeicon &",nil,nil,nil)
    awesome.font = "DejaVuSansCondensed 12"
    Here's my mpd.lua:
    -- Licensed under the GNU General Public License v2
    -- * (c) 2010, Adrian C. <[email protected]>
    -- {{{ Grab environment
    local tonumber = tonumber
    local io = { popen = io.popen }
    local setmetatable = setmetatable
    local string = { gmatch = string.gmatch }
    local helpers = require("vicious.helpers")
    -- Mpd: provides Music Player Daemon information
    -- vicious.widgets.mpd
    local mpd = {}
    -- {{{ MPD widget type
    local function worker(format, warg)
    local mpd_state = {
    ["{volume}"] = 0,
    ["{state}"] = "N/A",
    ["{Artist}"] = "N/A",
    ["{Title}"] = "N/A",
    ["{Album}"] = "N/A",
    ["{Genre}"] = "N/A",
    --["{Name}"] = "N/A",
    --["{file}"] = "N/A",
    -- Fallback to MPD defaults
    local pass = warg and (warg.password or warg[1]) or "\"\""
    local host = warg and (warg.host or warg[2]) or "127.0.0.1"
    local port = warg and (warg.port or warg[3]) or "6600"
    -- Construct MPD client options
    local mpdh = "telnet://"..host..":"..port
    local echo = "echo 'password "..pass.."\nstatus\ncurrentsong\nclose'"
    -- Get data from MPD server
    local f = io.popen(echo.." | curl --connect-timeout 1 -fsm 3 "..mpdh)
    for line in f:lines() do
    for k, v in string.gmatch(line, "([%w]+):[%s](.*)$") do
    if k == "volume" then mpd_state["{"..k.."}"] = v and tonumber(v)
    elseif k == "state" then mpd_state["{"..k.."}"] = helpers.capitalize(v)
    elseif k == "Artist" then mpd_state["{"..k.."}"] = helpers.escape(v)
    elseif k == "Title" then mpd_state["{"..k.."}"] = helpers.escape(v)
    elseif k == "Album" then mpd_state["{"..k.."}"] = helpers.escape(v)
    elseif k == "Genre" then mpd_state["{"..k.."}"] = helpers.escape(v)
    --elseif k == "Name" then mpd_state["{"..k.."}"] = helpers.escape(v)
    --elseif k == "file" then mpd_state["{"..k.."}"] = helpers.escape(v)
    end
    end
    end
    f:close()
    return mpd_state
    end
    return setmetatable(mpd, { __call = function(_, ...) return worker(...) end })
    I'm using Clementine to play the music if that makes a difference.
    Last edited by DisposableHero (2013-11-25 01:12:01)

    Hi,
    If the songs were purchased from itunes, I suggest that you delete the tracks from your itunes library and move to trash (providing you live in a country that permits redownloading). See http://support.apple.com/kb/PH12283.
    Jim

  • [SOLVED] Problem with MPD and ALSA

    Hello, I'm having problems with mpd using alsa output.
    My alsa system works, I can play mp3 using mplayer -ao alsa, and flash plugin plays sound, my user (and also mpd user)is in the audio group.
    But then mpd can't open the alsa device.
    If I tell mpd to autodetect audio, it can't find anything:
    (Running as root to see output, if using /etc/rc.d/mpd start, it just fails)
    output: No "audio_output" defined in config file
    output: Attempt to detect audio output device
    output: Attempting to detect a alsa audio device
    ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
    ALSA lib conf.c:4184:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
    ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
    ALSA lib conf.c:4184:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
    ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
    ALSA lib conf.c:4184:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
    ALSA lib conf.c:4663:(snd_config_expand) Evaluate error: No such file or directory
    ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM default
    alsa: Error opening default ALSA device: No such file or directory
    output: Attempting to detect a oss audio device
    oss: Error opening OSS device "/dev/dsp": No such file or directory
    oss: Error opening OSS device "/dev/sound/dsp": No such file or directory
    output: Attempting to detect a pulse audio device
    mpd: src/output/pulse_output_plugin.c:400: pulse_output_wait_connection: Assertion `po->mainloop != ((void *)0)' failed.
    and if I set up a basic alsa config...
    audio_output {
    type "alsa"
    name "HDA-Intel"
    It starts, but then playing anything:
    % mpc play
    Caspian - La Cerva
    [paused] #2/10 0:00/4:59 (0%)
    volume: n/a repeat: off random: off single: off consume: off
    ERROR: problems opening audio device
    mpc.log output:
    ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
    ALSA lib conf.c:4184:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
    ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
    ALSA lib conf.c:4184:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
    ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
    ALSA lib conf.c:4184:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
    ALSA lib conf.c:4663:(snd_config_expand) Evaluate error: No such file or directory
    ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM default
    Sep 22 10:08 : output: Failed to open "HDA-Intel" [alsa]: Failed to open ALSA device "default": No such file or directory
    I tried with different device and mixer settings and the error is always the same. It can't open alsa device.
    Any Ideas?
    Thank you.
    Last edited by xzakox (2011-09-22 20:04:33)

    Check that mpd is really being run as the mpd user, and that id lists audio for the mpd user. Also post your whole mpd.conf and the output from amixer when running as the user you run mpd as.
    Last edited by Mr.Elendig (2011-09-22 11:43:35)

  • I am trying to import subtitles to Adobe Encore but am getting error messages...

    I am trying to import subtitles from a software called Aegisub to Adobe Encore, but i am receiving this error message:
    The software that is used to decode the media is not available on this system. Installing the correct decoders for the files you are working with may help to correct the problem.
    I have exported the subtitles as an Encore text file but it still won't allow me attach these to my video. I have exported the video from Premiere as an H.264 and that slots into Encore just fine, i just need to use Encore to attach the subtitles.
    Can anyone tell me what i might be doing wrong?
    Thank you.

    Thanks Stan. I think this is probably the answer but seeing as i am doing this at work, it is telling me the action was stopped because it needs to be checked by an administrator.
    If i manage to succeed, i shall let you know. I was trying to import as an asset, wrongly, so this is probably going to be the solution.
    Thank you

  • Having a few issues with several programs (tor / mpd / ccm..)

    Hey everybody,
    I'll arrange this post in 3 parts since I have 3 different kinds of "major" problems or questions .
    1st ( tor - privoxy - polipo - iptables )
    I somehow found this article in your wiki and therefore tried to get tor and privoxy up and running on my desktop machine, as this didn't work as I hoped it would I searched farther in the wiki and installed and configured (as far as I've thought of) polipo and iptables.
    Now I've put all 4 of them in my rc.conf, but somehow some of my http connections don't seem to work in chromium while iptables is running (https works fine though [e.g. archwiki works, youtube doesn't]).
    I did everything as suggested in the polipo wiki entry, meaning I changed my /etc/iptables/iptables.rules to
    *nat
    :PREROUTING ACCEPT [0:0]
    :POSTROUTING ACCEPT [0:0]
    :OUTPUT ACCEPT [0:0]
    -A OUTPUT -p tcp --dport 80 -m owner --uid-owner polipo -j ACCEPT
    -A OUTPUT -p tcp --dport 80 -j REDIRECT --to-ports 8123
    COMMIT
    and removed all proxy settings from my browser - meaning all corresponding flags in the startcommand. I also added "forward / localhost:8123" to the privoxy config and changed the polipo configuration according to the wiki in order to work with tor (the socksParentProxy, socksProxyType part).
    now the next problem - that might probably be related to the first - is that my privoxy doesn't load in daemon mode anymore.
    I think it's since I've installed polipo that privoxy began to refuse starting together with the other daemons
    [usR@machine ~]$ privoxy
    Apr 23 00:20:56.459 b75086c0 Fatal error: can't check configuration file '/home/usR/config': No such file or directory
    this is the output I get when I try to start privoxy in normal user mode from the terminal, when I try starting the daemon manually (/etc/rc.d/privoxy start) it says
    touch: cannot touch `/var/log/privoxy/logfile': Permission denied
    chgrp: cannot access `/var/log/privoxy/logfile': Permission denied
    chmod: cannot access `/var/log/privoxy/logfile': Permission denied
    touch: cannot touch `/var/log/privoxy/jarfile': Permission denied
    chgrp: cannot access `/var/log/privoxy/jarfile': Permission denied
    chmod: cannot access `/var/log/privoxy/jarfile': Permission denied
    Apr 23 00:22:34.490 b76396c0 Fatal error: Cannot setgid(): Insufficient permissions.
    [/var/log/privoxy belongs to privoxy:adm]
    when I do the same in sudo mode it just fails without displaying an error message..
    I added this code to the /etc/rc.d/privoxy executable but I still get this owner conflict error and I have no idea what might be causing it.
    if [ ! -d /var/log/privoxy ]
    then
    mkdir /var/log/privoxy
    touch /var/log/privoxy/errorfile
    touch /var/log/privoxy/logfile
    chown -R privoxy:adm /var/log/privoxy
    fi
    If the order of the daemons in rc.conf is of any real importance here a copy of my setup
    ( @polipo @privoxy @syslog-ng !set-hw-addr !iptables @network netfs hddtemp @crond hal dbus @alsa @slim @tor )
    2nd ( mpd & mpc )
    I'm just wondering if there's a way to output the position of a track in the current playlist combined with a search. since mpc search <type> <query> only prints out full file path and name, but not the position in the playlist so that you could play it with mpc play. I thought of a method to print out the whole list with mpc playlist and pipe this output into a listing program, than grep out the song I'm looking for all that in a little bash script, to replace mpc search.
    Is there an integrated mpc search function that works the way I imageine it and my idea therefore redundant, or if not, is it realizable the way I picture it; does such a listing program exist?
    3rd ( cairo-compmgr )
    Since I'm already posting here I thought I'd mention my older problem which I  still couldn't solve.
    1st) I need to start cairo-compmgr(-git) in sudo mode to be able to edit any settings or activate the gui in any way. how do I automatically start the program on startup in sudo mode? I tried editing ~/.fluxbox/startup & ~/.fluxbox/init, even tried adding it in /etc/rc.d/ and /etc/rc.conf in order to start it as a daemon (lol, noob) but none of that worked properly obviously Any ideas? I don't want to start it manually and "waste" a terminal window for that every time I boot.
    2nd) I can change opacity (transparency) in both versions only per hotkey, and when I do so the settings don't get saved, they even get reset to normal opacity as soon as another window gets selected. does anybody know if there's a config file or any way to save opacity settings for certain windows & programs, so that they automatically get loaded when cairo starts and stay applied until it gets closed?
    [or generally: how do I configure the Plugins? ]
    the last "problem" which occurs only with cairo-compmgr-git:
    When I rightclick the ccm icon in the task bar and disable the composite desktop, the whole program kills itself oO
    In the old version the option "Composite desktop"'s box just got un-checked and I could easily restart ccm by rightclicking the logo again and re-enabling the "Composite desktop" option.
    Any clues on that by any chance?
    I'm using Fluxbox by the way, if that's of any importance for any of the problems. hope I didn't forget any important information if so please remind me
    Would be thankful for any kind of help
    have a nice weekend
    deF
    //edit:
    concernig the tor / privoxy problem, I managed getting all the daemons to start up at bootup again, my iptables situation remains the same though.
    I went through all the config files again and played around with chown and chmod a little and for now the system is stable, everytime I reboot all the daemons start without any problems.
    but when i start chromium with --proxy-server=localhost:8118 now, I get the following error message
    The following error occurred while trying to access http://torcheck.xenobite.eu/index.php?:
    504 Connect to torcheck.xenobite.eu:80 failed: SOCKS error: network unreachable
    Generated Sat, 23 Apr 2011 04:49:08 CEST by Polipo on archzor.localdomain:8118.
    notably with all programs running now, tor, polipo, privoxy (and by now dansguardian as well)..
    I'm tired so I'll go asleep now, maybe I'll find something tomorrow in the logfiles or whatever, so far:
    every kind of help is still very appreciated
    ²
    /var/log/polipo/polipo.log
    Disabling disk cache: No such file or directory
    Couldn't bind: Address already in use
    Couldn't establish listening socket: Address already in use
    Couldn't bind: Address already in use
    Last edited by deF291 (2011-04-23 03:13:48)

    okay I've finally been able to get tor and all the other programs to work according to my plan the only thing that's still making problems is that iptables doesn't work as I want it to, when I start chromium without proxy settings privoxy doesn't seem to forward the information to polipo.. do I need to add another rule to iptables.rules in order for the program to know it has to reroute the information again or how can I get this to work? and is there any way to run rtorrent with proxy support?
    anyway, problem 2 and 3 are still to be solved.
    and does anybody know where i can get a good dansguardian blacklist that was not designed for 6 year old children and for which I don't need to subscribe? I'm still getting these partypoker popups -.-
    //e: with iptables it's the same thing as described in the first post. https works, http doesnt. I get the output "Invalid header received from client." on http sites. still no idea why though.. (and the https-version of torcheck.xenubite says i'm tor unprotected while starting the browser with iptables)
    Last edited by deF291 (2011-04-23 16:16:31)

  • Why do I get subtitles on Netflix movies?  I have switched it off in settings but they still come up when I play a movie

    Why do I get subtitles on Netflix movies?  I have switched it off in settings but the Spanish sub-titles still appear.

    The movie itself has subtitles in it. You won't be able to disable them. They're basically hard coded into the movie.

  • I have purchased many movies on iTunes, now they are adding closed captioning or subtitles to those movies, BUT can not reload them so I can view those subtitles.  I am mentally disabled and need the subtitles.

      Hello,  To start off, I have been a member of iTunes for awhile and have been content with them, until now.  I am legally disabled due to a head injury that happened when I was a teenager.  I am everyday functional, but I do need closed captioning(cc) or subtitles to understand the movie or TV show.  I have purchased lots of movies and TV shows from iTunes.  As any new business does, iTunes has updated itself and added features for their customers. They figure out what the consumers want and like.  I started to realize that iTunes added subtitles for the deaf and disabled, but as I was told by Apple there was nothing I could do about reloading those already purchased movies, to include the cc or subtitles.  Since then, I don't use iTunes and it's a real shame because I love electronics and it's technology.  I wish Apple would work with the consumer.  Why can't I reload the iTunes movies on my PC (Win7) with the subtitles, which they now offer, but didn't when I purchased them?  To me, that is wrong to do that to a customer.  Now that they are including cc/subtitles , everyone is able to enjoy iTunes and not be excluded.   Someone__please explain this to me.  Thank you for reading this.
    Carrie-

    Untill the movie studios agree to allow past downloads of movies outside of the US, you aill always have to have a copy of purchased movies on your computer. If not, you will have to buy them again if you delete them.

  • Mpd - Failed to open mixer for 'My ALSA Device': no such mixer control

    this message is always on start mpd in mpd.log ... after several hours playing mpd crashes (sound is scratching, after stop/pausing or next/previous track is sound again ok)
    I have Xonar D1 music card
    my mpd.conf
    # An example configuration file for MPD
    # See the mpd.conf man page for a more detailed description of each parameter.
    # Files and directories #######################################################
    # This setting controls the top directory which MPD will search to discover the
    # available audio files and add them to the daemon's online database. This
    # setting defaults to the XDG directory, otherwise the music directory will be
    # be disabled and audio files will only be accepted over ipc socket (using
    # file:// protocol) or streaming files over an accepted protocol.
    music_directory "/mnt/hc/music"
    # This setting sets the MPD internal playlist directory. The purpose of this
    # directory is storage for playlists created by MPD. The server will use
    # playlist files not created by the server but only if they are in the MPD
    # format. This setting defaults to playlist saving being disabled.
    playlist_directory "/home/hc/.mpd/playlists"
    # This setting sets the location of the MPD database. This file is used to
    # load the database at server start up and store the database while the
    # server is not up. This setting defaults to disabled which will allow
    # MPD to accept files over ipc socket (using file:// protocol) or streaming
    # files over an accepted protocol.
    db_file "/home/hc/.mpd/mpd.db"
    # These settings are the locations for the daemon log files for the daemon.
    # These logs are great for troubleshooting, depending on your log_level
    # settings.
    # The special value "syslog" makes MPD use the local syslog daemon. This
    # setting defaults to logging to syslog, otherwise logging is disabled.
    log_file "/home/hc/.mpd/mpd.log"
    # This setting sets the location of the file which stores the process ID
    # for use of mpd --kill and some init scripts. This setting is disabled by
    # default and the pid file will not be stored.
    pid_file "/home/hc/.mpd/mpd.pid"
    # This setting sets the location of the file which contains information about
    # most variables to get MPD back into the same general shape it was in before
    # it was brought down. This setting is disabled by default and the server
    # state will be reset on server start up.
    state_file "/home/hc/.mpd/mpdstate"
    # The location of the sticker database. This is a database which
    # manages dynamic information attached to songs.
    #sticker_file "~/.mpd/sticker.sql"
    # General music daemon options ################################################
    # This setting specifies the user that MPD will run as. MPD should never run as
    # root and you may use this setting to make MPD change its user ID after
    # initialization. This setting is disabled by default and MPD is run as the
    # current user.
    #user "hc"
    # This setting specifies the group that MPD will run as. If not specified
    # primary group of user specified with "user" setting will be used (if set).
    # This is useful if MPD needs to be a member of group such as "audio" to
    # have permission to use sound card.
    #group "audio"
    # This setting sets the address for the daemon to listen on. Careful attention
    # should be paid if this is assigned to anything other then the default, any.
    # This setting can deny access to control of the daemon.
    # For network
    bind_to_address "localhost"
    # And for Unix Socket
    #bind_to_address "~/.mpd/socket"
    # This setting is the TCP port that is desired for the daemon to get assigned
    # to.
    port "6600"
    # This setting controls the type of information which is logged. Available
    # setting arguments are "default", "secure" or "verbose". The "verbose" setting
    # argument is recommended for troubleshooting, though can quickly stretch
    # available resources on limited hardware storage.
    #log_level "default"
    # If you have a problem with your MP3s ending abruptly it is recommended that
    # you set this argument to "no" to attempt to fix the problem. If this solves
    # the problem, it is highly recommended to fix the MP3 files with vbrfix
    # (available from <http://www.willwap.co.uk/Programs/vbrfix.php>), at which
    # point gapless MP3 playback can be enabled.
    #gapless_mp3_playback "yes"
    # This setting enables MPD to create playlists in a format usable by other
    # music players.
    #save_absolute_paths_in_playlists "no"
    # This setting defines a list of tag types that will be extracted during the
    # audio file discovery process. Optionally, 'comment' can be added to this
    # list.
    #metadata_to_use "artist,album,title,track,name,genre,date,composer,performer,disc"
    # This setting enables automatic update of MPD's database when files in
    # music_directory are changed.
    #auto_update "yes"
    # Limit the depth of the directories being watched, 0 means only watch
    # the music directory itself. There is no limit by default.
    #auto_update_depth "3"
    # Symbolic link behavior ######################################################
    # If this setting is set to "yes", MPD will discover audio files by following
    # symbolic links outside of the configured music_directory.
    #follow_outside_symlinks "yes"
    # If this setting is set to "yes", MPD will discover audio files by following
    # symbolic links inside of the configured music_directory.
    #follow_inside_symlinks "yes"
    # Zeroconf / Avahi Service Discovery ##########################################
    # If this setting is set to "yes", service information will be published with
    # Zeroconf / Avahi.
    #zeroconf_enabled "yes"
    # The argument to this setting will be the Zeroconf / Avahi unique name for
    # this MPD server on the network.
    #zeroconf_name "Music Player"
    # Permissions #################################################################
    # If this setting is set, MPD will require password authorization. The password
    # can setting can be specified multiple times for different password profiles.
    #password "password@read,add,control,admin"
    # This setting specifies the permissions a user has who has not yet logged in.
    #default_permissions "read,add,control,admin"
    # Input #######################################################################
    input {
    plugin "curl"
    # proxy "proxy.isp.com:8080"
    # proxy_user "user"
    # proxy_password "password"
    # Audio Output ################################################################
    # MPD supports various audio output types, as well as playing through multiple
    # audio outputs at the same time, through multiple audio_output settings
    # blocks. Setting this block is optional, though the server will only attempt
    # autodetection for one sound card.
    # See <http://mpd.wikia.com/wiki/Configuration#Audio_Outputs> for examples of
    # other audio outputs.
    # An example of an ALSA output:
    audio_output {
    type "alsa"
    name "My ALSA Device"
    ## device "hw:0,0" # optional
    ## format "44100:16:2" # optional
    ## mixer_type "hardware" # optional
    ## mixer_device "default" # optional
    ## mixer_control "PCM" # optional
    ## mixer_index "0" # optional
    # An example of an OSS output:
    #audio_output {
    # type "oss"
    # name "My OSS Device"
    ## device "/dev/dsp" # optional
    ## format "44100:16:2" # optional
    ## mixer_type "hardware" # optional
    ## mixer_device "/dev/mixer" # optional
    ## mixer_control "PCM" # optional
    # An example of a shout output (for streaming to Icecast):
    #audio_output {
    # type "shout"
    # encoding "ogg" # optional
    # name "My Shout Stream"
    # host "localhost"
    # port "8000"
    # mount "/mpd.ogg"
    # password "hackme"
    # quality "5.0"
    # bitrate "128"
    # format "44100:16:1"
    ## protocol "icecast2" # optional
    ## user "source" # optional
    ## description "My Stream Description" # optional
    ## genre "jazz" # optional
    ## public "no" # optional
    ## timeout "2" # optional
    ## mixer_type "software" # optional
    # An example of a recorder output:
    #audio_output {
    # type "recorder"
    # name "My recorder"
    # encoder "vorbis" # optional, vorbis or lame
    # path "/var/lib/mpd/recorder/mpd.ogg"
    ## quality "5.0" # do not define if bitrate is defined
    # bitrate "128" # do not define if quality is defined
    # format "44100:16:1"
    # An example of a httpd output (built-in HTTP streaming server):
    #audio_output {
    # type "httpd"
    # name "My HTTP Stream"
    # encoder "vorbis" # optional, vorbis or lame
    # port "8000"
    # bind_to_address "0.0.0.0" # optional, IPv4 or IPv6
    ## quality "5.0" # do not define if bitrate is defined
    # bitrate "128" # do not define if quality is defined
    # format "44100:16:1"
    # max_clients "0" # optional 0=no limit
    # An example of a pulseaudio output (streaming to a remote pulseaudio server)
    #audio_output {
    # type "pulse"
    # name "My Pulse Output"
    ## server "remote_server" # optional
    ## sink "remote_server_sink" # optional
    ## Example "pipe" output:
    #audio_output {
    # type "pipe"
    # name "my pipe"
    # command "aplay -f cd 2>/dev/null"
    ## Or if you're want to use AudioCompress
    # command "AudioCompress -m | aplay -f cd 2>/dev/null"
    ## Or to send raw PCM stream through PCM:
    # command "nc example.org 8765"
    # format "44100:16:2"
    ## An example of a null output (for no audio output):
    #audio_output {
    # type "null"
    # name "My Null Output"
    # mixer_type "none" # optional
    # This setting will change all decoded audio to be converted to the specified
    # format before being passed to the audio outputs. By default, this setting is
    # disabled.
    #audio_output_format "44100:16:2"
    # If MPD has been compiled with libsamplerate support, this setting specifies
    # the sample rate converter to use. Possible values can be found in the
    # mpd.conf man page or the libsamplerate documentation. By default, this is
    # setting is disabled.
    #samplerate_converter "Fastest Sinc Interpolator"
    # Normalization automatic volume adjustments ##################################
    # This setting specifies the type of ReplayGain to use. This setting can have
    # the argument "off", "album" or "track". See <http://www.replaygain.org>
    # for more details. This setting is off by default.
    #replaygain "album"
    # This setting sets the pre-amp used for files that have ReplayGain tags. By
    # default this setting is disabled.
    #replaygain_preamp "0"
    # This setting enables on-the-fly normalization volume adjustment. This will
    # result in the volume of all playing audio to be adjusted so the output has
    # equal "loudness". This setting is disabled by default.
    #volume_normalization "yes"
    # MPD Internal Buffering ######################################################
    # This setting adjusts the size of internal decoded audio buffering. Changing
    # this may have undesired effects. Don't change this if you don't know what you
    # are doing.
    #audio_buffer_size "2048"
    # This setting controls the percentage of the buffer which is filled before
    # beginning to play. Increasing this reduces the chance of audio file skipping,
    # at the cost of increased time prior to audio playback.
    #buffer_before_play "10%"
    # Resource Limitations ########################################################
    # These settings are various limitations to prevent MPD from using too many
    # resources. Generally, these settings should be minimized to prevent security
    # risks, depending on the operating resources.
    #connection_timeout "60"
    #max_connections "10"
    #max_playlist_length "16384"
    #max_command_list_size "2048"
    #max_output_buffer_size "8192"
    # Character Encoding ##########################################################
    # If file or directory names do not display correctly for your locale then you
    # may need to modify this setting.
    #filesystem_charset "UTF-8"
    # This setting controls the encoding that ID3v1 tags should be converted from.
    #id3v1_encoding "ISO-8859-1"
    # SIDPlay decoder #############################################################
    # songlength_database:
    # Location of your songlengths file, as distributed with the HVSC.
    # The sidplay plugin checks this for matching MD5 fingerprints.
    # See http://www.c64.org/HVSC/DOCUMENTS/Songlengths.faq
    # default_songlength:
    # This is the default playing time in seconds for songs not in the
    # songlength database, or in case you're not using a database.
    # A value of 0 means play indefinitely.
    # filter:
    # Turns the SID filter emulation on or off.
    #decoder {
    # plugin "sidplay"
    # songlength_database "/media/C64Music/DOCUMENTS/Songlengths.txt"
    # default_songlength "120"
    # filter "true"
    Last edited by xhc (2012-05-27 04:47:19)

    aplay -l
    **** List of PLAYBACK Hardware Devices ****
    card 0: NVidia [HDA NVidia], device 3: NVIDIA HDMI [NVIDIA HDMI]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    Which correspondents fine with the
    device "hw:0,3"
    in my mpd.conf alsa section.
    Also sound worked fine withh this config before I started installing ffmpeg-svn and alikes
    hokasch:
    I tried changing the mixer to "Master" but that did not change much.

  • [SOLVED] Mpd and sonata doesn't seem to work

    Hi guys!
    I 'm facing with an issue . I can't seem to configure mpd correctly to run it with sonata .
    I've followed the alternative setup from archwiki and this is my config file .
    # An example configuration file for MPD
    # See the mpd.conf man page for a more detailed description of each parameter.
    # Files and directories #######################################################
    # This setting controls the top directory which MPD will search to discover the
    # available audio files and add them to the daemon's online database. This
    # setting defaults to the XDG directory, otherwise the music directory will be
    # be disabled and audio files will only be accepted over ipc socket (using
    # file:// protocol) or streaming files over an accepted protocol.
    music_directory "/home/andreas/Downloads/Torrents"
    # This setting sets the MPD internal playlist directory. The purpose of this
    # directory is storage for playlists created by MPD. The server will use
    # playlist files not created by the server but only if they are in the MPD
    # format. This setting defaults to playlist saving being disabled.
    playlist_directory "/home/andreas/.mpd/playlists"
    # This setting sets the location of the MPD database. This file is used to
    # load the database at server start up and store the database while the
    # server is not up. This setting defaults to disabled which will allow
    # MPD to accept files over ipc socket (using file:// protocol) or streaming
    # files over an accepted protocol.
    db_file "/home/andreas/.mpd/mpd.db"
    # These settings are the locations for the daemon log files for the daemon.
    # These logs are great for troubleshooting, depending on your log_level
    # settings.
    # The special value "syslog" makes MPD use the local syslog daemon. This
    # setting defaults to logging to syslog, otherwise logging is disabled.
    log_file "/home/andreas/.mpd/mpd.log"
    # This setting sets the location of the file which stores the process ID
    # for use of mpd --kill and some init scripts. This setting is disabled by
    # default and the pid file will not be stored.
    pid_file "/home/andreas/.mpd/mpd.pid"
    # This setting sets the location of the file which contains information about
    # most variables to get MPD back into the same general shape it was in before
    # it was brought down. This setting is disabled by default and the server
    # state will be reset on server start up.
    state_file "/home/andreas/.mpd/mpdstate"
    # General music daemon options ################################################
    # This setting specifies the user that MPD will run as. MPD should never run as
    # root and you may use this setting to make MPD change its user ID after
    # initialization. This setting is disabled by default and MPD is run as the
    # current user.
    user "andreas"
    # This setting sets the address for the daemon to listen on. Careful attention
    # should be paid if this is assigned to anything other then the default, any.
    # This setting can deny access to control of the daemon.
    # For network
    #bind_to_address "any"
    # And for Unix Socket
    #bind_to_address "~/.mpd/socket"
    # This setting is the TCP port that is desired for the daemon to get assigned
    # to.
    #port "6600"
    # This setting controls the type of information which is logged. Available
    # setting arguments are "default", "secure" or "verbose". The "verbose" setting
    # argument is recommended for troubleshooting, though can quickly stretch
    # available resources on limited hardware storage.
    #log_level "default"
    # If you have a problem with your MP3s ending abruptly it is recommended that
    # you set this argument to "no" to attempt to fix the problem. If this solves
    # the problem, it is highly recommended to fix the MP3 files with vbrfix
    # (available from <http://www.willwap.co.uk/Programs/vbrfix.php>), at which
    # point gapless MP3 playback can be enabled.
    #gapless_mp3_playback "yes"
    # This setting enables MPD to create playlists in a format usable by other
    # music players.
    #save_absolute_paths_in_playlists "no"
    # This setting defines a list of tag types that will be extracted during the
    # audio file discovery process. Optionally, 'comment' can be added to this
    # list.
    #metadata_to_use "artist,album,title,track,name,genre,date,composer,performer,disc"
    # Symbolic link behavior ######################################################
    # If this setting is set to "yes", MPD will discover audio files by following
    # symbolic links outside of the configured music_directory.
    #follow_outside_symlinks "yes"
    # If this setting is set to "yes", MPD will discover audio files by following
    # symbolic links inside of the configured music_directory.
    #follow_inside_symlinks "yes"
    # Zeroconf / Avahi Service Discovery ##########################################
    # If this setting is set to "yes", service information will be published with
    # Zeroconf / Avahi.
    #zeroconf_enabled "yes"
    # The argument to this setting will be the Zeroconf / Avahi unique name for
    # this MPD server on the network.
    #zeroconf_name "Music Player"
    # Permissions #################################################################
    # If this setting is set, MPD will require password authorization. The password
    # can setting can be specified multiple times for different password profiles.
    #password "password@read,add,control,admin"
    # This setting specifies the permissions a user has who has not yet logged in.
    #default_permissions "read,add,control,admin"
    # Input #######################################################################
    input {
    plugin "curl"
    # proxy "proxy.isp.com:8080"
    # proxy_user "user"
    # proxy_password "password"
    # Audio Output ################################################################
    # MPD supports various audio output types, as well as playing through multiple
    # audio outputs at the same time, through multiple audio_output settings
    # blocks. Setting this block is optional, though the server will only attempt
    # autodetection for one sound card.
    # See <http://mpd.wikia.com/wiki/Configuration#Audio_Outputs> for examples of
    # other audio outputs.
    # An example of an ALSA output:
    #audio_output {
    # type "alsa"
    # name "My ALSA Device"
    ## device "hw:0,0" # optional
    ## format "44100:16:2" # optional
    ## mixer_device "default" # optional
    ## mixer_control "PCM" # optional
    ## mixer_index "0" # optional
    # An example of an OSS output:
    #audio_output {
    # type "oss"
    # name "My OSS Device"
    ## device "/dev/dsp" # optional
    ## format "44100:16:2" # optional
    ## mixer_device "/dev/mixer" # optional
    ## mixer_control "PCM" # optional
    # An example of a shout output (for streaming to Icecast):
    #audio_output {
    # type "shout"
    # encoding "ogg" # optional
    # name "My Shout Stream"
    # host "localhost"
    # port "8000"
    # mount "/mpd.ogg"
    # password "hackme"
    # quality "5.0"
    # bitrate "128"
    # format "44100:16:1"
    ## protocol "icecast2" # optional
    ## user "source" # optional
    ## description "My Stream Description" # optional
    ## genre "jazz" # optional
    ## public "no" # optional
    ## timeout "2" # optional
    # An example of a httpd output (built-in HTTP streaming server):
    #audio_output {
    # type "httpd"
    # name "My HTTP Stream"
    # encoder "vorbis" # optional, vorbis or lame
    # port "8000"
    ## quality "5.0" # do not define if bitrate is defined
    # bitrate "128" # do not define if quality is defined
    # format "44100:16:1"
    # An example of a pulseaudio output (streaming to a remote pulseaudio server)
    #audio_output {
    # type "pulse"
    # name "My Pulse Output"
    ## server "remote_server" # optional
    ## sink "remote_server_sink" # optional
    ## Example "pipe" output:
    #audio_output {
    # type "pipe"
    # name "my pipe"
    # command "aplay -f cd 2>/dev/null"
    ## Or if you're want to use AudioCompress
    # command "AudioCompress -m | aplay -f cd 2>/dev/null"
    ## Or to send raw PCM stream through PCM:
    # command "nc example.org 8765"
    # format "44100:16:2"
    ## An example of a null output (for no audio output):
    #audio_output {
    # type "null"
    # name "My Null Output"
    # This setting will change all decoded audio to be converted to the specified
    # format before being passed to the audio outputs. By default, this setting is
    # disabled.
    #audio_output_format "44100:16:2"
    # If MPD has been compiled with libsamplerate support, this setting specifies
    # the sample rate converter to use. Possible values can be found in the
    # mpd.conf man page or the libsamplerate documentation. By default, this is
    # setting is disabled.
    #samplerate_converter "Fastest Sinc Interpolator"
    # Volume control mixer ########################################################
    # These are the global volume control settings. By default, this setting will
    # be detected to the available audio output device, with preference going to
    # hardware mixing. Hardware and software mixers for individual audio_output
    # sections cannot yet be mixed.
    # An example for controlling an ALSA, OSS or Pulseaudio mixer; If this
    # setting is used other sound applications will be affected by the volume
    # being controlled by MPD.
    #mixer_type "hardware"
    # An example for controlling all mixers through software. This will control
    # all controls, even if the mixer is not supported by the device and will not
    # affect any other sound producing applications.
    #mixer_type "software"
    # This example will not allow MPD to touch the mixer at all and will disable
    # all volume controls.
    #mixer_type "disabled"
    # Normalization automatic volume adjustments ##################################
    # This setting specifies the type of ReplayGain to use. This setting can have
    # the argument "album" or "track". See <http://www.replaygain.org> for more
    # details. This setting is disabled by default.
    #replaygain "album"
    # This setting sets the pre-amp used for files that have ReplayGain tags. By
    # default this setting is disabled.
    #replaygain_preamp "0"
    # This setting enables on-the-fly normalization volume adjustment. This will
    # result in the volume of all playing audio to be adjusted so the output has
    # equal "loudness". This setting is disabled by default.
    #volume_normalization "no"
    # MPD Internal Buffering ######################################################
    # This setting adjusts the size of internal decoded audio buffering. Changing
    # this may have undesired effects. Don't change this if you don't know what you
    # are doing.
    #audio_buffer_size "2048"
    # This setting controls the percentage of the buffer which is filled before
    # beginning to play. Increasing this reduces the chance of audio file skipping,
    # at the cost of increased time prior to audio playback.
    #buffer_before_play "10%"
    # Resource Limitations ########################################################
    # These settings are various limitations to prevent MPD from using too many
    # resources. Generally, these settings should be minimized to prevent security
    # risks, depending on the operating resources.
    #connection_timeout "60"
    #max_connections "10"
    #max_playlist_length "16384"
    #max_command_list_size "2048"
    #max_output_buffer_size "8192"
    # Character Encoding ##########################################################
    # If file or directory names do not display correctly for your locale then you
    # may need to modify this setting. After modification of this setting mpd
    # --create-db must be run to change the database.
    #filesystem_charset "UTF-8"
    # This setting controls the encoding that ID3v1 tags should be converted from.
    #id3v1_encoding "ISO-8859-1"
    All the files required are in my /home/andreas/.mpd/ directory
    config
    mpd.db
    mpd.error
    mpd.log
    mpd.pid
    mpdstate
    playlists
    I've also added to my .xinitrc file
    mpd /home/andreas/.mpd/config
    I 'm sure i've done something wrong but don't know what it is . If anyone could help me out i would be grateful
    THanks a for all your help!
    Last edited by shak (2010-04-19 23:08:09)

    shak wrote:
    I've followed the first method with the mpd daemon and everything worked fine .
    THanks for all your help everyone !
    The add of MPD : ALL to hosts.allow seems to solved it .
    Thanks again!
    Nice.
    Please mark threads as [SOLVED] when they are. You can do so by editing the opening post.

  • How can I export speech analysis text with imbedded timecodes for the creation of subtitle files?

    I found a script that allows you to export all your text layers with time codes as a .srt subtitle file. However, instead of multiple text layers, I have only one: essentially the meta data from Premiere speech analysis that with the aid of a different script, is being used at a "subtitle layer". Essentially, I'm trying to use this data to create a .srt file so I can create actual subtitles, not this hybrid animation/text layer.
    Here is the script I used to export the text layer to .srt:
    Subtitle Exporter v01  
    Script by Philipp Grolle
    www.display-artists.de
    Instructions:
    Select all the Text Layers you want to export, run the script, and save the file as .srt
    Attention: The Script has not been debugged or testet. Try it on your own risk!
    // get all the selected Layers
    var theComp = app.project.activeItem;
    var alleLayer = theComp.selectedLayers;
    // count how many layers are selected
    var anzahlLayer = alleLayer.length;
    // Enable the line below if you want to change the order of your text (ascending / descending)
    /* alleLayer.reverse(); */
       // prompt to save file
       var theFile = File.saveDialog("Save the text file.", "untitled.txt", "TEXT txt");
       // if user didn't cancel...
       if (theFile != null) {
          // open file for "w"riting,
          theFile.open("w","TEXT","????");
             // Do it for all the selected Layers
             for (x = 0; x < anzahlLayer; x++)
                 // get In- and Outpoint of the current Layer and convert to timecode (00:00:00:00)
                var timecodeIn = timeToCurrentFormat(alleLayer[x].inPoint, 25);
                var timecodeOut = timeToCurrentFormat(alleLayer[x].outPoint, 25);
               // split the value of the inPoint; converting last 2 characters  (frames) to milliseconds, and finally join it again with comma instead of colon
                var str_in= timecodeIn;
                var timeCodeAnfang_in=str_in.slice(0,8);
                var timeCodeEnde_in=str_in.slice(9,11);
                var millisek_in = timeCodeEnde_in*40; // 1000 milliseconds divided by 25 fps = 40
                var zusammen_in = timeCodeAnfang_in +"," + millisek_in;
                //split the value of the outPoint; converting last 2 characters  (frames) to milliseconds, and finally join it again with comma instead of colon
                var str_out= timecodeOut;
                var timeCodeAnfang_out=str_out.slice(0,8);
                var timeCodeEnde_out=str_out.slice(9,11);
                var millisek_out = timeCodeEnde_out*40;
                var zusammen_out = timeCodeAnfang_out +"," + millisek_out;
                //counter for the number above the timecode (in the results)
                var zaehler = x+1;
                //writing the results to file
                theFile.write(zaehler);
                theFile.write("\r\n");
                theFile.write(zusammen_in);
                theFile.write(" --> ");
                theFile.write(zusammen_out);
                theFile.write("\r\n");
                theFile.write(alleLayer[x].property("Source Text").value);          
                theFile.write("\r\n\n");
          // close the text file
          theFile.close();
          // open text file in default app
          theFile.execute();
    As I am only using one text layer, it shows me only one continious subtitle in the .srt file. Does anyone have any suggestions?

    I should add that I myself am not particularly familiar with scripts or scripting, I'm merely trying all possible solutions to my problem and this seems to be a good approach. Any help would be much appreciated.

  • How to load external subtitles in mov files (in QT)?

    Hi everybody,
    When I play an avi file, QT is able to load external subtitles (I've Perian installed). However, this week, I downloaded a file from apple, saved it as a mov file and created a subtitle file for it. Then, I put both files in the same directory and used the same name for them (one .mov and the other .srt). When I play it (with QT), the subtitle file doesn't load. Does anybody know what is happening? Is is a problem with mov files? Or is it a problem with files downloaded from apple (some kind of lock?!)?
    Thanks

    cowpox wrote:
    Hi everybody,
    When I play an avi file, QT is able to load external subtitles (I've Perian installed). However, this week, I downloaded a file from apple, saved it as a mov file and created a subtitle file for it. Then, I put both files in the same directory and used the same name for them (one .mov and the other .srt). When I play it (with QT), the subtitle file doesn't load. Does anybody know what is happening? Is is a problem with mov files? Or is it a problem with files downloaded from apple (some kind of lock?!)?
    Thanks
    You might do better reposting this in the QuickTime forum here:
    http://discussions.apple.com/forum.jspa?forumID=932

  • Different subtitles in one clip

    I'm trying to add subtitles to a movie in iMovie9. I found the text-tool to do it, but I fail to break the subtitles into segments so that they change every 10 secs or so. Can anyone help?

    I would recommend breaking your video clip into segments that last as long as you want the subtitle to run.
    To do this, select the 10 seconds (or so) of the clip in your project (so that the yellow border is around the selection) and right-click/Split Clip. Repeat for all the clips you need. Then add the titles to these clips.

Maybe you are looking for

  • OS X Mavericks says download but won't let me

    I am trying to download a version of Final Cut Pro and Aperature which needs OS X Mavericks upgrade.... it shows in my account but won't install or download the upgrade..... why and what can I do to get this fixed. Thanks!

  • 8600 and ATI Rage 128

    Hello all. I have an 8600/200 with a Sonnet G3 400 upgrade card running OS 9.1. I installed an ATI Rage 128 video card from a PM G3 (blue and white, I think). It works OK but when I'm surfing the web and I scroll up/down the page doesn't scroll smoot

  • Oracle 9i installation

    Installed Oracle 9i Database. All went well but now the database did not start. If the database instance is called Trox, what would the commands be to test that the database exists and what commands would be used to start the database? How do you set

  • How to clear import queue?

    Hi All, we are using WebAS 6.20 and we have a huge number of transports in our landscape. The import queue of our systems therefore is quite big (several thousand transports) and slow. I found an option "Delete Imported Requests". But most of the tra

  • How to delay background processing

    Hi, I am writing a submit statement in the Delivery Order exit USEREXIT_SAVE_DOCUMENT_PREPARE. It triggers on saving the Delivery. The submit statement calls my Z Program in background (Im using Job Open and Job Close). My requirement is that once th