
Recherche avancée
Médias (1)
-
Revolution of Open-source and film making towards open film making
6 octobre 2011, par
Mis à jour : Juillet 2013
Langue : English
Type : Texte
Autres articles (76)
-
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
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" (...) -
Le profil des utilisateurs
12 avril 2011, parChaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)
Sur d’autres sites (9255)
-
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
-
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);
}
}
?> -
In Android run asyn task inside Worker class of WorkManager
29 mars 2019, par Usman RanaI’ve a Worker in which i first want to apply FFMPEG command before uploading it to server. As Worker is already running in background so to keep the result on hold until file uploads I’ve used RxJava .blockingGet() method. But I’m unable to understand that how to execute FFmpeg command synchronously by anyway i.e. RxJava etc. One tip that I found is to use ListenableWorker but it’s documentation says that it stops working after 10 minutes. So, i don’t want to go with that solution. Following is the method of FFmpeg just like any other async method. How can i make it synchronous or integrate it with RxJava ? Any ideas would be appreciable.
ffmpeg.execute(command, new ExecuteBinaryResponseHandler() {
@Override
public void onFailure(String s) {
}
@Override
public void onSuccess(String s) {
uploadMediaItem(mediaUpload);
}
@Override
public void onProgress(String s) {
}
@Override
public void onStart() {
}
@Override
public void onFinish() {
// countDownLatch.countDown();
}
});This is the flow of my Worker :
- check pending post count in DB.
- Pick first post and check if it has pending media list to upload.
- Pick media recursively and check if editing is required on it or not.
- Apply FFmpeg editing and upload and delete from DB.
- Repeat the cycle until last entry in the DB.
Thanks