Recherche avancée

Médias (1)

Mot : - Tags -/MediaSPIP 0.2

Autres articles (49)

  • Mise à disposition des fichiers

    14 avril 2011, par

    Par défaut, lors de son initialisation, MediaSPIP ne permet pas aux visiteurs de télécharger les fichiers qu’ils soient originaux ou le résultat de leur transformation ou encodage. Il permet uniquement de les visualiser.
    Cependant, il est possible et facile d’autoriser les visiteurs à avoir accès à ces documents et ce sous différentes formes.
    Tout cela se passe dans la page de configuration du squelette. Il vous faut aller dans l’espace d’administration du canal, et choisir dans la navigation (...)

  • Problèmes fréquents

    10 mars 2010, par

    PHP et safe_mode activé
    Une des principales sources de problèmes relève de la configuration de PHP et notamment de l’activation du safe_mode
    La solution consiterait à soit désactiver le safe_mode soit placer le script dans un répertoire accessible par apache pour le site

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

  • Concatenate MOV files without re-encoding on iOS with ffmpeg libs

    2 juillet 2013, par Developer82

    I would like to concatenate MOV files without re-encoding. I want to do it on iOS (iPhone). All the MOV files are recorded with the same settings, no difference in dimensions or encoding profiles.

    I have succeeded to do it with the command line ffmpeg :
    ffmpeg -re -f concat -i files.txt -c copy ...
    But I have difficulties using the libraries.

    I think the demuxing part is ok, I have the h.264+AAC packets. After demuxing I shift the PTS and DTS info of each packet to have ascending values in the joined MOV file.
    The hard part is the muxing.

    I have built the ffmpeg libs with x264 lib, so it can be used if necessary, but I am not sure whether I need the x264 codec since I don't want to re-encode the MOV files, I just want to join them.

    Problems I have encountered :

    1. In this case I do not use x264 codec. At muxing I create the stream with NULL codec parameter. I have successful writing of header, packets and trailer. All the function calls return with zero error code. However, the output can be opened, but black "screen" is displayed during playback. FFprobe report is attached. I have also examined the output with MediaInfo tool. I have attached that report as well (MediaInfo report - without x264 codec.txt). As you can see there is no h.264 profile or pixel info found that might be a problem.

    2. In this case I use x264 codec with functions : avcodec_find_encoder, avformat_new_stream and avcodec_open2. Again : no decode-encode ! In this case I have much more metadata in the output file like h.264 profile and pixel info (YUV), but the av_interleaved_write_frame call simply does nothing but returns success code (0). No packet is written to the file. :( I don't know how this could happen. fwrite works, but results in un-openable file. I have also attached the MediaInfo report of this output (MediaInfo report - with x264 codec.txt).

    Questions :

    • How should I process the demuxed packets to feed the muxer ?
    • What format context and codec context setting should be done including AVOption settings ?
    • Should I use the x264 codec to do this ? I just vant to re-mux the chunks into a single joined file.
    • The chunks have their own header/trailer. Should I somehow filter the demuxed packets to skip them ?
    • The final goal is creating a network stream (RTP or RTMP) - also with re-muxing and without re-encoding. It works with command line ffmpeg :
      ffmpeg -re -f concat -i files.txt -vcodec copy -an -f rtp rtp://127.0.0.1:20000 -vn -acodec copy -f rtp rtp://127.0.0.1:30000

    Concatenating to MOV format is only an intermediate pilot. Is it recommended to work on the network format since it is so different task that there is no benefit of solving the MOV format muxing ?

    Any help, advice, suggestion is greatly appreciated.
    I can reveal code to make deeper investigation possible.

    Thanks !

  • Concatenate MOV files without re-encoding on iOS with ffmpeg libs

    2 juillet 2013, par Developer82

    I would like to concatenate MOV files without re-encoding. I want to do it on iOS (iPhone). All the MOV files are recorded with the same settings, no difference in dimensions or encoding profiles.

    I have succeeded to do it with the command line ffmpeg :
    ffmpeg -re -f concat -i files.txt -c copy ...
    But I have difficulties using the libraries.

    I think the demuxing part is ok, I have the h.264+AAC packets. After demuxing I shift the PTS and DTS info of each packet to have ascending values in the joined MOV file.
    The hard part is the muxing.

    I have built the ffmpeg libs with x264 lib, so it can be used if necessary, but I am not sure whether I need the x264 codec since I don't want to re-encode the MOV files, I just want to join them.

    Problems I have encountered :

    1. In this case I do not use x264 codec. At muxing I create the stream with NULL codec parameter. I have successful writing of header, packets and trailer. All the function calls return with zero error code. However, the output can be opened, but black "screen" is displayed during playback. FFprobe report is attached. I have also examined the output with MediaInfo tool. I have attached that report as well (MediaInfo report - without x264 codec.txt). As you can see there is no h.264 profile or pixel info found that might be a problem.

    2. In this case I use x264 codec with functions : avcodec_find_encoder, avformat_new_stream and avcodec_open2. Again : no decode-encode ! In this case I have much more metadata in the output file like h.264 profile and pixel info (YUV), but the av_interleaved_write_frame call simply does nothing but returns success code (0). No packet is written to the file. :( I don't know how this could happen. fwrite works, but results in un-openable file. I have also attached the MediaInfo report of this output (MediaInfo report - with x264 codec.txt).

    Questions :

    • How should I process the demuxed packets to feed the muxer ?
    • What format context and codec context setting should be done including AVOption settings ?
    • Should I use the x264 codec to do this ? I just vant to re-mux the chunks into a single joined file.
    • The chunks have their own header/trailer. Should I somehow filter the demuxed packets to skip them ?
    • The final goal is creating a network stream (RTP or RTMP) - also with re-muxing and without re-encoding. It works with command line ffmpeg :
      ffmpeg -re -f concat -i files.txt -vcodec copy -an -f rtp rtp://127.0.0.1:20000 -vn -acodec copy -f rtp rtp://127.0.0.1:30000

    Concatenating to MOV format is only an intermediate pilot. Is it recommended to work on the network format since it is so different task that there is no benefit of solving the MOV format muxing ?

    Any help, advice, suggestion is greatly appreciated.
    I can reveal code to make deeper investigation possible.

    Thanks !

  • Installing ffmpeg ios libraries armv7, armv7s, i386 and universal on xCode 6.1 Mac with 10.9

    5 février 2015, par arashaga

    I have tried many of the solution such as "Installing ffmpeg ios libraries armv7, armv7s, i386 and universal on Mac with 10.8" to compile FFMPEG libraries on MAC for i386 an iphone but i constantly get and error. I guess it could b my xcode and clang version. I have already installed the latest command tools as well. Any help would be appreciated.