
Recherche avancée
Médias (1)
-
Video d’abeille en portrait
14 mai 2011, par
Mis à jour : Février 2012
Langue : français
Type : Video
Autres articles (45)
-
Automated installation script of MediaSPIP
25 avril 2011, parTo overcome the difficulties mainly due to the installation of server side software dependencies, an "all-in-one" installation script written in bash was created to facilitate this step on a server with a compatible Linux distribution.
You must have access to your server via SSH and a root account to use it, which will install the dependencies. Contact your provider if you do not have that.
The documentation of the use of this installation script is available here.
The code of this (...) -
Other interesting software
13 avril 2011, parWe don’t claim to be the only ones doing what we do ... and especially not to assert claims to be the best either ... What we do, we just try to do it well and getting better ...
The following list represents softwares that tend to be more or less as MediaSPIP or that MediaSPIP tries more or less to do the same, whatever ...
We don’t know them, we didn’t try them, but you can take a peek.
Videopress
Website : http://videopress.com/
License : GNU/GPL v2
Source code : (...) -
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 ;
Sur d’autres sites (7170)
-
"TypeError : byte indices must be integers or slices, not str" Converting bytes to ints
13 janvier 2017, par LewisI am using a different program (ffmpeg) to grab the length of a youtube video that was downloaded in order to randomize a specific point in the video. However I am getting this error when I am trying to execute this code :
def grabTimeOfDownloadedYoutubeVideo(youtubeVideo):
process = subprocess.Popen(['/usr/local/bin/ffmpeg', '-i', youtubeVideo], stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
stdout, stderr = process.communicate()
matches = str(re.search(b"Duration:\s{1}(?P<hours>\d+?):(?P<minutes>\d+?):(?P<seconds>\d+\.\d+?),", stdout, re.DOTALL).groupdict()).encode()
print(matches)
hours = int(matches['hours'])
minutes = int(matches['minutes'])
seconds = int(matches['seconds'])
total = 0
total += 60 * 60 * hours
total += 60 * minutes
total += seconds
print(total)
</seconds></minutes></hours>The matches variable prints out to this :
b"{'minutes': b'04', 'hours': b'00', 'seconds': b'24.94'}"
So all of the output comes out with a ’b’ at the beginning of it. How do I remove the ’b’ and just get the number ?
Full error message here :
Traceback (most recent call last):
File "bot.py", line 87, in <module>
grabTimeOfDownloadedYoutubeVideo("videos/1.mp4")
File "bot.py", line 77, in grabTimeOfDownloadedYoutubeVideo
hours = int(matches['hours'])
TypeError: byte indices must be integers or slices, not str
</module> -
How can we reduce the size of audio file after uploading ?
8 novembre 2019, par Arjun PujariI have used this command in the terminal to install the package :
composer require pbmedia/laravel-ffmpeg
. The package is successfully downloaded, but I don’t know how to use it. I don’t even know if this package can also reduce the audio file size or not.Anyone know any other library or package ?
<form action="{{route('upload')}}" method="post" enctype="multipart/form-data">
Select Audio to upload:
<input type="file" />
<input type="submit" value="upload MP3" />
</form>
<?phpHere is my controller. Write basic code for save file :
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Pbmedia\LaravelFFMpeg\FFMpeg;
class FileCompress extends Controller
{
public function compressFile(Request $request)
{
$uploadFileName = mt_rand().time(). '.' . $file->getClientOriginalExtension();
$filetype = substr($file->getClientMimeType(), 0, strpos($file->getClientMimeType(), "/"));
if($filetype == 'video'){
$localpath = public_path().'/videos/'.$uploadFileName;
//code for video file compress.
}else{
//code for audio file compress.
}
}
}But I need to reduce the audio file size when a file is uploaded or reduce the file size immediately after the file upload. How can i do that ?
-
FFMpeg command output shows 'green pixelated' video
18 janvier 2021, par DonXI am trying to take a single image and add audio resulting in a video playing the entire song with that single image ; much like you see for YouTube videos for songs. The command I am using is from this link : https://askubuntu.com/questions/868283/image-audio-mp4-how-to-make-video-smaller


This is the command :


ffmpeg -loop 1 -framerate 1 -i image.png -i song.aac -c:v libx264 -preset veryslow -crf 0 -c:a copy -shortest output.mp4



It works as intended for having the video file be a small size, and the song plays as well, but depending on the image I used, some of the images appear 'Green' when playing the video.


However though, this command works for any image used :


ffmpeg -loop 1 -framerate 1 -i image.jpg -i music.mp3 -c copy -shortest output.mp4



But the result is a very big file whereas I would like it to be smaller. Any help would be greatly appreciated ! Thank you !


FFMpeg version : 4.3.1