Gentoo Archives: gentoo-user

From: James <wireless@×××××××××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Sony AVCHD
Date: Mon, 09 Apr 2012 15:59:17
1 Hello,
3 In a previous thread (3apr2012 - MTS player)
4 I delineated some problems with the copy
5 of files from a new HD sony camcorder
6 to my gentoo system. This explains the nature
7 of the problem:
8 <snip>
9 Files with CPI file extension are stored on the hard disk or
10 memory card of AVHCD camcorders. File contains information
11 (metadata) about captured video such as aspect ratio, frame rate
12 and other information. CPI files are usually found in the
13 AVCHD/BDMV/CLIPINF directory of the HD digital video recording media.
15 The "AVCHD" is a brand new high definition (HD) digital video camera recorder
16 format recording 1080i and 720p signals onto certain media by using highly
17 efficient codec technologies. The "AVCHD" is jointly established by Panasonic
18 Corporation and Sony Corporation.
19 <end/snip>
21 Here are some things I have learned along the
22 way that other might find useful:
24 1. "Reverse Engineering the Microsoft exFAT
25 File System" is an excellent expose on learning
26 about exFAT, which my new sony HDR-PJ760V camcorder
27 uses. Facinating read for those interested
28 in SD (SDHC and SDXC).
30 2. The trouble I was having, appeared to occur
31 periodically, so initially I thought it was
32 due to some "protection scheme" encoded by sony
33 into their newer camcorders. What I found
34 by trial and error is that auto-usb-mount
35 (I just clicked on the Dolphin file manager
36 each time the usb cable was inserted and
37 click the usb-connect icon on the camcorder)
38 is very sensitive and drops easily. Sure
39 you can sometime just reinitialize the connection
40 form the gentoo-kde tools, or sometime you
41 need to reinitialize from the camcorder
42 usb-connect gui. Some times you have
43 to power cycle the camcorder and start
44 with a fresh session to continue the copy process.
45 So the usb-connections from my gentoo system
46 to this sony camcorder is FRAGILE, for unknown
47 reasons.
49 3. So, I removed the extra SD card I had installed
50 and made sure that the "auto lens cover" was toggled
51 to close and I was able to copy the files over
52 with plain old "cp" across the auto-usb-mount
53 provided via dolphin. The auto link then was
54 stable enough to use this command:
56 cp 0007[0-9].MTS /usr/local/TR/
58 To copy the files over. Use of a wildcard
59 to copy files with one command, failed
60 regardless of what I did.
62 So, I lost the originating file information,
63 not thinking about date/time stamps:
64 (sony camcorder internal flash)
65 -rw-r--r-- 1 james james 122M Mar 31 15:25 00053.MTS
66 -rw-r--r-- 1 james james 173M Mar 31 15:27 00054.MTS
67 -rw-r--r-- 1 james james 68M Mar 31 15:28 00055.MTS
68 -rw-r--r-- 1 james james 22M Mar 31 15:29 00056.MTS
70 cp yeilded this:
71 (gentoo drive)
72 -rw------- 1 root root 122M Apr 9 10:20 00053.MTS
73 -rw------- 1 root root 173M Apr 9 10:32 00054.MTS
74 -rw------- 1 root root 68M Apr 9 10:33 00055.MTS
75 -rw------- 1 root root 22M Apr 9 10:34 00056.MTS
78 So, not being the swiftest tack in the box on the
79 use of rsync, could somebody suggest some detailed
80 rsync syntax to correct the date/time stamp
81 on the file in the gentoo host dir without other
82 harm. Note the cp proceedure is very slow, suggesting
83 that using "rate limiting" on the file transfer
84 is probably a good idea?
86 cp does not have a rate limited option, so should
87 I try scp or rsync (syntax examples are most appreciated).
88 I also saw a script that used "sleep 10" but that would
89 only work between file names....
93 thoughts, comments and suggestions are most welcome.
96 James


Subject Author
Re: [gentoo-user] Sony AVCHD Mick <michaelkintzios@×××××.com>