Recherche avancée

Médias (1)

Mot : - Tags -/illustrator

Autres articles (34)

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

  • De l’upload à la vidéo finale [version standalone]

    31 janvier 2010, par

    Le chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
    Upload et récupération d’informations de la vidéo source
    Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
    Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...)

Sur d’autres sites (7101)

  • How to integrate Netflix audio isma and video ismv files into a single file ?

    25 juillet 2012, par Ωmega

    Having Netflix audio .isma file and video .ismv file, how can be those separate files be integrated into a single .mp4 or .flv file ? Is there some schema or algorithm that can be used to develop such a tool, or is there already a tool available ?


    I tried to use ffmpeg as follows :

    # ffmpeg -i in.isma -i in.ismv out.mp4
    ffmpeg version N-42856-g3ccf22c Copyright (c) 2000-2012 the FFmpeg developers
     built on Jul 24 2012 14:59:19 with gcc 4.1.2 (GCC) 20080704 (Red Hat 4.1.2-52)
     configuration:
     libavutil      51. 65.100 / 51. 65.100
     libavcodec     54. 44.100 / 54. 44.100
     libavformat    54. 20.100 / 54. 20.100
     libavdevice    54.  2.100 / 54.  2.100
     libavfilter     3.  3.100 /  3.  3.100
     libswscale      2.  1.100 /  2.  1.100
     libswresample   0. 15.100 /  0. 15.100
    [aac @ 0x98c9ee0] Reserved bit set.
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'in.isma':
     Metadata:
       major_brand     : mp42
       minor_version   : 0
       compatible_brands: isomiso2dashiso6piff
       creation_time   : 1941-03-31 12:20:24
     Duration: 00:48:39.59, start: 0.000000, bitrate: 67 kb/s
       Stream #0:0(und): Audio: aac (enca / 0x61636E65), 24000 Hz, mono, s16, 62 kb/s
       Metadata:
         creation_time   : 1941-03-31 12:20:24
         handler_name    : Audio Media Handler
    [mov,mp4,m4a,3gp,3g2,mj2 @ 0x98cb020] Could not find codec parameters for stream 0 (Video: none (encv / 0x76636E65), 320x240, 233 kb/s): unknown codec
    Consider increasing the value for the 'analyzeduration' and 'probesize' options
    in.ismv: could not find codec parameters

    Even there is no audio error shown in the above response, I was unable to convert the single audio .isma file into mp3 or other audio format file. I assume these isma/ismv files are somehow crypted or encoded in non-standard format. Below is a partial dump of audio file.

    00000000  ...$ftypmp42....isomiso2  00 00 00 24 | 66 74 79 70 | 6D 70 34 32 | 00 00 00 00 | 69 73 6F 6D | 69 73 6F 32
    00000018  dashiso6piff...luuidNetf  64 61 73 68 | 69 73 6F 36 | 70 69 66 66 | 00 00 00 6C | 75 75 69 64 | 4E 65 74 66
    00000030  lixPiffStrm!.........wªÔ  6C 69 78 50 | 69 66 66 53 | 74 72 6D 21 | 01 00 00 00 | 00 00 00 00 | 01 77 AA D4
    00000048  .....˜–€....Ì6Ê«......·û  00 00 00 00 | 00 98 96 80 | 00 00 00 06 | CC 36 CA AB | 00 00 00 00 | 00 00 B7 FB
    00000060  .....v†»......KK..l°....  00 00 00 00 | 01 76 86 BB | 00 00 00 00 | 00 00 4B 4B | 00 00 6C B0 | 00 00 00 00
    00000078  ...³..D˜øcÌ_Š7jˆ‘E>"..Þ}  00 00 06 B3 | 00 00 44 98 | F8 63 CC 5F | 8A 37 6A 88 | 91 45 3E 22 | 02 1B DE 7D
    00000090  ...nuuid¯3¡ª´%E‘%ÔÚz2ÿ.   00 00 00 6E | 75 75 69 64 | AF 33 A1 90 | AA B4 25 45 | 91 25 D4 DA | 7A 32 FF 05
    000000A8  ......./È[<?þÿ.N.e.t.f.l  00 00 00 00 | 00 00 01 2F | C8 5B 3C 3F | FE FF 00 4E | 00 65 00 74 | 00 66 00 6C
    000000C0  .i.x. .M.e.d.i.a. .L.i.b  00 69 00 78 | 00 20 00 4D | 00 65 00 64 | 00 69 00 61 | 00 20 00 4C | 00 69 00 62
    000000D8  .r.a.r.y. .V.e.r.s.i.o.n  00 72 00 61 | 00 72 00 79 | 00 20 00 56 | 00 65 00 72 | 00 73 00 69 | 00 6F 00 6E
    000000F0  . .1.2...3.8.....µmoov..  00 20 00 31 | 00 32 00 2E | 00 33 00 38 | 00 2E 00 00 | 05 B5 6D 6F | 6F 76 00 00
    00000108  .xmvhd........Ééó.....Éé  00 78 6D 76 | 68 64 01 00 | 00 00 00 00 | 00 00 C9 E9 | F3 08 00 00 | 00 00 C9 E9
    00000120  ó..˜–€....Ì6Ê«..........  F3 08 00 98 | 96 80 00 00 | 00 06 CC 36 | CA AB 00 01 | 00 00 01 00 | 00 00 00 00
    00000138  ........................  00 00 00 00 | 00 00 00 01 | 00 00 00 00 | 00 00 00 00 | 00 00 00 00 | 00 00 00 01
    00000150  ..............@.........  00 00 00 00 | 00 00 00 00 | 00 00 00 00 | 00 00 40 00 | 00 00 00 00 | 00 00 00 00
    00000168  ........................  00 00 00 00 | 00 00 00 00 | 00 00 00 00 | 00 00 00 00 | 00 00 00 00 | 00 02 00 00
    00000180  .&pssh....š.ðy˜@B†«’æ[àˆ  02 26 70 73 | 73 68 00 00 | 00 00 9A 04 | F0 79 98 40 | 42 86 AB 92 | E6 5B E0 88
    00000198  _•............ü.<.W.R.M.  5F 95 00 00 | 02 06 06 02 | 00 00 01 00 | 01 00 FC 01 | 3C 00 57 00 | 52 00 4D 00
    000001B0  H.E.A.D.E.R. .x.m.l.n.s.  48 00 45 00 | 41 00 44 00 | 45 00 52 00 | 20 00 78 00 | 6D 00 6C 00 | 6E 00 73 00
    000001C8  =.".h.t.t.p.:././.s.c.h.  3D 00 22 00 | 68 00 74 00 | 74 00 70 00 | 3A 00 2F 00 | 2F 00 73 00 | 63 00 68 00
    000001E0  e.m.a.s...m.i.c.r.o.s.o.  65 00 6D 00 | 61 00 73 00 | 2E 00 6D 00 | 69 00 63 00 | 72 00 6F 00 | 73 00 6F 00
    000001F8  f.t...c.o.m./.D.R.M./.2.  66 00 74 00 | 2E 00 63 00 | 6F 00 6D 00 | 2F 00 44 00 | 52 00 4D 00 | 2F 00 32 00
    00000210  0.0.7./.0.3./.P.l.a.y.R.  30 00 30 00 | 37 00 2F 00 | 30 00 33 00 | 2F 00 50 00 | 6C 00 61 00 | 79 00 52 00
    00000228  e.a.d.y.H.e.a.d.e.r.". .  65 00 61 00 | 64 00 79 00 | 48 00 65 00 | 61 00 64 00 | 65 00 72 00 | 22 00 20 00
    00000240  v.e.r.s.i.o.n.=.".4...0.  76 00 65 00 | 72 00 73 00 | 69 00 6F 00 | 6E 00 3D 00 | 22 00 34 00 | 2E 00 30 00
    00000258  ..0...0.".>.<.D.A.T.A.>.  2E 00 30 00 | 2E 00 30 00 | 22 00 3E 00 | 3C 00 44 00 | 41 00 54 00 | 41 00 3E 00
    00000270  <.P.R.O.T.E.C.T.I.N.F.O.  3C 00 50 00 | 52 00 4F 00 | 54 00 45 00 | 43 00 54 00 | 49 00 4E 00 | 46 00 4F 00
    00000288  >.<.K.E.Y.L.E.N.>.1.6.<.  3E 00 3C 00 | 4B 00 45 00 | 59 00 4C 00 | 45 00 4E 00 | 3E 00 31 00 | 36 00 3C 00
    000002A0  /.K.E.Y.L.E.N.>.<.A.L.G.  2F 00 4B 00 | 45 00 59 00 | 4C 00 45 00 | 4E 00 3E 00 | 3C 00 41 00 | 4C 00 47 00
    000002B8  I.D.>.A.E.S.C.T.R.<./.A.  49 00 44 00 | 3E 00 41 00 | 45 00 53 00 | 43 00 54 00 | 52 00 3C 00 | 2F 00 41 00
    000002D0  L.G.I.D.>.<./.P.R.O.T.E.  4C 00 47 00 | 49 00 44 00 | 3E 00 3C 00 | 2F 00 50 00 | 52 00 4F 00 | 54 00 45 00
    000002E8  C.T.I.N.F.O.>.<.K.I.D.>.  43 00 54 00 | 49 00 4E 00 | 46 00 4F 00 | 3E 00 3C 00 | 4B 00 49 00 | 44 00 3E 00
    00000300  A.A.A.A.A.D.k.6./.w.A.A.  41 00 41 00 | 41 00 41 00 | 41 00 44 00 | 6B 00 36 00 | 2F 00 77 00 | 41 00 41 00
    00000318  A.A.A.A.A.A.A.A.A.A.=.=.  41 00 41 00 | 41 00 41 00 | 41 00 41 00 | 41 00 41 00 | 41 00 41 00 | 3D 00 3D 00
    00000330  <./.K.I.D.>.<.C.H.E.C.K.  3C 00 2F 00 | 4B 00 49 00 | 44 00 3E 00 | 3C 00 43 00 | 48 00 45 00 | 43 00 4B 00
    00000348  S.U.M.>.v.R.W.D.3.9.D.o.  53 00 55 00 | 4D 00 3E 00 | 76 00 52 00 | 57 00 44 00 | 33 00 39 00 | 44 00 6F 00
    00000360  7.K.Y.=.<./.C.H.E.C.K.S.  37 00 4B 00 | 59 00 3D 00 | 3C 00 2F 00 | 43 00 48 00 | 45 00 43 00 | 4B 00 53 00
    00000378  U.M.>.<./.D.A.T.A.>.<./.  55 00 4D 00 | 3E 00 3C 00 | 2F 00 44 00 | 41 00 54 00 | 41 00 3E 00 | 3C 00 2F 00
    00000390  W.R.M.H.E.A.D.E.R.>....L  57 00 52 00 | 4D 00 48 00 | 45 00 41 00 | 44 00 45 00 | 52 00 3E 00 | 00 00 00 4C
    000003A8  pssh....)p.ä<ÇJ4Œ[®ÇCšG   70 73 73 68 | 00 00 00 00 | 29 70 1F E4 | 3C C7 4A 34 | 8C 5B AE 90 | C7 43 9A 47
    000003C0  ...,........9:ÿ.ò...û¡.Ù  00 00 00 2C | 00 00 00 04 | 00 00 00 00 | 39 3A FF 00 | F2 1E 01 1A | FB A1 13 D9
    000003D8  n.N®Á7.Üý\8ªv̬.øÀß‹½¸«¾  6E 1A 4E AE | C1 37 11 DC | FD 5C 38 AA | 76 CC AC 08 | F8 C0 DF 8B | BD B8 AB BE
    000003F0  ...‡trak...htkhd........  00 00 02 87 | 74 72 61 6B | 00 00 00 68 | 74 6B 68 64 | 01 00 00 07 | 00 00 00 00
    00000408  Ééó.....Ééó.............  C9 E9 F3 08 | 00 00 00 00 | C9 E9 F3 08 | 00 00 00 01 | 00 00 00 00 | 00 00 00 06
    00000420  Ì6Ê«....................  CC 36 CA AB | 00 00 00 00 | 00 00 00 00 | 00 00 00 00 | 01 00 00 00 | 00 01 00 00
    00000438  ........................  00 00 00 00 | 00 00 00 00 | 00 00 00 00 | 00 01 00 00 | 00 00 00 00 | 00 00 00 00
    00000450  ....@...............mdia  00 00 00 00 | 40 00 00 00 | 00 00 00 00 | 00 00 00 00 | 00 00 02 17 | 6D 64 69 61
    00000468  ...,mdhd........Ééó.....  00 00 00 2C | 6D 64 68 64 | 01 00 00 00 | 00 00 00 00 | C9 E9 F3 08 | 00 00 00 00
    00000480  Ééó...]À.....-0.UÄ.....4  C9 E9 F3 08 | 00 00 5D C0 | 00 00 00 00 | 04 2D 30 00 | 55 C4 00 00 | 00 00 00 34
    00000498  hdlr........soun........  68 64 6C 72 | 00 00 00 00 | 00 00 00 00 | 73 6F 75 6E | 00 00 00 00 | 00 00 00 00
    000004B0  ....Audio Media Handler.  00 00 00 00 | 41 75 64 69 | 6F 20 4D 65 | 64 69 61 20 | 48 61 6E 64 | 6C 65 72 00
    000004C8  ...¯minf....smhd........  00 00 01 AF | 6D 69 6E 66 | 00 00 00 10 | 73 6D 68 64 | 00 00 00 00 | 00 00 00 00
    000004E0  ...$dinf....dref........  00 00 00 24 | 64 69 6E 66 | 00 00 00 1C | 64 72 65 66 | 00 00 00 00 | 00 00 00 01
    000004F8  ....url .......sstbl....  00 00 00 0C | 75 72 6C 20 | 00 00 00 01 | 00 00 01 73 | 73 74 62 6C | 00 00 00 10
    00000510  stts............ctts....  73 74 74 73 | 00 00 00 00 | 00 00 00 00 | 00 00 00 10 | 63 74 74 73 | 00 00 00 00
    00000528  ........stsd............  00 00 00 00 | 00 00 01 17 | 73 74 73 64 | 00 00 00 00 | 00 00 00 01 | 00 00 01 07
    00000540  enca....................  65 6E 63 61 | 00 00 00 00 | 00 00 00 01 | 00 00 00 00 | 00 00 00 00 | 00 02 00 10
    00000558  ....]À.....`sinf....frma  00 00 00 00 | 5D C0 00 00 | 00 00 00 60 | 73 69 6E 66 | 00 00 00 0C | 66 72 6D 61
    00000570  mp4a....schm....piff....  6D 70 34 61 | 00 00 00 14 | 73 63 68 6D | 00 00 00 00 | 70 69 66 66 | 00 01 00 01
    00000588  ...8schi...0uuid‰tÛÎ{çLQ  00 00 00 38 | 73 63 68 69 | 00 00 00 30 | 75 75 69 64 | 89 74 DB CE | 7B E7 4C 51
    000005A0  „ùqHùˆ%T............9:ÿ.  84 F9 71 48 | F9 88 25 54 | 00 00 00 00 | 00 00 01 08 | 00 00 00 00 | 39 3A FF 00
    000005B8  ...........Psinf....frma  00 00 00 00 | 00 00 00 00 | 00 00 00 50 | 73 69 6E 66 | 00 00 00 0C | 66 72 6D 61
    000005D0  mp4a....schm....cenc....  6D 70 34 61 | 00 00 00 14 | 73 63 68 6D | 00 00 00 00 | 63 65 6E 63 | 00 01 00 00
    000005E8  ...(schi... tenc........  00 00 00 28 | 73 63 68 69 | 00 00 00 20 | 74 65 6E 63 | 00 00 00 00 | 00 00 01 08
    00000600  ....9:ÿ............3esds  00 00 00 00 | 39 3A FF 00 | 00 00 00 00 | 00 00 00 00 | 00 00 00 33 | 65 73 64 73
    00000618  .....€€€"....€€€.@...„..  00 00 00 00 | 03 80 80 80 | 22 00 00 00 | 04 80 80 80 | 14 40 15 00 | 02 84 00 01
    00000630  Ô....Â.€€€....€€€......s  D4 05 00 01 | 06 C2 05 80 | 80 80 02 13 | 10 06 80 80 | 80 01 02 00 | 00 00 10 73
    00000648  tsc............stsz.....  74 73 63 00 | 00 00 00 00 | 00 00 00 00 | 00 00 14 73 | 74 73 7A 00 | 00 00 00 00
    00000660  ...........stco.........  00 00 00 00 | 00 00 00 00 | 00 00 10 73 | 74 63 6F 00 | 00 00 00 00 | 00 00 00 00
    00000678  ..code>

    I will appreciate every usefull comment.

  • How to configure ffmpeg on ubuntu to convert *.3gp to pcm *.wav ? [migrated]

    31 juillet 2012, par Monica Sol

    I'm using linux Ubuntu ver 10.04.
    I need to convert file *.3gp to PCM *.wav. I'm using for that ffmpeg program.

    When it's installed from repository by using aptitude install ffmpeg it's installing some basic version of it and I cannot convert what I need.

    I've read some stuff on the Internet and I've made what there was written.
    I've installed the latest yasm ver.1.1.0 and the newest x264 - 0.125.2208. After that I got ffmpeg using git from http://ffmpeg.org/download.html (git clone git ://source.ffmpeg.org/ffmpeg.git ffmpeg).

    I`ve tried to configure ffmpeg by myself using :

    ./configure --enable-gpl --enable-version3 --enable-postproc
    --enable-nonfree --enable-swscale --enable-pthreads --enable-libmp3lame
    --enable-libx264 --enable-libopencore-amrnb --enable-libopencore-amrwb

    than : time make && make install.

    Till this time everything was ok. After conversion (ffmpeg -i audiotest.3gp -f s16le -ar 8000 -acodec pcm_s16le audio.wav) I wanted to check information about this PCM *.wav file (ffmpeg -i audio.wav) and I`ve got this error :

    ~# ffmpeg -i audio.wav

    ffmpeg version N-42619-g6b7849e Copyright (c) 2000-2012 the FFmpeg developers
     built on Jul 21 2012 00:50:52 with gcc 4.4.3
     configuration: --enable-gpl --enable-version3 --enable-postproc --enable-nonfree --enable-swscale --enable-pthreads --enable-libmp3lame --enable-libx264 --enable-libopencore-amrnb --enable-libopencore-amrwb

     libavutil      51. 65.100 / 51. 65.100
     libavcodec     54. 41.100 / 54. 41.100
     libavformat    54. 17.100 / 54. 17.100
     libavdevice    54.  1.100 / 54.  1.100
     libavfilter     3.  2.100 /  3.  2.100
     libswscale      2.  1.100 /  2.  1.100
     libswresample   0. 15.100 /  0. 15.100
     libpostproc    52.  0.100 / 52.  0.100
    [aac @ 0x943d4e0] Format aac detected only with low score of 1, misdetection possible!
    [aac @ 0x9443740] channel element 0.0 is not allocated
       Last message repeated 2 times
    [aac @ 0x9443740] 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.
    [aac @ 0x9443740] Input buffer exhausted before END element found
    [aac @ 0x9443740] Number of bands (16) exceeds limit (4).
    [aac @ 0x9443740] Number of bands (7) exceeds limit (2).
    [aac @ 0x9443740] Input buffer exhausted before END element found
    [aac @ 0x9443740] SSR 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.
    [aac @ 0x9443740] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/MPlayer/incoming/ and contact the ffmpeg-devel mailing list.
    [aac @ 0x9443740] channel element 2.0 is not allocated
    [aac @ 0x9443740] Error decoding AAC frame header.
    [aac @ 0x9443740] Reserved bit set.
    [aac @ 0x9443740] Invalid Predictor Reset Group.
    [aac @ 0x9443740] channel element 0.0 is not allocated
    [aac @ 0x9443740] Number of bands (31) exceeds limit (1).
    [aac @ 0x9443740] Error decoding AAC frame header.
    [aac @ 0x9443740] Input buffer exhausted before END element found
    [aac @ 0x9443740] Number of bands (16) exceeds limit (2).
    [aac @ 0x9443740] channel element 0.7 is not allocated
    [aac @ 0x9443740] Invalid Predictor Reset Group.
    [aac @ 0x9443740] Error decoding AAC frame header.
    [aac @ 0x9443740] Number of scalefactor bands in group (62) exceeds limit (41).
    [aac @ 0x9443740] Invalid Predictor Reset Group.
    [aac @ 0x9443740] Input buffer exhausted before END element found
    [aac @ 0x9443740] Invalid Predictor Reset Group.
    [aac @ 0x9443740] channel element 0.2 is not allocated
    [aac @ 0x9443740] Input buffer exhausted before END element found
    [aac @ 0x9443740] Invalid Predictor Reset Group.
    [aac @ 0x9443740] Reserved bit set.
    [aac @ 0x9443740] Input buffer exhausted before END element found
    [aac @ 0x9443740] channel element 0.15 is not allocated
    [aac @ 0x9443740] Pulse data corrupt or invalid.
    [aac @ 0x9443740] Number of scalefactor bands in group (48) exceeds limit (41).
    [aac @ 0x9443740] channel element 2.0 is not allocated
    [aac @ 0x9443740] Invalid Predictor Reset Group.
    [aac @ 0x9443740] Reserved bit set.
    [aac @ 0x9443740] Number of bands (16) exceeds limit (4).
    [aac @ 0x9443740] Error decoding AAC frame header.
    [aac @ 0x9443740] Input buffer exhausted before END element found
    [aac @ 0x9443740] Error decoding AAC frame header.
    [aac @ 0x9443740] Reserved bit set.
       Last message repeated 1 times
    [aac @ 0x9443740] Error decoding AAC frame header.
    [aac @ 0x9443740] channel element 2.0 is not allocated
    [aac @ 0x9443740] Number of bands (31) exceeds limit (4).
    [aac @ 0x9443740] Pulse data corrupt or invalid.
    [aac @ 0x9443740] Reserved bit set.
    [aac @ 0x9443740] Error decoding AAC frame header.
    [aac @ 0x9443740] Reserved bit set.
    [aac @ 0x9443740] SSR 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.
    [aac @ 0x9443740] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/MPlayer/incoming/ and contact the ffmpeg-devel mailing list.
    [aac @ 0x9443740] Input buffer exhausted before END element found
    [aac @ 0x9443740] channel element 0.0 is not allocated
    [aac @ 0x9443740] Error decoding AAC frame header.
    [aac @ 0x9443740] Reserved bit set.
    [aac @ 0x9443740] Invalid Predictor Reset Group.
    [aac @ 0x9443740] channel element 0.3 is not allocated
    [aac @ 0x9443740] Pulse data corrupt or invalid.
    [aac @ 0x9443740] Invalid Predictor Reset Group.
    [aac @ 0x9443740] Input buffer exhausted before END element found
    [aac @ 0x9443740] Number of bands (35) exceeds limit (16).
    [aac @ 0x9443740] Number of scalefactor bands in group (63) exceeds limit (41).
    [aac @ 0x9443740] Input buffer exhausted before END element found
    [aac @ 0x9443740] channel element 0.0 is not allocated
    [aac @ 0x9443740] Input buffer exhausted before END element found
    [aac @ 0x9443740] Invalid Predictor Reset Group.
    [aac @ 0x9443740] Reserved bit set.
    [aac @ 0x9443740] Invalid Predictor Reset Group.
    [aac @ 0x9443740] Reserved bit set.
    [aac @ 0x9443740] Invalid Predictor Reset Group.
    [aac @ 0x9443740] channel element 0.0 is not allocated
    [aac @ 0x9443740] Number of bands (38) exceeds limit (10).
    [aac @ 0x9443740] Error decoding AAC frame header.
    [aac @ 0x9443740] Invalid Predictor Reset Group.
    [aac @ 0x9443740] channel element 0.2 is not allocated
    [aac @ 0x9443740] channel element 0.7 is not allocated
    [aac @ 0x9443740] Reserved bit set.
       Last message repeated 2 times
    [aac @ 0x9443740] channel element 0.2 is not allocated
    [aac @ 0x9443740] Error decoding AAC frame header.
    [aac @ 0x9443740] Reserved bit set.
       Last message repeated 1 times
    [aac @ 0x9443740] Invalid Predictor Reset Group.
    [aac @ 0x9443740] Input buffer exhausted before END element found
    [aac @ 0x9443740] decode_band_types: Input buffer exhausted before END element found
    [aac @ 0x9443740] Error decoding AAC frame header.
    [aac @ 0x9443740] Reserved bit set.
    [aac @ 0x9443740] Error decoding AAC frame header.
       Last message repeated 1 times
    [aac @ 0x9443740] Reserved bit set.
       Last message repeated 1 times
    [aac @ 0x9443740] Number of bands (4) exceeds limit (1).
    [aac @ 0x9443740] Invalid Predictor Reset Group.
    [aac @ 0x9443740] Reserved bit set.
    [aac @ 0x9443740] Error decoding AAC frame header.
    [aac @ 0x9443740] Number of bands (31) exceeds limit (8).
    [aac @ 0x9443740] Invalid Predictor Reset Group.
    [aac @ 0x9443740] Number of bands (31) exceeds limit (2).
    [aac @ 0x9443740] Number of bands (28) exceeds limit (1).
    [aac @ 0x9443740] channel element 0.0 is not allocated
    [aac @ 0x9443740] Input buffer exhausted before END element found
    [aac @ 0x9443740] Number of bands (16) exceeds limit (2).
    [aac @ 0x9443740] Error decoding AAC frame header.
    [aac @ 0x943d4e0] decoding for stream 0 failed
    [aac @ 0x943d4e0] Could not find codec parameters for stream 0 (Audio: aac, 4.0, s16, 383 kb/s): unspecified sample rate
    Consider increasing the value for the 'analyzeduration' and 'probesize' options
    [aac @ 0x943d4e0] Estimating duration from bitrate, this may be inaccurate
    audio.wav: could not find codec parameters

    Can anyone help me with this ? What I'm doing wrong ? I'm linux newbie, but I really need to get this thing works.

  • Playing videos using HTML5 Tag

    20 novembre 2012, par Haja Mohaideen

    I am creating a website where videos need to be streamed. The content creator uploads .mov file to the server. Upon uploading, I convert to the following formats using FFMPEG, .mp4, .webm, and .ogg.

    I am now trying to allow the video to be viewed from multiple browsers and handheld devices. The code is as follow :

    <code class="echappe-js">&lt;script&gt; <br />
    var video = document.getElementById(&amp;#39;video&amp;#39;);<br />
    video.addEventListener(&amp;#39;click&amp;#39;,function(){<br />
    video.play();<br />
    },false);<br />
    &lt;/script&gt;

    &lt;script type=&quot;text/javascript&quot; src=&quot;http://stackoverflow.com/feeds/tag/jwplayer.js&quot;&gt;&lt;/script&gt;

    &lt;script type=&quot;text/javascript&quot;&gt;<br />
     jwplayer(&quot;video&quot;).setup({<br />
       modes: [<br />
          { type: &amp;#39;html5&amp;#39; },<br />
          { type: &amp;#39;flash&amp;#39;, src: &amp;#39;player.swf&amp;#39; }<br />
       ]<br />
     });<br />
    &lt;/script&gt;

    The video works on all browsers. But, it is refusing to play on Android. When I click the play button, it shows as loading only.

    I am testing on 4.0.3.

    FFMPEG conversion codes :

    webm

    exec("ffmpeg -y -i file.mov -acodec libvorbis -ac 2 -ab 96k -ar 44100 -b 345k -s 640x360 output.webm", $command_output, $result);

    ogg

    exec("ffmpeg -y -i file.mov -acodec libvorbis -ac 2 -ab 96k -ar 44100 -b 345k -s 640x360 output.ogv", $command_output, $result);

    flv

    exec("ffmpeg -y -i file.mov -ar 44100 -ab 96 -f flv output.flv", $command_output, $result);

    For MP4 :

       sudo ffmpeg -i file.mov -s 320x240 -c:v libx264 -pix_fmt yuv420p -profile:v baseline -preset slow -acodec aac -strict experimental -ac 2 -r 15 -ab 44100 -aspect 16:9 output.mp4
    ffmpeg version git-2012-10-11-492b8ec Copyright (c) 2000-2012 the FFmpeg developers
     built on Oct 11 2012 19:59:50 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)
     configuration: --enable-gpl --enable-libfaac --enable-libfdk-aac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librtmp --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree --enable-version3
     libavutil      51. 74.100 / 51. 74.100
     libavcodec     54. 65.100 / 54. 65.100
     libavformat    54. 31.100 / 54. 31.100
     libavdevice    54.  3.100 / 54.  3.100
     libavfilter     3. 19.102 /  3. 19.102
     libswscale      2.  1.101 /  2.  1.101
     libswresample   0. 16.100 /  0. 16.100
     libpostproc    52.  1.100 / 52.  1.100
    [mov,mp4,m4a,3gp,3g2,mj2 @ 0x23f3220] Stream #1: not enough frames to estimate rate; consider increasing probesize
    [mov,mp4,m4a,3gp,3g2,mj2 @ 0x23f3220] Stream #2: not enough frames to estimate rate; consider increasing probesize
    Guessed Channel Layout for  Input Stream #0.1 : stereo
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#39;file.mov&#39;:
     Metadata:
       major_brand     : qt  
       minor_version   : 537199360
       compatible_brands: qt  
       creation_time   : 2012-09-07 11:10:10
     Duration: 00:01:41.83, start: 0.000000, bitrate: 186917 kb/s
       Stream #0:0(eng): Video: qtrle (rle  / 0x20656C72), rgb24, 1920x1080, 185371 kb/s, SAR 1920:1920 DAR 16:9, 29.97 fps, 29.97 tbr, 30k tbn, 30k tbc
       Metadata:
         creation_time   : 2012-09-07 11:10:10
         handler_name    : Apple Alias Data Handler
         timecode        : 00:00:00;03
       Stream #0:1(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, stereo, s16, 1536 kb/s
       Metadata:
         creation_time   : 2012-09-07 11:10:10
         handler_name    : Apple Alias Data Handler
         timecode        : 00:00:00;03
       Stream #0:2(eng): Data: none (tmcd / 0x64636D74)
       Metadata:
         creation_time   : 2012-09-07 11:31:37
         handler_name    : Apple Alias Data Handler
         timecode        : 00:00:00;03
    File &#39;output.mp4&#39; already exists. Overwrite ? [y/N] y
    using SAR=4/3
    [libx264 @ 0x240bf60] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2 AVX
    [libx264 @ 0x240bf60] profile Constrained Baseline, level 1.2
    [libx264 @ 0x240bf60] 264 - core 128 r2 198a7ea - H.264/MPEG-4 AVC codec - Copyleft 2003-2012 - http://www.videolan.org/x264.html - options: cabac=0 ref=5 deblock=1:0:0 analyse=0x1:0x111 me=umh subme=8 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=1 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=250 keyint_min=15 scenecut=40 intra_refresh=0 rc_lookahead=50 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
    Output #0, mp4, to &#39;output.mp4&#39;:
     Metadata:
       major_brand     : qt  
       minor_version   : 537199360
       compatible_brands: qt  
       encoder         : Lavf54.31.100
       Stream #0:0(eng): Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 320x240 [SAR 4:3 DAR 16:9], q=-1--1, 15360 tbn, 15 tbc
       Metadata:
         creation_time   : 2012-09-07 11:10:10
         handler_name    : Apple Alias Data Handler
         timecode        : 00:00:00;03
       Stream #0:1(eng): Audio: aac ([64][0][0][0] / 0x0040), 48000 Hz, stereo, fltp, 44 kb/s
       Metadata:
         creation_time   : 2012-09-07 11:10:10
         handler_name    : Apple Alias Data Handler
         timecode        : 00:00:00;03
    Stream mapping:
     Stream #0:0 -> #0:0 (qtrle -> libx264)
     Stream #0:1 -> #0:1 (pcm_s16le -> aac)
    Press [q] to stop, [?] for help
    frame=   25 fps=0.0 q=0.0 size=       0kB time=00:00:01.32 bitrate=   0.frame=   47 fps= 47 q=0.0 size=       0kB time=00:00:02.68 bitrate=   0.frame=   67 fps= 44 q=27.0 size=      12kB time=00:00:04.05 bitrate=  23frame=   88 fps= 44 q=27.0 size=      23kB time=00:00:05.41 bitrate=  34frame=  108 fps= 43 q=27.0 size=      35kB time=00:00:06.78 bitrate=  42frame=  128 fps= 42 q=27.0 size=      47kB time=00:00:08.14 bitrate=  47frame=  150 fps= 43 q=27.0 size=      64kB time=00:00:09.51 bitrate=  54frame=  172 fps= 43 q=27.0 size=      81kB time=00:00:10.88 bitrate=  61frame=  193 fps= 43 q=27.0 size=     106kB time=00:00:12.24 bitrate=  70frame=  214 fps= 42 q=27.0 size=     119kB time=00:00:13.61 bitrate=  71frame=  235 fps= 42 q=27.0 size=     127kB time=00:00:14.97 bitrate=  69frame=  254 fps= 42 q=27.0 size=     144kB time=00:00:16.34 bitrate=  72frame=  272 fps= 41 q=27.0 size=     157kB time=00:00:17.70 bitrate=  72frame=  289 fps= 41 q=27.0 size=     174kB time=00:00:19.07 bitrate=  74frame=  309 fps= 41 q=27.0 size=     183kB time=00:00:20.28 bitrate=  73frame=  329 fps= 41 q=27.0 size=     191kB time=00:00:20.77 bitrate=  75frame=  349 fps= 41 q=27.0 size=     200kB time=00:00:22.08 bitrate=  74frame=  369 fps= 41 q=27.0 size=     215kB time=00:00:23.38 bitrate=  75frame=  389 fps= 41 q=27.0 size=     225kB time=00:00:24.72 bitrate=  74frame=  408 fps= 40 q=27.0 size=     235kB time=00:00:26.02 bitrate=  74frame=  428 fps= 40 q=27.0 size=     247kB time=00:00:27.32 bitrate=  73frame=  448 fps= 40 q=27.0 size=     256kB time=00:00:28.65 bitrate=  73frame=  468 fps= 40 q=27.0 size=     264kB time=00:00:30.01 bitrate=  72frame=  489 fps= 40 q=27.0 size=     273kB time=00:00:31.38 bitrate=  71frame=  507 fps= 40 q=27.0 size=     299kB time=00:00:32.72 bitrate=  74frame=  527 fps= 40 q=27.0 size=     317kB time=00:00:34.09 bitrate=  76frame=  547 fps= 40 q=27.0 size=     336kB time=00:00:35.45 bitrate=  77frame=  565 fps= 40 q=27.0 size=     344kB time=00:00:36.82 bitrate=  76frame=  586 fps= 40 q=27.0 size=     352kB time=00:00:38.18 bitrate=  75frame=  607 fps= 40 q=27.0 size=     361kB time=00:00:39.55 bitrate=  74frame=  627 fps= 40 q=27.0 size=     370kB time=00:00:40.91 bitrate=  74frame=  647 fps= 40 q=27.0 size=     384kB time=00:00:42.28 bitrate=  74frame=  665 fps= 40 q=27.0 size=     408kB time=00:00:43.64 bitrate=  76frame=  684 fps= 40 q=27.0 size=     418kB time=00:00:45.01 bitrate=  76frame=  704 fps= 40 q=27.0 size=     427kB time=00:00:46.37 bitrate=  75frame=  721 fps= 40 q=27.0 size=     453kB time=00:00:47.74 bitrate=  77frame=  741 fps= 40 q=27.0 size=     463kB time=00:00:49.10 bitrate=  77frame=  761 fps= 40 q=27.0 size=     472kB time=00:00:50.47 bitrate=  76frame=  784 fps= 40 q=27.0 size=     481kB time=00:00:51.84 bitrate=  76frame=  804 fps= 40 q=27.0 size=     498kB time=00:00:53.20 bitrate=  76frame=  822 fps= 40 q=27.0 size=     518kB time=00:00:54.57 bitrate=  77frame=  843 fps= 40 q=27.0 size=     529kB time=00:00:55.93 bitrate=  77frame=  862 fps= 40 q=27.0 size=     547kB time=00:00:57.30 bitrate=  78frame=  882 fps= 40 q=27.0 size=     558kB time=00:00:58.13 bitrate=  78frame=  903 fps= 40 q=27.0 size=     568kB time=00:00:58.98 bitrate=  78frame=  923 fps= 40 q=27.0 size=     578kB time=00:01:00.35 bitrate=  78frame=  943 fps= 40 q=27.0 size=     588kB time=00:01:01.67 bitrate=  78frame=  964 fps= 40 q=27.0 size=     598kB time=00:01:03.06 bitrate=  77frame=  984 fps= 40 q=27.0 size=     607kB time=00:01:04.42 bitrate=  77frame= 1004 fps= 40 q=27.0 size=     626kB time=00:01:05.72 bitrate=  78frame= 1026 fps= 40 q=27.0 size=     638kB time=00:01:07.20 bitrate=  77frame= 1047 fps= 40 q=27.0 size=     655kB time=00:01:09.58 bitrate=  77frame= 1069 fps= 40 q=27.0 size=     670kB time=00:01:10.95 bitrate=  77frame= 1089 fps= 40 q=27.0 size=     691kB time=00:01:12.32 bitrate=  78frame= 1108 fps= 40 q=27.0 size=     710kB time=00:01:12.64 bitrate=  80frame= 1126 fps= 40 q=27.0 size=     731kB time=00:01:13.85 bitrate=  81frame= 1142 fps= 40 q=27.0 size=     759kB time=00:01:15.05 bitrate=  82frame= 1157 fps= 39 q=27.0 size=     787kB time=00:01:16.41 bitrate=  84frame= 1174 fps= 39 q=27.0 size=     796kB time=00:01:17.78 bitrate=  83frame= 1192 fps= 39 q=27.0 size=     806kB time=00:01:19.14 bitrate=  83frame= 1209 fps= 39 q=27.0 size=     821kB time=00:01:19.38 bitrate=  84frame= 1227 fps= 39 q=27.0 size=     831kB time=00:01:20.59 bitrate=  84frame= 1248 fps= 39 q=27.0 size=     840kB time=00:01:21.96 bitrate=  84frame= 1267 fps= 39 q=27.0 size=     848kB time=00:01:23.24 bitrate=  83frame= 1289 fps= 39 q=27.0 size=     857kB time=00:01:24.73 bitrate=  82frame= 1309 fps= 39 q=24.0 size=     877kB time=00:01:26.03 bitrate=  83frame= 1329 fps= 39 q=27.0 size=     892kB time=00:01:27.40 bitrate=  83frame= 1351 fps= 39 q=27.0 size=     901kB time=00:01:28.85 bitrate=  83frame= 1372 fps= 39 q=27.0 size=     912kB time=00:01:30.28 bitrate=  82frame= 1394 fps= 39 q=27.0 size=     925kB time=00:01:32.52 bitrate=  81frame= 1418 fps= 39 q=27.0 size=     936kB time=00:01:34.16 bitrate=  81frame= 1441 fps= 40 q=27.0 size=     947kB time=00:01:35.53 bitrate=  81frame= 1464 fps= 40 q=27.0 size=     957kB time=00:01:36.89 bitrate=  80frame= 1488 fps= 40 q=27.0 size=     969kB time=00:01:38.26 bitrate=  80frame= 1509 fps= 40 q=27.0 size=     981kB time=00:01:39.62 bitrate=  80frame= 1526 fps= 40 q=27.0 size=     993kB time=00:01:41.90 bitrate=  79frame= 1530 fps= 40 q=27.0 Lsize=    1038kB time=00:01:42.00 bitrate=  83.4kbits/s dup=0 drop=1522    
    video:406kB audio:590kB subtitle:0 global headers:0kB muxing overhead 4.258083%
    [libx264 @ 0x240bf60] frame I:15    Avg QP:16.30  size:  2928
    [libx264 @ 0x240bf60] frame P:1515  Avg QP:22.12  size:   245
    [libx264 @ 0x240bf60] mb I  I16..4: 72.9%  0.0% 27.1%
    [libx264 @ 0x240bf60] mb P  I16..4:  3.9%  0.0%  0.7%  P16..4:  3.2%  1.1%  0.5%  0.0%  0.0%    skip:90.5%
    [libx264 @ 0x240bf60] coded y,uvDC,uvAC intra: 12.1% 38.2% 14.8% inter: 1.2% 2.7% 0.9%
    [libx264 @ 0x240bf60] i16 v,h,dc,p: 29% 23%  4% 44%
    [libx264 @ 0x240bf60] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 19% 16% 30%  6%  8%  8%  5%  6%  3%
    [libx264 @ 0x240bf60] i8c dc,h,v,p: 50% 27% 18%  5%
    [libx264 @ 0x240bf60] ref P L0: 80.0%  8.9%  6.1%  2.7%  2.3%
    [libx264 @ 0x240bf60] kb/s:32.58

    I decided to remote debug to see what is happening. I realised that the video status is pending.

    Debug