
Recherche avancée
Médias (1)
-
The pirate bay depuis la Belgique
1er avril 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Image
Autres articles (71)
-
Gestion des droits de création et d’édition des objets
8 février 2011, parPar défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;
-
Supporting all media types
13 avril 2011, parUnlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)
-
Qualité du média après traitement
21 juin 2013, parLe bon réglage du logiciel qui traite les média est important pour un équilibre entre les partis ( bande passante de l’hébergeur, qualité du média pour le rédacteur et le visiteur, accessibilité pour le visiteur ). Comment régler la qualité de son média ?
Plus la qualité du média est importante, plus la bande passante sera utilisée. Le visiteur avec une connexion internet à petit débit devra attendre plus longtemps. Inversement plus, la qualité du média est pauvre et donc le média devient dégradé voire (...)
Sur d’autres sites (10652)
-
avformat_open_input causes exception on RTP stream open
3 avril 2014, par user3283475I'm trying to program a video player of the RTP stream. I'm using visual studio 2010. When avformat_open_input command is executed an exception is generated (ntdll.dll !774b70f4()). It works fine with normal file from disk(test.avi).
#include "stdafx.h"
#include
//zeranoe headers and libraries(DLLs also from zeranoe)
extern "C"
{
#include <libavcodec></libavcodec>avcodec.h>
#include <libavformat></libavformat>avformat.h>
}
#pragma comment(lib, "avcodec.lib")
#pragma comment(lib, "avformat.lib")
int _tmain(int argc, _TCHAR* argv[])
{
AVFormatContext *pFormatCtx=NULL;
//char* Filename="c:\\test.avi"; //if I use this there is no crash
char* Filename="rtp://239.255.42.42:5004";//if I use rtp I receive exception
int videoStream,i;
AVCodec *pCodec=NULL;
AVCodecContext *pCodecCtx=NULL;
avcodec_register_all();
av_register_all();
avformat_network_init();
unsigned int _expTime = 5000;
static const AVIOInterruptCB int_cb = {interrupt_cb, &_expTime};
// Open video file
if(avformat_open_input(&pFormatCtx, Filename , NULL,NULL)!=0)//ntdll.dll exception when I try to open rtp stream
return -1; // Couldn't open fileCan someone help me please ?
-
Extract frames from a large video c#
21 janvier 2014, par lasI am developing a video editing software.
For that I need to first load a video for editing.
After loading the video I need to create a timeline of the video with its Thumbnail images which should take in every one seconds.I have tried many options for that but still have an issue with more 10 - 15 mins videos.
First I used ffmpeg.
There I tired two options.They ended up with following resultsOne is very slow
Another one is fast but thumbnails are not accurate
Next I used Aforge.Net
There I can save images to disk but cannot access after 2000-3000 thumbnails
(It gives out of memory exception)Please if you have good suggestion let me know for this task.
Any one like to see my tried code samples let me know , I will add it to this question.Following is the method for reading images which are in the Disk
void AddThumbnailImages(int i)
{
PictureBox pictureBox = new PictureBox();
pictureBox.Size = new System.Drawing.Size(100, 75);
pictureBox.Image = (Bitmap)new Bitmap("Snaps\\" + i + ".jpeg").Clone();
if (i == totalFrames)
{ pictureBox.Tag = totalTimeForFrames; }
else { pictureBox.Tag = (i / frameRate); }
pictureBox.MouseClick += new MouseEventHandler(ViewImageTag);
pictureBox.MouseDoubleClick += new MouseEventHandler(videoCuting);
pictureBox.MouseHover += new EventHandler(pictureBox_MouseHover);
pictureBox.SizeMode = PictureBoxSizeMode.Zoom;
pictureBox.BringToFront();
pictureBox.Location = new Point(pictureBoxlocationX + (100 * (i/frameRate)), pictureBoxlocationY);
panelTimeline.Controls.Add(pictureBox);
} -
When using ffmpeg.exe to create video from sequence of images the result is avi file that show green color why ?
9 janvier 2014, par user3163653In Form1 im taking screenshots of my screen I checked they are ok i save them to the hard disk and see they are ok.
private void timer1_Tick(object sender, EventArgs e)
{
using (bitmap = (Bitmap)ScreenCapture.CaptureScreen(true))
{
Image mScreenImage = new Bitmap(Screen.PrimaryScreen.Bounds.Width,
Screen.PrimaryScreen.Bounds.Height);
Graphics g = Graphics.FromImage(bitmap);
g.CopyFromScreen(0, 0, 0, 0, new Size(bitmap.Width, bitmap.Height));
g.Dispose();
bitmap.Save(@"D:\Testbmp\" + counter.ToString("D6") + ".jpg", ImageFormat.Jpeg);
counter++;
ffmp.PushFrame((Bitmap)mScreenImage);
}
}Then in the new class ffmp im using pipe to get the screenshots and build the avi file in real time :
using System;
using System.Windows.Forms;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Drawing;
using System.IO.Pipes;
using System.Runtime.InteropServices;
using System.Diagnostics;
using System.IO;
namespace ScreenVideoRecorder
{
class Ffmpeg
{
NamedPipeServerStream p;
String pipename = "mytestpipe";
System.Diagnostics.Process process;
string ffmpegFileName = "ffmpeg.exe";
string workingDirectory;
public Ffmpeg()
{
workingDirectory = Path.GetDirectoryName(Application.ExecutablePath);
Logger.Write("workingDirectory: " + workingDirectory);
if (!Directory.Exists(workingDirectory))
{
Directory.CreateDirectory(workingDirectory);
}
ffmpegFileName = Path.Combine(workingDirectory, ffmpegFileName);
Logger.Write("FfmpegFilename: " + ffmpegFileName);
}
public void Start(string pathFileName, int BitmapRate)
{
try
{
string outPath = pathFileName;
p = new NamedPipeServerStream(pipename, PipeDirection.Out, 1, PipeTransmissionMode.Byte);
ProcessStartInfo psi = new ProcessStartInfo();
psi.WindowStyle = ProcessWindowStyle.Hidden;
psi.UseShellExecute = false;
psi.CreateNoWindow = false;
psi.FileName = ffmpegFileName;
psi.WorkingDirectory = workingDirectory;
psi.Arguments = @"-f rawvideo -pix_fmt yuv420p -video_size 1920x1080 -i \\.\pipe\mytestpipe -map 0 -c:v mpeg4 -r " + BitmapRate + " " + outPath;
process = Process.Start(psi);
process.EnableRaisingEvents = false;
psi.RedirectStandardError = true;
p.WaitForConnection();
}
catch (Exception err)
{
Logger.Write("Exception Error: " + err.ToString());
}
}
public void PushFrame(Bitmap bmp)
{
try
{
int length;
// Lock the bitmap's bits.
//bmp = new Bitmap(1920, 1080);
Rectangle rect = new Rectangle(0, 0, bmp.Width, bmp.Height);
//Rectangle rect = new Rectangle(0, 0, 1280, 720);
System.Drawing.Imaging.BitmapData bmpData =
bmp.LockBits(rect, System.Drawing.Imaging.ImageLockMode.ReadOnly,
bmp.PixelFormat);
int absStride = Math.Abs(bmpData.Stride);
// Get the address of the first line.
IntPtr ptr = bmpData.Scan0;
// Declare an array to hold the bytes of the bitmap.
//length = 3 * bmp.Width * bmp.Height;
length = absStride * bmpData.Height;
byte[] rgbValues = new byte[length];
//Marshal.Copy(ptr, rgbValues, 0, length);
int j = bmp.Height - 1;
for (int i = 0; i < bmp.Height; i++)
{
IntPtr pointer = new IntPtr(bmpData.Scan0.ToInt32() + (bmpData.Stride * j));
System.Runtime.InteropServices.Marshal.Copy(pointer, rgbValues, absStride * (bmp.Height - i - 1), absStride);
j--;
}
p.Write(rgbValues, 0, length);
bmp.UnlockBits(bmpData);
}
catch(Exception err)
{
Logger.Write("Error: " + err.ToString());
}
}
public void Close()
{
p.Close();
}
}
}This is the arguments im using now :
psi.Arguments = @"-f rawvideo -pix_fmt yuv420p -video_size 1920x1080 -i \\.\pipe\mytestpipe -map 0 -c:v mpeg4 -r " + BitmapRate + " " + outPath;
Before that I tried to use libx264 instead the mpeg4 but it didn't create the avi file good.
The problem is that the avi file on the hard disk when I play it show just green color.
I can play any other avi files on my hard disk but when playing this avi file I see green.And this is what I see when im playing the avi file :
I tried to use Gspot to find if I need any codec to install and this is what I see :
And I have ffdshow installed already so what should I do now ?