Recherche avancée

Médias (1)

Mot : - Tags -/blender

Autres articles (74)

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

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

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

  • Combine 2 .FLV videos

    4 décembre 2015, par Rune

    For the last 4 hours I’ve been trying to combine 2 .flv files into one using ffmpeg (or well, just C# in general).

    Here’s what I got so far :
    I’ve converted both the videos to .mp4 videos :

    "-i " + videoFileLocation + " -c copy -copyts " + newConvertedFileLocation

    I have then combined the two .mp4 files into a single one using :
    (txtPath is the text file with the two mp4 file locations)

    "-f concat -i " + txtPath + " -c copy " + saveLocation

    This ends up with an mp4 file which contains the combination of both the videos BUT with the following fault :

    The length of the first video is 0:05

    The length of the second video is 6:11

    However the length of the combined video is for some reason 07:51 - thus the video runs at a slower pace than it should.

    Furthermore the audio is async with the video.

    What am I doing wrong here ?

    I haven’t used ffmpeg before and I just wanna get this working.

    Any help is greatly appreciated !

    As requested here is the output from running ’ffmpeg -i input1.flv -i input2.flv’ :

    ffmpeg version 2.7 Copyright (c) 2000-2015 the FFmpeg developers   built with gcc 4.9.2 (GCC)...

    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'filepath\input1.flv':   Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       creation_time   : 1970-01-01 00:00:00
       encoder         : Lavf53.24.2   Duration: 00:00:05.31, start: 0.000000, bitrate: 1589 kb/s
       Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 1205 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)
       Metadata:
         creation_time   : 1970-01-01 00:00:00
         handler_name    : VideoHandler
       Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, 5.1, fltp, 384 kb/s (default)
       Metadata:
         creation_time   : 1970-01-01 00:00:00
         handler_name    : SoundHandler Input #1, flv, from 'filepath\input2.flv':   Metadata:
       audiosize       : 4476626
       canSeekToEnd    : true
       datasize        : 23876671
       videosize       : 19004263
       hasAudio        : true
       hasCuePoints    : false
       hasKeyframes    : true
       hasMetadata     : true
       hasVideo        : true
       lasttimestamp   : 372
       metadatacreator : flvtool++ (Facebook, Motion project, dweatherford)
       totalframes     : 9298
       encoder         : Lavf56.36.100   Duration: 00:06:11.92, start: 0.080000, bitrate: 513 kb/s
       Stream #1:0: Video: h264 (High), yuv420p, 646x364 [SAR 1:1 DAR 323:182], 400 kb/s, 25 fps, 25 tbr, 1k tbn, 50 tbc
       Stream #1:1: Audio: aac (LC), 44100 Hz, stereo, fltp, 96 kb/s At least one output file must be specified
  • 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 < 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!
  • ffmpeg replace part of audio file with looped audio gives queued buffers

    1er décembre 2015, par user1202648

    I am quite new to ffmpeg and I am trying to replace a part of a first audio file with another second file. The second file can be too short, so some sort of loop should exist.

    After some research I came up with the following command arguments and it gives me the output as long as I only do one replacement. But I would like to do multiple replacements. So any help on what I am doing wrong ? Any suggestions/remarks on the way of working are also very welcome.

    (Any typos in the commands below can be ignored, I generate the command by script and for ease of use I simplified the names.)

    Works (One replacement) :

    "ffmpeg.exe" -y -i "first.wav" -i "second.wav" -filter_complex "[1:a][1:a][1:a]concat=n=3:v=0:a=1,asetpts=PTS-STARTPTS[replaceBase];[0:a]atrim=0:3,asetpts=PTS-STARTPTS[partA];[replaceBase]atrim=0:2,asetpts=PTS-STARTPTS[replaceA];[0:a]atrim=start=5,asetpts=PTS-STARTPTS[partB];[partA][replaceA][partB]concat=n=3:v=0:a=1[aout]" -map "[aout]" Out.wav

    Works Not (Multiple replacements) :

    "ffmpeg.exe" -y -i "first.wav" -i "second.wav" -filter_complex "[1:a][1:a][1:a]concat=n=3:v=0:a=1,asetpts=PTS-STARTPTS[replaceBase];[0:a]atrim=0:3,asetpts=PTS-STARTPTS[partA];[replaceBase]atrim=0:2,asetpts=PTS-STARTPTS[replaceA];[0:a]atrim=5:4,asetpts=PTS-STARTPTS[partB];[replaceBase]atrim=0:2,asetpts=PTS-STARTPTS[replaceB];[0:a]atrim=start=6,asetpts=PTS-STARTPTS[partC];[partA][replaceA][partB][replaceB][PartC]concat=n=4:v=0:a=1[aout]" -map "[aout]" Out.wav

    ffmpeg version N-76860-g72eaf72 Copyright (c) 2000-2015 the FFmpeg developers
    built with gcc 5.2.0 (GCC)
    configuration : —enable-gpl —enable-version3 —disable-w32threads —enable-avisynth —enable-bzlib —enable-fontconfig —enable-frei0r —enable-gnutls —enable-iconv —enable-libass —enable-libbluray —enable-libbs2b —enable-libcaca —enable-libdcadec —enable-libfreetype —enable-libgme —enable-libgsm —enable-libilbc —enable-libmodplug —enable-libmp3lame —enable-libopencore-amrnb —enable-libopencore-amrwb —enable-libopenjpeg —enable-libopus —enable-librtmp —enable-libschroedinger —enable-libsoxr —enable-libspeex —enable-libtheora —enable-libtwolame —enable-libvidstab —enable-libvo-aacenc —enable-libvo-amrwbenc —enable-libvorbis —enable-libvpx —enable-libwavpack —enable-libwebp —enable-libx264 —enable-libx265 —enable-libxavs —enable-libxvid —enable-libzimg —enable-lzma —enable-decklink —enable-zlib
    libavutil 55. 9.100 / 55. 9.100
    libavcodec 57. 16.100 / 57. 16.100
    libavformat 57. 19.100 / 57. 19.100
    libavdevice 57. 0.100 / 57. 0.100
    libavfilter 6. 15.100 / 6. 15.100
    libswscale 4. 0.100 / 4. 0.100
    libswresample 2. 0.101 / 2. 0.101
    libpostproc 54. 0.100 / 54. 0.100
    Guessed Channel Layout for Input Stream #0.0 : stereo
    Input #0, wav, from ’3897583stereo.wav’ :
    Duration : 00:00:12.07, bitrate : 256 kb/s
    Stream #0:0 : Audio : pcm_s16le ([1][0][0][0] / 0x0001), 8000 Hz, 2 channels, s16, 256 kb/s
    Guessed Channel Layout for Input Stream #1.0 : stereo
    Input #1, wav, from ’beep-021.wav’ :
    Metadata :
    encoder : Lavf57.19.100
    Duration : 00:00:00.30, bitrate : 1413 kb/s
    Stream #1:0 : Audio : pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, 2 channels, s16, 1411 kb/s
    [wav @ 057242c0] Invalid stream specifier : replaceBase.
    Last message repeated 1 times
    Stream specifier ’STREAM CUT matches no streams.

    Thanks in advance !