
Recherche avancée
Médias (91)
-
Géodiversité
9 septembre 2011, par ,
Mis à jour : Août 2018
Langue : français
Type : Texte
-
USGS Real-time Earthquakes
8 septembre 2011, par
Mis à jour : Septembre 2011
Langue : français
Type : Texte
-
SWFUpload Process
6 septembre 2011, par
Mis à jour : Septembre 2011
Langue : français
Type : Texte
-
La conservation du net art au musée. Les stratégies à l’œuvre
26 mai 2011
Mis à jour : Juillet 2013
Langue : français
Type : Texte
-
Podcasting Legal guide
16 mai 2011, par
Mis à jour : Mai 2011
Langue : English
Type : Texte
-
Creativecommons informational flyer
16 mai 2011, par
Mis à jour : Juillet 2013
Langue : English
Type : Texte
Autres articles (62)
-
Gestion des droits de création et d’édition des objets
8 février 2011, parPar défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;
-
Keeping control of your media in your hands
13 avril 2011, parThe vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...) -
Dépôt de média et thèmes par FTP
31 mai 2013, parL’outil MédiaSPIP traite aussi les média transférés par la voie FTP. Si vous préférez déposer par cette voie, récupérez les identifiants d’accès vers votre site MédiaSPIP et utilisez votre client FTP favori.
Vous trouverez dès le départ les dossiers suivants dans votre espace FTP : config/ : dossier de configuration du site IMG/ : dossier des média déjà traités et en ligne sur le site local/ : répertoire cache du site web themes/ : les thèmes ou les feuilles de style personnalisées tmp/ : dossier de travail (...)
Sur d’autres sites (13123)
-
'unsupported input sample rate set' error while converting mkv to mp3 with ffmpeg on python
15 décembre 2020, par Agent MerlotI'm getting this error on trying to convert some mkv files to mp3 via python. Nearly all files got converted, but some are facing this issue.

https://cdn.discordapp.com/attachments/663255565451001866/788424224661569596/Error.txt

Please help me fix this issue.


ffmpeg output extracted from the discord link above :


ffmpeg version git-2020-06-04-7f81785 Copyright (c) 2000-2020 the FFmpeg developers
 built with gcc 9.3.1 (GCC) 20200523
 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 --disable-w32threads --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. 49.100 / 56. 49.100
 libavcodec 58. 90.100 / 58. 90.100
 libavformat 58. 44.100 / 58. 44.100
 libavdevice 58. 9.103 / 58. 9.103
 libavfilter 7. 84.100 / 7. 84.100
 libswscale 5. 6.101 / 5. 6.101
 libswresample 3. 6.100 / 3. 6.100
 libpostproc 55. 6.100 / 55. 6.100
Input #0, matroska,webm, from 'J:\DC ED\Original\045 'Kimi no Egao ga Nani Yori mo Suki Datta' by 'Chicago Poodle'.mkv':
 Metadata:
 title : 045 'Kimi no Egao ga Nani Yori mo Suki Datta' by 'Chicago Poodle'.mkv
 COPYRIGHT : © 2013 APTX4869 Fansub
 creation_time : 2020-11-18T05:03:06.000000Z
 COMPOSER : Chicago Poodle
 ENCODER : Lavf58.44.100
 Duration: 00:01:20.04, start: 0.000000, bitrate: 2023 kb/s
 Stream #0:0(jpn): Video: hevc (Main), yuv420p(tv), 1440x1080 [SAR 4:3 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 23.98 tbc (default)
 Metadata:
 title : VIDEO[AVC]
 ENCODER : Lavc58.90.100 libx265
 BPS-eng : 1831510
 DURATION-eng : 00:01:20.039000000
 NUMBER_OF_FRAMES-eng: 1919
 NUMBER_OF_BYTES-eng: 18324032
 _STATISTICS_WRITING_APP-eng: mkvmerge v49.0.0 ('Sick Of Losing Soulmates') 64-bit
 _STATISTICS_WRITING_DATE_UTC-eng: 2020-11-18 05:03:06
 _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
 Stream #0:1(jpn): Audio: aac (LC), 96000 Hz, stereo, fltp (default)
 Metadata:
 title : AUDIO[AAC]
 BPS-eng : 188626
 DURATION-eng : 00:01:19.999000000
 NUMBER_OF_FRAMES-eng: 3750
 NUMBER_OF_BYTES-eng: 1886246
 _STATISTICS_WRITING_APP-eng: mkvmerge v49.0.0 ('Sick Of Losing Soulmates') 64-bit
 _STATISTICS_WRITING_DATE_UTC-eng: 2020-11-18 05:03:06
 _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream mapping:
 Stream #0:1 -> #0:0 (aac (native) -> mp3 (mp3_mf))
Press [q] to stop, [?] for help
[mp3_mf @ 000002142f4a5fc0] MFT name: 'MP3 Encoder ACM Wrapper MFT'
[mp3_mf @ 000002142f4a5fc0] unsupported input sample rate set
Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
Conversion failed!



-
FFMPEG for thumbnail from video distorted when downloaded
17 juillet 2020, par bjacobsI am grabbing a thumbnail image from an mp4.


When I use
-c:v mjpeg
, the thumbnail appears fine in the browser, but is completely distorted when I preview it on my Mac. If I use-c:v jpeg2000
the image looks fine on my Mac, but it does not show in the browser.

Full command :


ffmpeg -ss 3 -i https://some_site/some_video.mp4 -vf thumbnail,scale=480:480 -q:v 2 -frames:v 1 -f image2 -c:v jpeg2000 -r 1 -vframes 1 tmp/my_thumbnail.jpg


-vs-


ffmpeg -ss 3 -i https://some_site/some_video.mp4 -vf thumbnail,scale=480:480 -q:v 2 -frames:v 1 -f image2 -c:v mjpeg -r 1 -vframes 1 tmp/my_thumbnail.jpg


What encoding do I need to use in order for the generated thumbnail to both be viewable in the browser and also preview-able on Mac ?


This is what the distorted image looks like :



I'm beginning to think this is an macOS issue, but even if it is, I'd like to know if FFMPEG would have a solution for it so that even users with the buggy OS can properly preview the image.


Output :


ffmpeg version 4.1.5 Copyright (c) 2000-2020 the FFmpeg developers
 built with gcc 8.3.0 (Alpine 8.3.0)
 configuration: --prefix=/usr --enable-avresample --enable-avfilter --enable-gnutls --enable-gpl --enable-libass --enable-libmp3lame --enable-libvorbis --enable-libvpx --enable-libxvid --enable-libx264 --enable-libx265 --enable-libtheora --enable-libv4l2 --enable-postproc --enable-pic --enable-pthreads --enable-shared --enable-libxcb --disable-stripping --disable-static --disable-librtmp --enable-vaapi --enable-vdpau --enable-libopus --disable-debug
 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
 libavresample 4. 0. 0 / 4. 0. 0
 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 'https://some_site/some_video.mp4':
 Metadata:
 major_brand : isom
 minor_version : 1
 compatible_brands: isomavc1mp42
 creation_time : 2020-02-28T16:46:30.000000Z
 Duration: 00:00:06.23, start: 0.000000, bitrate: 2004 kb/s
 Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 480x480 [SAR 1:1 DAR 1:1], 1951 kb/s, 30 fps, 30 tbr, 30 tbn, 60 tbc (default)
 Metadata:
 creation_time : 2020-02-28T16:46:29.000000Z
 Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 48 kb/s (default)
 Metadata:
 creation_time : 2020-02-28T16:46:29.000000Z
File 'tmp/my_thumbnail.jpg' already exists. Overwrite ? [y/N] y
Stream mapping:
 Stream #0:0 -> #0:0 (h264 (native) -> mjpeg (native))
Press [q] to stop, [?] for help
[swscaler @ 0x55acb21fbb00] deprecated pixel format used, make sure you did set range correctly
Output #0, image2, to 'tmp/my_thumbnail.jpg':
 Metadata:
 major_brand : isom
 minor_version : 1
 compatible_brands: isomavc1mp42
 encoder : Lavf58.20.100
 Stream #0:0(und): Video: mjpeg, yuvj444p(pc), 480x480 [SAR 1:1 DAR 1:1], q=2-31, 200 kb/s, 1 fps, 1 tbn, 1 tbc (default)
 Metadata:
 creation_time : 2020-02-28T16:46:29.000000Z
 encoder : Lavc58.35.100 mjpeg
 Side data:
 cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: -1
[Parsed_thumbnail_0 @ 0x55acb21e35c0] frame id #58 (pts_time=1.933333) selected from a set of 97 images
frame= 1 fps=0.0 q=2.0 Lsize=N/A time=00:00:01.00 bitrate=N/A dup=1 drop=1 speed=2.04x 
video:39kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown



-
Splitting or segmenting a video with ffmpeg changes audio at the beginning
6 novembre 2020, par VSVI am using ffmpeg to split a video file to short bites :

ffmpeg i source.mp4 -codec copy -segment_time 5 -reset_timestamps 1 -force_key_frames "expr:gte(t,n_forced*5)" -f segment short%d.mp4


And by tonometer audio found that audio at the beginning starts like by fade in https://i.stack.imgur.com/Vj2KL.jpg


The same behavior when I use cut by ss, t, to parameters or remove -codec copy.


How can I remove this fade in or what is it behavior ?


Output


ffmpeg-2020-10-11-git-7ea4bcff7b-full_build\bin\ffmpeg -i C:\Projects\data\video7\in.mp4 -codec copy -segment_time 5 -reset_timestamps 1 -force_key_frames "expr:gte(t,n_forced*5)" -f segment C:\Projects\data\video7\out%d.mp4 -y
ffmpeg version 2020-10-11-git-7ea4bcff7b-full_build-www.gyan.dev Copyright (c) 2000-2020 the FFmpeg developers
 built with gcc 10.2.0 (Rev3, Built by MSYS2 project)
 configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-lzma --enable-libsnappy --enable-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libdav1d --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-libglslang --enable-vulkan --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libilbc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite --enable-libmysofa --enable-librubberband --enable-libsoxr --enable-chromaprint
 libavutil 56. 60.100 / 56. 60.100
 libavcodec 58.111.100 / 58.111.100
 libavformat 58. 62.100 / 58. 62.100
 libavdevice 58. 11.102 / 58. 11.102
 libavfilter 7. 87.100 / 7. 87.100
 libswscale 5. 8.100 / 5. 8.100
 libswresample 3. 8.100 / 3. 8.100
 libpostproc 55. 8.100 / 55. 8.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:\Projects\data\video7\in.mp4':
 Metadata:
 major_brand : isom
 minor_version : 0
 compatible_brands: isom3gp4
 creation_time : 2020-10-26T15:17:18.000000Z
 Duration: 00:00:15.74, start: 0.000000, bitrate: 16816 kb/s
 Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080, 17029 kb/s, 29.96 fps, 30 tbr, 90k tbn, 180k tbc (default)
 Metadata:
 rotate : 90
 creation_time : 2020-10-26T15:17:18.000000Z
 handler_name : VideoHandle
 Side data:
 displaymatrix: rotation of -90.00 degrees
 Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 121 kb/s (default)
 Metadata:
 creation_time : 2020-10-26T15:17:18.000000Z
 handler_name : SoundHandle
[segment @ 000001e2ace958c0] Opening 'C:\Projects\data\video7\out0.mp4' for writing
Output #0, segment, to 'C:\Projects\data\video7\out%d.mp4':
 Metadata:
 major_brand : isom
 minor_version : 0
 compatible_brands: isom3gp4
 encoder : Lavf58.62.100
 Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080, q=2-31, 17029 kb/s, 29.96 fps, 30 tbr, 90k tbn, 90k tbc (default)
 Metadata:
 rotate : 90
 creation_time : 2020-10-26T15:17:18.000000Z
 handler_name : VideoHandle
 Side data:
 displaymatrix: rotation of -90.00 degrees
 Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 121 kb/s (default)
 Metadata:
 creation_time : 2020-10-26T15:17:18.000000Z
 handler_name : SoundHandle
Stream mapping:
 Stream #0:0 -> #0:0 (copy)
 Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
[segment @ 000001e2ace958c0] Opening 'C:\Projects\data\video7\out1.mp4' for writing
[segment @ 000001e2ace958c0] Opening 'C:\Projects\data\video7\out2.mp4' for writing
[segment @ 000001e2ace958c0] Opening 'C:\Projects\data\video7\out3.mp4' for writing
frame= 463 fps=0.0 q=-1.0 Lsize=N/A time=00:00:15.72 bitrate=N/A speed= 301x
video:32077kB audio:233kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown