001/* 002 * (C) Copyright 2006-2011 Nuxeo SA (http://nuxeo.com/) and others. 003 * 004 * All rights reserved. This program and the accompanying materials 005 * are made available under the terms of the GNU Lesser General Public License 006 * (LGPL) version 2.1 which accompanies this distribution, and is available at 007 * http://www.gnu.org/licenses/lgpl-2.1.html 008 * 009 * This library is distributed in the hope that it will be useful, 010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 012 * Lesser General Public License for more details. 013 * 014 * Contributors: 015 * Thomas Roger <troger@nuxeo.com> 016 */ 017 018package org.nuxeo.ecm.platform.video.convert; 019 020/** 021 * Convert to MP4 format. 022 * 023 * @author <a href="mailto:troger@nuxeo.com">Thomas Roger</a> 024 * @since 5.5 025 * @deprecated since 5.9.5. Use {@link org.nuxeo.ecm.platform.video.convert.VideoConversionConverter}. 026 */ 027@Deprecated 028public class MP4Converter extends BaseVideoConversionConverter { 029 030 public static final String MP4_VIDEO_MIMETYPE = "video/mp4"; 031 032 public static final String MP4_EXTENSION = ".mp4"; 033 034 public static final String TMP_DIRECTORY_PREFIX = "convertToMP4"; 035 036 @Override 037 protected String getVideoMimeType() { 038 return MP4_VIDEO_MIMETYPE; 039 } 040 041 @Override 042 protected String getVideoExtension() { 043 return MP4_EXTENSION; 044 } 045 046 @Override 047 protected String getTmpDirectoryPrefix() { 048 return TMP_DIRECTORY_PREFIX; 049 } 050 051}