
Recherche avancée
Médias (1)
-
Publier une image simplement
13 avril 2011, par ,
Mis à jour : Février 2012
Langue : français
Type : Video
Autres articles (60)
-
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
List of compatible distributions
26 avril 2011, parThe table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...) -
Creating farms of unique websites
13 avril 2011, parMediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)
Sur d’autres sites (11329)
-
Aws-sdk-php putobject with ffmpeg .m3u8 & .ts format
13 avril 2018, par Waqas ManiI can’t send
hls
video.aws-sdk-php mp4
video working well buthls
videos only send.m3u8
file all.ts
file come inlocal storage
Here my actual code. Submit-ffmpeg.php :
$ffmpeg_b = $pt->config->ffmpeg_binary_file;
$filepath = explode('.', $_POST['video-location'])[0];
$time = time();
$full_dir = str_replace('ajax', '/', __DIR__);
$structure = $filepath;
if (!mkdir($structure, 0777, true)) {
die('Failed to create folders...');
}
$hls_link = $structure . "/_360p_converted.m3u8";
$video_file_full_path = $full_dir . $_POST['videolocation'];
$shell = shell_exec("$ffmpeg_b -y -i $video_file_full_path -vcodec copy -acodec copy -start_number 0 -hls_time 10 -hls_list_size 0 -f hls $hls_link 2>&1");
$upload_s3 = PT_UploadToS3($filepath . "/_360p_converted.m3u8");
$db->where('id', $insert);
$db->update(T_VIDEOS, array(
'converted' => 1,
'360p' => 1,
'video_location' => $filepath . "/_360p_converted.m3u8"
));function.php
the sent file in aws-sdk-php$s3->putObject([
'Bucket' => $pt->config->s3_bucket_name,
'Key' => $filename,
'Body' => fopen($filename, 'r+'),
'ACL' => 'public-read',
]); -
ffmpeg does not fill in my provided buffer
14 avril 2018, par thelearnerI’m trying to pipe a mp4 video to ffmpeg to generate a thumbnail. Unfortunately, ffmpeg does not fill in my provided buffer, even though the whole command execution is successful.
I’m reading the video from a http request body :
videoData, err := ioutil.ReadAll(r.Body)
This is how I push it to ffmpeg :
log.Print("Creating thumbnail..")
width := 640
height := 360
log.Print("Size of the video: ", len(videoData))
cmd := exec.Command("ffmpeg", "-i", "pipe:0", "-vframes", "1", "-s", fmt.Sprintf("%dx%d", width, height), "-f", "singlejpeg", "-frame_size", fmt.Sprintf("%d", totalVideoBytes), "-")
cmd.Stdin = bytes.NewReader(videoData)
var imageBuffer bytes.Buffer
cmd.Stdout = &imageBuffer
err := cmd.Run()
if err != nil {
log.Panic("ERROR")
}
imageBytes := imageBuffer.Bytes()This is the error output :
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7ff05d002600]stream 0, offset 0x5ded : partial file
pipe:0 : Invalid data found when processing input
Finishing stream 0:0 without any data written to it.
frame= 0 fps=0.0 q=0.0
Lsize= 0kB time=-577014:32:22.77 bitrate= -0.0kbits/s speed=N/A
video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead : unknownOutput file is empty, nothing was encoded (check -ss / -t / -frames parameters if used)
Thanks a lot, any help is appreciated.
-
avformat/utils : Stream specifier enhancement 2.
13 avril 2018, par Bela Bodecsavformat/utils : Stream specifier enhancement 2.
In some cases, mainly working with multiprogram mpeg-ts containers as
input, it would be handy to select sub stream of a specific program by
their metadata.
This patch makes it possible to narrow the stream selection among
streams of the specified program by stream metadata.Examples :
p:601:m:language:hun will select all sub streams of program with id 601
where sub streams have metadata key named 'language' with value 'hun'.
p:602:m:guide will select all sub streams of program with id 602 where
sub streams have metadata key named 'guide'.Signed-off-by : Bela Bodecs <bodecsb@vivanet.hu>
Signed-off-by : Michael Niedermayer <michael@niedermayer.cc>