Recherche avancée

Médias (0)

Mot : - Tags -/interaction

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

Autres articles (21)

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

  • Les vidéos

    21 avril 2011, par

    Comme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
    Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
    Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...)

  • Gestion générale des documents

    13 mai 2011, par

    MédiaSPIP ne modifie jamais le document original mis en ligne.
    Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet ; la récupération des métadonnées du document original pour illustrer textuellement le fichier ;
    Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP (...)

Sur d’autres sites (2266)

  • ffmpeg error when cutting video (aac bitstream error)

    15 août 2013, par user4455

    I'm trying to use ffmpeg to cut out a 5 minute chunk from a video. For some reason on this particular video I get an error "aac bitstream error". The resulting video is 5 minutes long with no audio or video.

    ffmpeg -i testvideo.mp4 -ss 00:05:00 -t 00:10:00 -c:v copy -c:a copy testvideo_5min_test.mp4
    ffmpeg version N-55540-g93f4277 Copyright (c) 2000-2013 the FFmpeg developers
     built on Aug 14 2013 12:15:34 with gcc 4.3.2 (Debian 4.3.2-1.1)
     configuration: --enable-libx264 --enable-gpl --enable-shared --enable-libfaac --enable-nonfree
     libavutil      52. 42.100 / 52. 42.100
     libavcodec     55. 28.100 / 55. 28.100
     libavformat    55. 13.102 / 55. 13.102
     libavdevice    55.  3.100 / 55.  3.100
     libavfilter     3. 82.100 /  3. 82.100
     libswscale      2.  4.100 /  2.  4.100
     libswresample   0. 17.103 /  0. 17.103
     libpostproc    52.  3.100 / 52.  3.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'testvideo.mp4':
     Metadata:
       major_brand     : mp42
       minor_version   : 0
       compatible_brands: mp42mp41
       creation_time   : 2013-05-10 17:42:36
     Duration: 00:35:21.47, start: 0.000000, bitrate: 8684 kb/s
       Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 8490 kb/s, 29.97 fps, 29.97 tbr, 29970 tbn, 59.94 tbc
       Metadata:
         creation_time   : 2013-05-10 17:42:36
         handler_name    : Mainconcept MP4 Video Media Handler
       Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 189 kb/s
       Metadata:
         creation_time   : 2013-05-10 17:42:36
         handler_name    : Mainconcept MP4 Sound Media Handler
    File 'testvideo_5min_test.mp4' already exists. Overwrite ? [y/N] y
    Output #0, mp4, to 'testvideo_5min_test.mp4':
     Metadata:
       major_brand     : mp42
       minor_version   : 0
       compatible_brands: mp42mp41
       encoder         : Lavf55.13.102
       Stream #0:0(eng): Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 8490 kb/s, 29.97 fps, 29970 tbn, 29970 tbc
       Metadata:
         creation_time   : 2013-05-10 17:42:36
         handler_name    : Mainconcept MP4 Video Media Handler
       Stream #0:1(eng): Audio: aac ([64][0][0][0] / 0x0040), 48000 Hz, stereo, 189 kb/s
       Metadata:
         creation_time   : 2013-05-10 17:42:36
         handler_name    : Mainconcept MP4 Sound Media Handler
    Stream mapping:
     Stream #0:0 -> #0:0 (copy)
     Stream #0:1 -> #0:1 (copy)
    Press [q] to stop, [?] for help
    [mp4 @ 0x8088740] aac bitstream error5886kB time=00:01:13.63 bitrate=8442.8kbits/s    
    [mp4 @ 0x8088740] aac bitstream error8357kB time=00:04:15.24 bitrate=8612.9kbits/s    
    [mp4 @ 0x8088740] aac bitstream error6128kB time=00:05:00.25 bitrate=8625.0kbits/s    
    [mp4 @ 0x8088740] aac bitstream error6415kB time=00:07:12.56 bitrate=8643.7kbits/s    
    frame=17952 fps=2429 q=-1.0 Lsize=  635531kB time=00:10:00.01 bitrate=8677.0kbits/s    
    video:621056kB audio:13870kB subtitle:0 global headers:0kB muxing overhead 0.095223%
  • convert yuv to mp4 by ffmpeg on android

    10 août 2013, par worldask

    i have to convert yuv to mp4 by ffmpeg on android. When I convert wav to mp4 it works well. but when i convert yuv or yuv + wav to mp4, i got errer message said

    Error decoding AAC frame header

    anybody knows what happened ?

    following is the full debug log

    transferYUV2MP4() enter
    __transfer_yuv_to_mp4() enter
    __transfer_yuv_to_mp4() argv[00/17] = ffmpeg
    __transfer_yuv_to_mp4() argv[01/17] = -loglevel
    __transfer_yuv_to_mp4() argv[02/17] = debug
    __transfer_yuv_to_mp4() argv[03/17] = -y
    __transfer_yuv_to_mp4() argv[04/17] = -i
    __transfer_yuv_to_mp4() argv[05/17] = /sdcard/111.yuv
    __transfer_yuv_to_mp4() argv[06/17] = -i
    __transfer_yuv_to_mp4() argv[07/17] = /sdcard/3.wav
    __transfer_yuv_to_mp4() argv[08/17] = -c:a
    __transfer_yuv_to_mp4() argv[09/17] = aac
    __transfer_yuv_to_mp4() argv[10/17] = -strict
    __transfer_yuv_to_mp4() argv[11/17] = experimental
    __transfer_yuv_to_mp4() argv[12/17] = -b:a
    __transfer_yuv_to_mp4() argv[13/17] = 56k
    __transfer_yuv_to_mp4() argv[14/17] = -preset
    __transfer_yuv_to_mp4() argv[15/17] = ultrafast
    __transfer_yuv_to_mp4() argv[16/17] = /sdcard/111.mp4
    __run_ffmpeg_main() enter
    __run_ffmpeg_main() handle=0xb000f7f8
    __run_ffmpeg_main() dlfunc=0x4b5a2728
    ffmpeg version 1.2.2
    Copyright (c) 2000-2013 the FFmpeg developers
     built on Aug 10 2013 16:34:45 with gcc 4.6 (GCC) 20120106 (prerelease)
     configuration: --target-os=linux --prefix=./android/armv7-a --sysroot=/Users/pht/android/ndks/android-ndk-r9/platforms/android-8/arch-arm/ --enable-gpl --enable-version3 --disable-shared --enable-static --disable-ffprobe --disable-ffplay --disable-ffserver --disable-network --enable-avformat --enable-avcodec --enable-cross-compile --arch=arm --cc=/Users/pht/android-standalone-toolchain/bin/arm-linux-androideabi-gcc --nm=/Users/pht/android-standalone-toolchain/bin/arm-linux-androideabi-nm --cross-prefix=/Users/pht/android-standalone-toolchain/bin/arm-linux-androideabi- --extra-cflags=' -I../fdk-aac/include -I../x264 -O3 -fpic -DANDROID -DHAVE_SYS_UIO_H=1 -Dipv6mr_interface=ipv6mr_ifindex -fasm -Wno-psabi -fno-short-enums -fno-strict-aliasing -finline-limit=300 -mfloat-abi=softfp -mfpu=vfpv3-d16 -marm -march=armv7-a ' --extra-ldflags=' -L../fdk-aac/lib -L../x264 -Wl,-rpath-link=/Users/pht/android/ndks/android-ndk-r9/platforms/android-8/arch-arm//usr/lib -L/Users/pht/android/ndks/android-ndk-r9/platforms/andr
     libavutil      52. 18.100 / 52. 18.100
     libavcodec     54. 92.100 / 54. 92.100
     libavformat    54. 63.104 / 54. 63.104
     libavdevice    54.  3.103 / 54.  3.103
     libavfilter     3. 42.103 /  3. 42.103
     libswscale      2.  2.100 /  2.  2.100
     libswresample   0. 17.102 /  0. 17.102
     libpostproc    52.  2.100 / 52.  2.100
    Splitting the commandline.
    Reading option '-loglevel' ...
    matched as option 'loglevel' (set libav* logging level) with argument 'debug'.
    Reading option '-y' ...
    matched as option 'y' (overwrite output files) with argument '1'.
    Reading option '-i' ...
    matched as input file with argument '/sdcard/111.yuv'.
    Reading option '-i' ...
    matched as input file with argument '/sdcard/3.wav'.
    Reading option '-c:a' ...
    matched as option 'c' (codec name) with argument 'aac'.
    Reading option '-strict' ...
    matched as AVOption 'strict' with argument 'experimental'.
    Reading option '-b:a' ...
    matched as option 'b' (video bitrate (please use -b:v)) with argument '56k'.
    Reading option '-preset' ...
    matched as AVOption 'preset' with argument 'ultrafast'.
    Reading option '/sdcard/111.mp4' ...
    matched as output file.
    Finished splitting the commandline.
    Parsing a group of options: global .
    Applying option loglevel (set libav* logging level) with argument debug.
    Applying option y (overwrite output files) with argument 1.
    Successfully parsed a group of options.
    Parsing a group of options: input file /sdcard/111.yuv.
    Successfully parsed a group of options.
    Opening an input file: /sdcard/111.yuv.
    Format aac detected only with low score of 1, misdetection possible!
    File position before avformat_find_stream_info() is 0
    get_buffer() failed
    Error decoding AAC frame header.
    channel element 2.12 is not allocated
    More than one AAC RDB per ADTS frame is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
    channel element 3.4 is not allocated
    channel element 2.2 is not allocated
    Number of scalefactor bands in group (44) exceeds limit (40).
    channel element 2.10 is not allocated
    channel element 1.15 is not allocated
    channel element 3.6 is not allocated
    channel element 2.0 is not allocated
    channel element 3.3 is not allocated
    Sample rate index in program config element does not match the sample rate index configured by the container.
    channel element 2.8 is not allocated
    Sample rate index in program config element does not match the sample rate index configured by the container.
    channel element 3.2 is not allocated
    Reserved bit set.
    channel element 2.6 is not allocated
    channel element 2.1 is not allocated
    Dependent coupling is not supported together with LTP
    Dependent coupling is not supported together with LTP
    Dependent coupling is not supported together with LTP
    Dependent coupling is not supported together with LTP
    Dependent coupling is not supported together with LTP

    and the "Dependent coupling..." line loops thousands of times

  • FFmpeg MUXING OVERHEAD after 900 seconds h264 & ACC (from Axis Camera) to flv rtmp

    11 août 2013, par user2672844

    Audio and Video works for 900 seconds and then ,muxing Overhead !!!

    video:1889kB audio:1825kB global headers:0kB muxing overhead 2.162866%

    AXIS IP CAM -> ffmpeg -> nginx

    ffmpeg -v verbose -i rtsp://root:pass@192.168.0.106/axis-media/media.amp -itsoffset 00:00:05 -acodec copy -ac 1 -ab 64k -ar 16000 -f flv -r 5 -qscale 1 -b 128kB rtmp://192.168.0.107/myapp/test

    I test many Commands with this one , i have the best resoults !!

    Console Output after start the Command :

       ffmpeg -v verbose -i rtsp://root:pass@192.168.0.106/axis-media/media.amp -itsoffset 00:00:05 -acodec copy -ac 1 -ab 64k -ar 16000 -f flv -r 5 -qscale 1 -b 128kB rtmp://192.168.0.107/myapp/test
    ffmpeg version 0.8.6-6:0.8.6-1ubuntu2, Copyright (c) 2000-2013 the Libav developers
     built on Mar 30 2013 22:20:06 with gcc 4.7.2
     configuration: --arch=amd64 --enable-pthreads --enable-runtime-cpudetect --extra-version='6:0.8.6-1ubuntu2' --libdir=/usr/lib/x86_64-linux-gnu --prefix=/usr --enable-bzlib --enable-libdc1394 --enable-libfreetype --enable-gnutls --enable-libgsm --enable-libpulse --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-vaapi --enable-vdpau --enable-libvorbis --enable-libvpx --enable-zlib --enable-gpl --enable-postproc --enable-swscale --enable-libcdio --enable-x11grab --shlibdir=/usr/lib/x86_64-linux-gnu --enable-shared --disable-static
     libavutil    51. 22. 1 / 51. 22. 1
     libavcodec   53. 35. 0 / 53. 35. 0
     libavformat  53. 21. 1 / 53. 21. 1
     libavdevice  53.  2. 0 / 53.  2. 0
     libavfilter   2. 15. 0 /  2. 15. 0
     libswscale    2.  1. 0 /  2.  1. 0
     libpostproc  52.  0. 0 / 52.  0. 0
    *** THIS PROGRAM IS DEPRECATED ***
    This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.
    [rtsp @ 0x63fb20] SDP:
    v=0
    o=- 1376246125522976 1376246125522976 IN IP4 192.168.0.106
    s=Media Presentation
    e=NONE
    b=AS:50064
    t=0 0
    a=control:*
    a=range:npt=0.000000-
    m=video 0 RTP/AVP 96
    c=IN IP4 0.0.0.0
    b=AS:50000
    a=framerate:5.0
    a=transform:-1,0,0;0,-1,0;0,0,1
    a=control:trackID=1
    a=rtpmap:96 H264/90000
    a=fmtp:96 packetization-mode=1; profile-level-id=4D0029; sprop-parameter-sets=Z00AKeKQKD9gLcBAQGkHiRFQ,aO48gA==
    m=audio 0 RTP/AVP 97
    c=IN IP4 0.0.0.0
    b=AS:64
    a=control:trackID=2
    a=rtpmap:97 mpeg4-generic/16000/1
    a=fmtp:97 streamtype=5; profile-level-id=15; mode=AAC-hbr; config=1408; sizeLength=13; indexLength=3; indexDeltaLength=3; profile=1; bitrate=64000;

    [rtsp @ 0x63fb20] Estimating duration from bitrate, this may be inaccurate

    Seems stream 0 codec frame rate differs from container frame rate: 180000.00 (180000/1) -> 90000.00 (180000/2)
    Input #0, rtsp, from 'rtsp://root:pass@192.168.0.106/axis-media/media.amp':
     Metadata:
       title           : Media Presentation
     Duration: N/A, start: 0.062063, bitrate: N/A
       Stream #0.0: Video: h264 (Main), yuvj420p, 320x240 [PAR 1:1 DAR 4:3], 90k tbr, 90k tbn, 180k tbc
       Stream #0.1: Audio: aac, 16000 Hz, mono, s16
    Incompatible pixel format 'yuvj420p' for codec 'flv', auto-selecting format 'yuv420p'
    [buffer @ 0x641aa0] w:320 h:240 pixfmt:yuvj420p
    [avsink @ 0x6512a0] auto-inserting filter 'auto-inserted scaler 0' between the filter 'src' and the filter 'out'
    [scale @ 0x645540] w:320 h:240 fmt:yuvj420p -> w:320 h:240 fmt:yuv420p flags:0x4
    Output #0, flv, to 'rtmp://192.168.0.107/myapp/test':
     Metadata:
       title           : Media Presentation
       encoder         : Lavf53.21.1
       Stream #0.0: Video: flv, yuv420p, 320x240 [PAR 1:1 DAR 4:3], q=2-31, 1024 kb/s, 1k tbn, 5 tbc
       Stream #0.1: Audio: aac, 16000 Hz, mono
    Stream mapping:
     Stream #0.0 -> #0.0
     Stream #0.1 -> #0.1
    Press ctrl-c to stop encoding
    frame= 1185 fps=  5 q=1.0 Lsize=    3794kB time=236.80 bitrate= 131.2kbits/s    
    video:1889kB audio:1825kB global headers:0kB muxing overhead 2.162866%