martedì 15 gennaio 2008

Unire sottotitoli a file video

Uno dei molteplici modi:
Usare VirtualDub con istallato il filtro subtitler.
Subtitler permette di incorporare i subtitoli nel file video ma i sottotitoli devono essere in formato SSA (Substation Alpha).
Per effettuare una conversione per esempio dal formato srt si può usare DivXLand Media Subtitler.

Con DivXLand Media Subtitle aprire i sottotitoli e andare in inpostazioni -> formato e selezionare il formato Substation Alpha.
A questo punto salvare il file.

In VirtualDubMod aprire il file video, caricare il filtro subtitler e scegliere il file ssa. Poi verificare che sul menu video ci sia selezionato Full Processing Mode, and under Audio select Direct Stream Copy.

Scegliere l'algoritmo di compressione divx o xVid e save as Avi ...

Trovare qualcos'altro da fare per le prossime 2 - 3 ore.

Il link dal quale ho tratto le informazioni.

lunedì 14 gennaio 2008

Accesso contemporaneo da + thread ad una stessa hashmap statica

Dal sito Ibm:

Link

ConcurrentHashMap

The ConcurrentHashMap class from util.concurrent (which will also appear in the java.util.concurrent package in JDK 1.5) is a thread-safe implementation of Map that offers far better concurrency than synchronizedMap. Multiple reads can almost always execute concurrently, simultaneous reads and writes can usually execute concurrently, and multiple simultaneous writes can often execute concurrently. (The related ConcurrentReaderHashMap class offers similar multiple-reader concurrency, but allows only a single active writer.) ConcurrentHashMap is designed to optimize retrieval operations; in fact, successful get() operations usually succeed with no locking at all. Achieving thread-safety without locking is tricky and requires a deep understanding of the details of the Java Memory Model. The ConcurrentHashMap implementation, along with the rest of util.concurrent, has been extensively peer-reviewed by concurrency experts for correctness and thread safety. We will look at the implementation details of ConcurrentHashMap in next month's article.

ConcurrentHashMap achieves higher concurrency by slightly relaxing the promises it makes to callers. A retrieval operation will return the value inserted by the most recent completed insert operation, and may also return a value added by an insertion operation that is concurrently in progress (but in no case will it return a nonsense result). Iterators returned by ConcurrentHashMap.iterator() will return each element once at most and will not ever throw ConcurrentModificationException, but may or may not reflect insertions or removals that occurred since the iterator was constructed. No table-wide locking is needed (or even possible) to provide thread-safety when iterating the collection. ConcurrentHashMap may be used as a replacement for synchronizedMap or Hashtable in any application that does not rely on the ability to lock the entire table to prevent updates.

These compromises enable ConcurrentHashMap to provide far superior scalability over Hashtable, without compromising its effectiveness in a wide variety of common-use cases, such as shared caches.


Rip Dvd

Censimento al 14 Gennaio 2008 sui tools free per effettuare copie di backup di dvd in formato divx.

  • DVDx
  • AutoGK Auto Gordian Knot

venerdì 4 gennaio 2008

Divx e Xvid a scatti su lettore da tavolo

Probabilmente sono i alori di interleaving e preload:

Preload 500ms
Iterleaving 320 ms con ac3 a 192 kbits/s
Iterleaving 256 ms con ac3 a 224 kbits/s
Iterleaving 160 ms con ac3 a 384 kbits/s
Iterleaving 128 ms con ac3 a 448 kbits/s

Mp3: Preload 10000
Interleaving 250 frames
Powered By Blogger