Recherche avancée

Médias (91)

Autres articles (13)

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

  • Les formats acceptés

    28 janvier 2010, par

    Les commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
    ffmpeg -codecs ffmpeg -formats
    Les format videos acceptés en entrée
    Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
    Les formats vidéos de sortie possibles
    Dans un premier temps on (...)

Sur d’autres sites (5483)

  • ffmpeg - avcodec_decode_audio3 always returns 0 with aac decoding on android

    26 novembre 2011, par Android007

    I am writing an audio decoder based on ffmpeg for android, where I have to decode aac audio, but because of some reason it always returns 0 bytes decoded.

    Looks like I pass everything right. Can anybody tell me what went wrong in my case.I copied code from ffplay.c.
    What is the reason avcodec_decode_audio3 function always returns zero ?

    Here is the code from ffplay.c :

    AVPacket *pkt_temp = &is->audio_pkt_temp;
       AVPacket *pkt = &is->audio_pkt;
       AVCodecContext *dec= is->audio_st->codec;
       int n, len1, data_size;
       double pts;

             data_size = sizeof(is->audio_buf1);
           len1 = avcodec_decode_audio3(dec, (int16_t *)is->audio_buf1, &data_size, pkt_temp);
           if (len1 < 0) {
               pkt_temp->size = 0;
               break;
           }

          if (data_size <= 0){
                      //This block always gets executed.
               continue;
       }
  • How to add #EXT-X-PART:DURATION=0.200,URI="filePart271.0.mp4" into .m3u8 in ffmpeg ? [closed]

    11 août 2023, par palak

    So my question is : How do I add #EXT-X-PART:DURATION=0.200,URI="filePart271.0.mp4" to my HLS m3u8 playlist file using FFmpeg ?

    


    And the error i am receiving is Unrecognized option 'hls_part_flags'.
Error splitting the argument list : Option not found.

    


    as well as Unrecognized option 'hls_part_target'.
Error splitting the argument list : Option not found.

    


    Currently my FFmpeg command is the following :
ffmpeg -f lavfi -t 16 -i anullsrc -f lavfi -i testsrc=size=1280x720:rate=30 -c:v libx264 -c:a aac -t 16 -hls_time 4 -hls_playlist_type vod -hls_segment_type fmp4 -start_number 266 -hls_flags single_file -master_pl_name master.m3u8 -var_stream_map "v:0,a:0" -hls_segment_filename 'fileSequence%v.mp4' -hls_fmp4_init_filename 'city.mp4' -hls_base_url './' -hls_segment_filename 'filePart%v.%04d.mp4' -hls_part_flags '+independent' -hls_part_target 0.200 output.m3u8

    


    My expectation is that, How do I add #EXT-X-PART:DURATION=0.200,URI="filePart271.0.mp4" to my HLS m3u8 playlist file using FFmpeg ?

    


  • Batch script for creating QCTools reports

    26 décembre 2019, par avfool

    I’m new here and new to bash scripting and have been having trouble with a script to do batch QCTools reports using ffprobe. Hoping someone can tell me what I’m getting wrong.

    I’ve been using ffmpovisr for help with creating scripts for transcoding folders full of video files. I’ve been successful with this and now would really like to generate QCTools reports for all the video files in a folder as well.

    I’m starting with this command line, which I use to run transcodes :

    for file in *.mov ; do ffmpeg -i "$file" -map 0 -dn -c:v ffv1 -level 3 -g 1 -slicecrc 1 -slices 16 -c:a copy "$file%.mov.mkv" ; done

    I’m trying to modify it to include the QCTools report command line which is :

    ffprobe -f lavfi -i "movie=input_file:s=v+a[in0][in1], [in0]signalstats=stat=tout+vrep+brng, cropdetect=reset=1:round=1, idet=half_life=1, split[a][b] ;[a]field=top[a1] ;[b]field=bottom, split[b1][b2] ;[a1][b1]psnr[c1] ;[c1][b2]ssim[out0] ;[in1]ebur128=metadata=1, astats=metadata=1:reset=1:length=0.4[out1]" -show_frames -show_versions -of xml=x=1:q=1 -noprivate | gzip > input_file.qctools.xml.gz

    What I’ve ended up with looks like this :

    for file in *.mov ; do ffprobe -f lavfi -i "movie="$file":s=v+a[in0][in1], [in0]signalstats=stat=tout+vrep+brng, cropdetect=reset=1:round=1, idet=half_life=1, split[a][b] ;[a]field=top[a1] ;[b]field=bottom, split[b1][b2] ;[a1][b1]psnr[c1] ;[c1][b2]ssim[out0] ;[in1]ebur128=metadata=1, astats=metadata=1:reset=1:length=0.4[out1]" -show_frames -show_versions -of xml=x=1:q=1 -noprivate | gzip > “$file%.mov.qctools.xml.gz” ; done

    I’ve messed around with various parts of this to try to get it to work and I just can’t figure out where the problem is. Any suggestions would be greatly appreciated !