
Recherche avancée
Médias (1)
-
Rennes Emotion Map 2010-11
19 octobre 2011, par
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (83)
-
Les notifications de la ferme
1er décembre 2010, parAfin d’assurer une gestion correcte de la ferme, il est nécessaire de notifier plusieurs choses lors d’actions spécifiques à la fois à l’utilisateur mais également à l’ensemble des administrateurs de la ferme.
Les notifications de changement de statut
Lors d’un changement de statut d’une instance, l’ensemble des administrateurs de la ferme doivent être notifiés de cette modification ainsi que l’utilisateur administrateur de l’instance.
À la demande d’un canal
Passage au statut "publie"
Passage au (...) -
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 -
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 (13211)
-
How to save stream with ffmpeg to chunks, But in temporary name and change the name after to const
10 janvier, par EliyaI use ffmpeg to record IP camera and I save every 10 minutes to mp4 file.
This is my code :


ffmpeg -rtsp_transport tcp -i "rtsp://$user_name:$password@$IP:$port/cam/realmonitor?channel=1&subtype=1" -c copy -map 0 -reset_timestamps 1 -f segment -segment_time 600 -strftime 1 "%Y-%m-%d__%H:%M:%S.mp4"



Is there a way to save the file in temporary name until 10 minutes is done ?
I mean when the recording of 10 minutes didn't end the suffix will be bla.temp and when the recording of the 10 minutes is over, ffmpeg will change the suffix to .mp4 ?
is that possible ?


-
FFMPEG PHP Message : Unable to save frame
30 avril 2020, par Hitesh Vala AhirHello I have try to take thumbnail through FFMPEG but get the error message like Message : Unable to save frame.



PHP 7.0



php-ffmpeg/php-ffmpeg : ^0.16.0



Below is the code



require 'vendor/autoload.php';



$sec =1;
$movie = 'video1581091620.mp4';
$thumbnail = 'thumbnail.png';

try{
$ffmpeg = FFMpeg\FFMpeg::create();
$video = $ffmpeg->open($movie);
$frame = $video->frame(FFMpeg\Coordinate\TimeCode::fromSeconds($sec));
$frame->save($thumbnail);
echo '<img src="http://stackoverflow.com/feeds/tag/&#x27;.$thumbnail.&#x27;" style='max-width: 300px; max-height: 300px' />';
}catch(Exception $e) {
 echo 'Message: ' .$e->getMessage();
}



-
FFmpeg massive data loss when writing large data and swapping segments
25 avril 2023, par Bohdan PetrenkoI have an ffmpeg process running which continiously writes audio data to two 30 seconds (for testing, I'm actually planning to use 5 minutes) segments. The problem is that when I write some audio data with length more than size of two segments (60 seconds), 8-17 seconds of audio is lost. Here is how I run FFmpeg and write data :


_ffmpeg = Process.Start(new ProcessStartInfo
 {
 FileName = "ffmpeg",
 Arguments = 
 $"-y -f s16le -ar 48000 -ac {Channels} -i pipe:0 -c:a libmp3lame -f segment -segment_time {BufferDuration} -segment_format mp3 -segment_wrap 2 -reset_timestamps 1 -segment_list \"{_segmentListPath}\" \"{segmentName}\"",
 UseShellExecute = false,
 RedirectStandardInput = true
 })!;
 // Channels is usually 1, BufferDuration is 30



And here is how I write data :


public async Task WriteSilenceAsync(int amount)
{
 if (amount > _size) amount = _size; // _size is 48000 * 1 * 2 * 30 * 2 = 5760000 (size of 1 minute of audio)
 
 var silence = _silenceBuffer.AsMemory(0, amount);
 await _ffmpeg.StandardInput.BaseStream.WriteAsync(silence);
}



I tried to change the ffmpeg parameters and ways I write data. But I haven't found the solution.


I'm sure that the problem is caused by ffmpeg segments, because if I disable segmenting and write audio to a single file, there are no problems with data loss or audio missmatch. I also sure that
amount
of silence to add inWriteSilenceAsync()
method is calculated right. I'm not sure if the problem appears with data length more than 30 seconds but less then 1 minute, but I think it doesn't.

I don't know how to solve this problem and would be glad to see any suggestions or solutions.