VCS update 2007-09-04: Back from pause

Sorry for the long break, I had some things to delve with in off-line life, plus
a web server change. I hope to restart development soon and look into the list of reported and known bugs.

Also, I should be expanding online documentation. Hopefully.

In the meantime I'm updating the list of known bugs with the ones I hadn't yet added.

VCS update 2007-05-12: 1.0.7a released

The new version is out. I've noticed some things that didn't work as expected (or as I assumed before, like command-line overrides –although as usual I guess few or no people uses them anyway :p– I'll have to look at them but have not much time anymore so I'm releasing as is.

What's new in 1.0.7a

  • Decimal point precission
    Finally you can set an exact frame to capture, define the exact boundaries of the capture or set an interval like 30 seconds and 250 milliseconds.

    The new timecode format accepts a point now, e.g. 2m.2 (2 minutes and 0.2 seconds) or 15.333 (15 seconds and 333 milliseconds).

    As a side effect, the timestamps now include centiseconds.

  • Soft Shadows
    A subtle yet nice improvement, the captures have now "real" shadows:
    Upper: Hard shadows, Lower: Soft shadows
    Upper half has hard shadows (version 1.0.6b and below), lower half has soft shadows (1.0.7a).
  • Funky modes.

    You can consider this feature in alpha stage, it has many rough edges still.

    Worth noting also is that funky modes are random, so the result might look great or be plain dull.

    In short the funky modes are like the normal vcs mode but less useful 😛. They are meant to provide some nicer output modes. Well in fact they're a toy of mine, but don't tell anyone.

    Probably the most interesting bit is the polaroid mode, based on a feature built in newer versions of ImageMagick (although I'm not actually using it), here's a sample:

    polaroid mode sample

    As you can see, it basically adds a frame around each capture, rotates and overlaps them semi-randomly.

    Although not useful for common video previews it might be nice for family videos and such 🙂

    The list of funky modes in the current version is:

    Description Sample
    rotate
    Rotates each capture randomly.
    rotate sample
    overlap
    Overlaps captures randomly.
    overlap sample
    photoframe
    Adds a frame to each capture.
    photoframe sample
    polaroid
    See above. A combination of rotate,
    photoframe and overlap.
    polaroid sample
    film
    This one is specially rough, currently. Adds a filmstrip effect
    to captures.
    film mode sample
    random

    This is basically a way to discover nice fonts/colours combinations. Randomizes
    font and colours selection. The output is rarely usable.

    (no sample)
  • Support for non-latin file names

    Honestly, I don't know how well this works or doesn't because I can't speak any such language. What this feature does is switching the font to an alternate one (by default Kochi Mincho) just to print the filename. In theory this should work for Hiragana and Katakana (plus latin scripts) and (partially?) for the Hangul and Cyrillic scripts (although the default font in my system already prints Cyrillic).
    Samples. These are vcs runs against a file named "Roman – 日本語 – 漢語 – Русский – 한글.avi"
    (if your browser can't display the name correctly, see this image):

    non-latin scripts sample

    The first row uses the default font (helvetica), only latin and cyrillic characters are drawn.
    The second row uses the alternate font (by default Kochi Mincho), only the korean text is ignored.

    If you can help with this I'd appreciate it 🙂

  • Workaround for ffmpeg arguments order.

    A known issue is that depending on the order of arguments passed to ffmpeg, with some input files the capture will stall or fail. If vcs seems to get stuck on the first capture for too long, try using -Wo. On some files in works, on others it doesn't. Some files simply make ffmpeg suffer a lot and eventually it does the capture but taking a lot more time.

    Matroska files (.mkv) seem to be specially tough, most of my samples won't work.
    Can't help more here right now.

  • End offset
    My personal impression is that most often it is desirable not to capture from the very end of the video. I'm not talking about spoilers, what I mean is that when vcs is run over a full film, often the last capture is simply a black (or blank) frame.
    Now by default a minute from the end is ignored, hence in those situations the last capture most often will be of the credits.

    This isn't practical for a lot of videos so you can change or disable the offset by using -E or --end_offset. By default it will be disabled when the video runs for less than the default offset. Use -E 0 to disable the offset, or override DEFAULT_END_OFFSET to change/disable the default.

    As I haven't written the overrides documentation yet, here's what you can do to disable the "end offset" feature forever:
    $ echo 'DEFAULT_END_OFFSET=0' >> ~/.vcs.conf

    If later you want to use the end offset use the -E option normally.

VCS update 2007-04-21: Docs coming, highlights, extended mode

I've started writing some documentation, will be updating it shortly.

See the documentation for details on the modes added in 1.0.5b (extended mode and highlights).

Here's a sample using both:

Highlight and Extended mode sample

The first row (pale golden background) are the highlights (-l)
while the smaller thumbnails are the extended mode (-e).

It's a variation of the sample at the home, the
command used was:
$ vcs -t 28m24 -n6 -e -l20m25 -l22 -a 16/9 -H 540 mariposaHD.S01E05.1080p.en.wmv

Valor de retorno en el prompt

Este código sirve para indicar si el último comando ha tenido éxito o no, de manera que siempre esté visible en el propio prompt, es ideal para depurar código entre otras cosas.

Versión rápida (aunque no muy legible :P):
export PS1='$( [ "$?" -eq 0 ] && M=")" || M="("; echo -n :$M ) '$PS1

Incluyendo este fragmento en ~/.bashrc siempre estará activo:

# Indicacion de si el ultimo comando ha tenido exito
#    inspirada por http://mendel.livejournal.com/128965.html
#export PS1='`test "$?" -eq 0 && echo -n ":)" || echo -n ":(" ` '$PS1
# Version con funcion sacada de http://linuxgazette.net/122/lg_tips.html
#Alternativamente: "More-or-less undocumented Bash-ism - a C-style trinary operator":
#smiley () { echo -e ":\$(($??50:51))"; }
_smiley() {
   if [ $? -eq 0 ]; then echo ':)'
      else echo ':('
   fi
}
#...
export PS1='$(_smiley) '$PS1

Ejemplo:

:) toni@host:~$ false
:( toni@host:~$ true
:) toni@host:~$ 

Revisado y corregido por última vez el 2013-10-22

Entradas de la segunda etapa

Las entradas anteriores a ésta pertenecen a la segunda etapa de ésta web, entre los años 2004 y 2006.

En ese periodo usé un CMS propio (aún accesible en http://old.outlyer.net, aunque en su mayoría redirige a la versión actual de la web) y publiqué tanto es castellano como en catalán.

El final de las vacaciones

Castellano

El final de las vacaciones

Bien, doy por terminadas las vacaciones :(

Han sido unas vacaciones interesantes: una semana antes de salir de viaje, por primera vez fuera de España, me encuentro con que mi cámara digital, estropeada desde hacía tiempo, está lo bastante jodida como para que no valga la pena arreglarla, y por lo tanto toca comprar una nueva; no me voy a ir de vacaciones sin cámara. Genial.
Los pocos euros que había podido ahorrar para la futura PlayStation 3 vuelan y yo me quedo jodido por tener que gastarme la pasta de forma tan tonta.
Visto en perspectiva, o mejor dicho, sabiendo lo que sé ahora, que la PS3 se retrasará, y bien, para Europa (ni más ni menos que desde noviembre hasta marzo) resulta que no me pierdo nada. Pero claro, la noticia no es, exactamente, satisfactoria. Teniendo en cuenta que la cámara estropeada era de Sony y que solo había funcionado un año, puedo decir que esta gente ha marcado mis vacaciones :D

En cualquier caso, el viaje ha sido bonito, la cámara funciona bastante bien y sin juguete nuevo igual hasta apruebo más :p

Por otro lado he comprobado la parte negativa de hacer turismo con una cámara digital: poner en orden, limpiar/descartar y retocar las fotos que lo necesiten es un montón de trabajo cuando puedes hacer fotos casi sin límite. Lo suficiente pesado como para que aún no sepa como empezar a hacerlo de la mejor manera posible.

Muestra de las fotos del viaje
Praga y Budapest

Català

El final de les vacances

Bé, dono per terminades les vacances :(

Han estat unes vacances interessants: una setmana abans de sortir de viatge, per primera vegada fora d'Espanya, em trobo amb que la meva càmera digital, espatllada des de feia temps, està prou fotuda com per què no surti a compte arreglar-la, i per tant toca comprar-ne una de nova; no m'aniré de viatge sense càmera. Genial.
Els pocs euros que havia pogut estalviar per a la futura PlayStation 3 volen i jo em quedo fotut per haver de gastar-me la pasta de forma tant tonta.
Vist en perspectiva, o millor dit, sabent el què ara sé, que la PS3 s'endarrerirà, i bé, a Europa (ni més ni menys què des de novembre fins al març) resulta que no em perdo res. Però és clar, aquesta noticia no es, exactament, satisfactòria. Tenint en compte que la càmera espatllada era de Sony i que només havia funcionat un any, puc dir que aquesta gent ha marcat les meves vacances :D

En qualsevol cas, el viatge ha estat maco, la càmera funciona prou bé i sense joguina nova potser fins i tot aprovo més :p

D'altra banda he comprovat la part negativa de fer turisme amb una càmera digital: posar en ordre, netejar/descartar i retocar les fotos que ho necessitin és una feinada quan pots fer fotos pràcticament sense límit. Suficient pesat com per que encara no sàpiga com començar a fer-ho de la millor manera possible.

Mostra de les fotos del viatge
Praga i Budapest

Final de la parada

Castellano

Como podéis ver me he pasado una buena temporada sin actualizar, pero no, esta web no está muerta, todavía. La verdad es que estas pausas no eran extrañas antes (en el 2005 sólo colgué 8 entradas por ejemplo –una de las razones por las que nunca me refiero a mi web como un blog :P), pero últimamente llevaba un ritmo más alto… hasta que paré :). Las razones son varias: el fin de curso, el que finalmente sucumbí i me compré una PSP, el calor anulador de voluntades que está haciendo y otras preocupaciones tontas, pero bueno, espero coger un poco el ritmo de nuevo (aunque decir esto en plenas vacaciones es poco creíble :P).

Cuando compré la PSP me pasé unos días explorando sus posibilidades y de eso ha surgido algo de código que espero subir en algún momento, junto con algún que otro script que tengo por aquí desde hace tiempo pendiente. Chorraditas varias pero que igual serviran a alguien.


Català

Com podeu veure m'he passat una bona temporada sense actualitzar, però no, aquesta web no és morta, encara. En realitat aquestes pauses no eren tan extranyes abans (el 2005 només vaig possar 8 entrades per exemple –una de les raons per les que mai em refereixo a la meva web com a un bloc :P), però últimament duia un ritme més alt… fins que vaig parar :). Les raons han estat vàries: el final de curs, el fet que finalment vaig sucumbir i vaig comprar-me una PSP, la calor anul·ladora de voluntats que fa i altres varies preocupacions tontes, però bé, espero agafar una mica de ritme de nou (clar, que dir això en plenes vacances es poc creïble).

Quan vaig comprar la PSP em vaig passar uns dies explorant les seves possibilitats i d'això n'ha sorgit una mica de codi que espero pujar en algun moment, juntament amb algun que altre script que tinc per aquí des de fa temps pendent. Xorradetes vàries però que potser serviran a algú.

Scroll to Top