Recherche avancée

Médias (39)

Mot : - Tags -/audio

Autres articles (55)

  • 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 (6727)

  • Files dissapearing with ffmpeg recursive conversion

    13 août 2014, par CaRoXo

    I started in askubuntu, asking for a way to convert recursively more than 14K of wma to mp3 extracting the wma files path from a txt file.
    There was an answer that could cover my needs, but a bug appears. The first run with some hundreds worked ok. The second, some wma albums got converted, others entirely deleted. There were some modifications. And last time completely, deleted all wma without converting.

    this was the original script

    #!/usr/bin/env bash

    readarray -t files < wma-files.txt

    for file in "${files[@]}"; do
       out=`echo $file | sed "s:wma:mp3:"`
       probe=`avprobe -show_streams "$file" 2>/dev/null`
       rate=`echo "$probe" | grep "bit_rate" | sed "s:.*=\(.*\)[0-9][0-9][0-9][.].*:\1:"`
       avconv -i "$file" -ab "$rate"k "$out"
       rm "$file"
    done

    Then the adaptation with ffmpeg

    #!/usr/bin/env bash

    readarray -t files < wma-files.txt

    for file in "${files[@]}"; do
       out=`echo $file | sed "s:wma:mp3:"`
       probe=`avprobe -show_streams "$file" 2>/dev/null`
       rate=`echo "$probe" | grep "bit_rate" | sed "s:.*=\(.*\)[0-9][0-9][0-9][.].*:\1:"`
       ffmpeg -i "$file" -ab "$rate"k "$out" && rm "$file"
    done

    With the first one I converted many files. Other just get deleted. The ones deleted were always the same release (so, all tracks from a release). I can listen, and even convert them with Soundkonverter.

    Both of them produces "no such file of directory" and when this happens, everything get deleted.

    The partition where files are stored is a usb HDD ntfs, but also happens in my ext4 internal HD.
    Im under Xubuntu 14.04

    Here the script running with avconv (wich what i managed to convert some, but other get dissapeared) http://pastebin.com/w5weqEws and with ffmpeg (that didn’t convert any) http://pastebin.com/3QkaPzvW

    I can’t find differences between successfully and deleted original wma’s. But for example, while other progs like beets read and write the tags, puddletag and mp3tag (under wine) don’t, until I converted them with soundkonverter.

    As the person trying to help me there redirect me here on the original post http://askubuntu.com/questions/508278/how-to-use-ffmpeg-to-convert-wma-to-mp3-recursively-importing-from-txt-file/508304#508304
    Im here asking for any help to make run an script like this. Or any to use ffmpeg to convert recursively the audio files. My capacity of understanding is short for being able to make something working just reading the docs.

    So I ask a help to run this. If I miss any relevant information, just tell me.

    NOTE : I want to add that doing the conversion with

    for file in "${files[@]}"; do
       out=`echo "$file" | sed s:wma:mp3:`
       avconv -i "$file" -ab 192k "$out"
       rm "$file"
    done

    It works in the same files (the ones that are deleted with the other). Only that it makes everything to 192k, so not good if Im converting lower bitrate ones. And get this error "Application provided invalid, non monotonically increasing dts to muxer in stream 0" that seems something typical from avconv in 14.04. With ffmpeg I cant try becouse I don’t find the way how to use it, even out of the script. I really don’t understand the docs seems
    .

    NOTE2 : This is a mediainfo exit from :

    1- A typical wma that get dissapeared always with the script

    Audio
    ID                                       : 1
    Format                                   : WMA
    Format version                           : Version 2
    Codec ID                                 : 161
    Codec ID/Info                            : Windows Media Audio
    Description of the codec                 : Windows Media Audio 9 - 128 kbps, 44 kHz, stereo 1-pass CBR
    Duration                                 : 2mn 25s
    Bit rate mode                            : Constant
    Bit rate                                 : 128 Kbps
    Channel(s)                               : 2 channels
    Sampling rate                            : 44.1 KHz
    Bit depth                                : 16 bits
    Stream size                              : 2.21 MiB (99%)
    Language                                 : English (US)

    2- A Wma that got succesfully converted (yes Im using copies now, I cant risk specially some rares audios that I got on the road)

    Audio
    ID                                       : 1
    Format                                   : WMA
    Format version                           : Version 2
    Codec ID                                 : 161
    Codec ID/Info                            : Windows Media Audio
    Description of the codec                 : Windows Media Audio 9 - 128 kbps, 44 kHz, stereo 1-pass CBR
    Duration                                 : 4mn 35s
    Bit rate mode                            : Constant
    Bit rate                                 : 128 Kbps
    Channel(s)                               : 2 channels
    Sampling rate                            : 44.1 KHz
    Bit depth                                : 16 bits
    Stream size                              : 4.21 MiB (99%)
    Language                                 : English (US)

    So, as I don’t see difference, but maybe, I’m losing any data to look into ?

  • HLS MP4 Independent Segments

    18 juillet 2017, par Mido

    Long story short : Why HLS can’t just play normal MP4 files together one after one ? Why need to segment media file into .ts segments ?

    Details :

    We’ve segmented MP4 file into mini MP4 segments (not TS), each one about 30 seconds for testing. It never plays in any HLS player, just loading all segment files then nothing happens.

    Example MP4 segment Info :

    Format                      : MPEG-4
    Format profile              : Base Media
    Codec ID                    : isom
    File size                   : 1.44 MiB
    Duration                    : 32s 950ms
    Overall bit rate            : 366 Kbps
    Writing application         : Lavf56.25.101

    Video
    ID                          : 1
    Format                      : AVC
    Format/Info                 : Advanced Video Codec
    Format profile              : High@L4.1
    Format settings, CABAC      : Yes
    Format settings, ReFrames   : 6 frames
    Codec ID                    : avc1
    Codec ID/Info               : Advanced Video Coding
    Duration                    : 32s 950ms
    Bit rate                    : 230 Kbps
    Width                       : 426 pixels
    Height                      : 240 pixels
    Display aspect ratio        : 16:9
    Original display aspect rat : 16:9
    Frame rate mode             : Constant
    Frame rate                  : 23.976 fps
    Color space                 : YUV
    Chroma subsampling          : 4:2:0
    Bit depth                   : 8 bits
    Scan type                   : Progressive
    Bits/(Pixel*Frame)          : 0.094
    Stream size                 : 925 KiB (63%)
    Writing library             : x264 core 142 r2495 6a301b6

    Audio
    ID                          : 2
    Format                      : AAC
    Format/Info                 : Advanced Audio Codec
    Format profile              : LC
    Codec ID                    : 40
    Duration                    : 32s 896ms
    Bit rate mode               : Constant
    Bit rate                    : 129 Kbps
    Channel(s)                  : 2 channels
    Channel(s)_Original         : 6 channels
    Channel positions           : Front: L C R, Side: L R, LFE
    Sampling rate               : 48.0 KHz
    Compression mode            : Lossy
    Stream size                 : 517 KiB (35%)

    The Master M3U8 :

    #EXTM3U
    #EXT-X-VERSION:7
    #EXT-X-INDEPENDENT-SEGMENTS

    #EXT-X-STREAM-INF:RESOLUTION=426x240,BANDWIDTH=370000,CODECS="avc1.640015,mp4a.40.2"
    240p.m3u8

    #EXT-X-STREAM-INF:RESOLUTION=640x360,BANDWIDTH=580000,CODECS="avc1.640015,mp4a.40.2"
    360p.m3u8

    #EXT-X-STREAM-INF:RESOLUTION=896x504,BANDWIDTH=900000,CODECS="avc1.640015,mp4a.40.2"
    480p.m3u8

    #EXT-X-STREAM-INF:RESOLUTION=1280x720,BANDWIDTH=1500000,CODECS="avc1.640015,mp4a.40.2"
    720p.m3u8

    240p.m3u8

    #EXTM3U
    #EXT-X-VERSION:7
    #EXT-X-MEDIA-SEQUENCE:0
    #EXT-X-PLAYLIST-TYPE:VOD
    #EXT-X-TARGETDURATION:34

    #EXTINF:33.033033,
    240p000.mp4
    #EXTINF:33.533534,
    240p001.mp4
    #EXTINF:24.941608,
    240p002.mp4
    #EXTINF:28.611945,
    240p003.mp4
    #EXT-X-ENDLIST

    When tested with HLS.js, gives this error :

    Parsing Error:no demux matching with content found,cannot recover,
    last media error recovery failed ...

    Bitmovin Player : loads all segments of all variants and never plays any of them. just stop.

    Tested on Chrome & Firefox On Windows, Safari on Mac, Android and iPad Browsers. Never works on any of them. Are we doing anything wrong ?!

  • HLS MP4 Independent Segments

    7 décembre 2016, par Mido

    Long story short : Why HLS can’t just play normal MP4 files together one after one ? Why need to segment media file into .ts segments ?

    Details :

    We’ve segmented MP4 file into mini MP4 segments (not TS), each one about 30 seconds for testing. It never plays in any HLS player, just loading all segment files then nothing happens.

    Example MP4 segment Info :

    Format                      : MPEG-4
    Format profile              : Base Media
    Codec ID                    : isom
    File size                   : 1.44 MiB
    Duration                    : 32s 950ms
    Overall bit rate            : 366 Kbps
    Writing application         : Lavf56.25.101

    Video
    ID                          : 1
    Format                      : AVC
    Format/Info                 : Advanced Video Codec
    Format profile              : High@L4.1
    Format settings, CABAC      : Yes
    Format settings, ReFrames   : 6 frames
    Codec ID                    : avc1
    Codec ID/Info               : Advanced Video Coding
    Duration                    : 32s 950ms
    Bit rate                    : 230 Kbps
    Width                       : 426 pixels
    Height                      : 240 pixels
    Display aspect ratio        : 16:9
    Original display aspect rat : 16:9
    Frame rate mode             : Constant
    Frame rate                  : 23.976 fps
    Color space                 : YUV
    Chroma subsampling          : 4:2:0
    Bit depth                   : 8 bits
    Scan type                   : Progressive
    Bits/(Pixel*Frame)          : 0.094
    Stream size                 : 925 KiB (63%)
    Writing library             : x264 core 142 r2495 6a301b6

    Audio
    ID                          : 2
    Format                      : AAC
    Format/Info                 : Advanced Audio Codec
    Format profile              : LC
    Codec ID                    : 40
    Duration                    : 32s 896ms
    Bit rate mode               : Constant
    Bit rate                    : 129 Kbps
    Channel(s)                  : 2 channels
    Channel(s)_Original         : 6 channels
    Channel positions           : Front: L C R, Side: L R, LFE
    Sampling rate               : 48.0 KHz
    Compression mode            : Lossy
    Stream size                 : 517 KiB (35%)

    The Master M3U8 :

    #EXTM3U
    #EXT-X-VERSION:7
    #EXT-X-INDEPENDENT-SEGMENTS

    #EXT-X-STREAM-INF:RESOLUTION=426x240,BANDWIDTH=370000,CODECS="avc1.640015,mp4a.40.2"
    240p.m3u8

    #EXT-X-STREAM-INF:RESOLUTION=640x360,BANDWIDTH=580000,CODECS="avc1.640015,mp4a.40.2"
    360p.m3u8

    #EXT-X-STREAM-INF:RESOLUTION=896x504,BANDWIDTH=900000,CODECS="avc1.640015,mp4a.40.2"
    480p.m3u8

    #EXT-X-STREAM-INF:RESOLUTION=1280x720,BANDWIDTH=1500000,CODECS="avc1.640015,mp4a.40.2"
    720p.m3u8

    240p.m3u8

    #EXTM3U
    #EXT-X-VERSION:7
    #EXT-X-MEDIA-SEQUENCE:0
    #EXT-X-PLAYLIST-TYPE:VOD
    #EXT-X-TARGETDURATION:34

    #EXTINF:33.033033,
    240p000.mp4
    #EXTINF:33.533534,
    240p001.mp4
    #EXTINF:24.941608,
    240p002.mp4
    #EXTINF:28.611945,
    240p003.mp4
    #EXT-X-ENDLIST

    When tested with HLS.js, gives this error :

    Parsing Error:no demux matching with content found,cannot recover,
    last media error recovery failed ...

    Bitmovin Player : loads all segments of all variants and never plays any of them. just stop.

    Tested on Chrome & Firefox On Windows, Safari on Mac, Android and iPad Browsers. Never works on any of them. Are we doing anything wrong ?!