FFmpeg noob: обрезка и укладка видео

Вам нужно добавить <webHttp/> в список действий endpoint . Кроме того, конечной точке необходимо использовать webHttpBinding. И, наконец, чтобы ответить на GET HTTP-запросы, вам нужно использовать атрибут WebGet (вместо WebInvoke(Method="GET").

  <system.serviceModel> 
    <services> 
      <service name="ContactLibrary.ContactLibrary"> 
        <endpoint address=""
                  binding="webHttpBinding"
                  behaviorConfiguration="JSONEndpointBehavior" 
                  contract="ContactLibrary.IContact"/>
        <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" /> 
        <endpoint address="ws"
                  binding="wsHttpBinding"
                  bindingConfiguration="" 
                  contract="ContactLibrary.IContact" /> 
        <host> 
          <baseAddresses> 
            <add baseAddress="http://localhost/ContactLibrary" /> 
          </baseAddresses> 
        </host> 
      </service> 
    </services> 
    <behaviors> 
      <endpointBehaviors> 
        <behavior name="JSONEndpointBehavior"> 
          <webHttp/> 
        </behavior> 
      </endpointBehaviors> 
      <serviceBehaviors> 
        <behavior> 
          <!-- To avoid disclosing metadata information,  
          set the value below to false and remove the metadata endpoint above before deployment --> 
          <serviceMetadata httpGetEnabled="true"/> 
          <!-- To receive exception details in faults for debugging purposes,  
          set the value below to true.  Set to false before deployment  
          to avoid disclosing exception information --> 
          <serviceDebug includeExceptionDetailInFaults="true"/> 
        </behavior> 
      </serviceBehaviors> 
    </behaviors> 
  </system.serviceModel> 

И контракт на обслуживание:

[ServiceContract]  
public interface IContact  
{  
    [OperationContract]  
    [WebGet(BodyStyle = WebMessageBodyStyle.Bare, ResponseFormat = WebMessageFormat.Json, UriTemplate = "contact")]  
    Contact GetContact(int idContact);        
}  
0
задан Melissa Sim 17 January 2019 в 08:27
поделиться

1 ответ

Используйте

ffmpeg -i Test360.mp4 -filter_complex \
                       "split=2[top][bottom];\
                        [top]crop=1920:640:0:0[top];\
                        [bottom]crop=1920:640:1920:0[bottom];\
                        [top][bottom]vstack=2"  stacked.mp4
0
ответ дан Gyan 17 January 2019 в 08:27
поделиться
Другие вопросы по тегам:

Похожие вопросы: