Recherche avancée

Médias (0)

Mot : - Tags -/tags

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

Autres articles (72)

  • 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

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

  • Librairies et logiciels spécifiques aux médias

    10 décembre 2010, par

    Pour un fonctionnement correct et optimal, plusieurs choses sont à prendre en considération.
    Il est important, après avoir installé apache2, mysql et php5, d’installer d’autres logiciels nécessaires dont les installations sont décrites dans les liens afférants. Un ensemble de librairies multimedias (x264, libtheora, libvpx) utilisées pour l’encodage et le décodage des vidéos et sons afin de supporter le plus grand nombre de fichiers possibles. Cf. : ce tutoriel ; FFMpeg avec le maximum de décodeurs et (...)

Sur d’autres sites (7641)

  • iOS/Safari MediaRecorder Extremely Big File sizes with FFMPEG Or issue with MediaRecorder

    13 janvier 2021, par Dean Van Greunen

    Having an issue where the output video size of the converted video is 0.

    


    however i believe that the issue is with the mediarecorder code :

    


    recorder = new MediaRecorder(this.stream, { mimeType: "video/webm;codecs=vp9" });
recorder.ondataavailable = async (e) => {
  const payload = e.data;
  let y = blob2base64(payload);
  // take y and transfer to server, (on server decode base64 string and append that to the video file)
}


    


    I have the MediaRecorder API Enabled via the safari and iOS settings.

    


    for example after processing and saving the data chunks for the video that has been captured. Weird is that the video is blank but when using ffprobe, all the info is correct. so i'm stuffed.

    


    Here is the Captured Video (Before conversion)

    


    after conversion, the new file is 0 bytes big

    


    Note :
this works fine on windows and linux.
issue is only with iOS or MacOS

    


    Not sure what i am doing long.

    


  • Does Webm support cover art ?

    14 janvier 2021, par chrish

    I am converting MP3 to Webm and the MP3 file includes a video stream for the cover art.

    


    ffprobe filename.mp3
...
    Stream #0:0: Audio: mp3, 22050 Hz, stereo, fltp, 64 kb/s
    Stream #0:1: Video: mjpeg (Baseline), yuvj444p(pc, bt470bg/unknown/unknown), 300x300, 90k tbr, 90k tbn, 90k tbc (attached pic)


    


    Using ffmpeg with libopus codec to convert the file causes a VP9 video stream that doesn't work well. I noticed :

    


      

    1. VLC Player doesn't show the duration and the progress scrubber doesn't move when playing.
    2. 


    3. Android Media Player doesn't show image for the cover art of the track.
    4. 


    


    ffprobe filename.webm
...
Input #0, matroska,webm, from 'webm_bad/B01___01_Matthew_____ENGWEBN2DA.webm':
...
    Stream #0:0: Video: vp9 (Profile 1), yuv444p(tv, progressive), 300x300, SAR 1:1 DAR 1:1, 1k tbr, 1k tbn, 1k tbc (default)


    


    If I tried to use -vcodec copy option, then I get this error :

    


    [webm @ 0x7fdddf028e00] Only VP8 or VP9 or AV1 video and Vorbis or Opus audio and WebVTT subtitles are supported for WebM.
Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument
Error initializing output stream 0:1 --


    


    Does WebM support cover art ? If so, how do I transfer the MP3 cover art over using ffmpeg (or other tool) ?

    


  • AVPlayer won't play audio files from FFMPEG

    18 janvier 2021, par Marcus

    Before requesting audio data AVPlayer requests byte range 0-1 from FFMPEG.

    


    FFMPEG gives a 200 response, but AVPlayer requires a 206 response.

    


    This results in the request failing and audio can't be played.

    


    Expected behavior :
Play tracks when streaming through ffmpeg

    


    Current behavior : When trying to stream with ffmpeg we get "Operation Stopped"

    


    Sample FFMPEG command :

    


    ffmpeg -i "/path/to/audio/track.mp3" -vn -strict -2 -acodec pcm_u8 -f wav -listen 1 -seekable 1 http://localhost:8090/restream.wav


    


    Player Log :

    


    Error Domain=AVFoundationErrorDomain Code=-11850 "Operation Stopped" UserInfo={NSLocalizedFailureReason=The server is not correctly configured., NSLocalizedDescription=Operation Stopped, NSUnderlyingError=0x600003bcc4b0 {Error Domain=NSOSStatusErrorDomain Code=-12939 "(null)"}}
!av_interleaved_write_frame(): Broken pipe

!Connection to tcp://localhost:8090 failed: Connection refused

!Connection to tcp://localhost:8090 failed: Connection refused

!Connection to tcp://localhost:8090 failed: Connection refused

!Error writing trailer of http://localhost:8090/restream.wav: Broken pipe


    


    This error is defined by Apple as :

    


    +"The HTTP server sending the media resource is not configured as expected. This might mean that the server does not support byte range requests."


    


    And summarised nicely in this StackOverflow post :

    


    when AVPlayerItem receive a video URL , it do the following task:

    Send a bytes request HTTP Request, and range = 0 -1
    If the response code is 206 and return 1 bytes data, It do the 3th task, if not, AVErrorServerIncorrectlyConfigured error occurred.
    continue send other HTTP Request, to download segment of All duration. and the response of VideoData code must be 206

In my situation , when send range[0-1] HTTP request, the server side give me a 200 OK response, So error occurred.


    


    Network Log :

    


    GET /file.wav HTTP/1.1
Host: localhost:1234
X-Playback-Session-Id: F72F1139-6F4C-4A22-B334-407672045A86
Range: bytes=0-1
Accept: */*
User-Agent: AppleCoreMedia/1.0.0.18C61 (iPhone; U; CPU OS 14_3 like Mac OS X; en_us)
Accept-Language: en-us
Accept-Encoding: identity
Connection: keep-alive

HTTP/1.1 200 OK
Content-Type: application/octet-stream
Transfer-Encoding: chunked


    


    Reproduce using this sample app :

    


    This can also be reproduced using standard ffmpeg and adding URL to local or remote ffmpeg URL

    


    Can we solve this by making changes to FFMPEG or AVPlayer ?