Recherche avancée

Médias (0)

Mot : - Tags -/serveur

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

Autres articles (37)

  • Contribute to documentation

    13 avril 2011

    Documentation is vital to the development of improved technical capabilities.
    MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
    To contribute, register to the project users’ mailing (...)

  • Selection of projects using MediaSPIP

    2 mai 2011, par

    The examples below are representative elements of MediaSPIP specific uses for specific projects.
    MediaSPIP farm @ Infini
    The non profit organizationInfini develops hospitality activities, internet access point, training, realizing innovative projects in the field of information and communication technologies and Communication, and hosting of websites. It plays a unique and prominent role in the Brest (France) area, at the national level, among the half-dozen such association. Its members (...)

  • Use, discuss, criticize

    13 avril 2011, par

    Talk to people directly involved in MediaSPIP’s development, or to people around you who could use MediaSPIP to share, enhance or develop their creative projects.
    The bigger the community, the more MediaSPIP’s potential will be explored and the faster the software will evolve.
    A discussion list is available for all exchanges between users.

Sur d’autres sites (8354)

  • xuggler : no video in encoded 3gp file

    1er août 2012, par khizar

    i am trying to encode videos into 3gp format using xuggler, i somehow got it to work, work as in the program stopped throwing errors and exceptions, but the new file that is created does not have any video. Now there is no error or exception for me to work with so i have stuck a wall.
    EDIT : Note the audio is working as it shud.

    This is the code for the main function where the listeners are configured

    IMediaReader reader = ToolFactory.makeReader("/home/hp/mms/b.flv") ;

       IMediaWriter writer = ToolFactory.makeWriter("/home/hp/mms/xuggle/a_converted.3gp", reader);

       IMediaDebugListener debugListener = ToolFactory.makeDebugListener();
       writer.addListener(debugListener);

       ConvertVideo convertor = new ConvertVideo(new File("/home/hp/mms/b.flv"), new File("/home/hp/mms/xuggle/a_converted.3gp"));
       // convertor.addListener(writer);
       reader.addListener(writer);
       writer.addListener(convertor);

       while (reader.readPacket() == null)
           ;

    And this is the code for the convertor that i wrote.

    public ConvertVideo(File inputFile, File outputFile)
    {
       this.outputFile = outputFile;
       reader = ToolFactory.makeReader(inputFile.getAbsolutePath());
       reader.addListener(this);
    }
    private IVideoResampler videoResampler = null;
    private IAudioResampler audioResampler = null;

    @Override
    public void onAddStream(IAddStreamEvent event)
    {
       if (writer == null)
       {
           writer = ToolFactory.makeWriter(outputFile.getAbsolutePath(), reader);

       }

       int streamIndex = event.getStreamIndex();
       IStreamCoder streamCoder = event.getSource().getContainer().getStream(streamIndex).getStreamCoder();

       if (streamCoder.getCodecType() == ICodec.Type.CODEC_TYPE_AUDIO)
       {
           streamCoder.setFlag(IStreamCoder.Flags.FLAG_QSCALE, false);
           writer.addAudioStream(streamIndex, 0, 1, 8000);
       }
       else if (streamCoder.getCodecType() == ICodec.Type.CODEC_TYPE_VIDEO)
       {
           streamCoder.setFlag(IStreamCoder.Flags.FLAG_QSCALE, false);
           streamCoder.setCodec(ICodec.findEncodingCodecByName("h263"));
           writer.addVideoStream(streamIndex, 0, VIDEO_WIDTH, VIDEO_HEIGHT);

       }
       super.onAddStream(event);
    }

    // //
    @Override
    public void onVideoPicture(IVideoPictureEvent event)
    {
       IVideoPicture pic = event.getPicture();
       if (videoResampler == null)
       {
           videoResampler = IVideoResampler.make(VIDEO_WIDTH, VIDEO_HEIGHT, pic.getPixelType(), pic.getWidth(), pic.getHeight(), pic.getPixelType());
       }
       IVideoPicture out = IVideoPicture.make(pic.getPixelType(), VIDEO_WIDTH, VIDEO_HEIGHT);
       videoResampler.resample(out, pic);

       IVideoPictureEvent asc = new VideoPictureEvent(event.getSource(), out, event.getStreamIndex());
       super.onVideoPicture(asc);
       out.delete();
    }

    @Override
    public void onAudioSamples(IAudioSamplesEvent event)
    {
       IAudioSamples samples = event.getAudioSamples();
       if (audioResampler == null)
       {
           audioResampler = IAudioResampler.make(1, samples.getChannels(), 8000, samples.getSampleRate());
       }
       if (event.getAudioSamples().getNumSamples() > 0)
       {
           IAudioSamples out = IAudioSamples.make(samples.getNumSamples(), samples.getChannels());
           audioResampler.resample(out, samples, samples.getNumSamples());

           AudioSamplesEvent asc = new AudioSamplesEvent(event.getSource(), out, event.getStreamIndex());
           super.onAudioSamples(asc);
           out.delete();
       }
    }

    I just cant seem to figure out where the problem is. I wud be thankful if someone wud plz point me in the right direction.

    EDIT : If i see the properties of my newly encoded video, its audio properties are set and its video properties are not i.e in video properties, dimension= 0 x 0, frame rate= N/A and codec= h.263. The problem here is the 0 x 0 dimension.

  • compile opencv on macos error - error in libavformat

    16 janvier 2016, par sofia

    I’ve tried compiling OpenCSV in two macs and in both I have errors. The errors follow :

    Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/cap_ffmpeg.cpp.o
    use of undeclared identifier 'avformat_find_stream_info';
    did you mean 'av_find_stream_info'?
    /usr/local/include/libavformat/avformat.h:1168:5: note: 'av_find_stream_info' declared here int av_find_stream_info(AVFormatContext *ic);

    The libavformat in /usr/local/include was installed with ffmpeg. Ffmpeg is the 0.8.5 version

    Anyone has this same issue ?

  • Anomalie #2801 (Nouveau) : SPIP 3 en ISO-8859-1

    18 juillet 2012, par Thierry Horizons

    Bonjour, 2 points que j’ai remarqué en ISO-8859-1 sur SPIP 3.0.3

    Le moteur de recherche (en fait, c’était déjà le cas en V2) en recherchant un mot accentué, seuls les articles sans cet accent ressortent. J’ai noté que pour une recherche de "élément", la requête à MySQL est WHERE title LIKE "%element%" (...)