Recherche avancée

Médias (0)

Mot : - Tags -/performance

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (5)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • MediaSPIP Init et Diogène : types de publications de MediaSPIP

    11 novembre 2010, par

    À l’installation d’un site MediaSPIP, le plugin MediaSPIP Init réalise certaines opérations dont la principale consiste à créer quatre rubriques principales dans le site et de créer cinq templates de formulaire pour Diogène.
    Ces quatre rubriques principales (aussi appelées secteurs) sont : Medias ; Sites ; Editos ; Actualités ;
    Pour chacune de ces rubriques est créé un template de formulaire spécifique éponyme. Pour la rubrique "Medias" un second template "catégorie" est créé permettant d’ajouter (...)

  • Installation en mode ferme

    4 février 2011, par

    Le mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
    C’est la méthode que nous utilisons sur cette même plateforme.
    L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
    Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...)

Sur d’autres sites (3339)

  • How to optimize this ffmpeg script ?

    5 juillet 2015, par user3673952

    I’m trying to run a script to add a intro + watermark a lot of videos, the thing is i only managed to do this with 2 scripts :

    ffmpeg -i "%a" -i logo.png -filter_complex "scale=1280x738,setsar=1:1,overlay=main_w-overlay_w-10:main_h-overlay_h-10" path\_%a

    &

    ffmpeg -i path\intro.mp4 -i path\_%a -filter_complex "[0:0] [0:1] [1:0] [1:1] concat=n=2:v=1:a=1 [v] [a]" -map "[v]" -map "[a]" -bsf:a aac_adtstoasc path\%a

    So i have to encode two videos (the scaled & watermarked one and the final one) every time. Can i do this with only one command ?

    Also, is there any way i can further optimize the command so i can do this encoding faster ?

  • Android - How to direct the audio data from MediaRecorder as the input of ffmpeg command via Pipe ?

    3 juin 2013, par Abner311

    I tried to publish audio stream to RTMP server via FFmpeg executable binary.
    I have referred to Android AudioRecord to FFMPEG encode native AAC to create a pipe at Android side and assign the reader part of pipe to ffmpeg command.

    @Override
    protected void onCreate(Bundle savedInstanceState) {

       super.onCreate(savedInstanceState);
       setContentView(com.example.processtest.R.layout.activity_main);
       mediaRecorder = new MediaRecorder();
       mediaRecorder.setAudioSource(MediaRecorder.AudioSource.MIC);
       mediaRecorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP);
       mediaRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AAC);
       mediaRecorder.setAudioSamplingRate(44100);
       mediaRecorder.setAudioEncodingBitRate(64);

       final ParcelFileDescriptor[] pipe = getPipe();
       mediaRecorder.setOutputFile(pipe[1].getFileDescriptor());
       try {
           mediaRecorder.prepare();
       } catch (IllegalStateException e1) {
           e1.printStackTrace();
       } catch (IOException e1) {
           e1.printStackTrace();
       }
       mediaRecorder.start();

       TextView txt = (TextView)this.findViewById(com.example.processtest.R.id.output);
       try {    
           p = Runtime.getRuntime().exec("/data/data/com.example.processtest/bin/ffmpeg -re -i pipe:"+ pipe[0].getFd() +" -c copy -f flv rtmp://192.168.2.224:1935/myapp/mystream");  
       } catch (IOException e) {
           e.printStackTrace();
       }
    }

    ParcelFileDescriptor[] getPipe()
    {
       final String FUNCTION = "getPipeFD";
       //FileDescriptor outputPipe = null;
       ParcelFileDescriptor[] pipe = null;
       try
       {
           pipe = ParcelFileDescriptor.createPipe();
       }
       catch(Exception e)
       {
           Log.e("ProcessTest", FUNCTION + " : " + e.getMessage());
       }

       return pipe;
    }

    However, I got the error msg like "pipe:55 : Bad file number" :

       $/data/data/com.example.processtest/bin/ffmpeg -re -i pipe:55 -c copy -f flv  rtmp://192.168.2.224:1935/myapp/mystream

      E/ProcessTest(19150):   libavutil      51. 65.100 / 51. 65.100<br />
      E/ProcessTest(19150):   libavcodec     54. 41.100 / 54. 41.100<br />
      E/ProcessTest(19150):   libavformat    54. 17.100 / 54. 17.100<br />
      E/ProcessTest(19150):   libavdevice    54.  1.100 / 54.  1.100<br />
      E/ProcessTest(19150):   libavfilter     3.  2.100 /  3.  2.100<br />
      E/ProcessTest(19150):   libswscale      2.  1.100 /  2.  1.100<br />
      E/ProcessTest(19150):   libswresample   0. 15.100 /  0. 15.100<br />
      E/ProcessTest(19150): pipe:55: Bad file number<br />

    Please help me figure out how to assign right pipe fd to ffmpeg command-line process.

  • Encoding H.264 video using FFmpeg C API

    18 juillet 2014, par GummiB

    I’m trying to encode a H.264 video with the FFMPEG C API.
    I have successfully compiled and executed the decoding/encoding example provided by FFMPEG.

    The problem I’m facing is that the .mpg file (encoded with AV_CODEC_ID_MPEG1VIDEO) the example creates works. Windows creates a thumbnail and everything. On the other hand the .h264 (encoded with AV_CODEC_ID_H264) file does not. When I try to play the file in VLC the play/pause button just flickers, no thumbnail in windows, no nothing.

    During encoding libx264 reports the following :

    [libx264 @ 004b81a0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
    [libx264 @ 004b81a0] profile High, level 1.3
    [libx264 @ 004b81a0] frame I:3     Avg QP:26.79  size:  2116
    [libx264 @ 004b81a0] frame P:12    Avg QP:26.60  size:   789
    [libx264 @ 004b81a0] frame B:10    Avg QP:31.39  size:   499
    [libx264 @ 004b81a0] consecutive B-frames: 20.0% 80.0%
    [libx264 @ 004b81a0] mb I  I16..4: 78.3% 11.6% 10.1%
    [libx264 @ 004b81a0] mb P  I16..4: 77.4%  0.6%  0.1%  P16..4: 20.3%  0.7%  0.9%  0.0%  0.0%    skip: 0.0%
    [libx264 @ 004b81a0] mb B  I16..4:  0.0%  0.0%  0.0%  B16..8:  9.4%  0.2%  0.0%  direct:11.0%  skip:79.4%  L0:25.4% L1:35.4% BI:39.2%
    [libx264 @ 004b81a0] final ratefactor: 17.03
    [libx264 @ 004b81a0] 8x8 transform intra:3.4% inter:31.3%
    [libx264 @ 004b81a0] direct mvs  spatial:0.0% temporal:100.0%
    [libx264 @ 004b81a0] coded y,uvDC,uvAC intra: 4.4% 35.8% 1.6% inter: 1.3% 34.5% 9.5%
    [libx264 @ 004b81a0] i16 v,h,dc,p:  0%  0%  0% 100%
    [libx264 @ 004b81a0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu:  7% 20% 17% 49%  0%  0%  0%  1%  6%
    [libx264 @ 004b81a0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 14%  7% 18% 45%  2%  7%  2%  3%  2%
    [libx264 @ 004b81a0] i8c dc,h,v,p:  2%  6%  4% 88%
    [libx264 @ 004b81a0] Weighted P-Frames: Y:0.0% UV:0.0%
    [libx264 @ 004b81a0] ref P L0: 95.6%  1.6%  2.2%  0.5%  0.2%
    [libx264 @ 004b81a0] ref B L0: 67.5% 28.5%  3.2%  0.8%
    [libx264 @ 004b81a0] kb/s:166.45

    "ffprobe.exe test.h264 -show_streams" returns

    [STREAM]
    index=0
    codec_name=h264
    codec_long_name=H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
    profile=High
    codec_type=video
    codec_time_base=1/50
    codec_tag_string=[0][0][0][0]
    codec_tag=0x0000
    width=352
    height=288
    has_b_frames=1
    sample_aspect_ratio=0:1
    display_aspect_ratio=0:1
    pix_fmt=yuv420p
    level=13
    timecode=N/A
    id=N/A
    r_frame_rate=50/2
    avg_frame_rate=25/1
    time_base=1/1200000
    start_pts=N/A
    start_time=N/A
    duration_ts=N/A
    duration=N/A
    bit_rate=N/A
    nb_frames=N/A
    nb_read_frames=N/A
    nb_read_packets=N/A
    DISPOSITION:default=0
    DISPOSITION:dub=0
    DISPOSITION:original=0
    DISPOSITION:comment=0
    DISPOSITION:lyrics=0
    DISPOSITION:karaoke=0
    DISPOSITION:forced=0
    DISPOSITION:hearing_impaired=0
    DISPOSITION:visual_impaired=0
    DISPOSITION:clean_effects=0
    DISPOSITION:attached_pic=0
    [/STREAM]

    There you can see :

    start_time=N/A
    duration_ts=N/A
    duration=N/A

    I have tried countless changes to the AVCodecContext and multitude of parameters options to av_opt_set function. Still no luck getting a working H.264 video. I have even tried different builds of FFmpeg. No luck.

    I’m using the "FFmpeg git-0fb64da 32-bit Dev" build from Zeranoe and MinGw 4.7.2