
Recherche avancée
Autres articles (39)
-
Support de tous types de médias
10 avril 2011Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)
-
HTML5 audio and video support
13 avril 2011, parMediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
For older browsers the Flowplayer flash fallback is used.
MediaSPIP allows for media playback on major mobile platforms with the above (...) -
Support audio et vidéo HTML5
10 avril 2011MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)
Sur d’autres sites (6087)
-
Read Output in Batch
29 septembre 2016, par arielbejeI am using this code to try and download a video+subtitles using youtube-dl and then combine them using ffmpeg.
I am trying to set the video/subtitle output to title.extension instead of the regular title id.extesion, but to do that youtube-dl has a command that outputs it like an echo command, so I need to read it.
@echo off
echo Write a link and press enter
set /p link=
cls
youtube-dl.exe -u myusername -p mypassword --skip-download --sub-lang enUS --sub-format "ass" --output "%(uploader)s%(title)s.%(ext)s" "%link%"
youtube-dl.exe -u myusername -p mypassword -f worst --ffmpeg-location "%cd%\ffmpeg.exe" --hls-prefer-ffmpeg --console-title --output "%(uploader)s%(title)s.%(ext)s" "%link%"
youtube-dl.exe -u myusername -p mypassword --skip-download --get-title "%link%" > title.txt
for /f "delims=" %%x in (title.txt) do set title=%%x
ffmpeg.exe -i "%cd%\%title%.flv" -vf "ass=%cd%\%title%.ass" "%cd%\%title%.mkv"
pause -
ac3dec : Fix out-of-array read
23 novembre 2013, par Tim Walker -
write with PortAudio into fifo and read with ffmpeg on OSX
22 novembre 2017, par M. P.What I am trying to do :
- open my microphone as audio source in PortAudio (works)
- write stream into fifo (works)
- read fifo with ffmpeg (dosen’t work)
In PortAudio I am using the Blocking I/O like here :
http://portaudio.com/docs/v19-doxydocs/blocking_read_write.htmlIn the loop I write into the fifo like this :
int data = write('/tmp/aaa', sampleBlock, bufferSize);
when I read it to PortAudio write buffer it works.
bytes_read = read('/tmp/aaa', readSampleBlock, bufferSize);
err = Pa_WriteStream(stream, readSampleBlock, bufferSize)when I read it with ffmpeg on console :
ffmpeg -y -i /tmp/aaa -f s16le -acodec copy -f nut -ar 48000 -ac 2 -v debug -report -acodec copy out.wav
It just blocks the loop and that’s it.
Can anybody help me figure out what do I need to do ?
My code :
#define SAMPLE_SIZE (1)
#define FRAMES_PER_BUFFER (480)
#define AUDIOFIFO "/tmp/aaa"
char *sampleBlock = NULL;
int status, captured_bytes, fifo, bytes_read;
err = Pa_OpenStream(&stream,
&inputParameters,
NULL,
48000,
FRAMES_PER_BUFFER,
paClipOff,
NULL, /* no callback, use blocking API */
NULL ); /* no callback, so no callback userData */
if( err != paNoError ) goto error;
numBytes = FRAMES_PER_BUFFER * numChannels * SAMPLE_SIZE ;
sampleBlock = (char *) malloc( numBytes );
memset( sampleBlock, SAMPLE_SILENCE, numBytes );
if (status = mkfifo(AUDIOFIFO, 0666) < 0)
{
printf("Error making AUDIOFIFO: %s \n", strerror(errno));
}
err = Pa_StartStream( stream );
if( err != paNoError )
{
goto error;
}
fifo = open(AUDIOFIFO, O_RDWR, O_NONBLOCK);
if (fifo < 0) printf("Error opening AUDIOFIFO: %s \n", strerror(errno));
for( i=0; i<(60*48000)/FRAMES_PER_BUFFER; ++i )
{
if ((err = Pa_ReadStream(stream, sampleBlock, FRAMES_PER_BUFFER)) != paNoError)
{
goto xrun;
}
captured_bytes = write(fifo, sampleBlock, FRAMES_PER_BUFFER);
if (captured_bytes < 0)
{
printf("Error writing to AUDIOFIFO: %s \n", strerror(errno));
}
framesProcessed += bufferSize;
}