Recherche avancée

Médias (91)

Autres articles (54)

  • 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 ;

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

Sur d’autres sites (10922)

  • ffmpeg does not compress video (produces empty file)

    1er septembre 2019, par kalmanIsAGameChanger

    I am trying to compress a video with ffmpeg.

    My operating system : Ubuntu 16.04

    My ffmpeg version (retrieved through ffmpeg -version) :

    ffmpeg version 2.8.15-0ubuntu0.16.04.1 Copyright (c) 2000-2018 the FFmpeg developers
    built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.10) 20160609

    FYI, The information about the video can be retrieved with :

    ffprobe -show_streams -i "video.mp4"

    and I get :

    ffprobe version 2.8.15-0ubuntu0.16.04.1 Copyright (c) 2007-2018 the FFmpeg developers
     built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.10) 20160609
     configuration: --prefix=/usr --extra-version=0ubuntu0.16.04.1 --build-suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g++ --enable-gpl --enable-shared --disable-stripping --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-frei0r --enable-libx264 --enable-libopencv
     libavutil      54. 31.100 / 54. 31.100
     libavcodec     56. 60.100 / 56. 60.100
     libavformat    56. 40.101 / 56. 40.101
     libavdevice    56.  4.100 / 56.  4.100
     libavfilter     5. 40.101 /  5. 40.101
     libavresample   2.  1.  0 /  2.  1.  0
     libswscale      3.  1.101 /  3.  1.101
     libswresample   1.  2.101 /  1.  2.101
     libpostproc    53.  3.100 / 53.  3.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'a2019a_video_2.mp4':
     Metadata:
       major_brand     : mp42
       minor_version   : 1
       compatible_brands: mp41mp42isom
       creation_time   : 2019-08-28 15:28:45
     Duration: 00:03:12.49, start: 0.000000, bitrate: 10884 kb/s
       Stream #0:0(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 12 kb/s (default)
       Metadata:
         creation_time   : 2019-08-28 15:28:45
         handler_name    : Core Media Audio
       Stream #0:1(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 1280x720 [SAR 1:1 DAR 16:9], 10862 kb/s, 59.94 fps, 59.94 tbr, 60k tbn, 120k tbc (default)
       Metadata:
         creation_time   : 2019-08-28 15:28:45
         handler_name    : Core Media Video
    [STREAM]
    index=0
    codec_name=aac
    codec_long_name=AAC (Advanced Audio Coding)
    profile=LC
    codec_type=audio
    codec_time_base=1/48000
    codec_tag_string=mp4a
    codec_tag=0x6134706d
    sample_fmt=fltp
    sample_rate=48000
    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/48000
    start_pts=0
    start_time=0.000000
    duration_ts=9242624
    duration=192.554667
    bit_rate=12469
    max_bit_rate=128000
    bits_per_raw_sample=N/A
    nb_frames=9026
    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
    TAG:creation_time=2019-08-28 15:28:45
    TAG:language=eng
    TAG:handler_name=Core Media Audio
    [/STREAM]
    [STREAM]
    index=1
    codec_name=h264
    codec_long_name=H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
    profile=High
    codec_type=video
    codec_time_base=1/120000
    codec_tag_string=avc1
    codec_tag=0x31637661
    width=1280
    height=720
    coded_width=1280
    coded_height=720
    has_b_frames=0
    sample_aspect_ratio=1:1
    display_aspect_ratio=16:9
    pix_fmt=yuv420p
    level=32
    color_range=tv
    color_space=bt709
    color_transfer=bt709
    color_primaries=bt709
    chroma_location=left
    timecode=N/A
    refs=2
    is_avc=1
    nal_length_size=4
    id=N/A
    r_frame_rate=60000/1001
    avg_frame_rate=60000/1001
    time_base=1/60000
    start_pts=0
    start_time=0.000000
    duration_ts=11549538
    duration=192.492300
    bit_rate=10862370
    max_bit_rate=N/A
    bits_per_raw_sample=8
    nb_frames=11538
    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
    TAG:creation_time=2019-08-28 15:28:45
    TAG:language=und
    TAG:handler_name=Core Media Video
    [/STREAM]

    However, when I try to compress it through the following command :

    ffmpeg -y -i video.mp4 -vcodec h264 -crf 10 output.mp4

    the process just finishes super fast without any error but I get an empty file called output.mp4 (its dimension is 0KB).

    EDIT : Actually there is something which appears in the console (Even if it is not an error). The following :
    The encoder 'aac' is experimental but experimental codecs are not enabled, add '-strict -2' if you want to use it.

    I also tried with the following commands (changing codec etc.)

    ffmpeg -i video.mp4 output.mp4

    ffmpeg -y -i video.mp4 -vcodec copy -crf 10 output.mp4

    ffmpeg -i video.mp4 -vcodec libx264 -crf 10 output.mp4

    ffmpeg -i video.mp4 -vcodec libx265 -crf 10 output.mp4

    But I have always the same problem.

  • Error using PyDub : pcm_s8 codec not supported in WAVE format

    29 mai 2020, par thf9527

    Tried to read in a WAVE file.

    



    Pydub has been working perfectly for the past few months, until I have encountered a specific WAVE file format where I could not import into Python (but it has no issue while playing on windows media player and other players).

    



    from pydub import AudioSegment

file = r"NICE_Dev.wav"
print(utils.mediainfo(file))
try:
    data = AudioSegment.from_file(file)

except Exception as e:
    print(e)


    



    The error message is :

    



    ffmpeg version 4.1.3 Copyright (c) 2000-2019 the FFmpeg developers
  built with gcc 8.3.1 (GCC) 20190414
  configuration: --disable-static --enable-shared --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
Guessed Channel Layout for Input Stream #0.0 : mono
Input #0, wav, from 'NICE_Dev.wav':
  Duration: 00:25:55.39, bitrate: 64 kb/s
    Stream #0:0: Audio: pcm_mulaw ([7][0][0][0] / 0x0007), 8000 Hz, mono, s16, 64 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (pcm_mulaw (native) -> pcm_s8 (native))
Press [q] to stop, [?] for help
[wav @ 00000265db3c1bc0] pcm_s8 codec not supported in WAVE format
Could not write header for output file #0 (incorrect codec parameters ?): Function not implemented
Error initializing output stream 0:0 -- 
Conversion failed!


    



    I believe it is due to the encoding pcm_s8, but I could not figure out how to solve this issue, the details of the audio file using "utils.mediainfo" is :

    



    {'index': '0', 'codec_name': 'pcm_mulaw', 'codec_long_name': 'PCM mu-law / 
G.711 mu-law', 'profile': 'unknown', 'codec_type': 'audio', 'codec_time_base': 
'1/8000', 'codec_tag_string': '[7][0][0][0]', 'codec_tag': '0x0007', 
'sample_fmt': 's16', 'sample_rate': '8000', 'channels': '1', 'channel_layout': 
'unknown', 'bits_per_sample': '8', 'id': 'N/A', 'r_frame_rate': '0/0', 
'avg_frame_rate': '0/0', 'time_base': '1/8000', 'start_pts': 'N/A', 
'start_time': 'N/A', 'duration_ts': '12443128', 'duration': '1555.391000', 
'bit_rate': '64000', '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', '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': 'NICE_Dev.wav', 'nb_streams': '1', 
'nb_programs': '0', 'format_name': 'wav', 'format_long_name': 'WAV / WAVE 
(Waveform Audio)', 'size': '12443174', 'probe_score': '99'}


    


  • DivX audio not decoded on DVD player

    8 août 2019, par Shaul

    Moved to https://video.stackexchange.com/questions/28225/divx-audio-not-decoded-on-dvd-player

    I am converting MP4 movie into AVI/DivX format. I plan to copy the AVI to a USB memory stick and plug it into my DVD player. My player is a Pioneer 3052 that supports USB input.

    I convert the file using ffmpeg without error messages. The output file is played correctly on my computer, including audio. I use "Movies & TVs" and "DIVX Player" for testing.

    When I try running it on my Pioneer the video and the subtitles are ok but there’s no audio. I know that there’s no issues with the hardware because videos converted with "FreeMake Video converter" do play audio.

    My command line is :

    .\ffmpeg.exe  "-i INFILE -c:v mpeg4 -vtag xvid -qscale:v 3 -c:a libmp3lame  -vf "scale=720:576:force_original_aspect_ratio=decrease,pad=720:576:(ow-iw)/2:(oh-ih)/2","subtitles=f=SRTFILE:charenc=ISO-8859-8:force_style=PrimaryColour=&H0000FFFF,Fontsize=16" OUTFILE

    I also experimented with -b:a 192k, -b:a 96k and -qscale:a 4 all leading to the same results.

    I wander what else to try.
    I add the report produced by ffprobe (for the output file) :

    [STREAM]
    index=0
    codec_name=mpeg4
    codec_long_name=MPEG-4 part 2
    profile=Simple Profile
    codec_type=video
    codec_time_base=1001/24000
    codec_tag_string=xvid
    codec_tag=0x64697678
    width=720
    height=576
    coded_width=720
    coded_height=576
    has_b_frames=0
    sample_aspect_ratio=1:1
    display_aspect_ratio=5:4
    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=24000/1001
    avg_frame_rate=24000/1001
    time_base=1001/24000
    start_pts=0
    start_time=0.000000
    duration_ts=163203
    duration=6806.925125
    bit_rate=1243432
    max_bit_rate=N/A
    bits_per_raw_sample=N/A
    nb_frames=163203
    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=mp3
    codec_long_name=MP3 (MPEG audio layer 3)
    profile=unknown
    codec_type=audio
    codec_time_base=1/48000
    codec_tag_string=U[0][0][0]
    codec_tag=0x0055
    sample_fmt=fltp
    sample_rate=48000
    channels=2
    channel_layout=stereo
    bits_per_sample=0
    id=N/A
    r_frame_rate=0/0
    avg_frame_rate=0/0
    time_base=3/125
    start_pts=0
    start_time=0.000000
    duration_ts=283622
    duration=6806.928000
    bit_rate=192000
    max_bit_rate=N/A
    bits_per_raw_sample=N/A
    nb_frames=283622
    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]
    [FORMAT]
    filename=H:\Movies\Memento.avi
    nb_streams=2
    nb_programs=0
    format_name=avi
    format_long_name=AVI (Audio Video Interleaved)
    start_time=0.000000
    duration=6806.928000
    size=1235006020
    bit_rate=1451469
    probe_score=100
    TAG:encoder=Lavf58.20.100
    [/FORMAT]

    EDIT :
    I add an example of a movie that is OK on this DVD player :

    [STREAM]
    index=0
    codec_name=mpeg4
    codec_long_name=MPEG-4 part 2
    profile=Advanced Simple Profile
    codec_type=video
    codec_time_base=1001/24000
    codec_tag_string=XVID
    codec_tag=0x44495658
    width=576
    height=432
    coded_width=576
    coded_height=432
    has_b_frames=1
    sample_aspect_ratio=1:1
    display_aspect_ratio=4:3
    pix_fmt=yuv420p
    level=5
    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=24000/1001
    avg_frame_rate=24000/1001
    time_base=1001/24000
    start_pts=0
    start_time=0.000000
    duration_ts=134521
    duration=5610.646708
    bit_rate=943851
    max_bit_rate=N/A
    bits_per_raw_sample=N/A
    nb_frames=134521
    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=mp3
    codec_long_name=MP3 (MPEG audio layer 3)
    profile=unknown
    codec_type=audio
    codec_time_base=1/48000
    codec_tag_string=U[0][0][0]
    codec_tag=0x0055
    sample_fmt=fltp
    sample_rate=48000
    channels=2
    channel_layout=stereo
    bits_per_sample=0
    id=N/A
    r_frame_rate=0/0
    avg_frame_rate=0/0
    time_base=3/125
    start_pts=0
    start_time=0.000000
    duration_ts=233777
    duration=5610.648000
    bit_rate=91176
    max_bit_rate=N/A
    bits_per_raw_sample=N/A
    nb_frames=233777
    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]
    [FORMAT]
    filename=H:\Honey.I.Shrunk.The.Kids.1989.FS.DVDRip.XViD.iNT-EwDp.HebSub.www.Moridim.tv.avi
    nb_streams=2
    nb_programs=0
    format_name=avi
    format_long_name=AVI (Audio Video Interleaved)
    start_time=0.000000
    duration=5610.648000
    size=734808064
    bit_rate=1047733
    probe_score=100
    TAG:encoder=VirtualDubMod 1.5.10.2 (build 2540/release)
    [/FORMAT]