• [^] # Re: dlna est ton ami

    Posté par . En réponse au journal UPnP MediaRenderer DCP en ligne de commande 2. Évalué à 1.

    pour le rendering

    voici un exemple de transformation inline dans la config mais on peut aussi lancer un script (plus souple)

     ...
     <transcode mimetype="video/quicktime" using="video-curl-ffmpeg"/>
     ...
     <profile name="video-curl-ffmpeg" enabled="yes" type="external">
     <avi-fourcc-list mode="ignore">
     <fourcc>DX50</fourcc>
     <fourcc>DM4V</fourcc>
     <fourcc>M4S2</fourcc>
     </avi-fourcc-list>
     <mimetype>video/mpeg</mimetype>
     <accept-url>yes</accept-url>
     <first-resource>yes</first-resource>
     <hide-original-resource>yes</hide-original-resource>
     <accept-ogg-theora>yes</accept-ogg-theora>
     <agent command="/usr/bin/ffmpeg" arguments="-i %in -vcodec mpeg2video -b 4096k -r 25 -acodec mp2 -ab 192k -ar 48000 -ac 2 -async 1 -f dvd -threads 2 -y %out"/>
     <buffer size="10485760" chunk-size="262144" fill-size="524288"/>
     </profile>