Recherche avancée

Médias (91)

Autres articles (61)

  • Submit bugs and patches

    13 avril 2011

    Unfortunately a software is never perfect.
    If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
    If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
    You may also (...)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

Sur d’autres sites (3240)

  • ffmpeg messing up audio when copying PCM streams

    2 juin 2022, par lioumens

    I'm using ffmpeg to compress videos, but when trying to copy the audio stream from one video file using the same codec and container, the audio is completely corrupted and unusable.

    


    The video I'm trying to compress has stream data :

    


    $ ffprobe -hide_banner -i testing.mov
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'testing.mov':
  Metadata:
    major_brand     : qt
    minor_version   : 0
    compatible_brands: qt
    creation_time   : 2019-04-25T05:37:35.000000Z
    com.apple.quicktime.make: Apple
    com.apple.quicktime.model: MacBookPro15,2
    com.apple.quicktime.software: Mac OS X 10.14.2 (18C54)
    com.apple.quicktime.creationdate: 2019-04-25T00:28:40-0500
  Duration: 00:06:35.75, start: 0.000000, bitrate: 66117 kb/s
  Stream #0:0[0x1](und): Video: prores (Standard) (apcn / 0x6E637061), yuv422p10le(tv, smpte170m/bt709/bt709, progressive), 1280x720, 65923 kb/s, 29.01 fps, 29.01 tbr, 30k tbn (default)
    Metadata:
      creation_time   : 2019-04-25T05:37:35.000000Z
      handler_name    : Core Media Video
      vendor_id       : appl
      encoder         : Apple ProRes 422
  Stream #0:1[0x2](und): Audio: pcm_s16be (lpcm / 0x6D63706C), 8000 Hz, 1 channels, s16, 128 kb/s (default)
    Metadata:
      creation_time   : 2019-04-25T05:37:35.000000Z
      handler_name    : Core Media Audio
      vendor_id       : [0][0][0][0]


    


    Just working with the audio, I tried to copy the audio into a separate file with ffmpeg -i testing.mov -vn -channel_layout mono -c:a copy tmp.mov, which results in a video file with stream data :

    


    $ ffprobe -hide_banner -i tmp.mov
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'tmp.mov':
  Metadata:
    major_brand     : qt
    minor_version   : 512
    compatible_brands: qt
    encoder         : Lavf59.16.100
  Duration: 00:06:35.26, start: 0.018000, bitrate: 128 kb/s
  Stream #0:0[0x1]: Audio: pcm_s16be (twos / 0x736F7774), 8000 Hz, mono, s16, 128 kb/s (default)
    Metadata:
      handler_name    : Core Media Audio
      vendor_id       : [0][0][0][0]


    


    It seems the only difference when copying the audio is the original says pcm_s16be (lpcm / 0x6D63706C) while the resulting audio has pcm_s16be (twos / 0x736F7774). My understanding is that twos is Apple Quicktime's FOURCC identifier for signed 16 bit big-endian., which is correct and shouldn't affect the audio.

    


    It seems another forum user had a similar issue, but they were using a hex editor to directly manipulate bits, which I'm not comfortable doing. Is there a fix from within ffmpeg ?

    


    EDIT :
I've uploaded a sample of the clip that has this problem.

    


  • How to generate pcm audio file by setting 20 bit depth ?

    6 juillet 2015, par vip007

    No option using ffmpeg

    I am using ffmpeg to generate audio data. I am using following command

    ffmpeg.exe -i in.wav -ar 44100  -acodec pcm_s16le  -ac 1 out.wav

    but there is no option to convert to 20 bit depth pcm audio. (something like pcm_s20le).

    I want to perform some operations on apple codec (e.g. encoding pcm audio data to alac).

    On ALAC source : http://alac.macosforge.org/trac/browser/trunk/ReadMe.txt , it has been mentioned like this ;

    Apple Lossless supports the following features
    1. Bit depths 16, 20, 24 and 32 bits.

    Media Foundation on windows throwing exception for 20 bit depth

    I tried sample encoding and transcoding application mentioned on MSDN https://code.msdn.microsoft.com/windowsapps/media-transcode-sample-f7ba5269

    with following configuration but it failed

    spTypeOut->SetUINT32(MF_MT_AUDIO_BITS_PER_SAMPLE, 20);  

    NOTE : but i put 16 instead of 20 ; it created smoothly.

    Is there any way to generate such 20 bit PCM audio ? What is so special about 20 bit depth that it is not being considered on ffmpeg and media foundation but on apple codec ?

  • ffmpeg export multichannel audio -map

    8 avril 2014, par speedyrazor

    I am trying to export all audio channels from a multichannel quicktime file with ffmpeg which has the following audio configuration, but am unsure if the command below is correct. All the files look and play correct in Quicktime player except the L+R_Total.wav which refuses to play in Quicktime player but plays fine in VLC, so not sure if i'm using the wrong command :

    Track 1 - mono
    Track 2 - mono
    Track 3 - mono
    Track 4 - mono
    Track 5 - mono
    Track 6 - mono
    Track 7 - stereo

    I am using :

    /Users/me/Desktop/python/ffmpeg/ffmpeg -i /Users/me/Desktop/test.mov -acodec pcm_s24le -map 0:1 -y Left.wav -acodec pcm_s24le -map 0:2 Right.wav -acodec pcm_s24le -map 0:3 Center.wav -acodec pcm_s24le -map 0:4 LFE.wav -acodec pcm_s24le -map 0:5 Left_Surround.wav -acodec pcm_s24le -map 0:6 Right_Surround.wav -acodec pcm_s24le -map 0:7 Left+Right_Total.wav

    Here is the printout from the terminal :

       MacBook-Pro:~ me$ /Users/me/Desktop/python/ffmpeg/ffmpeg -i /Users/me/Desktop/test.mov -acodec pcm_s24le -map 0:1 -y Left.wav -acodec pcm_s24le -map 0:2 Right.wav -acodec pcm_s24le -map 0:3 Center.wav -acodec pcm_s24le -map 0:4 LFE.wav -acodec pcm_s24le -map 0:5 Left_Surround.wav -acodec pcm_s24le -map 0:6 Right_Surround.wav -acodec pcm_s24le -map 0:7 Left+Right_Total.wav
    ffmpeg version 2.2 Copyright (c) 2000-2014 the FFmpeg developers
     built on Mar 25 2014 15:00:55 with llvm-gcc 4.2.1 (LLVM build 2336.11.00)
     configuration: --prefix=/Volumes/Ramdisk/sw --enable-gpl --enable-pthreads --enable-version3 --enable-libspeex --enable-libvpx --disable-decoder=libvpx --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-avfilter --enable-libopencore_amrwb --enable-libopencore_amrnb --enable-filters --enable-libgsm --arch=x86_64 --enable-runtime-cpudetect
     libavutil      52. 66.100 / 52. 66.100
     libavcodec     55. 52.102 / 55. 52.102
     libavformat    55. 33.100 / 55. 33.100
     libavdevice    55. 10.100 / 55. 10.100
     libavfilter     4.  2.100 /  4.  2.100
     libswscale      2.  5.102 /  2.  5.102
     libswresample   0. 18.100 /  0. 18.100
     libpostproc    52.  3.100 / 52.  3.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/me/Desktop/test.mov':
     Metadata:
       major_brand     : qt  
       minor_version   : 537199360
       compatible_brands: qt  
       creation_time   : 2014-03-06 11:25:34
     Duration: 00:01:03.48, start: 0.000000, bitrate: 153967 kb/s
       Stream #0:0(eng): Video: prores (apch / 0x68637061), yuv422p10le, 1920x1080, 144704 kb/s, SAR 1:1 DAR 16:9, 23.98 fps, 23.98 tbr, 23976 tbn, 23976 tbc (default)
       Metadata:
         creation_time   : 2014-03-06 11:25:34
         handler_name    : Apple Alias Data Handler
         timecode        : 00:00:00:00
       Stream #0:1(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, 1 channels (FL), s32, 1152 kb/s (default)
       Metadata:
         creation_time   : 2014-03-06 11:25:34
         handler_name    : Apple Alias Data Handler
       Stream #0:2(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, 1 channels (FR), s32, 1152 kb/s (default)
       Metadata:
         creation_time   : 2014-03-06 11:25:34
         handler_name    : Apple Alias Data Handler
       Stream #0:3(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, mono, s32, 1152 kb/s (default)
       Metadata:
         creation_time   : 2014-03-06 11:25:34
         handler_name    : Apple Alias Data Handler
       Stream #0:4(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, 1 channels (LFE), s32, 1152 kb/s (default)
       Metadata:
         creation_time   : 2014-03-06 11:25:34
         handler_name    : Apple Alias Data Handler
       Stream #0:5(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, 1 channels (BL), s32, 1152 kb/s (default)
       Metadata:
         creation_time   : 2014-03-06 11:25:34
         handler_name    : Apple Alias Data Handler
       Stream #0:6(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, 1 channels (BR), s32, 1152 kb/s (default)
       Metadata:
         creation_time   : 2014-03-06 11:25:34
         handler_name    : Apple Alias Data Handler
       Stream #0:7(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, downmix, s32, 2304 kb/s (default)
       Metadata:
         creation_time   : 2014-03-06 11:25:34
         handler_name    : Apple Alias Data Handler
       Stream #0:8(eng): Data: none (tmcd / 0x64636D74) (default)
       Metadata:
         creation_time   : 2014-03-06 11:26:04
         handler_name    : Apple Alias Data Handler
         timecode        : 00:00:00:00
    Output #0, wav, to 'Left.wav':
     Metadata:
       major_brand     : qt  
       minor_version   : 537199360
       compatible_brands: qt  
       ISFT            : Lavf55.33.100
       Stream #0:0(eng): Audio: pcm_s24le ([1][0][0][0] / 0x0001), 48000 Hz, 1 channels (FL), s32, 1152 kb/s (default)
       Metadata:
         creation_time   : 2014-03-06 11:25:34
         handler_name    : Apple Alias Data Handler
    Output #1, wav, to 'Right.wav':
     Metadata:
       major_brand     : qt  
       minor_version   : 537199360
       compatible_brands: qt  
       ISFT            : Lavf55.33.100
       Stream #1:0(eng): Audio: pcm_s24le ([1][0][0][0] / 0x0001), 48000 Hz, 1 channels (FR), s32, 1152 kb/s (default)
       Metadata:
         creation_time   : 2014-03-06 11:25:34
         handler_name    : Apple Alias Data Handler
    Output #2, wav, to 'Center.wav':
     Metadata:
       major_brand     : qt  
       minor_version   : 537199360
       compatible_brands: qt  
       ISFT            : Lavf55.33.100
       Stream #2:0(eng): Audio: pcm_s24le ([1][0][0][0] / 0x0001), 48000 Hz, mono, s32, 1152 kb/s (default)
       Metadata:
         creation_time   : 2014-03-06 11:25:34
         handler_name    : Apple Alias Data Handler
    Output #3, wav, to 'LFE.wav':
     Metadata:
       major_brand     : qt  
       minor_version   : 537199360
       compatible_brands: qt  
       ISFT            : Lavf55.33.100
       Stream #3:0(eng): Audio: pcm_s24le ([1][0][0][0] / 0x0001), 48000 Hz, 1 channels (LFE), s32, 1152 kb/s (default)
       Metadata:
         creation_time   : 2014-03-06 11:25:34
         handler_name    : Apple Alias Data Handler
    Output #4, wav, to 'Left_Surround.wav':
     Metadata:
       major_brand     : qt  
       minor_version   : 537199360
       compatible_brands: qt  
       ISFT            : Lavf55.33.100
       Stream #4:0(eng): Audio: pcm_s24le ([1][0][0][0] / 0x0001), 48000 Hz, 1 channels (BL), s32, 1152 kb/s (default)
       Metadata:
         creation_time   : 2014-03-06 11:25:34
         handler_name    : Apple Alias Data Handler
    Output #5, wav, to 'Right_Surround.wav':
     Metadata:
       major_brand     : qt  
       minor_version   : 537199360
       compatible_brands: qt  
       ISFT            : Lavf55.33.100
       Stream #5:0(eng): Audio: pcm_s24le ([1][0][0][0] / 0x0001), 48000 Hz, 1 channels (BR), s32, 1152 kb/s (default)
       Metadata:
         creation_time   : 2014-03-06 11:25:34
         handler_name    : Apple Alias Data Handler
    Output #6, wav, to 'Left+Right_Total.wav':
     Metadata:
       major_brand     : qt  
       minor_version   : 537199360
       compatible_brands: qt  
       ISFT            : Lavf55.33.100
       Stream #6:0(eng): Audio: pcm_s24le ([1][0][0][0] / 0x0001), 48000 Hz, downmix, s32, 2304 kb/s (default)
       Metadata:
         creation_time   : 2014-03-06 11:25:34
         handler_name    : Apple Alias Data Handler
    Stream mapping:
     Stream #0:1 -> #0:0 (pcm_s24le -> pcm_s24le)
     Stream #0:2 -> #1:0 (pcm_s24le -> pcm_s24le)
     Stream #0:3 -> #2:0 (pcm_s24le -> pcm_s24le)
     Stream #0:4 -> #3:0 (pcm_s24le -> pcm_s24le)
     Stream #0:5 -> #4:0 (pcm_s24le -> pcm_s24le)
     Stream #0:6 -> #5:0 (pcm_s24le -> pcm_s24le)
     Stream #0:7 -> #6:0 (pcm_s24le -> pcm_s24le)
    Press [q] to stop, [?] for help
    size=    8927kB time=00:01:03.48 bitrate=1152.0kbits/s    
    video:0kB audio:71415kB subtitle:0 data:0 global headers:0kB muxing overhead -87.499863%