Recherche avancée

Médias (1)

Mot : - Tags -/vidéo

Autres articles (77)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP 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" (...)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

Sur d’autres sites (7980)

  • Invalid NAL unit size in extradata when to convert the dav file into mp4

    30 décembre 2020, par showkey

    I got the command from webpage :
congvert dav file into mp4

    


    Here is my try :

    


    ffmpeg -y -i input.dav -vcodec libx264 -crf 24 -movflags +faststart  video.mp4
ffmpeg version 3.2.15-0+deb9u1 Copyright (c) 2000-2020 the FFmpeg   
developers built with gcc 6.3.0 (Debian 6.3.0-18+deb9u1) 20170516  
configuration: omitted    
  libavutil      55. 34.101 / 55. 34.101
  libavcodec     57. 64.101 / 57. 64.101
  libavformat    57. 56.101 / 57. 56.101
  libavdevice    57.  1.100 / 57.  1.100
  libavfilter     6. 65.100 /  6. 65.100
  libavresample   3.  1.  0 /  3.  1.  0
  libswscale      4.  2.100 /  4.  2.100
  libswresample   2.  3.100 /  2.  3.100
  libpostproc    54.  1.100 / 54.  1.100
Input #0, hevc, from 'input.dav':
  Duration: N/A, bitrate: N/A
    Stream #0:0: Video: hevc (Main), yuv420p(tv), 1920x1080, 25 fps, 25 tbr, 1200k tbn, 25 tbc
Output #0, ogg, to 'audiofile.ogg':
Output file #0 does not contain any stream


    


    How to fix it ?

    


  • FFMediaElement : How to stream from CamLink 4K ?

    15 janvier 2021, par Pedro

    I would like to use Unosquare's FFME library (v4.2.330) to show a live stream from a Cam Link 4K hdmi grabber.Using the following code, however, the media element remains black, even though the media has successfully been opened and no exceptions are raised.

    


        


    private void OnLoaded(object sender, RoutedEventArgs e)
    {
        this.media.Open(new Uri("device://dshow/?video=Cam Link 4K"));
    }

    private void media_MediaInitializing(object sender, Unosquare.FFME.Common.MediaInitializingEventArgs e)
    {
        e.Configuration.PrivateOptions["framerate"] = "50";
        e.Configuration.PrivateOptions["video_size"] = "1920x1080";
        e.Configuration.PrivateOptions["vcodec"] = "rawvideo"; //also tried mjpeg
        e.Configuration.PrivateOptions["pixel_format"] = "yuyv422"; //also tried yuv420p
    }
    
    private void media_MediaFailed(object sender, Unosquare.FFME.Common.MediaFailedEventArgs e)
    {
        log.Error(e.ErrorException);
    }


    


    Using VLC player everything works fine, so I suppose it has something to do with parameters set during MediaInitializing. In order to get the correct parameters I ran ffmpeg -f dshow -i video="Cam Link 4K" which outputs

    


    Input #0, dshow, from 'video=Cam Link 4K':
  Duration: N/A, bitrate: N/A
    Stream #0:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 1920x1080, 50 fps, 50 tbr, 10000k tbn, 10000k tbc


    


    By running ffmpeg -f dshow -pix_fmt yuv420p -i video="Cam Link 4K" -framerate 50 -vcodec mjpeg test.mkv I am able to record everthing into the file.

    


    During startup I am setting Unosquare.FFME.Library.FFmpegDirectory = @"C:\ffmpeg";, where I put the prebuilt binaries and shared libraries for ffmpeg 4.2.1 (win64). Also I made sure my project is targeting x64. Since MediaElement works with regular mp4 files, I am not sure which parameters/settings I am missing.

    


  • Pydub unable to locate ffprobe

    25 décembre 2022, par Recessive

    Here is the link to a similar question to this : Pydub (WindowsError : [Error 2] The system can not find the file specified)
Although in this one the problem is with ffmpeg, which I solved by setting the absolute path.

    


    After setting the absolute path for converter and/or ffmpeg with either :

    


    AudioSegment.converter = r'C:\ffmpeg\bin'

    


    or

    


    AudioSegment.ffmpeg = r'C:\ffmpeg\bin'

    


    I still get this error :

    


    


    C :\Program Files\Python36\lib\site-packages\pydub\utils.py:193 : RuntimeWarning : Couldn't find ffprobe or avprobe - defaulting to ffprobe, but may not work
warn("Couldn't find ffprobe or avprobe - defaulting to ffprobe, but may not work", RuntimeWarning)
Traceback (most recent call last) :
File "C :/Users/Sean/Desktop/vp/encode_audio/m4a_to_wav.py", line 4, in 
song = AudioSegment.from_file("pines.m4a", "m4a")
File "C :\Program Files\Python36\lib\site-packages\pydub\audio_segment.py", line 660, in from_file
info = mediainfo_json(orig_file)
File "C :\Program Files\Python36\lib\site-packages\pydub\utils.py", line 263, in mediainfo_json
res = Popen(command, stdin=stdin_parameter, stdout=PIPE, stderr=PIPE)
File "C :\Program Files\Python36\lib\subprocess.py", line 707, in init
restore_signals, start_new_session)
File "C :\Program Files\Python36\lib\subprocess.py", line 990, in _execute_child
startupinfo)
FileNotFoundError : [WinError 2] The system cannot find the file specified`

    


    


    I have ffmpeg in my path envvar. I also have libav in my path envvar, and installed libav and then pydub in the order specified at https://github.com/jiaaro/pydub#dependencies.

    


    Nothing I'm doing appears to be working, so any ideas or solutions would be greatly appreciated !