Recherche avancée

Médias (1)

Mot : - Tags -/ticket

Autres articles (53)

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 est la première version de MediaSPIP stable.
    Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • Personnaliser les catégories

    21 juin 2013, par

    Formulaire de création d’une catégorie
    Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
    Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire.
    Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
    Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)

Sur d’autres sites (11151)

  • Merge webm video with audio

    29 avril 2018, par varmashrivastava

    I am using below command to merge an audio with webm video.But the c

    command = new String[]{"-i", inputvideoFileAbsolutePath, "-i", inputaudioFileAbsolutePath, "-c:v", "copy", "-c:a", "aac", "-map", "0:v:0", "-map", "1:a:0", "-shortest", outputFileAbsolutePath};

    where outputFileAbsolutePath extension is mp4.

    But the command fails with below error.However command seems to work fine with other input video formats(mp4,avi,mov,3gp).Why am i getting this error with webm video and how can i resolve it

    Main error-

    Could not write header for output file #0 (incorrect codec parameters
     ?) : Invalid argument

    Complete error-

    FAILED with output : ffmpeg version n3.0.1 Copyright (c) 2000-2016 the FFmpeg developers
                                                                                               built with gcc 4.8 (GCC)
                                                                                               configuration: --target-os=linux
       --cross-prefix=/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/bin/arm-linux-androideabi-
       --arch=arm --cpu=cortex-a8 --enable-runtime-cpudetect --sysroot=/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/sysroot
       --enable-pic --enable-libx264 --enable-libass --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-fontconfig --enable-pthreads --disable-debug --disable-ffserver --enable-version3 --enable-hardcoded-tables --disable-ffplay --disable-ffprobe --enable-gpl --enable-yasm --disable-doc --disable-shared --enable-static --pkg-config=/home/vagrant/SourceCode/ffmpeg-android/ffmpeg-pkg-config --prefix=/home/vagrant/SourceCode/ffmpeg-android/build/armeabi-v7a --extra-cflags='-I/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/include
       -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fstack-protector-all' --extra-ldflags='-L/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/lib
       -Wl,-z,relro -Wl,-z,now -pie' --extra-libs='-lpng -lexpat -lm' --extra-cxxflags=                                                                           libavutil      55. 17.103 / 55. 17.103
                                                                                               libavcodec     57. 24.102 / 57. 24.102
                                                                                               libavformat    57. 25.100 / 57. 25.100
                                                                                               libavdevice    57.  0.101 / 57.  0.101
                                                                                               libavfilter     6. 31.100 /  6. 31.100
                                                                                               libswscale      4.  0.100 /  4.  0.100
                                                                                               libswresample   2.  0.101 /  2.  0.101
                                                                                               libpostproc    54.  0.100 / 54.  0.100
                                                                                             Input #0, matroska,webm, from '/storage/emulated/0/Download/small.webm':
                                                                                               Metadata:
                                                                                                 encoder         : Lavf53.17.0
                                                                                               Duration: 00:00:05.57, start: 0.000000, bitrate: 329 kb/s
                                                                                                 Stream #0:0: Video: vp8, yuv420p, 560x320, SAR 1:1 DAR 7:4, 30 fps, 30 tbr, 1k tbn, 1k tbc (default)
                                                                                                 Stream #0:1(eng): Audio: vorbis, 48000 Hz, mono, fltp (default)
                                                                                             Guessed Channel Layout for  Input Stream #1.0 : stereo
                                                                                             Input #1, wav, from '/storage/emulated/0/Download/out.wav':
                                                                                               Metadata:
                                                                                                 encoder         : Lavf57.76.100
                                                                                               Duration: 00:00:33.88, bitrate: 1411 kb/s
                                                                                                 Stream #1:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, 2 channels, s16, 1411 kb/s
                                                                                             [mp4 @ 0xb61adc00] Could not find tag for codec vp8 in stream #0, codec not currently supported in container
                                                                                             Output #0, mp4, to '/storage/emulated/0/Movies/merge_video2.mp4':
                                                                                               Metadata:
                                                                                                 encoder         : Lavf57.25.100
                                                                                                 Stream #0:0: Video: vp8, yuv420p, 560x320 [SAR 1:1 DAR 7:4], q=2-31, 30 fps, 30 tbr, 1k tbn, 1k tbc (default)
                                                                                                 Stream #0:1: Audio: aac (LC) ([64][0][0][0] / 0x0040), 44100 Hz, stereo, fltp, 128 kb/s
                                                                                                 Metadata:
                                                                                                   encoder         : Lavc57.24.102 aac
                                                                                             Stream mapping:
                                                                                               Stream #0:0 -> #0:0 (copy)
                                                                                               Stream #1:0 -> #0:1 (pcm_s16le (native) -> aac (native))
                                                                                             Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument
                                                                                             [aac @ 0xb61fdc00] Qavg: nan
  • Why can't I reorder the streams in my mpg container with ffmpeg ?

    15 octobre 2023, par kaltorak

    Background : Could having audio as stream 0 and video as stream 1 explain why my MPG will play on OSX QuickTime Player, but not Win10 Movies & TV ?
    
I've got an mpg file with audio as stream 0 and video as stream 1.
    
It plays fine under OSX QT Player, but not under Win10's default app.
    
For lack of a better idea, I'm assuming the unusual stream ordering is my problem, and I'm trying to fix it with ffmpeg.
What luck ! https://trac.ffmpeg.org/wiki/Map describes exactly my case !

    


    


    Re-order streams

    


    The order of your -map options determines the order of the streams in the output. In this example the input file has audio as stream #0 and video as stream #1 (which is possible but unusual). Example to re-position video so it is listed first, followed by the audio :

    


    ffmpeg -i input.mp4 -map 0:v -map 0:a -c copy output.mp4

    


    This example stream copies (re-mux) with -c copy to avoid re-encoding.

    


    


    I use exactly that command, but the flipping doesn't seem to work, like so :

    


    ffprobe -hide_banner myfile.trimmed.mpg
[h264 @ 000001b965b569c0] Increasing reorder buffer to 2
Input #0, mpeg, from 'myfile.trimmed.mpg':
  Duration: 00:02:41.09, start: 0.500000, bitrate: 6255 kb/s
    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s
    Stream #0:1[0x1e2]: Video: h264 (High), yuv420p(tv, progressive), 1280x720 [SAR 1:1 DAR 16:9], Closed Captions, 59.94 fps, 59.94 tbr, 90k tbn, 119.88 tbc


    


    ffmpeg -hide_banner -i myfile.trimmed.mpg -map 0:v -map 0:a -c copy myfile.trimmed.flipped.mpg
[h264 @ 000001fa0ee94680] Increasing reorder buffer to 2
Input #0, mpeg, from 'myfile.trimmed.mpg':
  Duration: 00:02:41.09, start: 0.500000, bitrate: 6255 kb/s
    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s
    Stream #0:1[0x1e2]: Video: h264 (High), yuv420p(tv, progressive), 1280x720 [SAR 1:1 DAR 16:9], Closed Captions, 59.94 fps, 59.94 tbr, 90k tbn, 119.88 tbc
[mpeg @ 000001fa0ee88dc0] VBV buffer size not set, using default size of 230KB
If you want the mpeg file to be compliant to some specification
Like DVD, VCD or others, make sure you set the correct buffer size
[mpeg @ 000001fa0ee88dc0] ac3 in MPEG-1 system streams is not widely supported, consider using the vob or the dvd muxer to force a MPEG-2 program stream.
Output #0, mpeg, to 'myfile.trimmed.flipped.mpg':
  Metadata:
    encoder         : Lavf58.45.100
    Stream #0:0: Video: h264 (High), yuv420p(tv, progressive), 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 59.94 fps, 59.94 tbr, 90k tbn, 59.94 tbc
    Stream #0:1: Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s
Stream mapping:
  Stream #0:1 -> #0:0 (copy)
  Stream #0:0 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame= 9570 fps=0.0 q=-1.0 Lsize=  123008kB time=00:02:40.95 bitrate=6260.6kbits/s speed= 518x
video:114772kB audio:7545kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.565047%


    


    ffprobe -hide_banner myfile.trimmed.flipped.mpg
[h264 @ 0000021edcf36ac0] Increasing reorder buffer to 2
Input #0, mpeg, from 'myfile.trimmed.flipped.mpg':
  Duration: 00:02:41.09, start: 0.500000, bitrate: 6255 kb/s
    Stream #0:0[0x80]: Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s
    Stream #0:1[0x1e2]: Video: h264 (High), yuv420p(tv, progressive), 1280x720 [SAR 1:1 DAR 16:9], Closed Captions, 59.94 fps, 59.94 tbr, 90k tbn, 119.88 tbc


    


    What, what ?!
The command output looks like it did exactly what I asked, but the resulting file has the same stream ordering as the original file. What am I missing ?
    
One possible clue : It looks like the audio stream starts before the video stream. The smallest pkt_pts_time I see in the audio stream is 00:00:00.500000, while the smallest I see in the video stream is 0:00:01.912967. Could that matter ?

    


  • Fade Video-Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height

    27 octobre 2018, par varmashrivastava

    I am using below command to add Fade In Fade Out effect to my video

    {"-y", "-ss", "" + startMs / 1000, "-t", "" + (endMs - startMs) / 1000, "-i", inputPath, "-acodec", "copy", "-vf", "fade=t=in:st=0:d=5,fade=t=out:st=" + String.valueOf((endMs - startMs) / 1000 - 5) + ":d=5", outputPath};

    I received below error-

    "Failure3.3 5 .3gpffmpeg version n3.0.1 Copyright (c) 2000-2016 the
    FFmpeg developers\n built with gcc 4.8 (GCC)\n configuration :
    —target-os=linux —cross-prefix=/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/bin/arm-linux-androideabi-
    —arch=arm —cpu=cortex-a8 —enable-runtime-cpudetect —sysroot=/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/sysroot
    —enable-pic —enable-libx264 —enable-libass —enable-libfreetype —enable-libfribidi —enable-libmp3lame —enable-fontconfig —enable-pthreads —disable-debug —disable-ffserver —enable-version3 —enable-hardcoded-tables —disable-ffplay —disable-ffprobe —enable-gpl —enable-yasm —disable-doc —disable-shared —enable-static —pkg-config=/home/vagrant/SourceCode/ffmpeg-android/ffmpeg-pkg-config —prefix=/home/vagrant/SourceCode/ffmpeg-android/build/armeabi-v7a —extra-cflags=’-I/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/include
    -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fstack-protector-all’ —extra-ldflags=’-L/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/lib
    -Wl,-z,relro -Wl,-z,now -pie’ —extra-libs=’-lpng -lexpat -lm’ —extra-cxxflags=\n libavutil 55. 17.103 / 55. 17.103\n libavcodec 57. 24.102 / 57. 24.102\n libavformat 57. 25.100 /
    57. 25.100\n libavdevice 57. 0.101 / 57. 0.101\n libavfilter 6. 31.100 / 6. 31.100\n libswscale 4. 0.100 / 4. 0.100\n libswresample 2. 0.101 / 2. 0.101\n libpostproc 54. 0.100 /
    54. 0.100\nInput #0, mov,mp4,m4a,3gp,3g2,mj2, from ’/storage/emulated/0/DCIM/Camera/VID_20180825_071734915.3gp’ :\n
    Metadata :\n major_brand : 3gp4\n minor_version : 0\n
    compatible_brands : isom3gp4\n creation_time : 2018-08-25
    01:47:47\n com.android.version : 8.0.0\n Duration : 00:00:10.83,
    start : 0.000000, bitrate : 17217 kb/s\n Stream #0:0(eng) : Video :
    h264 (High) (avc1 / 0x31637661), yuv420p(tv, unknown/bt470bg/unknown),
    1920x1080, 16756 kb/s, SAR 1:1 DAR 16:9, 29.49 fps, 29.58 tbr, 90k
    tbn, 180k tbc (default)\n Metadata :\n rotate : 90\n
    creation_time : 2018-08-25 01:47:47\n handler_name :
    VideoHandle\n Side data :\n displaymatrix : rotation of -90.00
    degrees\n Stream #0:1(eng) : Audio : aac (LC) (mp4a / 0x6134706D),
    48000 Hz, mono, fltp, 128 kb/s (default)\n Metadata :\n
    creation_time : 2018-08-25 01:47:47\n handler_name :
    SoundHandle\n[h263 @ 0xf49ff400] H.263 does not support resolutions
    above 2048x1152\nOutput #0, 3gp, to
    ’/storage/emulated/0/Movies/fade_video.3gp’ :\n Metadata :\n
    major_brand : 3gp4\n minor_version : 0\n
    compatible_brands : isom3gp4\n com.android.version : 8.0.0\n
    Stream #0:0(eng) : Video : h263, none, q=2-31, 128 kb/s, SAR 1:1 DAR
    0:0, 29.58 fps (default)\n Metadata :\n handler_name :
    VideoHandle\n creation_time : 2018-08-25 01:47:47\n
    encoder : Lavc57.24.102 h263\n Stream #0:1(eng) : Audio : aac
    (LC) (mp4a / 0x6134706D), 48000 Hz, mono, 128 kb/s (default)\n
    Metadata :\n creation_time : 2018-08-25 01:47:47\n
    handler_name : SoundHandle\nStream mapping :\n Stream #0:0 -> #0:0
    (h264 (native) -> h263 (native))\n Stream #0:1 -> #0:1 (copy)\nError
    while opening encoder for output stream #0:0 - maybe incorrect
    parameters such as bit_rate, rate, width or height\n"

    Why is causing this error in above command ?Any help will be welcome.