Recherche avancée

Médias (2)

Mot : - Tags -/doc2img

Autres articles (47)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

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

  • Why does ffmpeg fail to process streams ?

    22 décembre 2022, par wakobu

    I am struggling on a ffmpeg media conversion script.
    
I am using fluent-ffmpeg library with node.js.

    


    My app is supposed to receive a stream as input, resize it using ffmpeg, and then outputing a stream.

    


    However, I am absolutely unable to process an input stream with ffmpeg, even when specifying the input format (-f ffmpeg's option).

    


    However, when execuyting the exact same ffmpeg command on an mp4 file (without extension), it works and converts properly the media !

    


    Working code (no stream)

    


    import * as ffmpeg from 'fluent-ffmpeg';

ffmpeg('myMp4File')
  .inputFormat('mp4')
  .audioCodec('aac')
  .videoCodec('libx264')
  .format('avi')
  .size('960x540')
  .save('mySmallAviFile');


    


    Failing code (using stream)

    


    import * as ffmpeg from 'fluent-ffmpeg';
import { createReadStream } from 'fs';

ffmpeg(createReadStream('myMp4File'))
  .inputFormat('mp4')
  .audioCodec('aac')
  .videoCodec('libx264')
  .format('avi')
  .size('960x540')
  .save('mySmallAviFile');


    


    It generates the following ffmpeg's error :

    


    Error: ffmpeg exited with code 1: pipe:0: Invalid data found when processing input
Cannot determine format of input stream 0:0 after EOF
Error marking filters as finished
Conversion failed!


    


    This error explicitely says that ffmpeg could not identify the input format, in despite of argument -f mp4.

    


    I read pages and pages of ffmpeg's man but I could find any relevant information concerining my issue.

    


    Complementary information

    


    Here is the output of command._getArguments(), showing the full ffmpeg command baked by the library :

    


    [
  '-f',                'mp4',      
  '-i',                'pipe:0',       
  '-y',                '-acodec',   
  'aac',               '-vcodec',     
  'libx264',           '-filter:v',    
  'scale=w=960:h=540', '-f',
  'avi',               'mySmallAviFile'
]                                      


    


    So the full ffmpeg command is the following :

    


    ffmpeg -f mp4 -i pipe:0 -y -acodec 'aac' -vcodec 'libx264 -filter:v 'scale=w=960:h=540' -f 'avi' mySmallAviFile

    


  • Why does ffmpeg fails to process streams ?

    10 juin 2022, par wakobu

    I am struggling on a ffmpeg media conversion script.
    
I am using fluent-ffmpeg library with node.js.

    


    My app is supposed to receive a stream as input, resize it using ffmpeg, and then outputing a stream.

    


    However, I am absolutely unable to process an input stream with ffmpeg, even when specifying the input format (-f ffmpeg's option).

    


    However, when execuyting the exact same ffmpeg command on an mp4 file (without extension), it works and converts properly the media !

    


    Working code (no stream)

    


    import * as ffmpeg from 'fluent-ffmpeg';

ffmpeg('myMp4File')
  .inputFormat('mp4')
  .audioCodec('aac')
  .videoCodec('libx264')
  .format('avi')
  .size('960x540')
  .save('mySmallAviFile');


    


    Failing code (using stream)

    


    import * as ffmpeg from 'fluent-ffmpeg';
import { createReadStream } from 'fs';

ffmpeg(createReadStream('myMp4File'))
  .inputFormat('mp4')
  .audioCodec('aac')
  .videoCodec('libx264')
  .format('avi')
  .size('960x540')
  .save('mySmallAviFile');


    


    It generates the following ffmpeg's error :

    


    Error: ffmpeg exited with code 1: pipe:0: Invalid data found when processing input
Cannot determine format of input stream 0:0 after EOF
Error marking filters as finished
Conversion failed!


    


    This error explicitely says that ffmpeg could not identify the input format, in despite of argument -f mp4.

    


    I read pages and pages of ffmpeg's man but I could find any relevant information concerining my issue.

    


    Complementary information

    


    Here is the output of command._getArguments(), showing the full ffmpeg command baked by the library :

    


    [
  '-f',                'mp4',      
  '-i',                'pipe:0',       
  '-y',                '-acodec',   
  'aac',               '-vcodec',     
  'libx264',           '-filter:v',    
  'scale=w=960:h=540', '-f',
  'avi',               'mySmallAviFile'
]                                      


    


    So the full ffmpeg command is the following :

    


    ffmpeg -f mp4 -i pipe:0 -y -acodec 'aac' -vcodec 'libx264 -filter:v 'scale=w=960:h=540' -f 'avi' mySmallAviFile

    


  • Building Ffmpeg library for iOS6.0 ARMv7 Processor success but compile error

    5 avril 2013, par user1800270

    I'm trying to use the FFMPEG library in an XCode 4.5.1 project.
    And I'm trying to build it for ARMv7.

    I had already build library by use the method below (provide by Alex) :


    Here is my working Configure for cross-compiling FFmpeg on iOS 6 the arch is ARMv7

    NOTE : You must have to have gas-preprocessor.pl inside /usr/local/bin/ please do not continue until you have gas-preprocessor.pl on your bin directory

    Download FFmpeg 1.0 "Angel" from here

    Unzip it and place it somewhere i.e. your Desktop folder

    Open terminal and browse to unzipped FFmpeg folder

    Copy and paste the following command, (be patient will take a while)

    ./configure --disable-doc --disable-ffmpeg --disable-ffplay --disable-ffserver --enable-cross-compile --arch=arm --target-os=darwin --cc=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc --as='gas-preprocessor/gas-preprocessor.pl /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc' --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk --cpu=cortex-a8 --extra-cflags='-arch armv7' --extra-ldflags='-arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk' --enable-pic --enable-decoder=rawvideo --disable-asm

    Now type the following command on terminal make (wait a little more)

    Once it has finished now type on terminal sudo make install (wait again)

    Go to /usr/local/lib to find your freshly baked armv7 libs

    Enjoy !

    Alex


    But when i put the library into iFrameExtractor then compile it, then i get an error

    /ffmpeg/libavcodec/4xm.d:1 : syntax error near "xm"

    my Compilation environment is

    xcode 4.5.1 and ffmpeg 1.0

    platform : Mac OS X 10.7.5

    can anyone help me ??