Recherche avancée

Médias (91)

Autres articles (100)

  • Mise à jour de la version 0.1 vers 0.2

    24 juin 2013, par

    Explications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
    Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

Sur d’autres sites (9990)

  • Extract frame timecodes from DV AVI

    21 juillet 2020, par Davor Josipovic

    I 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 that ffprobe 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 correct timecodes per frame. So what am I doing wrong ?

    


  • FFMPEG failing when calling with a offset

    8 septembre 2020, par sarath chandra

    I am new to FFMPEG. Sorry if this question is too basic.

    


    I want to cut a sample sample of 30 sec from time 30sec. But when i execute a below command it was failing with exception

    


    cmd

    


    ffmpeg -loglevel debug  -ss 00:00:30.000 -t 30 -i source.flac -acodec libmp3lame -ab 64k -ac 2 -ar 22050 -y -vn target.mp3


    


    Output

    


    ur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[flac @ 0x7f9603006200] blocksize 32768 > 4096
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[flac @ 0x7f9603006200] decode_frame() failed
Error while decoding stream #0:0: Invalid data found when processing input
cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
    Last message repeated 1 times
[graph_0_in_0_0 @ 0x7f960241ab00] Setting 'time_base' to value '1/0'
[abuffer @ 0x7f960241ac00] Value inf for parameter 'time_base' out of range [0 - 2.14748e+09]
    Last message repeated 1 times
[graph_0_in_0_0 @ 0x7f960241ab00] Setting 'sample_rate' to value '0'
[graph_0_in_0_0 @ 0x7f960241ab00] Setting 'sample_fmt' to value 's32'
[graph_0_in_0_0 @ 0x7f960241ab00] Setting 'channel_layout' to value '0x4'
[abuffer @ 0x7f960241ac00] Value inf for parameter 'time_base' out of range [0 - 2.14748e+09]
    Last message repeated 1 times



    


    But when i changed the offset zero seconds it was successfully transcoding.

    


    cmd

    


    ffmpeg -loglevel debug  -ss 00:00:00.000 -t 30 -i source.flac -acodec libmp3lame -ab 64k -ac 2 -ar 22050 -y -vn target.mp3  


    


    Output

    


    Output file #0 (target2.mp3):
  Output stream #0:0 (audio): 2680 frames encoded (1543500 samples); 2682 packets muxed (560483 bytes); 
  Total: 2682 packets (560483 bytes) muxed
756 frames successfully decoded, 0 decoding errors
[AVIOContext @ 0x7f9050d05980] Statistics: 2 seeks, 4 writeouts
[AVIOContext @ 0x7f9050e18b00] Statistics: 12320768 bytes read, 2 seeks


    


    I check the mediainfo didn't find anything

    


    {
  "index": "0",
  "codec_name": "flac",
  "codec_long_name": "FLAC (Free Lossless Audio Codec)",
  "profile": "unknown",
  "codec_type": "audio",
  "codec_time_base": "1/44100",
  "codec_tag_string": "[0][0][0][0]",
  "codec_tag": "0x0000",
  "sample_fmt": "s32",
  "sample_rate": "44100",
  "channels": "2",
  "channel_layout": "stereo",
  "bits_per_sample": "0",
  "id": "N/A",
  "r_frame_rate": "0/0",
  "avg_frame_rate": "0/0",
  "time_base": "1/44100",
  "start_pts": "0",
  "start_time": "0.000000",
  "duration_ts": "9784915",
  "duration": "221.880159",
  "bit_rate": "1347288",
  "max_bit_rate": "N/A",
  "bits_per_raw_sample": "24",
  "nb_frames": "N/A",
  "nb_read_frames": "N/A",
  "nb_read_packets": "N/A",
  "DISPOSITION": {
    "default": "0",
    "dub": "0",
    "original": "0",
    "comment": "0",
    "lyrics": "0",
    "karaoke": "0",
    "forced": "0",
    "hearing_impaired": "0",
    "visual_impaired": "0",
    "clean_effects": "0",
    "attached_pic": "0",
    "timed_thumbnails": "0"
  },
  "filename": "source.flac",
  "nb_streams": "1",
  "nb_programs": "0",
  "format_name": "flac",
  "format_long_name": "raw FLAC",
  "size": "37367072",
  "probe_score": "100"
}


    


  • No video steam played with the ffmpeg script from avi to mp4 on Centos 8.2/ffmpeg 8 [duplicate]

    27 septembre 2020, par user27240

    The mp4 file that was transformed from the avi file with the script below running on Centos 8.2/ffmpeg gcc 8 does not play video stream and it only play audio on chrome/edge/firefox/opera and Windows10.
Could anyone please help me out ?

    


    for i in /var/www/html/xxxxx/xxxxx/479.AVI; do ffmpeg -i "$i" -pix_fmt yuv420p -movflags +faststart -ss 0.03 "/var/www/html/xxxxx/xxxxx/$(basename "$i" .avi).mp4"; done

    


    The log for the ffmpeg transform script :

    


    peg -i "$i" -pix_fmt yuv420p -movflags +faststart -ss 0.03 "/var/www/html/xxxxx/xxxxx/$(basename "$i" .avi).mp4"; done
ffmpeg version N-99260-g6401a5d4b8 Copyright (c) 2000-2020 the FFmpeg developers
  built with gcc 8 (GCC)
  configuration: --disable-x86asm
  libavutil      56. 59.100 / 56. 59.100
  libavcodec     58.106.100 / 58.106.100
  libavformat    58. 58.100 / 58. 58.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
Guessed Channel Layout for Input Stream #0.1 : mono
Input #0, avi, from '/var/www/html/xxxxx/xxxxx/479.AVI':
  Metadata:
    creation_time   : 1980-01-01 00:00:18
    encoder         : CanonMVI06
  Duration: 00:00:04.63, start: 0.000000, bitrate: 15522 kb/s
    Stream #0:0: Video: mjpeg (Baseline) (MJPG / 0x47504A4D), yuvj422p(pc, bt470                                                                                                                                                             bg/unknown/unknown), 640x480, 14916 kb/s, 30 fps, 30 tbr, 30 tbn, 30 tbc
    Stream #0:1: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, mono, s16,                                                                                                                                                              705 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (mjpeg (native) -> mpeg4 (native))
  Stream #0:1 -> #0:1 (pcm_s16le (native) -> aac (native))
Press [q] to stop, [?] for help
[swscaler @ 0x37e3c80] deprecated pixel format used, make sure you did set range                                                                                                                                                              correctly
Output #0, mp4, to '/var/www/html/xxxxx/xxxxx/479.AVI.mp4':
  Metadata:
    encoder         : Lavf58.58.100
    Stream #0:0: Video: mpeg4 (mp4v / 0x7634706D), yuv420p, 640x480, q=2-31, 200                                                                                                                                                              kb/s, 30 fps, 65521 tbn, 30 tbc
    Metadata:
      encoder         : Lavc58.106.100 mpeg4
    Side data:
      cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: N/A
    Stream #0:1: Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 69 k                                                                                                                                                             b/s
    Metadata:
      encoder         : Lavc58.106.100 aac
frame=   61 fps=0.0 q=24.8 size=       0kB time=00:00:02.90 bitrate=   0.1kbits/                                                                                                                                                             frame=  126 fps=125 q=31.0 size=     256kB time=00:00:04.55 bitrate= 460.9kbits/                                                                                                                                                             [mp4 @ 0x376e700] Starting second pass: moving the moov atom to the beginning of                                                                                                                                                              the file
frame=  138 fps=125 q=31.0 Lsize=     379kB time=00:00:04.62 bitrate= 671.2kbits                                                                                                                                                             /s speed=4.17x
video:335kB audio:38kB subtitle:0kB other streams:0kB global headers:0kB muxing                                                                                                                                                              overhead: 1.401716%
[aac @ 0x377d2c0] Qavg: 2088.382


    


    ffmpeg version :

    


    ffmpeg version N-99260-g6401a5d4b8 Copyright (c) 2000-2020 the FFmpeg developers
built with gcc 8 (GCC)
configuration: --disable-x86asm
libavutil      56. 59.100 / 56. 59.100
libavcodec     58.106.100 / 58.106.100
libavformat    58. 58.100 / 58. 58.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


    


    CentOS version :
CentOS Linux release 8.2.2004 (Core)

    


    Clinet OS :
Windows10

    


    Browsers :
Chrome, Edge, Firefox, Opera

    


    ffprobe -loglevel error :

    


    [root@xxxxxxx xxxxxxx]# ffprobe -loglevel error -show_streams 479.AVI.mp4                                                                                                                                                      
[STREAM]
index=0
codec_name=mpeg4
codec_long_name=MPEG-4 part 2
profile=Simple Profile
codec_type=video
codec_time_base=2184/65521
codec_tag_string=mp4v
codec_tag=0x7634706d
width=640
height=480
coded_width=640
coded_height=480
closed_captions=0
has_b_frames=0
sample_aspect_ratio=1:1
display_aspect_ratio=4:3
pix_fmt=yuv420p
level=1
color_range=unknown
color_space=unknown
color_transfer=unknown
color_primaries=unknown
chroma_location=left
field_order=unknown
timecode=N/A
refs=1
quarter_sample=false
divx_packed=false
id=N/A
r_frame_rate=65521/2184
avg_frame_rate=65521/2184
time_base=1/65521
start_pts=0
start_time=0.000000
duration_ts=301392
duration=4.599930
bit_rate=596840
max_bit_rate=596840
bits_per_raw_sample=N/A
nb_frames=138
nb_read_frames=N/A
nb_read_packets=N/A
DISPOSITION:default=1
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
TAG:language=und
TAG:handler_name=VideoHandler
[/STREAM]
[STREAM]
index=1
codec_name=aac
codec_long_name=AAC (Advanced Audio Coding)
profile=LC
codec_type=audio
codec_time_base=1/44100
codec_tag_string=mp4a
codec_tag=0x6134706d
sample_fmt=fltp
sample_rate=44100
channels=1
channel_layout=mono
bits_per_sample=0
id=N/A
r_frame_rate=0/0
avg_frame_rate=0/0
time_base=1/44100
start_pts=0
start_time=0.000000
duration_ts=202992
duration=4.602993
bit_rate=67677
max_bit_rate=69000
bits_per_raw_sample=N/A
nb_frames=200
nb_read_frames=N/A
nb_read_packets=N/A
DISPOSITION:default=1
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
TAG:language=und
TAG:handler_name=SoundHandler
[/STREAM]