
Recherche avancée
Médias (91)
-
999,999
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
The Slip - Artworks
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Texte
-
Demon seed (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
-
The four of us are dying (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
-
Corona radiata (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
-
Lights in the sky (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
Autres articles (22)
-
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
Ecrire une actualité
21 juin 2013, parPrésentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
Vous pouvez personnaliser le formulaire de création d’une actualité.
Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...) -
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
Sur d’autres sites (2665)
-
RAW audio capture from HDMI using DeckLink Mini Recorder 4K
12 mars 2020, par Amir RazaI need to capture audio from TI DSP hardware/Laptop. So I opted "DeckLink Mini Recorder 4K Audio" and it connected to desktop.
By using Decklink API’s I am able to capture audio (PCM) with 32-bit depth. But when I used media express to capture, and extracted audio
using FFmpeg and I am getting audio (PCM) with 24-bit depth.Question
1) Does this device "DeckLink Mini Recorder 4K Audio" converts audio from 32-bit to 24-bit ?
2) Is this device "DeckLink Mini Recorder 4K Audio" bit-exact/loss-less ?consider the below test scenario.
I am playing audio(PCM) by MPC-HC/VLC/Groove player in laptop and capture audio(PCM) using "DeckLink Mini Recorder 4K Audio"
connected to desktop, The capture audio is bit-exact with the streamed input.?i.e ffmpeg.exe -i HDMI_Output1.av1 -vn -c:a copy out.wav
Note :
i am using Blackmagic_Desktop_Video_Windows_11.5 & Blackmagic_DeckLink_SDK_11.5 softwares.I have added the Decklink API code snippet.
void main()
{
IDeckLinkIterator* deckLinkIterator = NULL;
IDeckLinkAttributes* deckLinkAttributes = NULL;
IDeckLink* deckLink = NULL;
IDeckLinkInput* deckLinkInput = NULL;
NotificationCallback* notificationCallback = NULL;
HRESULT result;
BOOL supported;
int returnCode = 1;
#ifdef WRITE_WAV_FILE
wave_header wh;
unsigned octet_depth;
#endif
Initialize();
#ifdef _WIN32
MutexHandle = CreateMutex(NULL, /* security attributes */
FALSE, /* initially not owned */
NULL); /* Name */
#endif
/* Create an IDeckLinkIterator object to enumerate all DeckLink cards in the system */
if (GetDeckLinkIterator(&deckLinkIterator) != S_OK)
{
fprintf(stderr, "A DeckLink iterator could not be created. The DeckLink drivers may not be installed.\n");
goto bail;
}
/* Obtain the first DeckLink device */
result = deckLinkIterator->Next(&deckLink);
if (result != S_OK)
{
fprintf(stderr, "Could not find DeckLink device - result = %08x\n", result);
goto bail;
}
/* Obtain the Attributes interface for the DeckLink device */
result = deckLink->QueryInterface(IID_IDeckLinkAttributes, (void**)&deckLinkAttributes);
if (result != S_OK)
{
fprintf(stderr, "Could not obtain the IDeckLinkAttributes interface - result = %08x\n", result);
goto bail;
}
/* Determine whether the DeckLink device supports input format detection */
result = deckLinkAttributes->GetFlag(BMDDeckLinkSupportsInputFormatDetection, &supported);
if ((result != S_OK) || (supported == false))
{
fprintf(stderr, "Device does not support automatic mode detection\n");
goto bail;
}
/* Obtain the input interface for the DeckLink device */
result = deckLink->QueryInterface(IID_IDeckLinkInput, (void**)&deckLinkInput);
if (result != S_OK)
{
fprintf(stderr, "Could not obtain the IDeckLinkInput interface - result = %08x\n", result);
goto bail;
}
/* Create an instance of notification callback */
notificationCallback = new NotificationCallback(deckLinkInput);
if (notificationCallback == NULL)
{
fprintf(stderr, "Could not create notification callback object\n");
goto bail;
}
/* Set the callback object to the DeckLink device's input interface */
result = deckLinkInput->SetCallback(notificationCallback);
if (result != S_OK)
{
fprintf(stderr, "Could not set callback - result = %08x\n", result);
goto bail;
}
/* Enable video input with a default video mode and the automatic format detection feature enabled */
result = deckLinkInput->EnableVideoInput(bmdModeHD1080p5994, bmdFormat8BitYUV, bmdVideoInputFlagDefault);
if (result != S_OK)
{
fprintf(stderr, "Could not enable video input - result = %08x\n", result);
goto bail;
}
nBytesPerSample = (bmdAudioSampleType32bitInteger >> 3);
nChannels = 2;
/* Enable audio input with a default audio mode and the automatic format detection feature enabled */
result = deckLinkInput->EnableAudioInput(bmdAudioSampleRate48kHz, bmdAudioSampleType32bitInteger, nChannels);
if (result != S_OK)
{
fprintf(stderr, "Could not enable audio input - result = %08x\n", result);
goto bail;
}
#ifdef WRITE_WAV_FILE
/* Populate the wave headers */
/* RIFF */
sprintf(&wh.riff.name1[0], "RIFF");
sprintf(&wh.riff.name2[0], "WAVE");
/* format */
octet_depth = (bmdAudioSampleType32bitInteger + 7) / 8;
sprintf(&wh.fmt.name[0], "fmt ");
wh.fmt.size = FMT_SIZE;
wh.fmt.format_type = FMT_TAG_PCM;
wh.fmt.channel_count = (unsigned short)nChannels;
wh.fmt.sample_rate = bmdAudioSampleRate48kHz;
wh.fmt.bits_per_sample = (unsigned short)octet_depth * 8;
wh.fmt.block_alignment = (unsigned short)(octet_depth*nChannels);
wh.fmt.bytes_per_second = (unsigned long)wh.fmt.block_alignment*bmdAudioSampleRate48kHz;
wh.fmt.extra_bytes = (unsigned short)0;
/* data */
sprintf(&wh.data.name[0], "data");
#endif
printf("Starting streams\n");
/* Start capture */
result = deckLinkInput->StartStreams();
if (result != S_OK)
{
fprintf(stderr, "Could not start capture - result = %08x\n", result);
goto bail;
}
#ifdef WRITE_WAV_FILE
FILE *fp = fopen("HDMI_Output.wav", "wb");
#else
FILE *fp = fopen("HDMI_Output.bin","wb");
#endif
char *ptrCopy;
float *fPtr;
unsigned int zeroCntr, trailingZerosCnt;
do
{
zeroCntr = 0;
trailingZerosCnt = 0;
#ifdef _WIN32
WaitForSingleObject(MutexHandle, /* handle */
INFINITE); /* time-out interval */
#endif
int bytesInQueue = (int)((long long)aBufPtr - (long long)aBufWritePtr);
ptrCopy = (char *)aBufPtr;
#ifdef _WIN32
ReleaseMutex(MutexHandle);
#endif
if (bytesInQueue > 0)
{
#ifdef STRIP_ZEROS
/* Parse data for zeros */
fPtr = (float *)aBufWritePtr;
for (int i = 0; i < (bytesInQueue >> 2); i++)
{
if (*(fPtr + i) == 0.0)
zeroCntr++;
else
break;
}
aBufWritePtr += (zeroCntr << 2);
bytesInQueue -= (zeroCntr << 2);
#endif
if (bytesInQueue > 0)
{
fPtr = (float *)aBufWritePtr;
for (int i = 0; i < (bytesInQueue >> 2); i++)
{
fwrite(fPtr, 4, 1, fp);
fflush(fp);
if (*fPtr == 0.0)
trailingZerosCnt++;
else
trailingZerosCnt = 0;
if (trailingZerosCnt >= NUM_TRAIL_ZEROS_TRESHOLD)
break;
fPtr++;
}
}
}
aBufWritePtr = ptrCopy;
Sleep(100);
} while (trailingZerosCnt < NUM_TRAIL_ZEROS_TRESHOLD);
fclose (fp);
#ifdef STRIP_ZEROS
/* Remove trailing zeros, write wave header */
#ifdef WRITE_WAV_FILE
fp = fopen("HDMI_Output.wav", "rb");
#else
fp = fopen("HDMI_Output.bin", "rb");
#endif
fseek(fp, 0, SEEK_END);
int size = ftell(fp);
size = size - (NUM_TRAIL_ZEROS_TRESHOLD << 2);
printf(" \n size of hearder = %d", size);
#ifdef WRITE_WAV_FILE
wh.data.size = size;
wh.riff.size = wh.data.size + sizeof(wave_format) + sizeof(wave_RIFF);
printf(" \n size of hearderwh.riff.size = %d", wh.riff.size);
#endif
char * tmpBuf = (char *)malloc(size);
fseek(fp, 0, SEEK_SET);
fread(tmpBuf, 1, size, fp);
fclose(fp);
#endif
#ifdef WRITE_WAV_FILE
fp = fopen("HDMI_Output.wav", "wb");
/* write the wave header */
fwrite(&wh, 1, sizeof(wave_header), fp);
/* Write the zero stripped PCM data */
fwrite(tmpBuf, 1, size, fp);
free(tmpBuf);
fflush(fp);
fclose(fp);
#endif
bail:
/* Stop capture */
result = deckLinkInput->StopStreams();
/* Disable the video input interface */
result = deckLinkInput->DisableVideoInput();
/* return success */
returnCode = 0;
/* Release resources */
/* Release the attributes interface */
if (deckLinkAttributes != NULL)
deckLinkAttributes->Release();
/* Release the video input interface */
if (deckLinkInput != NULL)
deckLinkInput->Release();
/* Release the Decklink object */
if (deckLink != NULL)
deckLink->Release();
/* Release the DeckLink iterator */
if (deckLinkIterator != NULL)
deckLinkIterator->Release();
/* Release the notification callback object */
if (notificationCallback)
delete notificationCallback;
} -
mplayer generating online three thumbnail of video
5 mai 2013, par soacI am trying to create thumbnail of video using mplayer but it is only creating 3 thumbnail of video and then repeating the last thumbnail again and again.
MPlayer command 1 :
mplayer video/1.mp4 -sstep 5 -endpos 25 -nosound -vf scale=96:64 -vo jpeg:quality=80:outdir=$tmpPath 2>log.txt
Problem : It create 3 different image and then repeat last image again and again.
MPlayer command 2 :
mplayer video/1.mp4 -sstep 5 -endpos 25 -nosound -frames 5 -vf scale=96:64 -vo jpeg:quality=80:outdir=$tmpPath 2>log.txt
Problem : It create 3 different image and then repeat last image 2 times, If I change -frames to 10 than it repeat last image 7 times.
MPlayer command 3 :
mplayer video/1.mp4 -ss 5 -nosound -frames 1 -vf scale=96:64 -vo jpeg:quality=80:outdir=$tmpPath / video/1.mp4 -ss 10 -nosound -frames 1 -vf scale=96:64 -vo jpeg:quality=80:outdir=$tmpPath / video/1.mp4 -ss 15 -nosound -frames 1 -vf scale=96:64 -vo jpeg:quality=80:outdir=$tmpPath / video/1.mp4 -ss 20 -nosound -frames 1 -vf scale=96:64 -vo jpeg:quality=80:outdir=$tmpPath / video/1.mp4 -ss 15 -nosound -frames 1 -vf scale=96:64 -vo jpeg:quality=80:outdir=$tmpPath / 2>log.txt
Problem : Same problem as above described. 3 thumbnail difference and other are same. Duration of video is 27 seconds. I run this command on mplayer and mplayer2 but same result. MPlayer Binary are taken from http://sourceforge.net/projects/smplayer/files/
I want MPlayer to capture thumbnail after every X seconds using MPlayer not FFMPEG. I am already using FFMPEG for creating thumbnail and it is working fine. My Operating System is Windows 7. Log File
MPlayer Redxii-SVN-r36237-4.6.3 (C) 2000-2013 MPlayer Team Custom build by Redxii, http://smplayer.sourceforge.net Compiled against FFmpeg version N-52748-g1ef82cc Build date : Sun May 5 03:45:49 EDT 2013 getch2 : 6 can't get number of input events [disabling console input] Playing D :/wamp/www/videoconverter/content/original/3.mp4. libavformat version 55.4.101 (internal) libavformat file format detected. [lavf] stream 0 : video (h264), -vid 0 [lavf] stream 1 : audio (aac), -aid 0, -alang und VIDEO : [H264] 960x540 24bpp 25.000 fps 2087.1 kbps (254.8 kbyte/s) Clip info : major_brand : isom minor_version : 512 compatible_brands : isomiso2avc1mp41 creation_time : 1970-01-01 00:00:00 encoder : Lavf52.77.0 comment : www.freemake.com Load subtitles in D :/wamp/www/videoconverter/content/original/ jpeg : Progressive JPEG disabled. jpeg : Baseline JPEG enabled. Opening video filter : [scale w=96 h=64] ========================================================================== Opening video decoder : [ffmpeg] FFmpeg's libavcodec codec family libavcodec version 55.7.100 (internal) Selected video codec : [ffh264] vfm : ffmpeg (FFmpeg H.264) ========================================================================== Audio : no sound Starting playback... Movie-Aspect is 1.78:1 - prescaling to correct movie aspect. [swscaler @ 01400520]BICUBIC scaler, from yuv420p to rgb24 using MMXEXT VO : [jpeg] 96x64 => 113x64 RGB 24-bit jpeg : content/tmp/sprites/HxHtQGKbsV - Output directory already exists and is writable. Movie-Aspect is 1.78:1 - prescaling to correct movie aspect. VO : [jpeg] 96x64 => 113x64 RGB 24-bit jpeg : content/tmp/sprites/HxHtQGKbsV - Output directory already exists and is writable. V : 0.0 0/ 0 ??% ??% ??, ?% 0 0 V : 5.8 0/ 0 ??% ??% ??, ?% 0 0 V : 10.6 0/ 0 ??% ??% ??, ?% 0 0 V : 18.5 0/ 0 ??% ??% ??, ?% 0 0 V : 25.6 0/ 0 ??% ??% ??, ?% 0 0 V : 35.8 0/ 0 ??% ??% ??, ?% 0 0 V : 35.8 0/ 0 ??% ??% ??, ?% 0 0 V : 35.8 0/ 0 ??% ??% ??, ?% 0 0 V : 35.8 0/ 0 ??% ??% ??, ?% 0 0 V : 35.8 0/ 0 ??% ??% ??, ?% 0 0 V : 35.8 0/ 0 ??% ??% ??, ?% 0 0 V : 35.8 0/ 0 ??% ??% ??, ?% 0 0 Exiting... (End of file)
-
How to display name and phone number of a student as dynamic watermark (randomly floating on entire screen) in videos of a paid online video course ?
22 mai 2020, par ArjunI wish to make a Learning Management System using PHP-MySQL and wish to put videos from my computer or embed YouTube videos on it.



Videos will be displayed to only those students who have paid for the course.



I want to show their name and phone number (which they'll be giving during Sign Up) as a dynamic watermark floating randomly on all the videos of that course to prevent screen capturing of the video.



How to do it and how to call those Name and Phone Number values from the MySQL database ?