
Recherche avancée
Médias (1)
-
Rennes Emotion Map 2010-11
19 octobre 2011, par
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (89)
-
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 ;
-
Récupération d’informations sur le site maître à l’installation d’une instance
26 novembre 2010, parUtilité
Sur le site principal, une instance de mutualisation est définie par plusieurs choses : Les données dans la table spip_mutus ; Son logo ; Son auteur principal (id_admin dans la table spip_mutus correspondant à un id_auteur de la table spip_auteurs)qui sera le seul à pouvoir créer définitivement l’instance de mutualisation ;
Il peut donc être tout à fait judicieux de vouloir récupérer certaines de ces informations afin de compléter l’installation d’une instance pour, par exemple : récupérer le (...) -
Support de tous types de médias
10 avril 2011Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)
Sur d’autres sites (6575)
-
Extract frame timecodes from DV AVI
21 juillet 2020, par Davor JosipovicI have some ancient DV AVI files (Type 1) from my camcorder.


I would like to export the
timecode
of each frame to a seperate file. Here I read thatffprobe
supports timecode extraction, but it is confusing since it mentions-show_format
. As far as I know, DV AVI format encodes timecodes per frame.

Anyway here is what I get for
ffprobe -show_format testcc.avi
:

ffprobe version 4.3 Copyright (c) 2007-2020 the FFmpeg developers
 built with gcc 9.3.1 (GCC) 20200621
 configuration: --disable-static --enable-shared --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-libgsm --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. 51.100 / 56. 51.100
 libavcodec 58. 91.100 / 58. 91.100
 libavformat 58. 45.100 / 58. 45.100
 libavdevice 58. 10.100 / 58. 10.100
 libavfilter 7. 85.100 / 7. 85.100
 libswscale 5. 7.100 / 5. 7.100
 libswresample 3. 7.100 / 3. 7.100
 libpostproc 55. 7.100 / 55. 7.100
[avi @ 0000025da5e55bc0] Switching to NI mode, due to poor interleaving
Input #0, avi, from 'testcc.avi':
 Duration: 00:06:16.68, start: 0.000000, bitrate: 28882 kb/s
 Stream #0:0: Video: dvvideo, yuv420p, 720x576 [SAR 16:15 DAR 4:3], 25000 kb/s, 25 fps, 25 tbr, 25 tbn, 25 tbc
 Stream #0:1: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s
[FORMAT]
filename=testcc.avi
nb_streams=2
nb_programs=0
format_name=avi
format_long_name=AVI (Audio Video Interleaved)
start_time=0.000000
duration=376.680000
size=1359912960
bit_rate=28882084
probe_score=100
[/FORMAT]



And for
ffprobe -show_frames testcc.avi
:

...
[FRAME]
media_type=video
stream_index=0
key_frame=1
pkt_pts=0
pkt_pts_time=0.000000
pkt_dts=0
pkt_dts_time=0.000000
best_effort_timestamp=0
best_effort_timestamp_time=0.000000
pkt_duration=1
pkt_duration_time=0.040000
pkt_pos=65032
pkt_size=144000
width=720
height=576
pix_fmt=yuv420p
sample_aspect_ratio=16:15
pict_type=I
coded_picture_number=0
display_picture_number=0
interlaced_frame=1
top_field_first=1
repeat_pict=0
color_range=unknown
color_space=unknown
color_primaries=unknown
color_transfer=unknown
chroma_location=topleft
[/FRAME]
[FRAME]
...



And for
ffprobe -show_streams testcc.avi
:

[STREAM]
index=0
codec_name=dvvideo
codec_long_name=DV (Digital Video)
profile=unknown
codec_type=video
codec_time_base=1/25
codec_tag_string=[0][0][0][0]
codec_tag=0x0000
width=720
height=576
coded_width=720
coded_height=576
closed_captions=0
has_b_frames=0
sample_aspect_ratio=16:15
display_aspect_ratio=4:3
pix_fmt=yuv420p
level=-99
color_range=unknown
color_space=unknown
color_transfer=unknown
color_primaries=unknown
chroma_location=topleft
field_order=unknown
timecode=N/A
refs=1
id=N/A
r_frame_rate=25/1
avg_frame_rate=25/1
time_base=1/25
start_pts=0
start_time=0.000000
duration_ts=N/A
duration=N/A
bit_rate=25000000
max_bit_rate=N/A
bits_per_raw_sample=N/A
nb_frames=N/A
nb_read_frames=N/A
nb_read_packets=N/A
DISPOSITION:default=0
DISPOSITION:dub=0
DISPOSITION:original=0
DISPOSITION:comment=0
DISPOSITION:lyrics=0
DISPOSITION:karaoke=0
DISPOSITION:forced=0
DISPOSITION:hearing_impaired=0
DISPOSITION:visual_impaired=0
DISPOSITION:clean_effects=0
DISPOSITION:attached_pic=0
DISPOSITION:timed_thumbnails=0
[/STREAM]
[STREAM]
index=1
codec_name=pcm_s16le
codec_long_name=PCM signed 16-bit little-endian
profile=unknown
codec_type=audio
codec_time_base=1/48000
codec_tag_string=[0][0][0][0]
codec_tag=0x0000
sample_fmt=s16
sample_rate=48000
channels=2
channel_layout=stereo
bits_per_sample=16
id=N/A
r_frame_rate=0/0
avg_frame_rate=0/0
time_base=1/30000
start_pts=0
start_time=0.000000
duration_ts=N/A
duration=N/A
bit_rate=1536000
max_bit_rate=N/A
bits_per_raw_sample=N/A
nb_frames=N/A
nb_read_frames=N/A
nb_read_packets=N/A
DISPOSITION:default=0
DISPOSITION:dub=0
DISPOSITION:original=0
DISPOSITION:comment=0
DISPOSITION:lyrics=0
DISPOSITION:karaoke=0
DISPOSITION:forced=0
DISPOSITION:hearing_impaired=0
DISPOSITION:visual_impaired=0
DISPOSITION:clean_effects=0
DISPOSITION:attached_pic=0
DISPOSITION:timed_thumbnails=0
[/STREAM]



I don't see any
timecode
. In Movie Maker (yes I know... it's on an old VM) I do see all the correcttimecodes
per frame. So what am I doing wrong ?

-
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



-
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]