How to work with AVCHD videos?

classic Classic list List threaded Threaded
15 messages Options
Reply | Threaded
Open this post in threaded view
|

How to work with AVCHD videos?

John Stumbles
Does anyone have any suggestions for dealing with AVCHD videos (from a
Lumix DMC-TZ20 and maybe others) in Digikam?

They appear as PRIVATE/AVCHD/BDMV/STREAM/nnnnn.MTS files which can be
played with VLC and suchlike - http://en.wikipedia.org/wiki/AVCHD

--
John Stumbles                                    http://stumbles.org.uk
:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:

_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: How to work with AVCHD videos?

Gilles Caulier-4
try kdenlive editor...

Gilles Caulier

2012/8/23 John Stumbles <[hidden email]>:

> Does anyone have any suggestions for dealing with AVCHD videos (from a Lumix
> DMC-TZ20 and maybe others) in Digikam?
>
> They appear as PRIVATE/AVCHD/BDMV/STREAM/nnnnn.MTS files which can be played
> with VLC and suchlike - http://en.wikipedia.org/wiki/AVCHD
>
> --
> John Stumbles                                    http://stumbles.org.uk
> :-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:
>
> _______________________________________________
> Digikam-users mailing list
> [hidden email]
> https://mail.kde.org/mailman/listinfo/digikam-users
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: How to work with AVCHD videos?

John Stumbles
On 23/08/12 06:26, Gilles Caulier wrote:
> try kdenlive editor...

I've been meaning to try to get up the learning curve with that or Lives
or one of the Linux video editors (I've been using kino for DVs but to
edit anything else requires converting to DV first, and it's a bit
limited in what it can do).

But what I meant (sorry, it was late and I wasn't being very clear) was
how to import/download the videos from my Lumix along with the still
pictures it takes, as I would if I had the camera set to record in a
format that produces MOV files. So I want to extract the timestamp
information from wherever that is stored [1] and use that to timestamp
the videos in the same format as my stills (in my case
yyyyMMdd_hhmmss_[file]{lower}.[ext]{lower}). I probably also need to
convert from  MPEG Transport Stream to MPEG Program Stream[2].

I realise this functionality is a big ask from the digikam developers
(unless they happen to have a camera that records in this format ;-))
but I hope it's useful to formulate the problem, and I wonder if anyone
knows of existing tools that might help me roll my own solution in the
meantime.

.....................................................................

[1] I guess it's in the PRIVATE/AVCHD/BDMV/CLIPINF/nnnnn.CPI files but
although `file`'s magic recognises them, they're not stored as text:
$ file /media/814C-DD20/PRIVATE/AVCHD/BDMV/CLIPINF/00000.CPI
/media/814C-DD20/PRIVATE/AVCHD/BDMV/CLIPINF/00000.CPI: AVCHD Clip
Information

$ strings /media/814C-DD20/PRIVATE/AVCHD/BDMV/CLIPINF/00000.CPI
HDMV0100
HDMV
00001M2TS
1und
FCLEX

[2] comment from mcduck on http://ubuntuforums.org/showthread.php?t=864983


--
John Stumbles                                    http://stumbles.org.uk
:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:

_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: How to work with AVCHD videos?

Gilles Caulier-4
CameraGUI (renamed ImportUI in next 3.0.0 release) is under revamping
through GoSC2012

We currently add group item feature. It's that you need : group video + image.

Right ?

Gilles Caulier

2012/8/23 John Stumbles <[hidden email]>:

> On 23/08/12 06:26, Gilles Caulier wrote:
>>
>> try kdenlive editor...
>
>
> I've been meaning to try to get up the learning curve with that or Lives or
> one of the Linux video editors (I've been using kino for DVs but to edit
> anything else requires converting to DV first, and it's a bit limited in
> what it can do).
>
> But what I meant (sorry, it was late and I wasn't being very clear) was how
> to import/download the videos from my Lumix along with the still pictures it
> takes, as I would if I had the camera set to record in a format that
> produces MOV files. So I want to extract the timestamp information from
> wherever that is stored [1] and use that to timestamp the videos in the same
> format as my stills (in my case yyyyMMdd_hhmmss_[file]{lower}.[ext]{lower}).
> I probably also need to convert from  MPEG Transport Stream to MPEG Program
> Stream[2].
>
> I realise this functionality is a big ask from the digikam developers
> (unless they happen to have a camera that records in this format ;-)) but I
> hope it's useful to formulate the problem, and I wonder if anyone knows of
> existing tools that might help me roll my own solution in the meantime.
>
> .....................................................................
>
> [1] I guess it's in the PRIVATE/AVCHD/BDMV/CLIPINF/nnnnn.CPI files but
> although `file`'s magic recognises them, they're not stored as text:
> $ file /media/814C-DD20/PRIVATE/AVCHD/BDMV/CLIPINF/00000.CPI
> /media/814C-DD20/PRIVATE/AVCHD/BDMV/CLIPINF/00000.CPI: AVCHD Clip
> Information
>
> $ strings /media/814C-DD20/PRIVATE/AVCHD/BDMV/CLIPINF/00000.CPI
> HDMV0100
> HDMV
> 00001M2TS
> 1und
> FCLEX
>
> [2] comment from mcduck on http://ubuntuforums.org/showthread.php?t=864983
>
>
>
> --
> John Stumbles                                    http://stumbles.org.uk
> :-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:
>
> _______________________________________________
> Digikam-users mailing list
> [hidden email]
> https://mail.kde.org/mailman/listinfo/digikam-users
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: How to work with AVCHD videos?

John Stumbles
In reply to this post by John Stumbles
On 23/08/12 11:09, John Stumbles wrote:

> ...I want to extract the timestamp
> information from wherever that is stored [...] and use that to timestamp
> the videos in the same format as my stills (in my case
> yyyyMMdd_hhmmss_[file]{lower}.[ext]{lower}). I probably also need to
> convert from  MPEG Transport Stream to MPEG Program Stream[2].

OK, the first part - renaming the files with a datestamp - turns out to
be easy with exiftool. In fact the script[1] I used to use for grabbing
everything off my cameras' memory cards does the job just fine!

However the newly copied and datestamped files don't show up in digikam.
Interesting they do show up in gwenview which is also able to play them
- I thought digikam and gwenview shared code?

I guess if I can crack the second bit of my task - converting to program
stream .MOVs - digikam should be OK with them.


......................................................................

[1] It's at http://yaph.org.uk/photo/getpix
It's horribly kludgy and desperately needs a tidy up but it does work.
There's a bit of info about it at http://yaph.org.uk/photo/


--
John Stumbles                                    http://stumbles.org.uk
:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:

_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: How to work with AVCHD videos?

Tim Jenness
On Thu, Aug 23, 2012 at 12:30 PM, John Stumbles <[hidden email]> wrote:

> However the newly copied and datestamped files don't show up in digikam.
> Interesting they do show up in gwenview which is also able to play them - I
> thought digikam and gwenview shared code?
>

Does dolphin show thumbnails for the MTS files?

digikam can see MTS files fine for me but I can't remember whether I
had to add .MTS to a file extension list at some point.

--
Tim Jenness
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: How to work with AVCHD videos?

John Stumbles
On 23/08/12 20:47, Tim Jenness wrote:

> Does dolphin show thumbnails for the MTS files?

Yes, it shows generic movie-clapboard icons for the files (as it does
for other video formats)

> digikam can see MTS files fine for me but I can't remember whether I
> had to add .MTS to a file extension list at some point.

So how do you get your MTS files into digikam?


--
John Stumbles                                    http://stumbles.org.uk
:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:

_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: How to work with AVCHD videos?

Tim Jenness
On Thu, Aug 23, 2012 at 12:58 PM, John Stumbles <[hidden email]> wrote:
> On 23/08/12 20:47, Tim Jenness wrote:
>
>> Does dolphin show thumbnails for the MTS files?
>
>
> Yes, it shows generic movie-clapboard icons for the files (as it does for
> other video formats)
>

Something is a bit wrong since it's meant to show little thumbnails
from the movie like it does for photos rather than a generic
clapboard.

>
>> digikam can see MTS files fine for me but I can't remember whether I
>> had to add .MTS to a file extension list at some point.
>
>
> So how do you get your MTS files into digikam?
>

I just copy them into the file system and it picks them up
automatically. Unfortunately my gentoo system is being rebuilt at the
moment so I can't run up a quick test to see whether I changed
something but I do remember having to tell some part of KDE or digikam
that MTS was a video file.

--
Tim Jenness
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: How to work with AVCHD videos?

John Stumbles
On 23/08/12 21:01, Tim Jenness wrote:

> Something is a bit wrong since it's meant to show little thumbnails
> from the movie like it does for photos rather than a generic
> clapboard.

Maybe that's a kde thing - perhaps there's an option somewhere to
display video thumbnails and I haven't got it set. Or maybe it's one of
those features that kde lost when they upgraded from 3.5 to 4 :-(


--
John Stumbles                                    http://stumbles.org.uk
:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:

_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: How to work with AVCHD videos?

John Stumbles
In reply to this post by John Stumbles
On 23/08/12 20:30, John Stumbles wrote:

> I guess if I can crack the second bit of my task - converting to program
> stream .MOVs - digikam should be OK with them.

Looks like ffmpeg is my friend here:
ffmpeg -i input_file.mts -vcodec copy -acodec copy output_file.mp4
seems to do the trick, and give me files about the same size (slightly
smaller) and quality (as far as I can see) which digikam can see and
smplayer can play.

So I just have to modify my getpix script again.

Last question: does anyone know how to hack on kde so that when you plug
in a memory card and kde pops up a dialogue asking what you want to do
with it, that you can add an option to run your own program (i.e. getpix
in this case)?

--
John Stumbles                                    http://stumbles.org.uk
:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:

_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: How to work with AVCHD videos?

Tim Jenness
In reply to this post by John Stumbles
On Thu, Aug 23, 2012 at 1:41 PM, John Stumbles <[hidden email]> wrote:

> On 23/08/12 21:01, Tim Jenness wrote:
>
>> Something is a bit wrong since it's meant to show little thumbnails
>> from the movie like it does for photos rather than a generic
>> clapboard.
>
>
> Maybe that's a kde thing - perhaps there's an option somewhere to display
> video thumbnails and I haven't got it set. Or maybe it's one of those
> features that kde lost when they upgraded from 3.5 to 4 :-(
>
>

no no no. http://forum.kde.org/viewtopic.php?t=31354

mplayerthumbs.

--
Tim Jenness
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: How to work with AVCHD videos?

John Stumbles
On 23/08/12 21:46, Tim Jenness wrote:

> mplayerthumbs.

OK, I had that anyway, but it also needs, in Dolphin;
Settings
-> Configure Dolphin
-> General
-> Previews
-> check 'Video Files (MPlayerThumbs)'


thanks


--
John Stumbles                                    http://stumbles.org.uk
:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:

_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: How to work with AVCHD videos?

jdd@dodin.org
In reply to this post by Tim Jenness
Le 23/08/2012 21:47, Tim Jenness a écrit :

> Does dolphin show thumbnails for the MTS files?

there is an upper size limit for showing thumbs in dolphin, and MTS
file are probably too large

jdd


--
http://www.dodin.org
http://jddtube.dodin.org/20120616-52-highway_v1115
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: How to work with AVCHD videos?

jdd@dodin.org
In reply to this post by John Stumbles
Le 23/08/2012 21:58, John Stumbles a écrit :

> So how do you get your MTS files into digikam?
>
>
better not. MTS files are often very large (up to 2Gb usually) and
very hard to play by many computers. Asking Digikam to read them let
you at risk to launch one accidentally and being stuck.

http://dodin.org/wiki/index.php?n=Doc.ConversionVideo

here you will find some scripts to convert MTS to more usable files.
But video and photo are two different beats.

Digikam video feature is just convenient for incidental use, not for
really work with videos

use kdenlive or openshot instead

jdd

--
http://www.dodin.org
http://jddtube.dodin.org/20120616-52-highway_v1115
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: How to work with AVCHD videos?

Tim Jenness
On Thu, Aug 23, 2012 at 2:52 PM, jdd <[hidden email]> wrote:

>
> Digikam video feature is just convenient for incidental use, not for really
> work with videos
>

but it's great for keeping track of them and tagging them along with
photos. I only use digikam for curating and never for editing. I'm
looking forward to being able to write tags to .m4v files...

--
Tim Jenness
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users