encontrar: Crear Alias ​​MPEG enlaces simbólicos para JVC Everio TOD archivos MOD

Mi récord JVC videocámaras en MOD y formatos de archivos TOD, que son los formatos de vídeo no estándar que no se pueden reproducir directamente en la mayoría de los ordenadores o reproductores de medios en red. This post describes how to use the Linux 'find' command to create an MPEG alias to the TOD or MOD file so that the video can be played without post-processing.

Mi colección de vídeo doméstico excede 1,500 files representing about one terabyte of storage. I am unwilling to dutifully follow JVC's recommendation of using their bundled software to convert their non-standard file formats to MPEG for playback on my media player. While the JVC Everio hard disk drive camcorder records excellent high-definition video, their choice of file formats is very unfortunate. Por suerte, the VNC media player can be configured to play TOD and MOD files directly on a Mac or PC. Sin embargo, la situación es más difícil si usted guarda sus archivos de vídeo en un dispositivo NAS y desea transmitir el vídeo a su televisor.

Este enfoque ha sido probado en un Netgear ReadyNAS NV dispositivo, pero debería funcionar con cualquier dispositivo de almacenamiento que utilizan Linux como Synology, Qnap and Buffalo Technology. Playback has been tested networked media players such as Patriot Box Office (que ahora se llama Core) y Micca EP950.

¿Cómo funciona?

Para cada archivo con el TOD o extensión de archivo MOD, crear un enlace de software con un "mpg" extensión de archivo que apunta al archivo original.

A softlink is preferred to a hardlink to avoid duplicating files during copying. The softlink is a small text file (en los 10s de gama bytes) that points to the target file. A hardlink is actually be another name for the target file (que hace referencia al mismo inodo como el objetivo), dando lugar a que todo el archivo se movió cuando la copia de seguridad de los videos a otra unidad de disco duro.

El nombre del archivo enlace simbólico será el nombre de archivo al objetivo con ".mpg" anexa.

Buscar comando

encontrar . -type f-nombre *. TOD-execdir ln-s {} {}.mpg \;

El comando anterior funciona si el encontrar version supports the execdir directiva. It won't work on the ReadyNas NV+, which uses the older encontrar versión 4.1.7.

For creating backup copies of the home videos, it is important that the mpg links are pointing to the TOD files using relative paths. While it is possible to replace the execdir directive with the plain exec and the '.' with the full path to the current directory, this will create symlinks with absolute paths that are device specific. Por ejemplo, the directory '/c/Videos' is only valid on the ReadyNas, not the backup hard disk drive. A more complex command is needed.

encontrar . -type f-nombre *.-TOD ejecutivo sh-c ' \
dir = $(dirname {}) ;\
base = $(basename {}) ;\
echo $ dir - $base ; \
cd $ dir ;\
pwd ;\
ln-s $ base de $ base.mpg ' \;

La eco y pwd comandos anteriores son para la depuración, to confirm that the correct paths are being used. I also create the usted y base variables for clarity. The above command can be condensed into something more cryptic by removing the debugging and variable statements.

El comando anterior reproduce la execdir directiva para versiones anteriores de encontrar que se encuentra en aparatos como los dispositivos NAS.

Synology actualización

El mismo enfoque enlace simbólico funciona en Synology DS1512 NAS conectado a un reproductor Patriot Box Office. Además de la .mpg extensión, un .m2ts funciona igual de bien. (ToDo recordatorio: Agregar una tarea synology para crear automáticamente enlaces simbólicos para los nuevos archivos TOD.)

December 15th, 2012 Publicado por Jon Jaroker Archivado en: Asestar un golpe

Sé el primero en comentar. Deja un comentario

Su dirección de correo electrónico no será publicada. Los campos necesarios están marcados *