tailieunhanh - Quản lý cấu hình web - part 39
Tham khảo tài liệu 'quản lý cấu hình web - part 39', công nghệ thông tin, đồ họa - thiết kế - flash phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | Leveraging Alfresco Framework for WCM Various options for video transcoding Following are the various options for video transcoding -b bitrate Set the video bitrate in bit s default 200 kb s . 512 k -r fps Set frame rate Hz value fraction or abbreviation default 25 . -s size Set frame size. The format is wxh ffserver default 160x128 ffmpeg default same as source . 320x240 -aspect aspect Set aspect ratio 4 3 16 9 or . 4 3 Various options for audio transcoding Following are the various options for audio transcoding -ar freq Set the audio sampling frequency default 44100 Hz . 44100 -ab bitrate Set the audio bitrate in bit s default 64 k . 64 k -ac channels Set the number of audio channels default 1 Mono 2 stereo . 2 For further details and all options you can refer to http . 362 Download from Wow eBook Chapter 11 Integrating transformation as an Action in Alfresco In this section we will see how we can use FFMPEG transformations as a custom action in Alfresco. From there we can trigger some business rules on the spaces which will execute this custom action to perform transformation of all video files. Follow these steps to execute the transformation 1. We need to configure the extra mime types that we want to use. Here in our case we are using 3GP MP2 MP4 AVI MOV and many more. All others are already supported by Alfresco and are defined in the file in Alfresco except 3GP . So we need to add 3GP as a mimetype supported by Alfresco in the mimetype-map file as follows config evaluator string-compare condition Mimetype Map mimetypes mimetype mimetype video 3gp display Mobile video extension 3gp extension mimetype mimetypes config 2. The next step is as FFMPEG is a command-line interface we can use Alfresco s class to execute this command. For that we need to configure it as a bean which will be referred by our custom action executer. We can make these .
đang nạp các trang xem trước