Recherche avancée

Médias (91)

Autres articles (60)

  • List of compatible distributions

    26 avril 2011, par

    The table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
    If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...)

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

Sur d’autres sites (9396)

  • iPhone - A problem with decoding H264 using ffmpeg

    25 mars 2012, par HAPPY_TIGER

    I am working with ffmpeg to decode H264 stream from server.

    I referenced DecoderWrapper from http://github.com/dropcam/dropcam_for_iphone.

    I compiled it successfully, but I don't know how use it.

    Here are the function that has problem.

    - (id)initWithCodec:(enum VideoCodecType)codecType
            colorSpace:(enum VideoColorSpace)colorSpace
                 width:(int)width
                height:(int)height
           privateData:(NSData*)privateData {
       if(self = [super init]) {

           codec = avcodec_find_decoder(CODEC_ID_H264);
           codecCtx = avcodec_alloc_context();

           // Note: for H.264 RTSP streams, the width and height are usually not specified (width and height are 0).  
           // These fields will become filled in once the first frame is decoded and the SPS is processed.
           codecCtx->width = width;
           codecCtx->height = height;

           codecCtx->extradata = av_malloc([privateData length]);
           codecCtx->extradata_size = [privateData length];
           [privateData getBytes:codecCtx->extradata length:codecCtx->extradata_size];
           codecCtx->pix_fmt = PIX_FMT_YUV420P;
    #ifdef SHOW_DEBUG_MV
           codecCtx->debug_mv = 0xFF;
    #endif

           srcFrame = avcodec_alloc_frame();
           dstFrame = avcodec_alloc_frame();

           int res = avcodec_open(codecCtx, codec);
           if (res < 0)
           {
               NSLog(@"Failed to initialize decoder");
           }
       }

       return self;    
    }

    What is the privateData parameter of this function ? I don't know how to set the parameter...

    Now avcodec_decode_video2 returns -1 ;

    The framedata is coming successfully.

    How solve this problem.

    Thanks a lot.

  • Is there any way to control the video bitrate using FFmpeg Complex Filter other than -b:v ?

    8 février 2017, par srujith poondla

    I am trying to compress the video size by reducing the bitrate. I successfully achieved using -b:v in ffmpeg, its working perfectly. But that is not a filter so i am unable to chain the ffmpeg commands one after the other. Is there any other video filter in ffmpeg that controls the bitrate of the video so that i can chain the ffmpeg commands like mentioned in this link Filter Chaining FFmpeg

  • How to fix the problem I'm having with FFmpeg ?

    23 février 2023, par John

    I'm working with the ffmpeg library to convert mp4 video files to mp3 audio files.
Here is my code :

    


    package com.exer;


import android.app.Activity;
import android.app.ProgressDialog;
import android.os.Bundle;
import android.os.Environment;
import android.widget.Toast;
import com.github.hiteshsondhi88.libffmpeg.ExecuteBinaryResponseHandler;
import com.github.hiteshsondhi88.libffmpeg.FFmpeg;
import com.github.hiteshsondhi88.libffmpeg.FFmpegLoadBinaryResponseHandler;

public class MainActivity extends Activity {
    
    FFmpeg ffmpeg;
    private ProgressDialog progressDialog;
    
    
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    
        
        
        try {
            setUp();
            String[] command = {
                "-i", getPaths()+"/dir/input.mp4", "-vn", getPaths()+"/dir/output.mp3"
            };
            //convert("ffmpeg -i input.mp4 -vn output.mp3");
            convert(command);
            
        } catch (Exception e) {
            Toast.makeText(getApplicationContext(), e.getCause().toString(), Toast.LENGTH_SHORT).show();
        }
    }
    
    
    public void setUp() throws Exception {
        
        if(ffmpeg == null) {
            
            ffmpeg = FFmpeg.getInstance(this);
            ffmpeg.loadBinary(new FFmpegLoadBinaryResponseHandler(){
                    
            @Override
            public void onFailure() {
                Toast.makeText(getApplicationContext(), "failed to load library", Toast.LENGTH_SHORT).show();   
            }
                    
            @Override
            public void onSuccess() {
                Toast.makeText(getApplicationContext(), "loaded!", Toast.LENGTH_SHORT).show();
            }
                    
            @Override
            public void onStart() {
                        
            }
                    
            @Override
            public void onFinish() {
                        
            }
                    
                    
            });
            
        }
        
    }
    
    
    private void convert(String[] cmd) throws Exception {
        
        ffmpeg.execute(cmd, new ExecuteBinaryResponseHandler(){
            
            @Override
            public void onFailure(String message){
                super.onFailure(message);
            }
            
            @Override
            public void onFinish(){
                super.onFinish();
                Toast.makeText(getApplicationContext(), "finished!", Toast.LENGTH_SHORT).show();
            }
            
            @Override
            public void onStart(){
                super.onStart();
                Toast.makeText(getApplicationContext(), "start conversion...", Toast.LENGTH_SHORT).show();
            }
            
            @Override
            public void onProgress(String message){
                super.onProgress(message);
            }
        });
        
    
    }
    
    private String getPaths() {
        return Environment.getExternalStorageDirectory().getPath();
    }
    
}


    


    When I run the app, the Toast messages are shown :

    


    loaded!
start converting...
finished! as I write them in the functions, apart that nothing else happens the file is not converted what's wrong ?

    


    Here my manifest file :

    


    &lt;?xml version="1.0" encoding="utf-8"?>&#xA;<manifest package="com.exer">&#xA;    &#xA;    &#xA;    &#xA;    &#xA;    &#xA;        &#xA;            &#xA;                <action></action>&#xA;&#xA;                <category></category>&#xA;            &#xA;        &#xA;    &#xA;&#xA;</manifest>&#xA;

    &#xA;

    I've tried to delete the specified file on the phone to see what erros I might got, but still those three Toasts.

    &#xA;