Recherche avancée

Médias (91)

Autres articles (41)

  • (Dés)Activation de fonctionnalités (plugins)

    18 février 2011, par

    Pour gérer l’ajout et la suppression de fonctionnalités supplémentaires (ou plugins), MediaSPIP utilise à partir de la version 0.2 SVP.
    SVP permet l’activation facile de plugins depuis l’espace de configuration de MediaSPIP.
    Pour y accéder, il suffit de se rendre dans l’espace de configuration puis de se rendre sur la page "Gestion des plugins".
    MediaSPIP est fourni par défaut avec l’ensemble des plugins dits "compatibles", ils ont été testés et intégrés afin de fonctionner parfaitement avec chaque (...)

  • Le plugin : Podcasts.

    14 juillet 2010, par

    Le problème du podcasting est à nouveau un problème révélateur de la normalisation des transports de données sur Internet.
    Deux formats intéressants existent : Celui développé par Apple, très axé sur l’utilisation d’iTunes dont la SPEC est ici ; Le format "Media RSS Module" qui est plus "libre" notamment soutenu par Yahoo et le logiciel Miro ;
    Types de fichiers supportés dans les flux
    Le format d’Apple n’autorise que les formats suivants dans ses flux : .mp3 audio/mpeg .m4a audio/x-m4a .mp4 (...)

  • 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

Sur d’autres sites (7156)

  • Recording from an ImageView using FFmpegFrameRecorder

    8 novembre 2015, par UserAx

    I want to convert images displayed in a imageview to a video using FFmpegFrameRecorder, and add audio using mic as the source

    I have imported JavaCV to my project(javacv.jar, javacpp.jar, opencv.jar , openv-android-arm.jar, ffmpeg.jar, ffmpeg-android-arm.jar ; added them under project structure/dependencies)

    I am using this code https://github.com/gderaco/JavaCVTest/tree/master

    I get error as "record (org.bytedeco.javacv.Frame) in FFmpegFrameRecorder cannot be applied to (org.bytedeco.javacpp.opencv_coreiplImage)"

    where have i gone wrong and how to add mic as the audio source ?

    CODE:
    import..

    import org.bytedeco.javacpp.opencv_core;
    import org.bytedeco.javacv.FFmpegFrameRecorder;

    import static org.bytedeco.javacpp.opencv_imgcodecs.cvLoadImage;

    public class MyAndroidAppActivity extends Activity {

    ImageView image;

    @Override
    public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.main);

    addListenerOnButton();

    opencv_core.IplImage img = cvLoadImage("ImageView");

    FFmpegFrameRecorder recorder = new                
    FFmpegFrameRecorder("/sdcard/test.mpeg",200,150);

       try {
           recorder.setFrameRate(30);
           recorder.start();

           for (int i=0;i<100;i++)
           {
               recorder.record(img);
           }
           recorder.stop();
       }
       catch (Exception e){
           e.printStackTrace();
       }

    }

    public void addListenerOnButton() {

    image = (ImageView) findViewById(R.id.imageView1);
    button = (Button) findViewById(R.id.btn1);

    button.setOnClickListener(new OnClickListener() {
       @Override
       public void onClick(View arg0) {
           image.setImageResource(R.drawable.image1);
       }
    });

    //...........

    button = (Button) findViewById(R.id.btn10);

    button.setOnClickListener(new OnClickListener() {
       @Override
       public void onClick(View arg0) {
           image.setImageResource(R.drawable.image10);
       }

    });
    }
  • FFMpeg avformat_write_header always returns 0

    24 octobre 2015, par gabe.roze

    We’ve asked a freelancer to build a video encoder with FFMPeg for iOS but there is a bug and the freelancer is no longer available. I very inexperienced in FFMpeg and video encoding and am trying to debug this error.

    From what I understand, we’re attempting to create an output file and create a header for it however, avformat_write_header is always less than zero. If I comment it out, it does not work

    - (BOOL) writeHeaderWithError:(NSError *__autoreleasing *)error {
       AVDictionary *options = NULL;

       // Write header for output file
       int writeHeaderValue = avformat_write_header(self.formatContext, &options);
       if (writeHeaderValue < 0) {
           if (error != NULL) {
               *error = [FFUtilities errorForAVError:writeHeaderValue];
           }
           av_dict_free(&options);
           return NO;
       }
       av_dict_free(&options);
       return YES;
    }

    Below is some relevant code of how we instantiate a FFOutputFile

       - (AVFormatContext*) formatContextForOutputPath:(NSString*)outputPath options:(NSDictionary*)options {
       AVFormatContext *outputFormatContext = NULL;
       NSString *outputFormatString = [options objectForKey:kFFmpegOutputFormatKey];

       int openOutputValue = avformat_alloc_output_context2(&outputFormatContext, NULL, [outputFormatString UTF8String], [outputPath UTF8String]);
       if (openOutputValue < 0) {
           avformat_free_context(outputFormatContext);
           return nil;
       }
       return outputFormatContext;
    }

    - (void) addOutputStream:(FFOutputStream*)outputStream {
       [self.streams addObject:outputStream];
    }

    - (id) initWithPath:(NSString *)path options:(NSDictionary *)options {
       if (self = [super initWithPath:path options:options]) {
           self.formatContext = [self formatContextForOutputPath:path options:options];
           self.streams = [NSMutableArray array];
           self.bitstreamFilters = [NSMutableSet set];
       }
       return self;
    }
  • Swift MpmoviePlayerController RTSP Live Stream

    17 octobre 2015, par Janis Thr

    I want to stream a livepicture via RTSP from my actioncam (Qumox SJ4000) to MPMoviePlayerController.
    Does someone have an idea if this is possible ? Do I need FFmpeg to convert the Stream to HLS or is there an easier solution ?

    My current code works fine with the HLS-Stream, but not with the rtsp-stream.

    import UIKit
    import MediaPlayer


    class ViewController: UIViewController {

       var moviePlayer: MPMoviePlayerController!

          override func viewDidLoad() {
           super.viewDidLoad()

           var url:NSURL = NSURL(string: "http://jplayer.org/video/m4v/Big_Buck_Bunny_Trailer.m4v")!
           //url = NSURL(string: "rtsp://192.168.1.254:554/sjcam.mov")!
           moviePlayer = MPMoviePlayerController(contentURL: url)
           moviePlayer.view.frame = CGRect(x: 20, y: 100, width: 200, height: 150)

           self.view.addSubview(moviePlayer.view)
           moviePlayer.fullscreen = false

           moviePlayer.controlStyle = MPMovieControlStyle.Embedded
           moviePlayer.prepareToPlay()
           moviePlayer.play()

       }
    }