
Recherche avancée
Médias (1)
-
The Great Big Beautiful Tomorrow
28 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Texte
Autres articles (78)
-
Organiser par catégorie
17 mai 2013, parDans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...) -
Récupération d’informations sur le site maître à l’installation d’une instance
26 novembre 2010, parUtilité
Sur le site principal, une instance de mutualisation est définie par plusieurs choses : Les données dans la table spip_mutus ; Son logo ; Son auteur principal (id_admin dans la table spip_mutus correspondant à un id_auteur de la table spip_auteurs)qui sera le seul à pouvoir créer définitivement l’instance de mutualisation ;
Il peut donc être tout à fait judicieux de vouloir récupérer certaines de ces informations afin de compléter l’installation d’une instance pour, par exemple : récupérer le (...) -
Demande de création d’un canal
12 mars 2010, parEn fonction de la configuration de la plateforme, l’utilisateur peu avoir à sa disposition deux méthodes différentes de demande de création de canal. La première est au moment de son inscription, la seconde, après son inscription en remplissant un formulaire de demande.
Les deux manières demandent les mêmes choses fonctionnent à peu près de la même manière, le futur utilisateur doit remplir une série de champ de formulaire permettant tout d’abord aux administrateurs d’avoir des informations quant à (...)
Sur d’autres sites (4819)
-
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);
}
}
?> -
ffmpeg : drawtext fade in/out with zmq
11 novembre 2019, par jb_alvaradoThere are several ways to fade in and out text in ffmpeg. But I only found solutions where the actual time is known.
But what can I do, when I don’t know the current running time and I would like to fade in and out a text ?
Let’s say I have an endless stream and I want to fade in a text with zmqsend. And the fade should start immediately. For that my understanding is, that I need to store some time information in a variable and calculate with that. But storing variables is not possible in ffmpeg expressions - right ?
For testing purposes here are a playing instance :
ffplay -dumpgraph 1 -f lavfi "color=s=512x288:c=black,zmq,drawtext=text=''"
For adding some text with zmq I can run now :
echo Parsed_drawtext_2 reinit text="Hello\ World,\ what’s\ up?" | zmqsend
Or if I know the running time and after 10 seconds I want the text fade in :
"text='Hello\ World':fontsize=:fontcolor=ffffff:alpha='if(lt(t,10),0,if(lt(t,11),(t-10)/1,if(lt(t,16),1,if(lt(t,17),(1-(t-16))/1,0))))'"
My goal is now to have an expression what I can send, so that ffmpeg starts fading in the text and out after a certain time.
Something like :
now=t,if(lt(t,now+10),0,if(lt(t,now+11),(t-(now+10))/1,if(lt(t,now+16),1,if(lt(t,now+17),(1-(t-(now+16)))/1,0))))
Is there a way to store variables in expression, or is there any other way to realize this ?
-
ffmpeg and 64 bit architecure
16 avril 2015, par nevgaukerthere is a pretty old project i need to upload to the store.
how old you ask ? 32 bit only ,no arc and no story board...since in this days in mandatory to make a single archive that support 32 and 64 build ...i decided to update the valid architecture of the project.
i discovered that many frameworks do not support 64 bit and i have to update them . the most problematic is ffmpge..
here i few things that i tried to do and fail :- add ffmpeg as a static libary
- add ffmpeg using cocoa pods
nothing helps...
here are some of the errors i get :
Undefined symbols for architecture arm64 :
"_av_read_frame", referenced from :
-[Demuxer readPacket :] in Demuxer.o
"_av_malloc", referenced from :
-[Streamer writePacket :] in Streamer.o
"_av_register_all", referenced from :
+[Streamer initialize] in Streamer.o
"_avformat_write_header", referenced from :
-[Streamer writePacket :] in Streamer.o
"_avio_close", referenced from :
-[Streamer dealloc] in Streamer.o
"_av_new_stream", referenced from :
-[Streamer writePacket :] in Streamer.o
"_avformat_free_context", referenced from :
-[Streamer dealloc] in Streamer.oany suggestion ?
the only way i succeed is turn on the "build active architecture only" (and of course get rejected when i try to upload to the store)
if you refer me to any shell script, please instruct me how to use it
thanks