Recherche avancée

Médias (0)

Mot : - Tags -/tags

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

Autres articles (65)

Sur d’autres sites (13936)

  • Android MediaMetadataRetriever.METADATA_KEY_DATE gives only date of video on galaxy S7

    15 mai 2023, par Zaid Bin Tariq

    I am writing a code to get video creation date and time from metadata, i am using following code to get creation date

    



    MediaMetadataRetriever retriever = new MediaMetadataRetriever();
retriever.setDataSource(path_to_video);
String date = retriever.extractMetadata(MediaMetadataRetriever.METADATA_KEY_DATE);


    



    it works perfect on all devices except Samsung Galaxy S7, it returns only date in "YYYY MM DD" format, no time stamp i need both date and timestamp.

    



    any help in this regard is much appreciated.

    


  • FFMPEG : is there a way to keep RTSP connection alive in code ?

    14 décembre 2011, par Alex

    I'm taking frames from a RTSP connection as follows (in pseudocode) :

    av_open_input_file(&avcontext)
    while(av_read_frame(&frame) > 0) {
       doSomething(frame);
       av_free_packet(frame);
    }

    For some reason the doSomething() function takes much time and, because of this (at least, I think so) the connection interupts - av_read_frame() returns 'eof' and the loop exits.

    When I make doSomething() shorter such interruptions do not occur.

    For some reasons I can't do doSomething() in another thread.

    Therefore, I'm interested if maybe there are some parameters to avcontext which will let me keep the connection alive or increase the timeout ?

    Thank you !

  • Splitting single 32-channel audio file into 32 mono audio files using ffmpeg

    16 janvier 2015, par user1066157

    I am trying to split a single 32-channel audio file in .caf format to 32 mono audio files in signed 16 bit little endian .wav format using ffmpeg, but I can’t figure out how to accomplish this exactly. I have tried to do :

    ffmpeg -i myAudio.caf -acodec pcm_s16le -map 0:0 channel_01.wav -map 0:1 channel_02.wav ...

    But this returns a "Stream map ’0:1’ matches no streams" error. Surely I am missing something entirely obvious here... Most likely I am confused about how to reference each individual channel in my single, multi-channel audio file. Could someone show me the right way of doing this perhaps ?