Recherche avancée

Médias (0)

Mot : - Tags -/gis

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (44)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-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

  • Création définitive du canal

    12 mars 2010, par

    Lorsque votre demande est validée, vous pouvez alors procéder à la création proprement dite du canal. Chaque canal est un site à part entière placé sous votre responsabilité. Les administrateurs de la plateforme n’y ont aucun accès.
    A la validation, vous recevez un email vous invitant donc à créer votre canal.
    Pour ce faire il vous suffit de vous rendre à son adresse, dans notre exemple "http://votre_sous_domaine.mediaspip.net".
    A ce moment là un mot de passe vous est demandé, il vous suffit d’y (...)

Sur d’autres sites (8988)

  • Find video resolution and video duration of remote mediafile

    22 février 2012, par osgx

    I want to write an program which can find some metainformation of mediafile. I'm interested in popular video formats, such as avi, mkv, mp4, mov (may be other popular too). I want basically to get :

    • Video size (720, 1080, 360 etc)
    • Total runtime of video (may be not very exact)
    • Number of audio streams
    • Name of video codec
    • Name of audio codec

    There is already the mediainfo, but in my program I want to get information about remote file, which may be accessed via ftp, http, samba ; or even torrent (there are some torrent solutions, which allows to read not-yet downloaded file).

    MediaInfo library have no support of samba (smb ://) and mkv format (for runtime).

    Also, I want to know, how much data should be downloaded to get this information. I want not to download full videofile because I have no enough disk space.

    Is this information in the first 1 or 10 or 100 KiloBytes of the file ? Is it at predictable offset if I know the container name and total file size ?

    PS : Platform is Linux, Language is C/C++

  • FFmpeg not working

    22 juillet 2013, par matthew

    I own the website www.goploom.com which similarly to youtube, allows users to upload and view videos. The videos that are uploaded are converted to the mp4 format for compatibility with our site's html5 video player. My problem is that while FFmpeg successfully generates video thumbnails from the uploaded video and stores the image in the proper directory, The video conversion aspect of my code does not produce any output. I have tweaked the code for a couple hours, and I have not been able to resolve this issue, however, I am told that I can perform video conversion with html, php, and ffmpeg.

    My path to ffmpeg is correct as the thumbnail generation works perfectly.

    **Information collected from the uploaded video upon upload.
    $name = $_FILES['video']['name'] ;
    $title = $_POST['videotitle'] ;
    $type = explode('.', $name) ;
    $type = end($type) ;
    $size = $_FILES['video']['size'] ;
    $random_name = rand() ;
    $tmp = $_FILES['video']['tmp_name'] ;

                   if($type != 'mp4' && $type != 'MP4' && $type != 'flv' && $type != 'FLV' && $type != 'mov' && $type != 'MOV'){
                       $message = "Video Format Not Supported<br />";
                   } else {
               $username_query = mysql_query("SELECT `username` FROM `users` WHERE `user_id` = $session_user_id");
                       $username = mysql_fetch_assoc($username_query);
                       $username = $username[&#39;username&#39;];

    **Thumbnail generation that works perfectly.
    $ffmpeg = "/usr/local/bin/ffmpeg" ;
    $videoFile = $_FILES['video']['tmp_name'] ;
    $imageFile = "uploads/".$username."/thumbnails/".$random_name.".jpg" ;
    $size = "160x90" ;
    $getFromSecond = 5 ;
    $cmd = "$ffmpeg -i $videoFile -an -ss $getFromSecond -s $size $imageFile" ;
    if(!shell_exec($cmd))
    echo "Thumbnail Created !
    " ;
    else
    echo "Error Creating Thumbnail !" ;

    **Moves the uploaded file to its permanent directory for video conversion.
    $newFileLocation = "uploads/".$username."/temp".$random_name.".".$type ;
    move_uploaded_file($tmp, $newFileLocation) ;

    *Video Conversion code.
    $outputFile = "uploads/".$username."/".$random_name.".mp4" ;
    $databaseStoredVideoUrl = "uploads/".$username."/".$random_name.".mp4" ;
    $video_cmd = "$ffmpeg -i $newFileLocation $outputFile" ;
    echo $video_cmd ;
    if(!shell_exec($video_cmd))
    echo "Video Converted !
    " ;
    else
    echo "Error Creating Thumbnail !" ;

    **Properly stores the output src link in the database, but the video cannot be viewed because it does not exist.
    // Video Storage into database under correct username and user directory
    mysql_query("INSERT INTO videos VALUES('$session_user_id' ,'', '$name', '$outputFile', '$title', '', '$imageFile')") ;
    $message = "Video Upload Successful.
    " ;

    Any help or insight would be brilliant.
    Thanks.

    **EDIT : Fixed by using the following line.
    $video_cmd = "$ffmpeg -i $newFileLocation -vcodec libx264 -vpre normal -acodec libfaac $outputFile" ;

    and then inputting $video_cmd into shell_exec

  • Screen Recording issue using FFMPEG in Android

    12 décembre 2014, par flight

    We are trying to record Android screen using the below commands.

    ffmpeg -y -vcodec rawvideo -f rawvideo -pix_fmt rgb32 -s 320x480 -i /dev/graphics/fb0 /sdcard/output.mp4

    And

    ffmpeg -y -vcodec rawvideo -f rawvideo -pix_fmt rgb32 -s 320x480 -f fbdev /sdcard/output.mp4

    The Logcat output is given below :

    12-12 10:52:04.722: I/ffmpeg4android(27954): ===============Running command from thread path: /sdcard/videokit
    12-12 10:52:04.722: I/ffmpeg4android(27954): =======ProgressBackgroundRemote doInBackground=========
    12-12 10:52:04.722: I/ffmpeg4android(27954): videokitLibPath: /data/data/com.unscriptd.videoapp/lib/libvideokit.so
    12-12 10:52:04.722: I/ffmpeg4android(27954): ffmpeg4android_isComplex: true
    12-12 10:52:04.732: I/Videokit(27954): dlopen libvideokit from path: /data/data/com.unscriptd.videoapp/lib/libvideokit.so
    12-12 10:52:04.762: W/linker(27954): libvideokit.so has text relocations. This is wasting memory and is a security risk. Please fix.
    12-12 10:52:04.892: I/GAV2(27800): Thread[GAThread,5,main]: No campaign data found.
    12-12 10:52:04.912: I/Videokit(27954): libvideokit.so loaded
    12-12 10:52:04.912: I/Videokit(27954): args is not NULL
    12-12 10:52:04.912: I/Videokit(27954): more then one arg
    12-12 10:52:04.912: I/Videokit(27954): function symbol found
    12-12 10:52:04.912: D/Videokit(27954): Calling videokit run via loader
    12-12 10:52:04.912: I/Videokit(27954): vk ffmpeg sdcardPath: /sdcard/videokit
    12-12 10:52:04.912: D/Videokit(27954): call licenseCheckComplex
    12-12 10:52:04.912: I/Videokit(27954): licenseCheck in path: /sdcard/videokit
    12-12 10:52:04.912: I/Videokit(27954): isLicExistsComplex...
    12-12 10:52:04.912: I/Videokit(27954): trying to open /sdcard/videokit/ffmpeglicense.lic
    12-12 10:52:04.912: I/Videokit(27954): license file found...
    12-12 10:52:04.912: I/Videokit(27954): Permanent license validated.
    12-12 10:52:04.912: D/Videokit(27954): license check rc: 1
    12-12 10:52:04.912: D/Videokit(27954): run() called
    12-12 10:52:05.062: D/Videokit(27954): videokit call finished, calling dlclose
    12-12 10:52:05.062: I/ffmpeg4android(27954): RemoteService: FFMPEG finished.
    12-12 10:52:05.062: I/ffmpeg4android(27954): RemoteService: removing notification.
    12-12 10:52:05.062: I/ffmpeg4android(27954): Cancel notification: 5326
    12-12 10:52:08.822: D/ffmpeg4android(27873): dur: null
    12-12 10:52:08.822: I/ffmpeg4android(27873): dur is not good, not setting
    12-12 10:52:08.822: I/ffmpeg4android(27873): _durationOfCurrentWaitIndex is equal to: 6 reseting.
    12-12 10:52:08.822: I/ffmpeg4android(27873): setting fake Prefs.durationOfCurrent
    12-12 10:52:08.822: W/ffmpeg4android(27873): setting fake Prefs.durationOfCurrent (Cant get from file): 00:03:00.00
    12-12 10:52:08.822: W/ffmpeg4android(27873): /sdcard/videokit/ffmpeg4android.log: open failed: ENOENT (No such file or directory)
    12-12 10:52:08.822: I/ffmpeg4android(27873): ==== getting currentVkLogSize from FFmpeg4Android log
    12-12 10:52:08.822: W/ffmpeg4android(27873): Looks like Vk log is not increasing in size
    12-12 10:52:08.822: I/ffmpeg4android(27873): No ffmpeg4android_log file, using vk log
    12-12 10:52:08.822: I/line(27873): eg_parse_options
    12-12 10:52:08.822: I/line(27873): ffmpeg4android: ffmpeg_parse_options not passed
    12-12 10:52:08.822: I/line(27873): exit_program: 1
    12-12 10:52:08.822: I/line(27873): ffmpeg4android: 1
    12-12 10:52:08.822: W/ffmpeg4android(27873): error line: ffmpeg4android: 1
    12-12 10:52:08.822: W/ffmpeg4android(27873): Looks like error in the log
    12-12 10:52:08.822: D/ffmpeg4android(27873): currentTimeStr: error
    12-12 10:52:08.822: D/ffmpeg4android(27873): ============Found error in the log============
    12-12 10:52:08.822: I/ffmpeg4android(27873): onProgressUpdate: 100
    12-12 10:52:08.822: D/ffmpeg4android(27873): Releasing wake lock
    12-12 10:52:08.822: D/ffmpeg4android(27873): TranscodeBackground onPostExecute
    12-12 10:52:08.822: D/ffmpeg4android(27954): set transcodingProgress: 100
    12-12 10:52:08.832: D/ffmpeg4android(27873): nullnull length in bytes: 0
    12-12 10:52:08.832: D/ffmpeg4android(27873): showNotifications
    12-12 10:52:08.832: I/ffmpeg4android(27873): ============ Transcoding Failed, caling fexist