Video Previews - .MTS files (AVCHD)

286 views
Skip to first unread message

BradB

unread,
Mar 14, 2012, 5:59:33 PM3/14/12
to ResourceSpace
Second question:

I'm trying to get the Video Previews function working properly inside
ResourceSpace for .MTS files (AVCHD format). Files were created using
a JVC camcorder.

I can successfully upload the videos to RS, but it doesn't look as
though FFMPEG is being called.

Using the following command line, I can hand-convert the video, and by
copying the resultant .FLV into the proper directory in the filestore,
the preview will playback within RS.

ffmpeg -i "00001.MTS" -vcodec flv -f flv -r 25 -s 800x450 -aspect 16:9
-b 2000k -g 160 -cmp 2 -subcmp 2 -mbd 2 -flags +aic+cbp+mv0+mv4 -
trellis 2 -acodec libmp3lame -ac 2 -ar 44100 -ab 256k "00001.flv"

Previews for photos appear to be working just fine.

Per other postings I've seen in the googlegroup, I've added the
following to the end of my (basic) config.php file:

$ffmpeg_preview=true;
$ffmpeg_supported_extensions = array(
'aaf',
'3gp',
'asf',
'avchd',
'avi',
'cam',
'dat',
'dsh',
'flv',
'm1v',
'm2v',
'mkv',
'mts',
'wrap',
'mov',
'mpeg',
'mpg',
'mpe',
'mp4',
'mxf',
'nsv',
'ogm',
'rm',
'ram',
'svi',
'smi',
'wmv',
'divx',
'xvid',
);

Anyone have any ideas?

Thanks in advance!

Brad Brown

Allison Stec

unread,
Mar 19, 2012, 12:07:57 PM3/19/12
to resour...@googlegroups.com
I would run the installation check to see if ffmpeg shows a fail or not.

Sounds like you may not have the file path for ffmpeg correct in your config.php file.




--
You received this message because you are subscribed to the Google Groups "ResourceSpace" group.
To post to this group, send email to resour...@googlegroups.com.
To unsubscribe from this group, send email to resourcespac...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/resourcespace?hl=en.


dave

unread,
Mar 19, 2012, 3:54:07 PM3/19/12
to resour...@googlegroups.com
Make sure your 'preview_generate_max_file_size' setting is set high enough -- this tripped me up when troubleshooting preview generation for .MTS files. I set mine to 100000 (MB -- i.e. 100 GB meaning I wanted previews generated for video files of sizes up to 100GB )

Also make sure that 'ffmpeg_path' points to the directory containing the ffmpeg utility (e.g. on my Ubuntu 11.10 server, I have $ffmpeg_path = '/usr/local/bin')
Reply all
Reply to author
Forward
0 new messages