
Recherche avancée
Autres articles (99)
-
Changer son thème graphique
22 février 2011, parLe thème graphique ne touche pas à la disposition à proprement dite des éléments dans la page. Il ne fait que modifier l’apparence des éléments.
Le placement peut être modifié effectivement, mais cette modification n’est que visuelle et non pas au niveau de la représentation sémantique de la page.
Modifier le thème graphique utilisé
Pour modifier le thème graphique utilisé, il est nécessaire que le plugin zen-garden soit activé sur le site.
Il suffit ensuite de se rendre dans l’espace de configuration du (...) -
Les sons
15 mai 2013, par -
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
Sur d’autres sites (16102)
-
New proposed ePrivacy Regulation and why Piwik might not need tracking consent compared to Google Analytics & co
11 janvier 2017, par InnoCraft — CommunityThe EU is proposing new ePrivacy Regulations. The proposed Regulation on Privacy and Electronic Communications will increase the protection of people’s private life and open up new opportunities for business.
The new ePrivacy Regulation proposal
The proposal mentions several changes for example to the “Cookie Law” where no longer a cookie consent will be needed when the cookies improve the user’s internet experience, for example to remember the shopping cart history or when completing a form over several pages.
However, consent to track a user’s behaviour may be needed in the future, unless the analytics data collection is hosted on the first-party website.
From TheRegister : O’Neil noted a minor change in which visitors to a website for analytics purposes do not require consent, as long as any personal data collected is only processed by the first party.
First party Analytics respecting privacy
Piwik is an open-source analytics platform that is used on more than 1 million websites and apps in over 150 countries, and available in more than 50 languages. The difference with other analytics solutions is that you can download and install Piwik on your own infrastructure. Websites and mobile apps tracking users with their own Piwik very likely won’t require a consent from their users if these regulations become reality.
We have regularly written about why privacy matters, or more recently 11 ways Piwik Analytics helps you to protect your visitors privacy.
Besides the standard Piwik features, there are Premium Features that let businesses and organizations further maximize their success based on the tracked data. Need help in hosting Piwik on premise ? InnoCraft are THE Piwik experts and know it best as it is the company of the makers of Piwik. InnoCraft provides support subscriptions and enterprise packages to help you setting up, configuring and maintaining Piwik on your infrastructure as well as offer training and custom development.
We’re excited to be building the best digital analytics platform which respects our privacy on the Internet.
Thank you for being a valued member of the Piwik community !
-
ffmpeg run from c# Process not closing when using '-i anullsrc'
1er octobre 2022, par Brown BearI am generating a large collection MP4 videos from an OpenGL source. This has worked perfectly so far but I recently noticed that some TV media player don't like video without audio, see here for more info.


So far i hve been using the following code :


private bool StartRecording()
 {
 _ffmpeg = new Process();
 _ffmpeg.StartInfo.FileName = "ffmpeg.exe";
 _ffmpeg.StartInfo.Arguments = $"-f rawvideo -pix_fmt rgba -s {RecordSize.Width}x{RecordSize.Height} -r 30 -i - -c libx264 -crf 17 -pix_fmt yuv420p -b:v 1024k -bufsize:v 1835008 {RecordFile} -tune animation";
 _ffmpeg.StartInfo.RedirectStandardInput = true;
 _ffmpeg.Start();

 if(_ffmpeg.HasExited)
 {
 IsRecording = false;
 return false;
 }
 return true;
 }

 private void RecordFrame(RenderUpdate update)
 {
 if (_ffmpeg == null)
 return;

 var frame = Project.RecordFrame(update);
 var data = new byte[frame.Length];
 var height = RecordSize.Height;
 var width = RecordSize.Width;

 for (var k = 0; k < height; k++)
 {
 var j = height - k - 1;
 Buffer.BlockCopy(
 frame, k * width * 4,
 data, j * width * 4,
 width * 4);
 }

 _ffmpeg.StandardInput.BaseStream.Write(data, 0, data.Length);
 }

 private void StopRecording()
 {
 Project.StopRecording();
 if (_ffmpeg == null)
 return;

 _ffmpeg.StandardInput.Flush();
 _ffmpeg.StandardInput.Close();
 _ffmpeg.Close();
 _ffmpeg.Dispose();
 }



And it has worked perfectly until I modified the 'ffmpeg' cmd line arguments to include '-i anullsrc' for the audio.


_ffmpeg.StartInfo.Arguments = $"-f rawvideo -pix_fmt rgba -s {RecordSize.Width}x{RecordSize.Height} -r 30 -i - -f lavfi -i anullsrc=channel_layout=mono:sample_rate=8k -c:v libx264 -crf 17 -pix_fmt yuv420p -b:v 1024k -bufsize:v 1835008 {RecordFile} -tune animation";



The moment I add '-f lavfi -i anullsrc' to the cmd line the call to 'StopRecording()' has no effect and ffmpeg continues to run.


I can manually stop it by closing the console window or even using ctrl-c, but the job needs to be automated so this is just not an option.


Ultimately my question is Why is ffmpeg behaving this way ?


I've come up with a couple of work arounds, but I don't like either :


- 

- Post process the videos as per the link I mentioned earlier. Not practical. I need to generate 1000s of videos and a single batch of 350 takes around 6 hours. 50% of that time is consumed by ffmpeg encoding, so to re-encode them all just to add a null audio track would nearly double the time.
- Try to push a 'ctrl-c' through to the ffmpeg process as per this post. I did some quick tests with 'GenerateConsoleCtrlEvent' without sucess, and the idea of having to manually start and stop the Process via 'kernel32.dll' seems excessive not to mention old school.






Any insight would be greatly appreciated.


-
HLS Encoding Resulting in "No Supported Source Was Found"
18 février 2023, par PaulamonopolyI'm currently facing the most bizare problems I've come across, so I'm hoping someone can explain why this is happening. I'm currently converting my Movie and Show libary to HLS for buffering and bandwidth reasons etc.


My file structure for these movies and shows are as follows :


/Movies/[TMDB ID]/[TMDB ID].mp4


/Shows/[TMDB ID/[Season Number]/[Episode Number]/[Episode Number].mp4


I have converted my entire movie collection successfully using the below command.


find /* -type f -name "*.mp4" -exec realpath {} \; -exec ffmpeg -i {} -codec: copy -start_number 0 -hls_time 10 -hls_list_size 0 -f hls -hls_segment_filename '{}-P%03d' {}.m3u8 \;



This is taking my named mp4 files and converting them to the
originalname.m3u8
with chunks following the naming scheme oforiginalname-PXXX
where P indicates the part number. I know there's no file extensions attached with the chunks but it's not needed.

You can view this result here : Example


This result also works if loaded into HLS Player : HLS Player


So there is evidently nothing wrong with the converting of my videos or even the result of the videos.


Now, if I convert a TV Show using the exact same command, it does indeed convert them, it does use a slightly different file structure as with seasons and episodes etc which can be seen above, but now it results in the error :
"No Supported Source Was Found"
in the console and repeatedly tries to playPart 000
without success.

This can be seen here : Example


And the errors if loaded into HLS Player : HLS Player


I have tried changing numerous things to try and resolve this error as well as checking things, the things I have checked are the media condition itself maybe it's a corrupted file ?


The original Mp4 file can be played here without any problems, so we know the Mp4 file originally is perfectly fine. I have also tried adding a file extension to the chunks such as
.ts
and.mp4
etc etc with also no success.

I have even thought maybe it's the directories so I have moved a show into the movies directory with no success, I have also moved a movie into the show directory which resulted in a working HLS Stream so it's nothing to do with the directories.


I have tried exending the file name length thinking it's possibly the naming scheme with
1.m3u8
not been long enough of a file name by using placeholder text such as03051.m3u8
as well as the chunk naming scheme03051-PXXX
possibly not been long enough.

I have noticed though that using this command :


ffmpeg -allowed_extensions ALL -i {} -c copy -bsf:a aac_adtstoasc {}.mkv \;



Does recombine my HLS video correctly with the same file size etc, however I have noticed that the video itself is corrupt and doesn't play. So this makes be believe the issue lies within the converting of the initial Mp4 file into m3u8.