Gentoo Archives: gentoo-user

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

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

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