Recherche avancée

Médias (10)

Mot : - Tags -/wav

Autres articles (70)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

Sur d’autres sites (10702)

  • How can I fix video processing and 500 Error - (Laravel, FFmpeg)

    19 juillet 2019, par San Martín Figueroa Pablo

    I’m setting up a new website with Laravel for uploading videos...
    I have read all the possible solutions but none of them help me to solve the issue...

    This is my issue : When I upload a small file (<10mb) the web works fine, the video get uploaded and the video get converted, the dashboard shows the converted videos---

    When I try to upload a large file, the file get uploaded, the video get converted with a green frame on it (really uggly) and the site goes to a 500 server error...

    I’m using Laravel Jobs to do the conversion.

    My Controller code :

       &lt;?php

       namespace App\Http\Controllers;

       use Illuminate\Http\Request;
       use Illuminate\Support\Facades\DB;
       use Illuminate\Support\Facades\Storage;
       use Symfony\Component\HttpFoundation\Response;
       use Carbon;
       use Closure;
       use App\Jobs\ConvertVideoForPreview;
       use FFMpeg\FFProbe;
       use FFMpeg\Coordinate\Dimension;
       use FFMpeg\Format\Video\X264;
       use Pawlox\VideoThumbnail\Facade\VideoThumbnail;
       use Pbmedia\LaravelFFMpeg\FFMpegFacade as FFMpeg;
       use Illuminate\Contracts\Filesystem\Filesystem;


       use App\Video;

       class VideoController extends Controller
       {
       public function createVideo(){
           return view('video.createVideo');  
       }
       public function saveVideo(Request $request){


           set_time_limit(0);
           ini_set('memory_limit', '1024M');

           //Validar Formulario

           $validatedData = $this -> validate($request, [

               'title' => 'required',
               'description' => 'required',
               'palabras' => 'required',
               'video' => 'mimetypes:video/mp4,video/quicktime'


           ]);

           $video = new Video();
           $user = \Auth::user();
           $video -> user_id = $user->id;
           $video -> title = $request -> input('title');
           $video -> description = $request -> input('description');
           $video -> palabras = $request -> input('palabras');



           $video_file = $request -> file('video');

           if($video_file){

           $video_path = 'original'.'_'.$video_file ->                                
           getClientOriginalName();
           Storage::disk('videos')-> put($video_path,
           \File::get($video_file));

           $videoUrl = storage_path('app/videos/').$video_path;
           $storageUrl = storage_path('app/thumbs/');
           $fileName = 'thumb'.'_'.time().'.jpg';
           $second = 2;

           VideoThumbnail::createThumbnail($videoUrl, $storageUrl,    
           $fileName, $second, $width = 640, $height = 480);

           $video -> preview = $fileName;
           $video -> video_path = $video_path;

         }
           $video -> save();

           ConvertVideoForPreview::dispatch($video);

           return redirect() -> route('home')
                             -> with (array(
               'message' => 'El video se ha enviado con exito'));
         }

           public function getImage($filename){

               $file = Storage::disk('thumbs') -> get($filename);
               return new Response($file, 200);
         }

           public function getVideo($filename){

               $file = Storage::disk('converted_videos') ->  
           get($filename);
               return new Response($file, 200);
         }

         }

    This is my ConvertVideo Job :

       &lt;?php

        namespace App\Jobs;

        use App\Video;

        use Carbon\Carbon;
        use FFMpeg;
        use FFMpeg\Format\Video\X264;

        use Illuminate\Http\Request;
        use Illuminate\Bus\Queueable;
        use Illuminate\Queue\SerializesModels;
        use Illuminate\Queue\InteractsWithQueue;
        use Illuminate\Contracts\Queue\ShouldQueue;
        use Illuminate\Foundation\Bus\Dispatchable;

        class ConvertVideoForPreview implements ShouldQueue

           {
             use Dispatchable, InteractsWithQueue, Queueable,
             SerializesModels;

             public $video;


             public function __construct(Video $video)
            {
                $this -> video = $video;
            }
             public function handle()
            {

             $converted_name= 'preview'.'-'.$this -> video ->
             video_path.'.mp4';

             FFMpeg::open('videos/'.$this -> video -> video_path)

                           -> export()
                   -> inFormat(new \FFMpeg\Format\Video\X264)
                       -> save('converted_videos/'.$converted_name);

               $this -> video -> update([
               'video_preview' => $converted_name,
               'processed' => true
                ]);
         }
        }

    One of my goals is to upload large video files (<=4GB), show a uploading process bar and a encoding process bar during the video upload.

    I getting this error :

    [core:error] [pid 14787:tid 139975366489856] [client
     201.188.26.12:51022] Script timed out before returning headers:
     index.php,

    It’s happend when the video es proccesing and the redirect to home dashboard it’s call...

    The FFMPEG works :

    [2019-07-19 17:20:41] local.INFO: ffprobe executed command successfully  
    [2019-07-19 17:21:52] local.INFO: ffmpeg executed command successfully  
    [2019-07-19 17:21:52] local.INFO: ffmpeg running command '/usr/local/bin/ffmpeg' '-y' '-i' '/home/tribus/public_html/storage/app/videos/original_Sequence 01.mov' '-threads' '12' '-vcodec' 'libx264' '-acodec' 'libfaac' '-b:v' '1000k' '-refs' '6' '-coder' '1' '-sc_threshold' '40' '-flags' '+loop' '-me_range' '16' '-subq' '7' '-i_qfactor' '0.71' '-qcomp' '0.6' '-qdiff' '4' '-trellis' '1' '-b:a' '128k' '-pass' '2' '-passlogfile' '/tmp/ffmpeg-passes5d31fbe9010e6ldt9s/pass-5d31fbe90152d' '/home/tribus/public_html/storage/app/converted_videos/preview-original_Sequence 01.mov.mp4'

    I have tried : Change all the memory and file size in PHP.ini, Nginx, Apache... (Probably I’m missing one)...

    Changed timeouts too.

    My environment : VPS 4GB 50GB, APACHE 2.4, PHP7.3, MySql MariaDB, WebServer : Apache-Nginx, Laravel 5.8.

    Can anyone help me to reach this ?...

    This is how the large video looks after converted and show 500 error in the browser :
    Error video processed

  • Unrecognized option 'txt_format' in ffmpeg latest version

    26 novembre 2020, par RecklessSergio

    I am trying to convert subtitles from scenarist closed captions(scc) to webvtt(vtt)

    &#xA;&#xA;

    But I am getting some special characters, so going through ffmpeg documentation https://trac.ffmpeg.org/wiki/ExtractSubtitles&#xA;I got to know about the option -txt_format. But when I am using it, ffmpeg is throwing an error saying

    &#xA;&#xA;

    "Unrecognized option 'txt_format'.&#xA;Error splitting the argument list : Option not found"

    &#xA;&#xA;

    FFMPEG VERSION : &#xA;ffmpeg version 4.1.4 Copyright (c) 2000-2019 the FFmpeg developers&#xA; built with gcc 9.1.1 (GCC) 20190716

    &#xA;&#xA;

    Below is the trace level log :

    &#xA;&#xA;

    &#xD;&#xA;
    &#xD;&#xA;
    ffmpeg version 4.1.4 Copyright (c) 2000-2019 the FFmpeg developers&#xD;&#xA;  built with gcc 9.1.1 (GCC) 20190716&#xD;&#xA;  configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth&#xD;&#xA;  libavutil      56. 22.100 / 56. 22.100&#xD;&#xA;  libavcodec     58. 35.100 / 58. 35.100&#xD;&#xA;  libavformat    58. 20.100 / 58. 20.100&#xD;&#xA;  libavdevice    58.  5.100 / 58.  5.100&#xD;&#xA;  libavfilter     7. 40.101 /  7. 40.101&#xD;&#xA;  libswscale      5.  3.100 /  5.  3.100&#xD;&#xA;  libswresample   3.  3.100 /  3.  3.100&#xD;&#xA;  libpostproc    55.  3.100 / 55.  3.100&#xD;&#xA;Splitting the commandline.&#xD;&#xA;Reading option &#x27;-loglevel&#x27; ... matched as option &#x27;loglevel&#x27; (set logging level) with argument &#x27;trace&#x27;.&#xD;&#xA;Reading option &#x27;-i&#x27; ... matched as input url with argument &#x27;223163.scc&#x27;.&#xD;&#xA;Reading option &#x27;test.vtt&#x27; ... matched as output url.&#xD;&#xA;Finished splitting the commandline.&#xD;&#xA;Parsing a group of options: global .&#xD;&#xA;Applying option loglevel (set logging level) with argument trace.&#xD;&#xA;Successfully parsed a group of options.&#xD;&#xA;Parsing a group of options: input url 223163.scc.&#xD;&#xA;Successfully parsed a group of options.&#xD;&#xA;Opening an input file: 223163.scc.&#xD;&#xA;[NULL @ 0000025d22799500] Opening &#x27;223163.scc&#x27; for reading&#xD;&#xA;[file @ 0000025d2279a600] Setting default whitelist &#x27;file,crypto&#x27;&#xD;&#xA;Probing scc score:100 size:2048&#xD;&#xA;[scc @ 0000025d22799500] Format scc probed with size=2048 and score=100&#xD;&#xA;[scc @ 0000025d22799500] Before avformat_find_stream_info() pos: 38022 bytes read:38022 seeks:0 nb_streams:1&#xD;&#xA;[scc @ 0000025d22799500] All info found&#xD;&#xA;[scc @ 0000025d22799500] stream 0: start_time: -9223372036854776.000 duration: -9223372036854776.000&#xD;&#xA;[scc @ 0000025d22799500] format: start_time: -9223372036854.775 duration: -9223372036854.775 bitrate=0 kb/s&#xD;&#xA;[scc @ 0000025d22799500] After avformat_find_stream_info() pos: 38022 bytes read:38022 seeks:0 frames:0&#xD;&#xA;Input #0, scc, from &#x27;223163.scc&#x27;:&#xD;&#xA;  Duration: N/A, bitrate: N/A&#xD;&#xA;    Stream #0:0, 0, 1/1000: Subtitle: eia_608&#xD;&#xA;Successfully opened the file.&#xD;&#xA;Parsing a group of options: output url test.vtt.&#xD;&#xA;Successfully parsed a group of options.&#xD;&#xA;Opening an output file: test.vtt.&#xD;&#xA;File &#x27;test.vtt&#x27; already exists. Overwrite ? [y/N] y&#xD;&#xA;[file @ 0000025d227d1c40] Setting default whitelist &#x27;file,crypto&#x27;&#xD;&#xA;Successfully opened the file.&#xD;&#xA;Output #0, webvtt, to &#x27;test.vtt&#x27;:&#xD;&#xA;  Metadata:&#xD;&#xA;    encoder         : Lavf58.20.100&#xD;&#xA;    Stream #0:0, 0, 1/1000: Subtitle: webvtt&#xD;&#xA;    Metadata:&#xD;&#xA;      encoder         : Lavc58.35.100 webvtt&#xD;&#xA;Stream mapping:&#xD;&#xA;  Stream #0:0 -> #0:0 (eia_608 (cc_dec) -> webvtt (native))&#xD;&#xA;Press [q] to stop, [?] for help&#xD;&#xA;cur_dts is invalid (this is harmless if it occurs once at the start per stream)&#xD;&#xA;    Last message repeated 1 times&#xD;&#xA;No more output streams to write to, finishing.&#xD;&#xA;size=      19kB time=00:18:28.36 bitrate=   0.1kbits/s speed=2.26e&#x2B;04x&#xD;&#xA;video:0kB audio:0kB subtitle:10kB other streams:0kB global headers:0kB muxing overhead: 88.647011%&#xD;&#xA;Input file #0 (223163.scc):&#xD;&#xA;  Input stream #0:0 (subtitle): 411 packets read (19101 bytes); 349 frames decoded;&#xD;&#xA;  Total: 411 packets (19101 bytes) demuxed&#xD;&#xA;Output file #0 (test.vtt):&#xD;&#xA;  Output stream #0:0 (subtitle): 349 frames encoded; 349 packets muxed (10244 bytes);&#xD;&#xA;  Total: 349 packets (10244 bytes) muxed&#xD;&#xA;349 frames successfully decoded, 0 decoding errors&#xD;&#xA;[AVIOContext @ 0000025d22799c80] Statistics: 0 seeks, 2 writeouts&#xD;&#xA;[AVIOContext @ 0000025d227a2880] Statistics: 38022 bytes read, 0 seeks

    &#xD;&#xA;

    &#xD;&#xA;

    &#xD;&#xA;&#xA;

  • "Non-monotonous DTS in output stream 0:0 This may result in incorrect timestamps in the output file." error

    1er août 2019, par petaire

    I’m trying to go from .mkv to .mp4 through ffmpeg. Normally I would use

    ffmpeg -i $1 -codec copy -strict -2 $2

    But on this particular file, I get this error, like, A LOT :

    Non-monotonous DTS in output stream 0:0; previous: 49189232, current: 49189232; changing to 49189233. This may result in incorrect timestamps in the output file.

    I guess it has something to do with the DTS :

    [mp4 @ 0x7f8b14001200] Invalid DTS: 14832 PTS: 13552 in output stream 0:0, replacing by guess
    [mp4 @ 0x7f8b14001200] Invalid DTS: 15472 PTS: 12272 in output stream 0:0, replacing by guess

    I would not care if the result was ok, but the sound is out of sync, and the video is "stuttering". Feels like everything is out of sync.

    I’ve tried a lot of things, including -async 1 -vsync 1 , but nothing seems to work.

    Here’s some mediainfo :

    Complete name                            : /Users/petaire/Desktop/CNEWS-2019-07-23_16-00-00h.mkv
    Format                                   : Matroska
    Format version                           : Version 2
    File size                                : 1.19 GiB
    Movie name                               : Time-2019-07-23_16:00
    Writing application                      : Tvheadend 4.3-1801~g7f952c2ed
    Writing library                          : Tvheadend Matroska muxer
    Original source form                     : TV
    Comment                                  : Time recording
    IsTruncated                              : Yes
    DATE_BROADCASTED                         : 2019-07-23 16:00:00

    Video
    ID                                       : 1
    Format                                   : AVC
    Format/Info                              : Advanced Video Codec
    Format profile                           : High@L4
    Format settings                          : CABAC / 4 Ref Frames
    Format settings, CABAC                   : Yes
    Format settings, ReFrames                : 4 frames
    Codec ID                                 : V_MPEG4/ISO/AVC
    Width                                    : 1 920 pixels
    Height                                   : 1 080 pixels
    Display aspect ratio                     : 16:9
    Frame rate mode                          : Constant
    Frame rate                               : 25.000 fps
    Standard                                 : Component
    Color space                              : YUV
    Chroma subsampling                       : 4:2:0
    Bit depth                                : 8 bits
    Scan type                                : MBAFF
    Scan type, store method                  : Interleaved fields
    Scan order                               : Top Field First
    Language                                 : English
    Default                                  : Yes
    Forced                                   : No
    Color range                              : Limited
    Color primaries                          : BT.709
    Transfer characteristics                 : BT.709
    Matrix coefficients                      : BT.709

    Audio
    ID                                       : 2
    Format                                   : E-AC-3
    Format/Info                              : Enhanced AC-3
    Commercial name                          : Dolby Digital Plus
    Codec ID                                 : A_EAC3
    Bit rate mode                            : Constant
    Bit rate                                 : 128 Kbps
    Channel(s)                               : 2 channels
    Channel layout                           : L R
    Sampling rate                            : 48.0 KHz
    Frame rate                               : 31.250 fps (1536 SPF)
    Compression mode                         : Lossy
    Delay relative to video                  : -757ms
    Language                                 : French
    Service kind                             : Complete Main
    Default                                  : Yes
    Forced                                   : No

    Text
    ID                                       : 3
    Format                                   : DVB Subtitle
    Codec ID                                 : S_DVBSUB
    Codec ID/Info                            : Picture based subtitle format used on DVBs
    Language                                 : French
    Default                                  : Yes
    Forced                                   : No

    Any idea ?