Recherche avancée

Médias (91)

Autres articles (54)

  • Keeping control of your media in your hands

    13 avril 2011, par

    The vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
    While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
    MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
    MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • Submit bugs and patches

    13 avril 2011

    Unfortunately a software is never perfect.
    If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
    If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
    You may also (...)

Sur d’autres sites (3792)

  • Matching a specific media format with ffmpeg/avconv

    5 mai 2020, par Markus A.

    I need to encode a video from static images in such a way that it format-matches another one so I can splice the video streams together.

    



    Here is the mediainfo of the file I'm trying to match :

    



    Video
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : Baseline@L3.1
Format settings, CABAC                   : No
Format settings, ReFrames                : 1 frame
Codec ID                                 : 7
Duration                                 : 2mn 46s
Bit rate                                 : 1 614 Kbps
Width                                    : 1 280 pixels
Height                                   : 720 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Variable
Standard                                 : NTSC
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Stream size                              : 32.0 MiB (87%)
Color primaries                          : BT.601 PAL
Transfer characteristics                 : BT.601
Matrix coefficients                      : BT.601


    



    So far, what I have been able to come up with is the following :

    



    avconv -f image2 -framerate 1.2 -i loop_%d.tif -c:v libx264 -preset veryslow -profile:v baseline -level:v 31 -b:v 1614K -refs 1 loop.flv


    



    This gets me to :

    



    Video
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : Baseline@L3.1
Format settings, CABAC                   : No
Format settings, ReFrames                : 1 frame
Codec ID                                 : 7
Duration                                 : 2s 917ms
Bit rate                                 : 1 614 Kbps
Width                                    : 1 280 pixels
Height                                   : 720 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 1.200 fps
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 1.459
Stream size                              : 575 KiB
Writing library                          : x264 core 142 r2431 a5831aa
Encoding settings                        : cabac=0 / ref=1 / deblock=1:0:0 / analyse=0x1:0x131 / me=umh / subme=10 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=0 / me_range=24 / chroma_me=1 / trellis=2 / 8x8dct=0 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=6 / lookahead_threads=1 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=0 / weightp=0 / keyint=250 / keyint_min=1 / scenecut=40 / intra_refresh=0 / rc_lookahead=60 / rc=abr / mbtree=1 / bitrate=1614 / ratetol=1.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00


    



    Which, unfortunately, still isn't good enough as VLC Media Player crashes hard (just closes), logging main error: Failed to compensate for the format changes, removing all filters; main error: Failed to create video converter as soon as the stream splice occurs. I tried splicing another stream in that does have the exact same encoding, and it works fine. I'm also making sure to only splice on key-frames and I am including the NALU containing the AVCDecoderConfigRecord, so I'm pretty sure I'm not doing anything else wrong, especially since a couple other programs are fine with the splice. It's just VLC that expects an even closer match.

    



    Here are things I've tried :

    



      

    • Adding -vsync 2 to get variable frame rate mode. Doesn't change anything.
    • 


    • Adding -color_primaries bt470bg -color_trc gamma28 -colorspace bt470bg to try to get BT.601 PAL settings (several websites mentioned this). Doesn't change anything.
    • 


    • Adding -s ntsc to set the standard to NTSC. This also changes the resolution to 720x480 (not OK), and specifying -s 1280x720 in addition gets rid of the NTSC tag again.
    • 


    



    If anyone knows what flags I need to supply to get closer, that would be super-helpful ! The stream I'm trying to match is encoded on an Android device (it's a live-stream), so I'm assuming it is built using the standard Android MediaCoder framework, in case that helps.

    


  • Getting ffmpeg to work with Heroku

    18 juillet 2020, par scientiffic

    I attempted to install ffmpeg for my Heroku Rails app and now my app is crashing.

    



    I added a buildpack using the following command :

    



    heroku config:add BUILDPACK_URL=https://github.com/shunjikonishi/heroku-buildpack-ffmpeg


    



    After pushing to Heroku, I get the following error according to my logs :

    



    2013-11-17T17:50:44.022351+00:00 heroku[web.1]: Starting process with command `bundle exec rails server -p 47171`
2013-11-17T17:50:46.295602+00:00 app[web.1]: bash: bundle: command not found
2013-11-17T17:50:47.589491+00:00 heroku[web.1]: Process exited with status 127
2013-11-17T17:50:47.597968+00:00 heroku[web.1]: State changed from starting to crashed
2013-11-17T17:50:48.620853+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/ (...) fwd="76.118.180.235" dyno= connect= service= status=503 bytes=
2013-11-17T17:50:48.847288+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=(...) fwd="76.118.180.235" dyno= connect= service= status=503 bytes=


    



    When I run heroku run rake db:migrate, I get the error :

    



    Running `rake db:migrate` attached to terminal... up, run.9791&#xA;(in /app)&#xA;rake aborted!&#xA;no such file to load -- bundler/setup&#xA;rubygems/custom_require>:29:in `require&#x27;&#xA;rubygems/custom_require>:29:in `require&#x27;&#xA;/app/config/boot.rb:6:in `<top>&#x27;&#xA;rubygems/custom_require>:29:in `require&#x27;&#xA;rubygems/custom_require>:29:in `require&#x27;&#xA;/app/config/application.rb:1:in `<top>&#x27;&#xA;rubygems/custom_require>:29:in `require&#x27;&#xA;rubygems/custom_require>:29:in `require&#x27;&#xA;/app/Rakefile:5:in `<top>&#x27;&#xA;/usr/local/lib/ruby/1.9.1/rake.rb:2373:in `load&#x27;&#xA;/usr/local/lib/ruby/1.9.1/rake.rb:2373:in `raw_load_rakefile&#x27;&#xA;/usr/local/lib/ruby/1.9.1/rake.rb:2007:in `block in load_rakefile&#x27;&#xA;/usr/local/lib/ruby/1.9.1/rake.rb:2058:in `standard_exception_handling&#x27;&#xA;/usr/local/lib/ruby/1.9.1/rake.rb:2006:in `load_rakefile&#x27;&#xA;/usr/local/lib/ruby/1.9.1/rake.rb:1991:in `run&#x27;&#xA;/usr/local/bin/rake:31:in `<main>&#x27;&#xA;</main></top></top></top>

    &#xA;&#xA;

    When I check the version of bundler I'm using (bundle show bundler), I get :

    &#xA;&#xA;

    /Users/(...).rvm/gems/ruby-1.9.3-p448/gems/bundler-1.3.5/lib/bundler.rb:284: warning: Insecure world writable dir /usr/local in PATH, mode 040777&#xA;/Users/(...)/.rvm/gems/ruby-1.9.3-p448/gems/bundler-1.3.5&#xA;

    &#xA;&#xA;

    How can I solve this problem ?

    &#xA;

  • Which is the best way to encode videos into multiple resolutions in django ? Should we create a single celery task or to have multiple tasks to encode ? [closed]

    13 septembre 2020, par Danny

    Hey guys Which is the best way to encode videos using ffmpeg into multiple resolutions in django ? Should we create a single celery task which encodes the video and save in database or to have multiple tasks to encode video into various resolutions ? I am new to all these, so any help regarding the best way is highly appreciated.

    &#xA;

    I have two tasks here to encode into 480 and 1080p..so is it possible to run both in 1 task or the best way is to encode separately ??

    &#xA;

    Also how does websites like youtube encode ?

    &#xA;

    @task(name= &#x27;task_video_encoding_480p&#x27;)&#xA;def task_video_encoding_480p(video_id):&#xA;    logger.info(&#x27;Video Processing started&#x27;)&#xA;    try:&#xA;        video = &#xA;        input_file_path = &#xA;        output_file_480p_path = &#xA;&#xA;        for i in range(1):&#xA;            new_video_480p = subprocess.call([ffmpeg, {process},output_file_480p_path])&#xA;&#xA;        if new_video_480p == 0:&#xA;&#xA;            video.save()&#xA;            logger.info(&#x27;Video Processing Finished&#x27;)&#xA;            #video.temp_file.delete()&#xA;        else:&#xA;            logger.info(&#x27;Proceesing Failed.&#x27;) # Just for now&#xA;&#xA;    except:&#xA;        raise ValidationError(&#x27;Something went wrong!&#x27;)&#xA;

    &#xA;

    task 2

    &#xA;

    @task(name= &#x27;task_video_encoding_1080p&#x27;)&#xA;def task_video_encoding_1080p(video_id):&#xA;    logger.info(&#x27;Video Processing started&#x27;)&#xA;    try:&#xA;        video = &#xA;        input_file_path = &#xA;        output_file_1080p_path = &#xA;&#xA;        for i in range(1):&#xA;            new_video_1080p = subprocess.call([ffmpeg, {process},output_file_1080p_path])&#xA;&#xA;        if new_video_1080p == 0:&#xA;&#xA;            video.save()&#xA;            logger.info(&#x27;Video Processing Finished&#x27;)&#xA;            video.temp_file.delete()&#xA;        else:&#xA;            logger.info(&#x27;Proceesing Failed.&#x27;) # Just for now&#xA;&#xA;    except:&#xA;        raise ValidationError(&#x27;Something went wrong!&#x27;)&#xA;

    &#xA;

    Thank you. Highly appreciate the help.

    &#xA;