
Recherche avancée
Médias (1)
-
MediaSPIP Simple : futur thème graphique par défaut ?
26 septembre 2013, par
Mis à jour : Octobre 2013
Langue : français
Type : Video
Autres articles (38)
-
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs -
MediaSPIP Player : problèmes potentiels
22 février 2011, parLe lecteur ne fonctionne pas sur Internet Explorer
Sur Internet Explorer (8 et 7 au moins), le plugin utilise le lecteur Flash flowplayer pour lire vidéos et son. Si le lecteur ne semble pas fonctionner, cela peut venir de la configuration du mod_deflate d’Apache.
Si dans la configuration de ce module Apache vous avez une ligne qui ressemble à la suivante, essayez de la supprimer ou de la commenter pour voir si le lecteur fonctionne correctement : /** * GeSHi (C) 2004 - 2007 Nigel McNie, (...) -
Keeping control of your media in your hands
13 avril 2011, parThe vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)
Sur d’autres sites (6377)
-
python ff-mpeg not working on VM
2 août 2013, par BobI have two Windows 2008 R2 64 bit servers with two different host providers (GoDaddy and company B). My python script runs successfully on GoDaddy's server. It doesn't run successfully on the server with company B.
I installed the same software on both servers :
- Python 2.7 for Windows 32 bit
- NumPY module
- SetupTools
- EchoNest API for Windows
The company B server is giving me an error related to an executable called en-ffmpeg.exe that uses the python ff-mpeg module. The exact error message is
[dv @ 0x1449690]Can't determine profile of DV input stream.
C :\Music\song1.mp3 : Error while opening fileThe song.mp3 file exists. I installed the latest Windows updates on the server with Company B but still I get the error. I believe the error is because something is not configured properly on this server (missing libraries or drivers ?). However, I don't know what that is !
Please help :)
UPDATED TO INCLUDE COMMAND AND ERROR OUTPUT FROM FFMPEG
COMMAND :
c :\Python27>en-ffmpeg -i "C :\Music\song1.mp3" -y -ac 2 -ar 44100
"c :\users\x07 dmini 1\x07ppdata\local\temp\x02\tmpax82jf.wav"FULL ERROR :
FFmpeg version SVN-r17988-Komeil, Copyright (c) 2000-2009 Fabrice Bellard, et al
.
configuration: --enable-memalign-hack --extra-cflags=-fno-common --enable-stat
ic --disable-shared --disable-debug --enable-gpl --enable-nonfree --enable-avfil
ter --enable-avfilter-lavf --enable-avisynth --enable-postproc --enable-pthreads
--enable-libamr-nb --enable-libamr-wb --enable-libgsm --enable-libfaac --enable
-libfaad --enable-libmp3lame --enable-libschroedinger --enable-libspeex --enable
-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid
libavutil 50. 0. 0 / 50. 0. 0
libavcodec 52.21. 0 / 52.21. 0
libavformat 52.31. 1 / 52.31. 1
libavdevice 52. 1. 0 / 52. 1. 0
libavfilter 0. 4. 0 / 0. 4. 0
libswscale 0. 7. 1 / 0. 7. 1
libpostproc 51. 2. 0 / 51. 2. 0
built on Mar 15 2009 18:16:31, gcc: 4.3.0 20080305 (alpha-testing) mingw-20080
502
[dv @ 0x1449690]Can't determine profile of DV input stream.
C:\\Music\\song1.mp3: Error while opening fileI also tried removing the double back slashes from the command but got the same error.
-
Inconsistent behavior when placing adjacent video overlays
24 juillet 2023, par abinghamThis script uses ffmpeg to overlay a red [1] and blue [2] stream atop a yellow [0] stream. The intent is that the red stream will be exactly adjacent to the blue stream ; at frame 1731 the output video should transition immediately from pure red to pure blue :


# These values result in a blank frame where the videos join at around 58s
LENGTH=1800
SPLIT_AT=1731

# These values work just fine.
# LENGTH=1800
# SPLIT_AT=2

ffmpeg \
-f lavfi -r 30 -i "color=c=yellow:s=1920x1080" \
-f lavfi -r 30 -i "color=c=990000:s=1920x1080" \
-f lavfi -r 30 -i "color=c=000099:s=1920x1080" \
-filter_complex \
"[1]concat=n=1[red_concat];"\
"[red_concat]tpad=start=0[red_pad];"\
"[0][red_pad]overlay=enable=between(n\,0\,$SPLIT_AT):eof_action=repeat[red_overlay];"\
"[2]concat=n=1[blue_concat];"\
"[blue_concat]tpad=start=$SPLIT_AT[blue_pad];"\
"[red_overlay][blue_pad]overlay=enable=between(n\,$SPLIT_AT\,$LENGTH):eof_action=repeat[blue_overlay];"\
"[blue_overlay]trim=end_frame=$LENGTH[full];" \
 -map "[full]" video.mp4 -y



However, what I see is that there is a single black frame between the pure red and pure blue. This black seems to be coming from the frames that
tpad
adds.

What I don't understand is why I'm seeing that black frame. As far as I can tell, my uses of
tpad
andoverlay/enable-between
should produce a seamless transition from red to blue. And indeed, if I change theSPLIT_AT
value to almost anything else I get exactly that ; the value 1731 is "special" in some way.

Can anyone explain what's going on ? Maybe more importantly, can anyone reproduce this problem ?


My first thought was that I've got some form of fencepost error in how I'm using tpad or enable-between. However, that doesn't explain why the script works for most values but not 1731. This difference in results feels like there's a rounding error somewhere, but since I'm dealing purely in terms of integer frame numbers, I don't see how I could be introducing them.


A few notes :


- 

-
This is a drastically reduced example from a larger video compositing system. Things like the use of
concat
may appear unnecessary, but they're representative of what the larger system is doing.

-
I'm using ffmpeg-6.0 installed via homebrew on an M1 macbook








-
-
Array Getting Lost While Passing From C++ to C Using Callback [duplicate]
23 décembre 2020, par Abhishek SharmaI am trying to write Video Using FFmpeg by generating frame at run time using direct3d and the frames are generated using sharp dx at c# and I use window runtime to callback to c# to generate Frame And return Platform::Array of Byte ;


so for writing video using FFmpeg, I used C code that writes video, and to ask for generating frame I implemented a callback to generate a frame and all that in StaticLib


uint8_t*(*genrate_frame_callback)(int) = NULL; 



now in C-File, I call fill_image to get the frame and write to the video


static void fill_image(int frame_index, int width, int height)
{
 int x, y, i;

 i = frame_index;
 auto result = genrate_frame_callback(frame_index);// after passing this point while using debugger reults single element not even array
 .
 .
 .
 code to write video
 
}



now when I call to Write Video before that pass this function to the callback that is in the c++ file in a Window Runtime Component that reference to static lib


uint8_t* genrate_frame(int args)
{
 auto frame = FireGenrateFramet(args); // returns Platform::Array<byte>
 vector v(frame->begin(), frame->end());
 return v.data();// data is abilabe to this point 
}
</byte>


now the result variable contains a single element
I am new to c++ and c and unable to understand why is data not passed to the function using call back


Edit :


then can you help me with how to pass Data I tried using the global Scope Variable c++ file too but still,
it gets lost,
but after introducing another call back to read data stored in global Variable it read the whole data correctly


vector frame_v;
uint8_t* genrate_frame(int args)
{
 auto frame = FireGenrateFrame(args);
 vector v(frame->begin(), frame->end());
 frame_v = v;
 return v.data();// this loose the Same 
}

uint8_t read_pixal(int args)
{
 return frame_v[args];// where as it read out correctly
}



but I don't want to store and add new call back an read from their just pass the array