Hello

I'm converting some old recordings from a DVR we had from .MTS to .MP4.
After this, I will import them to shotwell. But I can't get shotwell to
automatically detect the date.

How can this be done? The old .MTS-filename includes the date. But I can't
find any way to write it with avconv. Neither can shotwell use the file
dates, right?

Tried writing date as metadata with avconv but it doesn't help/doesn't work.

for i in `find . -iname *.mts`; do

FN=`echo $i | awk -F\. '{print $2}'`
DATE=`echo $FN | awk -F'/' '{print $2}' | sed 's/\///'`

/usr/bin/avconv -y -i "$i" -crf 25.0 -vcodec libx264 -acodec libvo_aacenc
-ar 48000 -ab 160k -coder 1 -flags +loop -cmp +chroma -partitions
+parti4x4+partp8x8+partb8x8 -me_method hex -subq 6 -me_range 16 -g 250
-keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -b_strategy 1 -qcomp 0.6
-qmin 0 -qmax 69 -qdiff 4 -bf 3 -refs 8 -directpred 3 -trellis 2 -flags2
+bpyramid+mixed_refs+wpred+dct8x8+fastpskip -wpredp 2 -rc_lookahead 60
-threads 0 -metadata date=2012-"$DATE" ."$FN".mp4

Suggestions are welcome..

Rgds//Thomas
_______________________________________________
Shotwell mailing list
[email protected]
http://lists.yorba.org/cgi-bin/mailman/listinfo/shotwell

Reply via email to