
Recherche avancée
Autres articles (62)
-
La file d’attente de SPIPmotion
28 novembre 2010, parUne file d’attente stockée dans la base de donnée
Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...) -
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir -
Les formats acceptés
28 janvier 2010, parLes 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 (...)
Sur d’autres sites (7124)
-
Need a workaround for error in xuggler todo with vorbis
25 septembre 2012, par ChrisI have been at this for days, I am using xuggler, the only version i can use is 3.4 because upto 4.4 writing to outputstream directly causes jvm crash.
I need to encode audio using vorbis, however, when i run code which works with any other audio codec I get
2012-09-25 13:54:16,578 [Thread-4] ERROR org.ffmpeg - [libvorbis @ 0308a010] libvorbis : buffer overflow.
2012-09-25 13:54:16,578 [Thread-4] WARN com.xuggle.xuggler - error : avcodec_encode_audio failed (../../../../../../../csrc/com/xuggle/xuggler/StreamCoder.cpp:1586)I think a workaround for found for this is in later versions of StreamCoder.cpp
if (mCodecContext->codec->id == CODEC_ID_FLAC
|| mCodecContext->codec->id == CODEC_ID_VORBIS)
{
// FLAC & VORBIS audio for some reason gives an error if your output buffer isn't
// over double the frame size, so we fake it here. This could be further optimized
// to only require an exact number, but this math is simpler and will always
// be large enough.
bufferSize = (64 + getAudioFrameSize() * (bytesPerSample + 1)) * 2;
}But if I use the following code to make the IBuffer,
int bufferSize = aCoder.getAudioFrameSize() * (aCoder.getBitRate());
final byte[] audioBuf = new byte[bufferSize];
//read audio bytes into audiobuf....
buf = IBuffer.make(null, audioBuf, 0, (64 + aCoder.getAudioFrameSize() * (aCoder.getBitRate() + 1)) * 2);
System.out.println("afterbufmake");
smp = IAudioSamples.make(buf,1,IAudioSamples.Format.FMT_S16);
if (smp == null) {
System.out.println("smp == null");
// return;
}smp always ends up null.
Can anyone think of what might be happening with buffer overflow for just Vorbis and a workaround as I have only 3.4 version of Xuggler that works for what I need which is writing to outputstream.
Thank you.
-
unable to create flv file from 3gp using ffmpeg php
25 septembre 2012, par Naeemi am using the following code but it is not generating the flv file, other code is working fine if i convert mp4 to flv, following is my code.
define('FFMPEG','/usr/local/bin/ffmpeg');
$src='/home/zimmapp/public_html/images/video/video_3465733831.3gp';
$destination='/home/zimmapp/public_html/images/video/naeem.flv';
//i user this code
exec(FFMPEG . " -i $src -sameq -ar 22050 -ab 96000 -deinterlace -nr 500 -s 320x240 -aspect 4:3 -r 20 -g 500 -me_range 20 -b 270k -deinterlace -f flv -y $destination");
//OR this
exec( FFMPEG ." -i $src -ar 22050 -ab 32 -f flv -s 320×240 $destination") or print "Convert Error";BUT Nothing working
my website support gave me this error report :server I found this error:Seems stream 0 codec frame rate differs from container frame rate : 180000.00
(180000/1) -> 90000.00 (180000/2) Input #0, mov,mp4,m4a,3gp,3g2,mj2, from
'/home/zimmapp/public_html/images/video/1347616191-2.3gp' : Metadata :
major_brand : isom minor_version : 0 compatible_brands : isom3gp4 creation_time
: 2012-09-06 07:02:00 Duration : 00:00:02.32, start : 0.000000, bitrate : 9769 kb/s Stream #0.0(eng) : Video : h264, yuv420p, 1280x720, 11834 kb/s, 29.58 fps, 90k tbr, 90k tbn, 180k tbc Metadata : creation_time : 2012-09-06 07:02:00 Stream #0.1(eng) : Audio : aac, 48000 Hz, stereo, s16, 126 kb/s Metadata :
creation_time : 2012-09-06 07:02:00 Unable to find a suitable output format for ' -sameq' -
Need help correcting Access Violation with FFmpeg DLL
26 septembre 2012, par JamesI'm trying to use the FFmpeg dll's using Visual Studio 2012 and I'm getting a run time access violation when I call
avcodec_find_encoder
. Here is the code :// TestFFmpeg.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
extern "C" {
#include "libavcodec\avcodec.h"
#include "libavformat\avformat.h"
}
#define INBUF_SIZE 4096
int _tmain(int argc, _TCHAR* argv[])
{
AVCodec *codec;
const char *videoFilename = "C:\\Users\\Public\\Videos\\Sample Videos\\Wildlife.wmv";
av_register_all(); // This works; however, no parameters or return values.
codec = avcodec_find_encoder(CODEC_ID_WMV3); // Run time Access Violation HERE
if (!codec) {
fprintf(stderr, "Codec not found\n");
exit(1);
}
return 0;
}Here is the error message :
Unhandled exception at 0x75C18B60 (msvcrt.dll) in TestFFmpeg.exe : 0xC0000005 : Access violation reading location 0x00000049.
The stack trace is :
msvcrt.dll!_strcmp() Unknown
avcodec-54.dll!6a56caac() Unknown
[Frames below may be incorrect and/or missing, no symbols loaded for avcodec-54.dll]
> TestFFmpeg.exe!wmain(int argc, wchar_t * * argv) Line 23 C++
TestFFmpeg.exe!__tmainCRTStartup() Line 533 C
TestFFmpeg.exe!wmainCRTStartup() Line 377 C
kernel32.dll!@BaseThreadInitThunk@12() Unknown
ntdll.dll!___RtlUserThreadStart@8() Unknown
ntdll.dll!__RtlUserThreadStart@8() UnknownI'm guessing there's a problem with returning the
codec
pointer, but I'm new to C++ and have no idea how to correct it. I tried the cdecl, stdcall, and fastcall calling conventions — none corrected the issue. I'm using the latest 32-bit DLL from Zeranoe. Any suggestions ?EDIT :
I've called other functions in the DLL and they work. For example,avformat_open_input
works properly. I can pass parameters and the function returns a successful return value (0) and populates the format context structure.av_find_stream_info
works as well. I still can't figure out whyavcodec_find_decoder
creates an access violation.