
Recherche avancée
Médias (91)
-
Les Miserables
9 décembre 2019, par
Mis à jour : Décembre 2019
Langue : français
Type : Textuel
-
VideoHandle
8 novembre 2019, par
Mis à jour : Novembre 2019
Langue : français
Type : Video
-
Somos millones 1
21 juillet 2014, par
Mis à jour : Juin 2015
Langue : français
Type : Video
-
Un test - mauritanie
3 avril 2014, par
Mis à jour : Avril 2014
Langue : français
Type : Textuel
-
Pourquoi Obama lit il mes mails ?
4 février 2014, par
Mis à jour : Février 2014
Langue : français
-
IMG 0222
6 octobre 2013, par
Mis à jour : Octobre 2013
Langue : français
Type : Image
Autres articles (84)
-
Use, discuss, criticize
13 avril 2011, parTalk to people directly involved in MediaSPIP’s development, or to people around you who could use MediaSPIP to share, enhance or develop their creative projects.
The bigger the community, the more MediaSPIP’s potential will be explored and the faster the software will evolve.
A discussion list is available for all exchanges between users. -
Le profil des utilisateurs
12 avril 2011, parChaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...) -
Configurer la prise en compte des langues
15 novembre 2010, parAccéder à la configuration et ajouter des langues prises en compte
Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)
Sur d’autres sites (9250)
-
How can I record audio along with Aforge player video recording ?
4 juin 2019, par H.NSMy app is playing webcam video using Aforge Plyer. Now I want to record this video. Using Aforge player audio recording is not possible.
Is there any way to record audio separately and merge it with recorded video using Aforge player ?
Found that using Direct Show architecture is the way to achieve this. But it will be very difficult to change the architecture at the last time of development. Since I’m unaware with directshow concepts and almost 90 percentage of my project is completed with Aforge player.
My current code is here. It can record video from selected webcam using aforge player. But audio is missing
using AForge.Video;
using AForge.Video.DirectShow;
using Accord.Video.FFMPEG;
private FilterInfoCollection VideoCaptureDevices;
private VideoCaptureDevice FinalVideo = null;
private VideoCaptureDeviceForm captureDevice;
private Bitmap video;
private VideoFileWriter FileWriter = new VideoFileWriter();
private SaveFileDialog saveAvi;
private void VideoRecord_Load(object sender, EventArgs e)
{
VideoCaptureDevices = new FilterInfoCollection(FilterCategory.VideoInputDevice);
captureDevice = new VideoCaptureDeviceForm();
}
private void play_Click(object sender, EventArgs e)
{
if (captureDevice.ShowDialog(this) == DialogResult.OK)
{
VideoCaptureDevice videoSource = captureDevice.VideoDevice;
FinalVideo = captureDevice.VideoDevice;
FinalVideo.NewFrame += new NewFrameEventHandler(FinalVideo_NewFrame);
FinalVideo.Start();
}
}
void FinalVideo_NewFrame(object sender, NewFrameEventArgs eventArgs)
{
if (butStop.Text == "Stop Record")
{
video = (Bitmap)eventArgs.Frame.Clone();
FileWriter.WriteVideoFrame(video);
}
else
{
video = (Bitmap)eventArgs.Frame.Clone();;
}
}
private void Record_Click(object sender, EventArgs e)
{
saveAvi = new SaveFileDialog();
saveAvi.Filter = "Avi Files (*.avi)|*.avi";
if (saveAvi.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{
int h = captureDevice.VideoDevice.VideoResolution.FrameSize.Height;
int w = captureDevice.VideoDevice.VideoResolution.FrameSize.Width;
FileWriter.Open(saveAvi.FileName, w, h, 25, VideoCodec.Default, 5000000);
FileWriter.WriteVideoFrame(video);
butStop.Text = "Stop Record";
}
}
private void stopRecord_Click(object sender, EventArgs e)
{
if (butStop.Text == "Stop Record")
{
butStop.Text = "Stop";
if (FinalVideo == null)
{ return; }
if (FinalVideo.IsRunning)
{
FileWriter.Close();
}
}
else
{
this.FinalVideo.Stop();
FileWriter.Close();
}
}
}
} -
Use ffmpeg with libx264 encoded video has no timeline in player
23 octobre 2015, par xiaoymUse ffmpeg with libx264 encoded video can open with M Player, but has no timeline showed.My code like below
avcodec_register_all();
AVCodec *codec = avcodec_find_encoder(AV_CODEC_ID_H264);
AVCodecContext *ctx = avcodec_alloc_context3(codec);
ctx->bit_rate = 40 * 1024 * 1024;
ctx->width = width / 2 * 2;
ctx->height = height / 2 * 2;
ctx->time_base = (AVRational){1, 25};
// ctx->ticks_per_frame = 2;
ctx->me_method = 10;
// ctx->gop_size = 10;
ctx->max_b_frames = 1;
ctx->pix_fmt = AV_PIX_FMT_YUV420P;
ctx->profile = FF_PROFILE_H264_BASELINE;
// picture is has frame data. encode with a loop.
int out_size = avcodec_encode_video2(ctx->ctx, &pkt, picture, &got_output);
if (got_output) {
fwrite(pkt.data, 1, pkt.size, outFile);
av_free_packet(&pkt);
}
// after all frame encoded, write this
uint8_t endcode[] = { 0, 0, 1, 0xb7 };
fwrite(endcode, 1, sizeof(endcode), outFile);Most of the code is copied from doc/examples/decoding_encoding.c.
Any help will be appreciated !
-
Why does Youtube player stretch MPEG1/2 video not H.264 ?
25 juin 2017, par MaruI want to upload the video on Youtube and I have this particular MKV file.
and I used ffmpeg to convert it to MP4 and hard code the ass subtitle into it.
Now my question is
When I simply tried converting the video without a sub and uploaded on Youtube,
so it retained its original vcodec.ffmpeg -i "input.mkv" -c:v copy -c:a aac "output.mp4"
The video (vcodec MPEG-1/2) is played with 16:9 ratio.
However, when I put a sub on it, so the video need to be re-encoded.
(In this case, I chose to preserve the quality by making it lossless.)ffmpeg -i "input.mkv" -preset veryslow -crf 0 -c:a aac -vf "ass=sub.ass" "output.mp4"
Now the subbed video has vcodec of H.264.
However, Youtube player keep its original aspect of 720x480 and there is a black bar on the side of the video.
Therefore, I am curious why is it such a case ? even though VLC told me that both has the same resolution of 720x480.
Furthermore, is there anyway I can adjust the aspect ratio on Youtube ?
I know that I can simply scale the video with ffmpeg,
but I was wondering if there is anyway I can tell Youtube to play the aspect ration that I want ? I think the formatting tags no longer works....