
Recherche avancée
Autres articles (64)
-
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 ;
-
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 -
Contribute to a better visual interface
13 avril 2011MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community.
Sur d’autres sites (4655)
-
Class 'Pbmedia\LaravelFFMpeg\FFMpegServiceProvider\FFMpeg' not found
26 mars 2019, par farooqEncountered error
Class ’Pbmedia\LaravelFFMpeg\FFMpegServiceProvider\FFMpeg’ not found
I’m building a web application to upload a video and store it in cloud. I want to get the duration of the uploaded video. I tried to install
laravel/FFMpeg
package. After doing all the steps, I’m getting the above error.Code
My controller code :
<?php
namespace App\Http\Controllers;
use Auth;
use Illuminate\Http\Request;
use DB;
use App\Http\Requests;
use App\Http\Controllers\Controller;
use Illuminate\Support\Facades\Storage;
use App\Providers\DropboxServiceProvider;
use Dropbox\Client;
use Dropbox\WriteMode;
use Pbmedia\LaravelFFMpeg\FFMpegServiceProvider as FFMpeg;
//use Pbmedia\LaravelFFMpeg\FFMpegFacade as FFMpeg;
//use FFMpeg;
class FileController extends Controller
{
public function FileUpload(Request $request)
{
$file = $request->file('file');
$note = $request->input('note');
//$request->file('file')->store('assets');
if($file)
{
//Storage::disk('local')->put($file, $file);
//$file = $request->input('file')->store('1.png');
$file1 = Storage::disk('local')->put('' ,$request->file) ;
$filename = $file->getClientOriginalName();
Storage::move(''.$file1, $filename); // keep the same folder to just rename
$file = FFMPEG\FFMpeg::open($filename);
$durationInSeconds = $file->getDurationInSeconds();
return view('users/order-status')->with('file',$durationInSeconds);
}
else
{
$file ="not found";
}
return view('users/order-status')->with('file',$file);
}
public function dropboxFileUpload(Request $request)
{
$file = $request->input('file');
//Storage::disk('dropbox')->put('file.txt', 'Hello laravel ');
//$path = $request->input('file')->store('audio');
Storage::disk('local')->put($file, 'Contents');
echo asset('storage/"$file"');
//$file = "/storage/app/".$file. "";
//dd($path);
//$file = dd($path);
return view('users/order-status')->with('file',$file);
}
}
?> -
Revision 113525 : Ajout d’une vérification pour la chaine d’un attribut class d’une ...
20 janvier 2019, par eric@… — LogAjout d’une vérification pour la chaine d’un attribut class d’une balise HTML
-
How to initiate a class object out of a Dictionary with Lambda/LINQ, parsed by Newtonsoft.Json ?
18 mars 2019, par Hassanslawsince yesterday I tried to implement ffmpeg via Xabe-Wrapper in my C#-Project.
I used FFMpeg => FFProbe to get Format and Stream data as a json-string from some movies. This is the json I got for the Streams."{
"streams": [
{"codec_name": "mpeg4", "codec_type": "video"},
{"codec_name": "mp3" , "codec_type": "audio"}
]
}"Follow thing the Newtonsoft Wiki, I deserialized it as a DataSet. I started playing around and found a way to do this in a "oneliner".
Streams = (JsonConvert.DeserializeObject<dataset>(StreamProbeJSON,
JSerializerSettings)).Tables["streams"].AsEnumerable().Select(value => new
FormatAVInfo.SInfo(value.Field<string>("codec_type"), value.Field<string>
("codec_name")));</string></string></dataset>For Format, I get this Json
{
"format": {
"format_name": "avi",
"probe_score": 100
}
}Follow thing the Newtonsoft Wiki, I deserialized this one as a Dictionary, but I am not ably to do this in a oneliner again. Its not a big problem, but I would like to now how I can achieve this ?
I tried this
Format = (JsonConvert.DeserializeObject>>(FormatProbeJSON, JSerializerSettings))
["format"].Select(value => new FormatAVInfo.FInfo(value["format_name"],
value["probe_score"]));But, sure, Iam getting a KeyValuePair and not able to use a indexer for this. I also tried with JObject, with the same result. Sure, I could just make another Field
Dictionary Temp =
(JsonConvert.DeserializeObject>>(FormatProbeJSON, JSerializerSettings))
["format"]And instanciate afterwards, but Iam curious if there is a way to do this.
Thank you