
Recherche avancée
Médias (1)
-
Bug de détection d’ogg
22 mars 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Video
Autres articles (86)
-
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip 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, parMediaSPIP 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, parPour 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 (7617)
-
Does Webm support cover art ?
14 janvier 2021, par chrishI 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
withlibopus
codec to convert the file causes a VP9 video stream that doesn't work well. I noticed :

- 

- VLC Player doesn't show the duration and the progress scrubber doesn't move when playing.
- Android Media Player doesn't show image for the cover art of the track.






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 MarcusBefore 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 ?


-
When using subprocess passthrough is not accepting both inputs
30 janvier 2021, par Baraque ObahamasIm trying to have two subprocesses pipe into one and output via the passthrough. My goal is to make it possible to download 2 files (one video and one audio) and combine them with ffmpeg.


header('Content-Description: File Transfer');
header('Cache-Control: must-revalidate');
header('Pragma: public');
header("Content-Disposition: attachment; filename=\"ok.mp4\"");
header("Content-Type: application/octet-stream");

$cmd = "<(youtube-dl -f bestvideo[ext=mp4] --no-part --no-cache-dir --no-warnings --no-progress -o - https://www.youtube.com/watch?v=6Dh-RL__uN4) <(youtube-dl -f bestaudio[ext=m4a] --no-part --no-cache-dir --no-warnings --no-progress -o - https://www.youtube.com/watch?v=6Dh-RL__uN4) | ffmpeg -i - -i pipe:3 -movflags frag_keyframe+empty_moov+faststart -frag_duration 3600 -c:v copy -c:a copy -f mp4 -";

$cmd = passthru($cmd, $status);



My error is : -bash : /dev/fd/63 : Permission denied