Recherche avancée

Médias (91)

Autres articles (90)

  • Submit bugs and patches

    13 avril 2011

    Unfortunately a software is never perfect.
    If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
    If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
    You may also (...)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

Sur d’autres sites (6767)

  • ffmpeg : unable to cut avi movie

    10 mars 2016, par ird

    I am using ffmpeg to cut video file :

    ffmpeg -<inputfile> -ss 00:00:00 -t 00:00:30 <outputfile>
    </outputfile></inputfile>

    It’s OK for different file formats exclude *.avi format. For avi movies ffmpeg shows that video is truncated, but output file contains full video (without truncating).
    Does anybody know possible ways for problem troubleshooting ?

    Here converting command output for avi file :

    FFmpeg version SVN-r26402, Copyright (c) 2000-2011 the FFmpeg developers
     built on Feb  1 2011 02:54:36 with gcc 4.4.5
     configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-x11grab
     libavutil     50.36. 0 / 50.36. 0
     libavcore      0.16. 1 /  0.16. 1
     libavcodec    52.108. 0 / 52.108. 0
     libavformat   52.93. 0 / 52.93. 0
     libavdevice   52. 2. 3 / 52. 2. 3
     libavfilter    1.74. 0 /  1.74. 0
     libswscale     0.12. 0 /  0.12. 0
     libpostproc   51. 2. 0 / 51. 2. 0
    [mpeg4 @ 0x91e7e10] Invalid and inefficient vfw-avi packed B frames detected

    Seems stream 0 codec frame rate differs from container frame rate: 30000.00 (30000/1) -> 25.00 (25/1)
    Input #0, avi, from '/home/mightymeeting/Videos/tam-19.avi':
     Duration: 00:04:43.32, start: 0.000000, bitrate: 564 kb/s
       Stream #0.0: Video: mpeg4, yuv420p, 352x208 [PAR 1:1 DAR 22:13], 25 fps, 25 tbr, 25 tbn, 30k tbc
       Stream #0.1: Audio: mp3, 32000 Hz, 2 channels, s16, 80 kb/s
    [buffer @ 0x91e6ed0] w:352 h:208 pixfmt:yuv420p
    Output #0, avi, to 'out.avi':
     Metadata:
       ISFT            : Lavf52.93.0
       Stream #0.0: Video: mpeg4, yuv420p, 352x208 [PAR 1:1 DAR 22:13], q=2-31, 200 kb/s, 25 tbn, 25 tbc
       Stream #0.1: Audio: mp2, 32000 Hz, 2 channels, s16, 64 kb/s
    Stream mapping:
     Stream #0.0 -> #0.0
     Stream #0.1 -> #0.1
    Press [q] to stop encoding
    [mpeg4 @ 0x91e7e10] Invalid and inefficient vfw-avi packed B frames detected
    frame= 7082 fps=999 q=2.0 Lsize=    7513kB time=30.02 bitrate=2049.8kbits/s dup=0 drop=1    
    video:7079kB audio:235kB global headers:0kB muxing overhead 2.718192%
  • How to detect video bitrate from HLS/M3U8 file using ffprobe

    23 août 2016, par Guillermo

    We need to detect the video bitrate of a HLS stream with ffprobe by using the m3u8 file of the .ts.

    If I use the m3u8, I can get the duration, dimensions, codecs used, audio bitrate, but no video bitrate is available in the response provided by ffprobe.

    ffprobe -print_format json -show_format -show_streams -show_error http://gfrmedia-video-platform.s3.amazonaws.com/bumbia/2014/06/06/158217_20160126214307_bumbia-hls/hls1056k/158217_640x360-with-mp4-hls_bumbia-hls.m3u8

    ffprobe version 2.8.3 Copyright (c) 2007-2015 the FFmpeg developers
     built with Apple LLVM version 7.0.0 (clang-700.1.76)
     configuration: --prefix=/usr/local/Cellar/ffmpeg/2.8.3 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-opencl --enable-libx264 --enable-libmp3lame --enable-libvo-aacenc --enable-libxvid --enable-vda
     libavutil      54. 31.100 / 54. 31.100
     libavcodec     56. 60.100 / 56. 60.100
     libavformat    56. 40.101 / 56. 40.101
     libavdevice    56.  4.100 / 56.  4.100
     libavfilter     5. 40.101 /  5. 40.101
     libavresample   2.  1.  0 /  2.  1.  0
     libswscale      3.  1.101 /  3.  1.101
     libswresample   1.  2.101 /  1.  2.101
     libpostproc    53.  3.100 / 53.  3.100
    {
    [http @ 0x7fcf09e19420] No trailing CRLF found in HTTP header.
    Input #0, hls,applehttp, from 'http://gfrmedia-video-platform.s3.amazonaws.com/bumbia/2014/06/06/158217_20160126214307_bumbia-hls/hls1056k/158217_640x360-with-mp4-hls_bumbia-hls.m3u8':
     Duration: 00:00:11.00, start: 9.940500, bitrate: 0 kb/s
     Program 0
       Metadata:
         variant_bitrate : 0
       Stream #0:0: Video: h264 (Constrained Baseline) ([27][0][0][0] / 0x001B), yuv420p, 640x360 [SAR 1:1 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
       Stream #0:1: Audio: aac (LC) ([15][0][0][0] / 0x000F), 44100 Hz, stereo, fltp, 79 kb/s
       "streams": [
           {
               "index": 0,
               "codec_name": "h264",
               "codec_long_name": "H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10",
               "profile": "Constrained Baseline",
               "codec_type": "video",
               "codec_time_base": "1001/60000",
               "codec_tag_string": "[27][0][0][0]",
               "codec_tag": "0x001b",
               "width": 640,
               "height": 360,
               "coded_width": 640,
               "coded_height": 368,
               "has_b_frames": 0,
               "sample_aspect_ratio": "1:1",
               "display_aspect_ratio": "16:9",
               "pix_fmt": "yuv420p",
               "level": 30,
               "chroma_location": "left",
               "refs": 1,
               "is_avc": "0",
               "nal_length_size": "0",
               "r_frame_rate": "30000/1001",
               "avg_frame_rate": "30000/1001",
               "time_base": "1/90000",
               "start_pts": 900000,
               "start_time": "10.000000",
               "bits_per_raw_sample": "8",
               "disposition": {
                   "default": 0,
                   "dub": 0,
                   "original": 0,
                   "comment": 0,
                   "lyrics": 0,
                   "karaoke": 0,
                   "forced": 0,
                   "hearing_impaired": 0,
                   "visual_impaired": 0,
                   "clean_effects": 0,
                   "attached_pic": 0
               }
           },
           {
               "index": 1,
               "codec_name": "aac",
               "codec_long_name": "AAC (Advanced Audio Coding)",
               "profile": "LC",
               "codec_type": "audio",
               "codec_time_base": "1/44100",
               "codec_tag_string": "[15][0][0][0]",
               "codec_tag": "0x000f",
               "sample_fmt": "fltp",
               "sample_rate": "44100",
               "channels": 2,
               "channel_layout": "stereo",
               "bits_per_sample": 0,
               "r_frame_rate": "0/0",
               "avg_frame_rate": "0/0",
               "time_base": "1/90000",
               "start_pts": 894645,
               "start_time": "9.940500",
               "bit_rate": "79931",
               "disposition": {
                   "default": 0,
                   "dub": 0,
                   "original": 0,
                   "comment": 0,
                   "lyrics": 0,
                   "karaoke": 0,
                   "forced": 0,
                   "hearing_impaired": 0,
                   "visual_impaired": 0,
                   "clean_effects": 0,
                   "attached_pic": 0
               }
           }
       ],
       "format": {
           "filename": "http://gfrmedia-video-platform.s3.amazonaws.com/bumbia/2014/06/06/158217_20160126214307_bumbia-hls/hls1056k/158217_640x360-with-mp4-hls_bumbia-hls.m3u8",
           "nb_streams": 2,
           "nb_programs": 1,
           "format_name": "hls,applehttp",
           "format_long_name": "Apple HTTP Live Streaming",
           "start_time": "9.940500",
           "duration": "11.000000",
           "size": "281",
           "bit_rate": "204",
           "probe_score": 100
       }
    }

    In this sample above, I know that video is around 520Kbps, but need to find a way to read that programatically with either ffprobe or any other way. With what I currently have I can get most of the information needed, but I’m missing one important value that is the video bitrate.

    What other options could I try ?

    Thanks !

  • capture video with kinect using libfreenect

    20 avril 2016, par Sadra Naddaf

    i m trying to use kinect to capture video for video/image processing purposes
    i found there is an script in libfreenect/build/bin folder named fakenect-record can do this for me

    when i use it,it start capturing rgb and depth data in ppm and pgm format(both are images) and also it has an option (-ffmpeg) witch make an avi file of video but the problem is when I that it it fails and says this error :

    Depth Mode: {256, 1, {0}, 614400, 640, 480, 11, 5, 30, 1}
    Video Mode: {256, 1, {0}, 921600, 640, 480, 24, 0, 30, 1}
    [Stream 70] Expected 1748 data bytes, but got 948
    ffmpeg -pix_fmt rgb24 -s 640x480 -f rawvideo -i /dev/stdin -aspect 4:3 -r 20 -vcodec msmpeg4 -b 30000k sadra-depth.avi
    ffmpeg -pix_fmt rgb24 -s 640x480 -f rawvideo -i /dev/stdin -aspect 4:3 -r 20 -vcodec msmpeg4 -b 30000k sadra-rgb.avi
    ffmpeg version N-76045-g97be5d4ffmpeg version N-76045-g97be5d4 Copyright (c) 2000-2015 the FFmpeg developers Copyright (c) 2000-2015 the FFmpeg developers

     built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04)
     configuration: --extra-libs=-ldl --prefix=/opt/ffmpeg --enable-avresample --disable-debug --enable-nonfree --enable-gpl --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --disable-decoder=amrnb --disable-decoder=amrwb --enable-libpulse --enable-libdcadec --enable-libfreetype --enable-libx264 --enable-libx265 --enable-libfdk-aac --enable-libvorbis --enable-libmp3lame --enable-libopus --enable-libvpx --enable-libspeex --enable-libass --enable-avisynth --enable-libsoxr --enable-libxvid --enable-libvo-aacenc --enable-libvidstab
     built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04)
     configuration: --extra-libs=-ldl --prefix=/opt/ffmpeg --enable-avresample --disable-debug --enable-nonfree --enable-gpl --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --disable-decoder=amrnb --disable-decoder=amrwb --enable-libpulse --enable-libdcadec --enable-libfreetype --enable-libx264 --enable-libx265 --enable-libfdk-aac --enable-libvorbis --enable-libmp3lame --enable-libopus --enable-libvpx --enable-libspeex --enable-libass --enable-avisynth --enable-libsoxr --enable-libxvid --enable-libvo-aacenc --enable-libvidstab
     libavutil      55.  4.100 / 55.  4.100
     libavutil      55.  4.100 / 55.  4.100
     libavcodec     57.  6.100 / 57.  6.100
     libavcodec     57.  6.100 / 57.  6.100
     libavformat    57.  4.100 / 57.  4.100
     libavformat    57.  4.100 / 57.  4.100
     libavdevice    57.  0.100 / 57.  0.100
     libavdevice    57.  0.100 / 57.  0.100
     libavfilter     6. 11.100 /  6. 11.100
     libavfilter     6. 11.100 /  6. 11.100
     libavresample   3.  0.  0 /  3.  0.  0
     libavresample   3.  0.  0 /  3.  0.  0
     libswscale      4.  0.100 /  4.  0.100
     libswresample   2.  0.100 /  2.  0.100
     libswscale      4.  0.100 /  4.  0.100
     libpostproc    54.  0.100 / 54.  0.100
     libswresample   2.  0.100 /  2.  0.100
     libpostproc    54.  0.100 / 54.  0.100
    Segmentation fault (core dumped)
    root@thispc-sns:~/Documents/libfreenect/build/bin/Untitled Folder# Input #0, rawvideo, from '/dev/stdin':
     Duration: N/A, bitrate: 184320 kb/s
       Stream #0:0: Video: rawvideo (RGB[24] / 0x18424752), rgb24, 640x480, 184320 kb/s, 25 tbr, 25 tbn, 25 tbc
    Please use -b:a or -b:v, -b is ambiguous
    Input #0, rawvideo, from '/dev/stdin':
     Duration: N/A, start: 0.000000, bitrate: 184320 kb/s
       Stream #0:0: Video: rawvideo (RGB[24] / 0x18424752), rgb24, 640x480, 184320 kb/s, 25 tbr, 25 tbn, 25 tbc
    Please use -b:a or -b:v, -b is ambiguous
    Output #0, avi, to 'sadra-depth.avi':
    Output #0, avi, to 'sadra-rgb.avi':
     Metadata:
       ISFT            :   Metadata:
       ISFT            : Lavf57.4.100Lavf57.4.100

       Stream #0:0    Stream #0:0: Video: msmpeg4v3 (msmpeg4) (MP43 / 0x3334504D), yuv420p, 640x480 [SAR 1:1 DAR 4:3], q=2-31, 30000 kb/s: Video: msmpeg4v3 (msmpeg4) (MP43 / 0x3334504D), yuv420p, 640x480 [SAR 1:1 DAR 4:3], q=2-31, 30000 kb/s, , 20 fps, 20 fps, 20 tbn, 20 tbn, 20 tbc20 tbc

       Metadata:
       Metadata:
         encoder         : Lavc57.6.100 msmpeg4      encoder         : Lavc57.6.100 msmpeg4
    Stream mapping:

     Stream #0:0 -> #0:0Stream mapping:
     Stream #0:0 -> #0:0 (rawvideo (native) -> msmpeg4v3 (msmpeg4))
    (rawvideo (native) -> msmpeg4v3 (msmpeg4))
    ***[rawvideo @ 0x2a31ce0] Invalid buffer size, packet size 483328 &lt; expected frame_size 921600
    Error while decoding stream #0:0: Invalid argument
    frame=    0 fps=0.0 q=0.0 Lsize=       6kB time=00:00:00.00*** bitrate=N/A    
    video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
    Output file is empty, nothing was encoded (check -ss / -t / -frames parameters if used)
    frame=    0 fps=0.0 q=0.0 Lsize=       6kB time=00:00:00.00 bitrate=N/A    
    video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
    Output file is empty, nothing was encoded (check -ss / -t / -frames parameters if used)
    Conversion failed!