
Recherche avancée
Autres articles (72)
-
Multilang : améliorer l’interface pour les blocs multilingues
18 février 2011, parMultilang 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. -
Des sites réalisés avec MediaSPIP
2 mai 2011, parCette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page. -
De l’upload à la vidéo finale [version standalone]
31 janvier 2010, parLe chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
Upload et récupération d’informations de la vidéo source
Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...)
Sur d’autres sites (6593)
-
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



-
ffmpeg only drawing last text
24 juillet 2020, par Muhammad Mohsin AjmalIm using ffmpeg in flutter using the flutter ffmpeg plugin. While experimenting with it this is what I am trying to do : Show text between 1 to 2 seconds and a different text between 3 to 4 seconds in video.


Only the text mentioned between 3 to 4 seconds is shown. So for me only the last drawText would work. What am I missing here ?


The is the list of arguments generated


Running FFmpeg with arguments: [-y, -i, /storage/emulated/0/DCIM/Camera/20200707_234610.mp4, -i, /data/user/0/com.example.example/app_flutter/watermark.png, -filter_complex, [0:v][1:v]overlay=main_w-overlay_w-5:5 ,drawtext=fontfile='/data/user/0/com.example.example/app_flutter/font.ttf':fontsize=90:x=20:y=20:text='Testing':enable='between(t\,1\,2),drawtext=fontfile='/data/user/0/com.example.example/app_flutter/font.ttf':fontsize=90:x=20:y=260:text='OTHER TEXT':enable='between(t\,3\,4)'', -crf, 27, -preset, veryfast, -c:v, libx264, -r, 30, /data/user/0/com.example.example/cache/2020-07-21T07:50:39.206386.mp4]




-
Manim error : It's a sound problem that I haven't seen anywhere else
2 avril 2024, par Nεo PλατoI've been using Manim for about a month now, and with already existing impediments to my progress none has been more painful than the lack of sound when I got to this part of Theorem of Beethoven's tutorial. I've been struggling with it for three weeks and opened issues on GitHub and Reddit without any success.


So the code looks like this :


class AudioTest(Scene):
 def construct(self):
 group_dots=VGroup(*[Dot()for _ in range(3)])
 group_dots.arrange_submobjects(RIGHT)
 for dot in group_dots:
 self.add_sound("click_this_and_nothing_else",gain=-10)
 self.add(dot)
 self.wait()
 self.wait()



And the error message is a bit long and I'm still cracking at what it actually means. Here it is :


C:\Manim\manim-18june>python manim.py tutorial\7_add_audio.py AudioTest -pm
Media will be written to C:/Users/NeoPlato/Videos/manim_videos\. You can change this behavior with the --media_dir flag.


Traceback (most recent call last):
 File "C:\Manim\manim-18june\manimlib\extract_scene.py", line 155, in main
 scene = SceneClass(**scene_kwargs)
 File "C:\Manim\manim-18june\manimlib\scene\scene.py", line 79, in __init__
 self.file_writer.finish()
 File "C:\Manim\manim-18june\manimlib\scene\scene_file_writer.py", line 379, in finish
 self.combine_movie_files()
 File "C:\Manim\manim-18june\manimlib\scene\scene_file_writer.py", line 506, in combine_movie_files
 self.audio_segment.export(
 File "C:\Users\allan\AppData\Local\Programs\Python\Python38-32\lib\site-packages\pydub\audio_segment.py", line 911, in export
 raise CouldntEncodeError(
pydub.exceptions.CouldntEncodeError: Encoding failed. ffmpeg/avlib returned error code: 1

Command:['ffmpeg', '-y', '-f', 'wav', '-i', 'C:\\Users\\NEOPLATO~1.000\\AppData\\Local\\Temp\\tmpk6j8yj98', '-b:a', '312k', '-f', 'mp3', 'C:\\Users\\NEOPLATO~1.000\\AppData\\Local\\Temp\\tmpyn225uxk']

Output from ffmpeg/avlib:

ffmpeg version git-2020-06-17-0b3bd00 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. 55.100 / 56. 55.100
 libavcodec 58. 92.100 / 58. 92.100
 libavformat 58. 46.101 / 58. 46.101
 libavdevice 58. 11.100 / 58. 11.100
 libavfilter 7. 86.100 / 7. 86.100
 libswscale 5. 8.100 / 5. 8.100
 libswresample 3. 8.100 / 3. 8.100
 libpostproc 55. 8.100 / 55. 8.100
Guessed Channel Layout for Input Stream #0.0 : stereo
Input #0, wav, from 'C:\Users\NEOPLATO~1.000\AppData\Local\Temp\tmpk6j8yj98':
 Duration: 00:00:04.23, bitrate: 2822 kb/s
 Stream #0:0: Audio: pcm_s32le ([1][0][0][0] / 0x0001), 44100 Hz, stereo, s32, 2822 kb/s
Stream mapping:
 Stream #0:0 -> #0:0 (pcm_s32le (native) -> mp3 (mp3_mf))
Press [q] to stop, [?] for help
[mp3_mf @ 011be000] could not find any MFT for the given media type
[mp3_mf @ 011be000] could not create MFT
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!



I do have a larger documentation of the problem with current progress [over at GitHub](https://github.com/3b1b/manim/issues/1152)

>Help
>>Me
>>>Please :(
>>>>Pardon my naive looking formatting, I'm new to Markdown