Recherche avancée

Médias (5)

Mot : - Tags -/open film making

Autres articles (49)

  • Personnaliser les catégories

    21 juin 2013, par

    Formulaire de création d’une catégorie
    Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
    Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire.
    Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
    Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

Sur d’autres sites (8880)

  • I have a file that purports to be "uncompressed mov" that I want to convert to raw using ffmpeg

    9 août 2015, par Lyman Hurd

    I am running Ubuntu. Here is what I receive and also cannot play the movie with vlc or totem, however the sender insists that these files play on a Mac using QuickTime. Thoughts as to what might be wrong ?

    ~/bin/ffmpeg -i movie.mov ffmpeg version N-50051-g8d0757e Copyright (c) 2000-2013 the FFmpeg developers
     built on Aug  8 2015 18:44:04 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)
     configuration: --enable-libvpx --enable-libx264 --prefix=/home/lhurd --enable-gpl
     libavutil      52. 17.102 / 52. 17.102
     libavcodec     54. 92.100 / 54. 92.100
     libavformat    54. 63.100 / 54. 63.100
     libavdevice    54.  3.103 / 54.  3.103
     libavfilter     3. 38.103 /  3. 38.103
     libswscale      2.  2.100 /  2.  2.100
     libswresample   0. 17.102 /  0. 17.102
     libpostproc    52.  2.100 / 52.  2.100
    movie.mov: Invalid data found when processing input

    Here’s an "od -c" of the head which at least shows that the file isn’t raw :

    0000000  \0 005 026  \a  \0 002  \0  \0   M   a   c       O   S           X
    0000020                                  \0 002  \0  \0  \0  \t  \0  \0
    0000040  \0   2  \0  \0  \0   F  \0  \0  \0 002  \0  \0  \0   x  \0  \0
    0000060  \0  \0   M   o   o   V   T   V   O   D  \0  \0  \0  \0  \0  \0
    0000100  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0
    0000120  \0  \0  \0  \0   A   T   T   R  \0  \0  \0  \0  \0  \0  \0   x
    0000140  \0  \0  \0   x  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0
    0000160  \0  \0  \0  \0  \0  \0  \0  \0
    0000170
  • On-the-fly transcoding using derolf/transcoder

    8 septembre 2015, par user1811678

    https://github.com/derolf/transcoder

    I need to transcode locally and playback locally in my project, no other external connection to the server.
    It is a good source of doing on the fly transcoding by ffmpeg.

    In my case i have to transcode it to mp4 as it could perform faster.
    However i run into following problem, and i need some help in here to fix it.

    ----------------------------------------
    Exception happened during processing of request from ('127.0.0.1', 34089)
    Traceback (most recent call last):
     File "/usr/lib/python2.7/SocketServer.py", line 593, in process_request_thread
       self.finish_request(request, client_address)
     File "/usr/lib/python2.7/SocketServer.py", line 334, in finish_request
       self.RequestHandlerClass(request, client_address, self)
     File "/usr/lib/python2.7/SocketServer.py", line 651, in __init__
       self.finish()
     File "/usr/lib/python2.7/SocketServer.py", line 710, in finish
       self.wfile.close()
     File "/usr/lib/python2.7/socket.py", line 279, in close
       self.flush()
     File "/usr/lib/python2.7/socket.py", line 303, in flush
       self._sock.sendall(view[write_offset:write_offset+buffer_size])
    error: [Errno 32] Broken pipe

    Here is my code :
    server.py

       from flask import Flask, request, Response, abort, send_file, jsonify
    import os, subprocess, re
    import config

    app = Flask(__name__)

    @app.route('/media/.js')
    def media_content_js(path):
       d= os.path.abspath( os.path.join( config.media_folder, path ) )
       print d
       if not os.path.isfile( d ): abort(404)
       cmdline= list()
       cmdline.append( config.ffmpeg )
       cmdline.append( "-i" )
       cmdline.append( d );
       print cmdline
       duration= -1
       FNULL = open(os.devnull, 'w')
       proc= subprocess.Popen( cmdline, stderr=subprocess.PIPE, stdout=FNULL )
       try:
           for line in iter(proc.stderr.readline,''):
               line= line.rstrip()
               #Duration: 00:00:45.13, start: 0.000000, bitrate: 302 kb/s
               m = re.search('Duration: (..):(..):(..)\...', line)
               if m is not None: duration= int(m.group(1)) * 3600 + int(m.group(2)) * 60 + int(m.group(3)) + 1
       finally:
           proc.kill()

       return jsonify(duration=duration)

    @app.route('/media/.mp4')
    def media_content_ogv(path):
       d= os.path.abspath( os.path.join( config.media_folder, path ) )
       print d
       if not os.path.isfile( d ): abort(404)
       start= request.args.get("start") or 0
       print start
       def generate():
           cmdline= list()
           cmdline.append( config.ffmpeg )
           cmdline.append( "-i" )
           cmdline.append( d );
           cmdline.append( "-ss" )
           cmdline.append( str(start) );
           cmdline.extend( config.ffmpeg_args )
           print cmdline
           FNULL = open(os.devnull, 'w')
           proc= subprocess.Popen( cmdline, stdout=subprocess.PIPE, stderr=FNULL )
           try:
               f= proc.stdout
               byte = f.read(512)
               while byte:
                   yield byte
                   byte = f.read(512)
           finally:
               proc.kill()

       return Response(response=generate(),status=200,mimetype='video/mp4',headers={'Access-Control-Allow-Origin': '*', "Content-Type":"video/mp4","Content-Disposition":"inline","Content-Transfer-Enconding":"binary"})

    @app.route('/', defaults={"path":"index.html"})
    @app.route('/')
    def static_content(path):
       d= os.path.abspath( os.path.join( config.static_folder, path ) )
       if not os.path.isfile( d ): abort(404)
       return send_file( d )

    app.run( host="0.0.0.0",port=config.port, threaded=True, debug=True )

    config.py

    media_folder=   "media"
    static_folder=  "static"
    port=       8123
    ffmpeg=     "/usr/bin/ffmpeg"

    ffmpeg_args=    [ "-f", "avi" ,"-acodec", "libfdk_aac", "-b:a", "128k", "-vcodec", "libx264", "-b:v", "1200k" , "-flags" , "+aic+mv4", "pipe:1"]

    index.html

       
       <code class="echappe-js">&lt;script src=&quot;http://vjs.zencdn.net/4.5/video.js&quot;&gt;&lt;/script&gt;

    &lt;script src=&quot;http://code.jquery.com/jquery-1.9.1.min.js&quot;&gt;&lt;/script&gt;

    &lt;script&gt;<br />
           var video= videojs('video');<br />
           video.src(&quot;media/testavi.avi.mp4&quot;);<br />
    <br />
           // hack duration<br />
           video.duration= function() { return video.theDuration; };<br />
           video.start= 0;<br />
           video.oldCurrentTime= video.currentTime;<br />
           video.currentTime= function(time) <br />
           { <br />
               if( time == undefined )<br />
               {<br />
                   return video.oldCurrentTime() + video.start;<br />
               }<br />
               console.log(time)<br />
               video.start= time;<br />
               video.oldCurrentTime(0);<br />
               video.src(&quot;media/testavi.avi.mp4?start=&quot; + time);<br />
               video.play();<br />
               return this;<br />
           };<br />
    <br />
           $.getJSON( &quot;media/testavi.avi.js&quot;, function( data ) <br />
           {<br />
               video.theDuration= data.duration;<br />
           });<br />
       &lt;/script&gt;
  • dnxhddec : decode and use interlace mb flag

    25 septembre 2015, par Christophe Gisquet
    dnxhddec : decode and use interlace mb flag
    

    This bit is 1 in some samples, and seems to coincide with interlaced
    mbs and CID1260. 2008 specs do not know about it, and maintain qscale
    is 11 bits. This looks oversized, but may help larger bitdepths.

    Currently, it leads to an obviously incorrect qscale value, meaning
    its syntax is shifted by 1. However, reading 11 bits also leads to
    obviously incorrect decoding : qscale seems to be 10 bits.

    However, as most profiles still have 11bits qscale, the feature is
    restricted to the CID1260 profile.

    The encoder writes 12 bits of syntax, last and first bits always 0,
    which is now somewhat inconsistent with the decoder, but ends up with
    the same effect (progressive + reserved bit).

    Partially fixes ticket #4876.

    Signed-off-by : Michael Niedermayer <michael@niedermayer.cc>

    • [DH] libavcodec/dnxhddec.c