Recherche avancée

Médias (39)

Mot : - Tags -/audio

Autres articles (69)

  • Modifier la date de publication

    21 juin 2013, par

    Comment changer la date de publication d’un média ?
    Il faut au préalable rajouter un champ "Date de publication" dans le masque de formulaire adéquat :
    Administrer > Configuration des masques de formulaires > Sélectionner "Un média"
    Dans la rubrique "Champs à ajouter, cocher "Date de publication "
    Cliquer en bas de la page sur Enregistrer

  • Participer à sa traduction

    10 avril 2011

    Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
    Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
    Actuellement MediaSPIP n’est disponible qu’en français et (...)

  • 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 (5906)

  • How to merge .ts files from a DLINK security camera losslessly ?

    13 juin 2022, par anjchang

    I have >1000s of small .ts files from a DLINK camera of a theft that occured. I first tried to merge the ts files into bigger files so that I could look for the audio where the relevant event occurred. Then in Premiere I looked for the highest sustained audio peaks (it was someone using a saw to cut out a catalytic converter). Then, I isolated the relevant 200 files where things happened on the timeline. But now, I want to export the 20 minutes of the incident with the least compression (or no compression). Apparently Adobe Premiere can export the whole timeline containing these clips, but will compress them. I have not edited any of the files, so I don't want any rendering. I just want them strung together in a "well-known" format so I can send the files to the insurance company and authorities.

    


    I used an answer from here but there were audio gaps. Some of the files had no audio, causing the problem when I first merged the files with :

    


     for i in `\ls *.ts | sort -V`; do echo "file '$i'"; done >> mylist.txt;ffmpeg -f concat -i mylist.txt -c copy -bsf:a aac_adtstoasc video.mp4


    


  • ffmpeg program written in C, cannot open my camera in macOS Catalina 10.15.7

    27 mai 2022, par marco0631
    #include 
#include 
#include "libavcodec/avcodec.h"
#include "libavformat/avformat.h"
#include "libavdevice/avdevice.h"

AVFormatContext* openCamera(void) {
    avdevice_register_all();
    AVFormatContext *ctx = avformat_alloc_context();
    AVInputFormat *ifmt = av_find_input_format("avfoundation");
    if (ifmt != NULL) {
        AVDictionary *opts = NULL;
        av_dict_set(&opts, "video_size", "1280x720", 0);
        av_dict_set(&opts, "framerate", "30", 0);
        av_dict_set(&opts, "pixel_format", "uyvy422", 0);
        
        int ret = avformat_open_input(&ctx, "0", ifmt, &opts);
        if (ret != 0) {
            printf("no");
            avformat_free_context(ctx);
            return NULL;
        }
    }
    return ctx;
}

int main(int argc, const char *argv[]) {
    openCamera();
}



    


    My code run on Xcode. After I have added the plist file, the running program camera opens for about half a second and then closes. and console output

    


    2022-02-22 00:39:19.372178&#x2B;0800 ffmpeg-tool[5977:195724] [plugin] AddInstanceForFactory: No factory registered for id <cfuuid 0x10640cf60="0x10640cf60"> F8BB1C28-BAE8-11D6-9C31-00039315CD46&#xA;2022-02-22 00:39:19.434783&#x2B;0800 ffmpeg-tool[5977:195724]  HALC_ShellDriverPlugIn::Open: Can&#x27;t get a pointer to the Open routine&#xA;2022-02-22 00:39:19.435262&#x2B;0800 ffmpeg-tool[5977:195724]  HALC_ShellDriverPlugIn::Open: Can&#x27;t get a pointer to the Open routine&#xA;2022-02-22 00:39:19.501780&#x2B;0800 ffmpeg-tool[5977:195724] [plugin] AddInstanceForFactory: No factory registered for id <cfuuid 0x10640f860="0x10640f860"> 30010C1C-93BF-11D8-8B5B-000A95AF9C6A&#xA;2022-02-22 00:39:19.605797&#x2B;0800 ffmpeg-tool[5977:195724] Metal API Validation Enabled&#xA;2022-02-22 00:39:21.701071&#x2B;0800 ffmpeg-tool[5977:195724] [] CMIOHardware.cpp:917:CMIODeviceStopStream the System is exiting&#xA;2022-02-22 00:39:21.701268&#x2B;0800 ffmpeg-tool[5977:195724] [] CMIOHardware.cpp:1332:CMIOStreamCopyBufferQueue the System is exiting&#xA;2022-02-22 00:39:21.701538&#x2B;0800 ffmpeg-tool[5977:195724] [] CMIOHardware.cpp:333:CMIOObjectGetPropertyData the System is exiting&#xA;2022-02-22 00:39:21.701767&#x2B;0800 ffmpeg-tool[5977:195724] [] CMIO_DALA_System.cpp:264:GetPropertyData error 1970171760 (unop) getting property selector (inot) scope (glob) element 0&#xA;2022-02-22 00:39:21.702472&#x2B;0800 ffmpeg-tool[5977:195724] [] CMIOHardware.cpp:333:CMIOObjectGetPropertyData the System is exiting&#xA;2022-02-22 00:39:21.702662&#x2B;0800 ffmpeg-tool[5977:195724] [] CMIO_DALA_System.cpp:264:GetPropertyData error 1970171760 (unop) getting property selector (inot) scope (glob) element 0&#xA;Program ended with exit code: 0&#xA;</cfuuid></cfuuid>

    &#xA;

    How can I solve this problem ?

    &#xA;

  • Trying to get frame timestamp with ffmpeg from a RTSP camera

    12 juin 2022, par jaygzixst

    I'm trying to retrieve the timestamp of each frame of a camera using an rstp stream and them.&#xA;For recording I use the following command line and it's work :

    &#xA;

    ffmpeg&#xA;-correct_ts_overflow 0&#xA;-probesize 1G&#xA;-analyzeduration 1G&#xA;-i rtsp://user:password@ip:port&#xA;-vcodec copy&#xA;-bsf:v h264_mp4toannexb&#xA;-bufsize 10M&#xA;-acodec copy&#xA;-f ssegment&#xA;-segment_list_flags live&#xA;-segment_atclocktime 1&#xA;-reset_timestamps 1&#xA;-write_empty_segments 1&#xA;-segment_time 15&#xA;-segment_list C:\Video\Delivery\ffmpeg\list.video&#xA;-segment_list_type csv&#xA;-strftime 1 "C:\Video\Delivery\ffmpeg\%%Y%%m%%d_%%H-%%M-%%S.ts"&#xA;

    &#xA;

    And for some utility I would like to be able to retrieve the timestamp of the machine when I receive a frame, so by searching a bit I found different post on '-mkvtimestamp_v2'. By trying it alone with the camera as if below :

    &#xA;

    ffmpeg&#xA;-copyts ^&#xA;-correct_ts_overflow 0 ^&#xA;-probesize 1G ^&#xA;-analyzeduration 1G ^&#xA;-i rtsp://user:password@ip:port&#xA;-c copy&#xA;-pix_fmt yuv420p&#xA;-flush_packets 1&#xA;-vframes 10&#xA;-reset_timestamps 1&#xA;-timestamp now&#xA;-copyts&#xA;-f mkvtimestamp_v2 timestamp.txt&#xA;-vsync 0&#xA;

    &#xA;

    It works perfectly.

    &#xA;

    But from the moment I try to record AND try to retrieve the timestamp simultaneously with the following command :

    &#xA;

    ffmpeg&#xA;-use_wallclock_as_timestamps 1&#xA;-correct_ts_overflow 0&#xA;-probesize 1G&#xA;-analyzeduration 1G&#xA;-i rtsp://user:password@ip:port&#xA;-vcodec copy&#xA;-bsf:v h264_mp4toannexb&#xA;-bufsize 10M&#xA;-acodec copy&#xA;-f ssegment&#xA;-segment_list_flags live&#xA;-segment_atclocktime 1&#xA;-reset_timestamps 1&#xA;-write_empty_segments 1&#xA;-segment_time 15&#xA;-segment_list C:\Video\Delivery\ffmpeg\list.video&#xA;-segment_list_type csv&#xA;-strftime 1 "C:\Video\Delivery\ffmpeg\%%Y%%m%%d_%%H-%%M-%%S.ts"&#xA;-copyts&#xA;-vcodec copy&#xA;-flush_packets 1&#xA;-f mkvtimestamp_v2 log.txt&#xA;-vsync 0&#xA;

    &#xA;

    I get a lot of : Non-monotonous DTS in output stream 0:0 warning.&#xA;I also have on average one minute delay between the recorded timestamps, and the real timestamp.&#xA;And the first video recorded have a bugged timer on a video player like this : Here

    &#xA;

    I've tried arranging the command in different orders but I get nothing conclusive...

    &#xA;

    So if you have any idea that would be a big help !

    &#xA;

    I work on Windows 10 and I use ffmpeg-3.4.1.

    &#xA;

    Cordially,

    &#xA;

    Jay

    &#xA;