Recherche avancée

Médias (0)

Mot : - Tags -/content

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

Autres articles (38)

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

  • List of compatible distributions

    26 avril 2011, par

    The table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
    If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...)

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

Sur d’autres sites (6097)

  • Adding current time as timestamp in h264 raw stream with few frames

    1er avril 2020, par Michaël

    I have a program that spits out an h264 raw stream (namely, screenrecord on Android). I'm using ffmpeg to add a PTS (Presentation Time Stamp) on the frames as follows :

    



    $ my-program | ffmpeg -i - -filter:v setpts='(RTCTIME - RTCSTART) / (TB * 1000000)' out.mp4


    



    This filter computes the current time, and puts it as the PTS.

    



    The trouble is that my-program does not produce any output if there is no change in the video. Since ffmpeg seems to wait for a bunch of frames before putting them through the setpts filter, the computed PTS won't be correct. In particular, the last frame of a sequence will be timestamped when the next sequence starts.

    



    Question : Is there a way (with ffmpeg or otherwise) to add current time as PTS to h264 raw frames, where "current time" is when receiving the frame, rather than outputting it ?

    



    Note : The problem is not from buffering from the pipe.

    


  • Convert AVStream PTS value to real time in seconds

    15 janvier 2015, par Kamlesh

    The below code snippet gets the PTS value of different frames from a video file

    AVStream *stream = avctx->streams[avpkt.stream_index];
    if ( 0 > ( err = avcodec_decode_video2 ( stream->codec, frame, &got_frame, &avpkt ) && got_frame ) )
    {
       int64_t pts = av_frame_get_best_effort_timestamp ( frame );
       pts = av_rescale_q ( pts,  stream->time_base, AV_TIME_BASE_Q );        
    }

    The PTS value that it returns are given below.

    • 66733
    • 100100
    • 133467

    Confusion is on the time format of the above values, whether they are in milliseconds or microseconds.
    Is there any other way to get a real time PTS values of the frames, as these will be required for subtitle rendering

  • ffmpeg - Cannot seem to calculate the -vstats time parameter to seconds

    15 octobre 2014, par javisrk

    So I’m using C# in conjunction with FFMpeg, and I’m trying to obtain progress of a video extraction. I have the command line :

    ffmpeg.exe -y -i C:\test\2222@20140115085852-2.mpg -ss 00:01:30 -to 00:03:40 C:\test\2222@20140115085852-21.mpg -vstats_file "C:\test\log.txt"

    Sample lines from log.txt :

    frame=  7740 q= 31.0 f_size=    381 s_size=    14723kB time= 194600.000 br=   182.9kbits/s avg_br=     0.6kbits/s type= P
    frame=  7740 q= 31.0 f_size=    123 s_size=    14724kB time= 194625.000 br=    59.0kbits/s avg_br=     0.6kbits/s type= P
    frame=  7740 q= 31.0 f_size=    381 s_size=    14724kB time= 194650.000 br=   182.9kbits/s avg_br=     0.6kbits/s type= P

    From the command line, I know that I’m extracting 2 minutes, 10 seconds (or 130 seconds) of video from the original file. How can I use the time parameter to help me calculate the amount of seconds ffmpeg has encoded so far ?

    EDIT : Based on some research, time is measured in PTS. How can I convert that into seconds ?