
Recherche avancée
Médias (2)
-
SPIP - plugins - embed code - Exemple
2 septembre 2013, par
Mis à jour : Septembre 2013
Langue : français
Type : Image
-
Publier une image simplement
13 avril 2011, par ,
Mis à jour : Février 2012
Langue : français
Type : Video
Autres articles (13)
-
Submit bugs and patches
13 avril 2011Unfortunately a software is never perfect.
If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
You may also (...) -
Qualité du média après traitement
21 juin 2013, parLe bon réglage du logiciel qui traite les média est important pour un équilibre entre les partis ( bande passante de l’hébergeur, qualité du média pour le rédacteur et le visiteur, accessibilité pour le visiteur ). Comment régler la qualité de son média ?
Plus la qualité du média est importante, plus la bande passante sera utilisée. Le visiteur avec une connexion internet à petit débit devra attendre plus longtemps. Inversement plus, la qualité du média est pauvre et donc le média devient dégradé voire (...) -
Qu’est ce qu’un masque de formulaire
13 juin 2013, parUn masque de formulaire consiste en la personnalisation du formulaire de mise en ligne des médias, rubriques, actualités, éditoriaux et liens vers des sites.
Chaque formulaire de publication d’objet peut donc être personnalisé.
Pour accéder à la personnalisation des champs de formulaires, il est nécessaire d’aller dans l’administration de votre MediaSPIP puis de sélectionner "Configuration des masques de formulaires".
Sélectionnez ensuite le formulaire à modifier en cliquant sur sont type d’objet. (...)
Sur d’autres sites (4741)
-
Error trying to stream multiple files - Invalid data found when processing input
14 avril 2020, par xybrekffmpeg -re -stream_loop -1 -i mylist.txt -f mpegts -vcodec copy -acodec copy http://localhost:8081/yoursecret



mylist.txt file contains :



file 'out001.ts'
file 'out002.ts'




up to out327.ts



Here's the output of the above command :



ffmpeg version git-2020-04-03-52523b6 Copyright (c) 2000-2020 the FFmpeg developers
 built with gcc 9.3.1 (GCC) 20200328
 configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libsrt --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-libvmaf --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-ffnvcodec --enable-cuda-llvm --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt --enable-amf
 libavutil 56. 42.102 / 56. 42.102
 libavcodec 58. 77.101 / 58. 77.101
 libavformat 58. 42.100 / 58. 42.100
 libavdevice 58. 9.103 / 58. 9.103
 libavfilter 7. 77.101 / 7. 77.101
 libswscale 5. 6.101 / 5. 6.101
 libswresample 3. 6.100 / 3. 6.100
 libpostproc 55. 6.100 / 55. 6.100
mylist.txt: Invalid data found when processing input




However streaming individual files works :



ffmpeg -re -stream_loop -1 -i out001.ts -f mpegts -vcodec copy -acodec copy http://localhost:8081/yoursecret




I've also tried but also does not work :



ffmpeg -re -stream_loop -1 -i <(for %%i in (*.ts) do @echo file '%%i') -f mpegts -vcodec copy -acodec copy http://localhost:8081/yoursecret



-
why ffmpeg php conversion 0 bytes empty
9 avril 2020, par user3080392I'm trying to convert a .wav file to .ogg with php and ffmpeg. The ogg file keeps being created as 0 bytes :



<?php
$ffmpeg = "/usr/local/bin/ffmpeg";
shell_exec("$ffmpeg -y -i clip.wav clip.ogg");
?>




I've tried various parameters for the ogg file, but none work. This simple conversion should work, but it doesn't.



Here is the log :



ffmpeg started on 2020-04-08 at 22:11:58
Report written to "ffmpeg-20200408-221158.log"
Command line:
/usr/local/bin/ffmpeg -y -i clip.wav clip.ogg -report
ffmpeg version N-71954-gbc6f84f Copyright (c) 2000-2015 the FFmpeg developers
built with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-16)
configuration: --prefix=/usr --enable-version3 --enable-gpl --enable-shared - 
-enable-libmp3lame --enable-libvorbis --enable-libtheora --enable-libvpx -- 
enable-libx264 --enable-libxvid --enable-libopencore-amrwb --enable- 
libopencore-amrnb --enable-postproc --enable-nonfree --enable-pthreads -- 
enable-x11grab --enable-libfaac --enable-libopenjpeg --enable-zlib --disable- 
doc
libavutil 54. 23.101 / 54. 23.101
libavcodec 56. 37.101 / 56. 37.101
libavformat 56. 31.102 / 56. 31.102
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 16.101 / 5. 16.101
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 1.100 / 1. 1.100
libpostproc 53. 3.100 / 53. 3.100
Splitting the commandline.
Reading option '-y' ... matched as option 'y' (overwrite output files) with 
argument '1'.
Reading option '-i' ... matched as input file with argument 'clip.wav'.
Reading option 'clip.ogg' ... matched as output file.
Reading option '-report' ... matched as option 'report' (generate a report) 
with argument '1'.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option y (overwrite output files) with argument 1.
Applying option report (generate a report) with argument 1.
Successfully parsed a group of options.
Parsing a group of options: input file clip.wav.
Successfully parsed a group of options.
Opening an input file: clip.wav.
[wav @ 0xe2fee0] Format wav probed with size=2048 and score=99
[wav @ 0xe2fee0] Before avformat_find_stream_info() pos: 44 bytes read:32768 
seeks:0
[wav @ 0xe2fee0] parser not found for codec pcm_s16le, packets or times may 
be invalid.
[wav @ 0xe2fee0] probing stream 0 pp:14
[wav @ 0xe2fee0] probing stream 0 pp:13
[wav @ 0xe2fee0] probing stream 0 pp:12
[wav @ 0xe2fee0] probing stream 0 pp:11
[wav @ 0xe2fee0] probing stream 0 pp:10
[wav @ 0xe2fee0] probing stream 0 pp:9
[wav @ 0xe2fee0] probing stream 0 pp:8
[wav @ 0xe2fee0] probing stream 0 pp:7
[wav @ 0xe2fee0] probing stream 0 pp:6
[wav @ 0xe2fee0] probing stream 0 pp:5
[wav @ 0xe2fee0] probing stream 0 pp:4
[wav @ 0xe2fee0] probing stream 0 pp:3
[wav @ 0xe2fee0] probing stream 0 pp:2
[wav @ 0xe2fee0] probing stream 0 pp:1
[wav @ 0xe2fee0] probed stream 0
[wav @ 0xe2fee0] parser not found for codec pcm_s16le, packets or times may 
be invalid.
[wav @ 0xe2fee0] All info found
[wav @ 0xe2fee0] After avformat_find_stream_info() pos: 204844 bytes 
read:213916 seeks:0 frames:50
Guessed Channel Layout for Input Stream #0.0 : stereo
Input #0, wav, from 'clip.wav':
Duration: 00:00:01.11, bitrate: 1536 kb/s
Stream #0:0, 50, 1/48000: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 
Hz, 2 channels, s16, 1536 kb/s
Successfully opened the file.
Parsing a group of options: output file clip.ogg.
Successfully parsed a group of options.
Opening an output file: clip.ogg.
Successfully opened the file.
detected 32 logical cores
[AVFilterGraph @ 0xe25560] Error initializing threading.
[AVFilterGraph @ 0xe25560] Error creating filter 'anull'
Error opening filters!
[AVIOContext @ 0xe72180] Statistics: 0 seeks, 0 writeouts
[AVIOContext @ 0xe2f560] Statistics: 213916 bytes read, 0 seeks



-
ffmpeg mp4 video cannot be played in old tv
24 mai 2020, par Rick BrianI've convert many video to mp4 using ffmpeg and playing well on my TV.

But ever since I change my laptop to a new one, my conversion failed to load on the TV.


I have tried to download old-stable ffmpeg Windows build, I tried also download a win-32 build, no good.
(I'm using x64 laptop with Windows 10 64-bit, just the same like previous laptop)

I also tried to add-pix_fmt yuv420p
, still no good.


This is code that I used to convert using ffmpeg :

ffmpeg -f concat -i "D:\Convert\LISTCAM.TXT" -c:v libx264 -c:a aac -pix_fmt yuv420p "Apr 2nd.mp4"



I also tried to compare using
ffmpeg -i
between my playable mp4 file with new not-playable mp4,

both are just similar except the encoder header.


Playable mp4 :



ffmpeg version 4.1.3 Copyright (c) 2000-2019 the FFmpeg developers
 built with gcc 8.3.1 (GCC) 20190414
 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
 libavutil 56. 22.100 / 56. 22.100
 libavcodec 58. 35.100 / 58. 35.100
 libavformat 58. 20.100 / 58. 20.100
 libavdevice 58. 5.100 / 58. 5.100
 libavfilter 7. 40.101 / 7. 40.101
 libswscale 5. 3.100 / 5. 3.100
 libswresample 3. 3.100 / 3. 3.100
 libpostproc 55. 3.100 / 55. 3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'E:\2020-DEC\Dec 13-PSTM-001.mp4':
 Metadata:
 major_brand : isom
 minor_version : 512
 compatible_brands: isomiso2avc1mp41
 encoder : Lavf57.83.100
 Duration: 01:01:47.46, start: 0.000000, bitrate: 1586 kb/s
 Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x714 [SAR 1071:1072 DAR 120:67], 1450 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 47.95 tbc (default)
 Metadata:
 handler_name : VideoHandler
 Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 129 kb/s (default)
 Metadata:
 handler_name : SoundHandler
At least one output file must be specified




Non-playable mp4 :



ffmpeg version 4.1.3 Copyright (c) 2000-2019 the FFmpeg developers
 built with gcc 8.3.1 (GCC) 20190414
 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
 libavutil 56. 22.100 / 56. 22.100
 libavcodec 58. 35.100 / 58. 35.100
 libavformat 58. 20.100 / 58. 20.100
 libavdevice 58. 5.100 / 58. 5.100
 libavfilter 7. 40.101 / 7. 40.101
 libswscale 5. 3.100 / 5. 3.100
 libswresample 3. 3.100 / 3. 3.100
 libpostproc 55. 3.100 / 55. 3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'D:\Convert\TEST.mp4':
 Metadata:
 major_brand : isom
 minor_version : 512
 compatible_brands: isomiso2avc1mp41
 encoder : Lavf58.20.100
 Duration: 00:00:18.54, start: 0.000000, bitrate: 4483 kb/s
 Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x808, 4517 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 47.95 tbc (default)
 Metadata:
 handler_name : video.264#trackID=1:fps=23.976 - Imported with GPAC 0.5.0-rev
 Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)
 Metadata:
 handler_name : GPAC ISO Audio Handler
At least one output file must be specified




Update :



- 

- I did a single-file input instead of a concatenation list.
- I did a codec copy from a playable file, it works, but when I try to re-encode, it does not.

ffmpeg -i "Playable-video-file.mp4" -c:v copy -c:a aac "Output.mp4"
this works







ffmpeg -i "Playable-video-file.mp4" -c:v libx264 -crf 23 -profile:v main -level:v 3.0 -preset:v medium -c:a aac "Output.mp4"
and this don't


- 

- I did the very same syntax and the same ffmpeg build on a friend's laptop with the same Windows 10 x64 architecture... the output file works fine and playable on my TV...
- Friend's is Intel i5, mine is Intel i7