How do I specify a DVD's title and chapter on the vlc command line? - vlc

I have an ISO file ripped from cinema DVD with menus.
I want to know how to play the ripped movie ISO file with VLC.app from main contents not from menu.
According to help manual, when I start to play VLC from certain chapter, I can use command line like below.
vlc dvd://[device][#raw_device][#[title][:[chapter][:angle]]]
Such that, I tried below. But error occured.
vlc /Path_to_file/Platoon.ISO ://#1:2
vlc /Path_to_file/Platoon.ISO
Actually this latter simple command worked, but the title menu begins which I didn't want.
Any help will be appreciated.

A couple of issues there. Firstly, the man page actually specifies:
dvd://[<device>][#<raw device>][#[<title>][:[<chapter>][:<angle>]]]
ie. title/chapter specification is separated by a #, not #.
Secondly, this is all one argument, without spaces. So, for your case (using title 1, chapter 2), you would want something like:
vlc dvd:///path/to/dvd.iso#1:2

Related

How to get .mpd file for a youtube video

I am trying to use DASH using ExoPlayer in android,
I need to get url for mpd file.
Can I get URL for .mpd file for any YouTube video?
How to find URL .mpd file for a particular YouTube video ?
As I commented out, you could use the python library extract-youtube-mpd for that. But it requires python and Linux.
Through it's code, I've found these are the steps it follows plus extra ones if you like to create your own automation/extension:
1) Right click in page and select to show page's source code
2) search the HTML file (the one that will be shown) for "dashmpd"
3) extract the text within quotes, as in (e.g.):
"dashmpd":"https://manifest.googlevideo.com/api/manifest/dash/ ... "_
4) replace "/" for "/" if needed (i.e. if not using regex). This will give you a source for a XML file
5) parse the XML, through periods, adaptation sets and representation settings (this is when it gets complicated)
Since I'm also in the need for this, I'll probably release a node module for this.. Will update here

"ESC" Character in test.log when viewed in Sublime

Whenever I open up test.log from any rails application I get the following screenshot in Sublime. I've tried messing around with encodings, but couldn't find anything that fixed it.
Any ideas on what is going on?
These are control characters used to add colour to the log files. Sublime text apparently doesn't support this.
If you're mostly going to be viewing log files with editors that don't understand these colour codes you can turn this off with the rails config.colorize_logging setting
There's a Sublime package to turn these ANSI/vt100 escape sequences into colored text -- SublimeANSI
(use Package Control and look for ANSIescape) -- this adds an "ANSI" file type that will display your log file in glorious color. (The file is displayed read-only but you can change the type back to "Plain Text" if you want to edit it.)
Backing up Tom Hundt's answer... SublimeANSI is the way to go. Compare these before/after shots:
Sublime's default rendering of colorized Rails log output:
Now change the syntax highlighting to ANSI:
Now, marvel in the majesty of SumblimeANSI's rendering:
Learn more about SublimeANSI package at: https://github.com/aziz/SublimeANSI
Note: To install it in Package Manager, search for "ANSIescape" ... NOT "SublimeANSI". This confused me for a hot minute.

Open video file by clicking on cell

I have a spreadsheet that has a list of video filenames in one column.
I'd like for a video player to open when I click on a filename.
Is there a simple way to do this?
There's a hack that lets you call external applications using the HYPERLINK command:
=HYPERLINK("mplayer", "foo")
This opens up mplayer (or whatever you tell it to). However, if I try to pass a command-line argument to the executable using:
=HYPERLINK("mplayer ~/Desktop/foo.mpeg", "foo")
then I get the error: "OpenOffice could not find a web browser on your system". It's probably attempting to parse the first argument and tripping over a space.
Does anybody know of a way I can achieve what I want? Perhaps there's a way to do this with macros?
The list of filenames is auto-generated (hundreds) so I don't want to do anything manual.
You might try using %20 instead of the space, though I don't expect it to work.
Does your player have anything like a play-list provision? It seems that it would be more direct to compile a play list in whatever format that is, than attempt to force HYPERLINK( ) to work here.
The other possibiity is to see if there is a URL scheme registered on your system that will invoke the player, rather than a command line. Or just use the file: scheme and see if you can launch the mpeg that way. You may have to monkey with the file path to get it right. You may also have to %-escape the '~' if you have any of those.

Latex \tableofcontents command always shows blank Contents on first build

When I generate a .pdf file from a .tex file using pdflatex, only the "Contents" title is shown with no actual TOC. If I run pdflatex my.tex once more, it generates the TOC just fine. I can reproduce this simply by removing the .toc file. What I think is happening is that my .toc file is being generated too late -- so how can I make the TOC work first time? Should I be generating the TOC beforehand without using pdflatex?
This is normal. LaTeX document need several compilations to reach a stable state. Use rubber -d my to compile the right number of times (rubber comes as a package on many linux distros).
I might be mistaken, but I think, that this is the default behaviour. I assume, you also won't find correct cross references (footnotes, end notes, literature) after the first run of pdflatex.
The point is, that LaTeX needs the extra rounds to resolve the references pointing inside the document, to get numbering and page numbers right.
I experienced the same problem with the editor Latexian. What solved the problem was changing the preferences. I changed "Number of typesetter runs at end" to 3, instead of the default 1. Then I added the "Refresh" button to the toolbar and tried refreshing and it worked.

How to Print Rails Source Code?

I'd like to read the Rails 3 source code on printed paper (and preferably in color).
For example, xv6 did a nice job printing their code. It even has line numbers and an index. The only thing I would like to add is syntax highlighting.
Anyone know how any of this is possible?
Here are two possibilities I found:
1. The Listings Package (could this also generate other formats besides PDF, like HTML?)
ftp://ftp.tex.ac.uk/tex-archive/macros/latex/contrib/listings/listings.pdf o
2. Highlight (does it do indexing?)
http://www.andre-simon.de/
We could even add a rake task, print, that generates an up-to-date PDF.
I recomend you use highlight to turn the code into LaTeX and then use Listings to make it into a PDF, then print!

Resources