Recherche avancée

Médias (91)

Autres articles (29)

  • Librairies et binaires spécifiques au traitement vidéo et sonore

    31 janvier 2010, par

    Les logiciels et librairies suivantes sont utilisées par SPIPmotion d’une manière ou d’une autre.
    Binaires obligatoires FFMpeg : encodeur principal, permet de transcoder presque tous les types de fichiers vidéo et sonores dans les formats lisibles sur Internet. CF ce tutoriel pour son installation ; Oggz-tools : outils d’inspection de fichiers ogg ; Mediainfo : récupération d’informations depuis la plupart des formats vidéos et sonores ;
    Binaires complémentaires et facultatifs flvtool2 : (...)

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

  • De l’upload à la vidéo finale [version standalone]

    31 janvier 2010, par

    Le chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
    Upload et récupération d’informations de la vidéo source
    Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
    Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...)

Sur d’autres sites (4673)

  • Remove portion of some frames from a video

    21 janvier 2020, par FlafyMation

    Here is what I’m trying to do :
    Imagine a video with 10 frames (0 = 1 frame)

    0 0 0 0 0 0 0 0 0 0

    with some frames selected(1 = 1 selected frame)

    0 1 1 1 0 0 0 0 0 0

    and the end results should be this(all selected frames got removed from the video)

    0 0 0 0 0 0 0

    this is what I’m trying to do in python(with frames not times). Does anybody knows how I can do that ?

  • FFmpeg : av_interleaved_write_frame doesn't detect failure for TLS output

    15 mars 2017, par DanielB6

    How can I detect failure from av_interleaved_write_frame/av_write_frame when the output uses TLS and the connection fails ? Both functions continue to return 0 after the destination becomes unavailable. When TLS isn’t used, the functions detect the failure immediately and return -ve return codes.

    TLS output :

    av_interleaved_write_frame st.tb=90000, result=0

    Non-TLS output :

    av_interleaved_write_frame failed result=-32 - Broken pipe

    This behaviour can also be demonstrated using the command-line tool.

    Expected Result for plain connection - Connection failure terminates program :

    $ ffmpeg -rtsp_transport tcp -i rtsp://:554... -vcodec copy -an -f rtsp "rtsp://:1935..."
    ffmpeg version N-68044-g9f9440b Copyright (c) 2000-2014 the FFmpeg developers
     built on Nov 27 2014 03:13:44 with gcc 4.9.2 (GCC)
     configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-decklink --enable-zlib
     libavutil      54. 15.100 / 54. 15.100
     libavcodec     56. 13.100 / 56. 13.100
     libavformat    56. 15.100 / 56. 15.100
     libavdevice    56.  3.100 / 56.  3.100
     libavfilter     5.  2.103 /  5.  2.103
     libswscale      3.  1.101 /  3.  1.101
     libswresample   1.  1.100 /  1.  1.100
     libpostproc    53.  3.100 / 53.  3.100
    Input #0, rtsp, from 'rtsp://:554...':
     Metadata:
       title           : Media Presentation
       comment         : <comment>
     Duration: N/A, start: 0.011000, bitrate: N/A
       Stream #0:0: Video: h264 (High), yuv420p, 1920x1080, 30 tbr, 90k tbn, 180k tbc
       Stream #0:1: Data: none
    Output #0, rtsp, to 'rtsp://:1935...':
     Metadata:
       title           : Media Presentation
       comment         : <comment>
       encoder         : Lavf56.15.100
       Stream #0:0: Video: h264, yuv420p, 1920x1080, q=2-31, 90k tbn, 90k tbc
    Stream mapping:
     Stream #0:0 -> #0:0 (copy)
    Press [q] to stop, [?] for help
    [rtsp @ 0000000004d4e940] Non-monotonous DTS in output stream 0:0; previous: 0, current: 0; changing to 1. This may result in incorrect timestamps in the output file.
    av_interleaved_write_frame(): Broken pipe00:00:15.71 bitrate=N/A
    frame=  476 fps= 33 q=-1.0 Lsize=N/A time=00:00:15.77 bitrate=N/A
    video:2178kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
    Conversion failed!
    $
    </comment></comment>

    Unexpected result for TLS connection - Program continues to run, although it knows something is wrong :

    $ ffmpeg -rtsp_transport tcp -i rtsp://:554... -vcodec copy -an -f rtsp "rtsps://:443..."
    ffmpeg version N-68044-g9f9440b Copyright (c) 2000-2014 the FFmpeg developers
     built on Nov 27 2014 03:13:44 with gcc 4.9.2 (GCC)
     configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-decklink --enable-zlib
     libavutil      54. 15.100 / 54. 15.100
     libavcodec     56. 13.100 / 56. 13.100
     libavformat    56. 15.100 / 56. 15.100
     libavdevice    56.  3.100 / 56.  3.100
     libavfilter     5.  2.103 /  5.  2.103
     libswscale      3.  1.101 /  3.  1.101
     libswresample   1.  1.100 /  1.  1.100
     libpostproc    53.  3.100 / 53.  3.100
    Input #0, rtsp, from 'rtsp://:554...':
     Metadata:
       title           : Media Presentation
       comment         : <comment>
     Duration: N/A, start: 0.025000, bitrate: N/A
       Stream #0:0: Video: h264 (High), yuv420p, 1920x1080, 30 tbr, 90k tbn, 180k tbc
       Stream #0:1: Data: none
    Output #0, rtsp, to 'rtsps://:443...':
     Metadata:
       title           : Media Presentation
       comment         : <comment>
       encoder         : Lavf56.15.100
       Stream #0:0: Video: h264, yuv420p, 1920x1080, q=2-31, 90k tbn, 90k tbc
    Stream mapping:
     Stream #0:0 -> #0:0 (copy)
    Press [q] to stop, [?] for help
    [rtsp @ 0000000002d5aa20] Non-monotonous DTS in output stream 0:0; previous: 0, current: 0; changing to 1. This may result in incorrect timestamps in the output file.
    [tls @ 00000000056adc00] Error in the push function. bitrate=N/A
    [tls @ 00000000056adc00] The specified session has been invalidated for some reason.
       Last message repeated 2 times
    [tls @ 00000000056adc00] The specified session has been invalidated for some reason.
       Last message repeated 31 times
    [tls @ 00000000056adc00] The specified session has been invalidated for some reason.
       Last message repeated 89 times
    [tls @ 00000000056adc00] The specified session has been invalidated for some reason.
       Last message repeated 30 times
    [tls @ 00000000056adc00] The specified session has been invalidated for some reason.
       Last message repeated 92 times
    [tls @ 00000000056adc00] The specified session has been invalidated for some reason.
       Last message repeated 29 times
    [tls @ 00000000056adc00] The specified session has been invalidated for some reason.
       Last message repeated 90 times
    [tls @ 00000000056adc00] The specified session has been invalidated for some reason.
       Last message repeated 29 times
    [tls @ 00000000056adc00] The specified session has been invalidated for some reason.
       Last message repeated 92 times
    ...
    </comment></comment>

    I need to be able to detect the failure in av_interleaved_write_frame so that I can re-initiate the connection.

  • Can't split 24bit flac files on the command line [closed]

    21 mars 2023, par Martin

    I am trying to export a 24bit flac file in my ubuntu terminal. I've tried two different methods, but neither work.

    &#xA;

    Method 1 : shntool

    &#xA;

    when I run this command :&#xA;shntool split -f times.cue -O always -o lowq_full_silence.flac

    &#xA;

    where lowq_full_silence.flac was rendered in audacity as a flac file with level=0 and bit depth=16 bit, my command works.

    &#xA;

    but if i run this command :

    &#xA;

    shntool split -f times.cue -O always -o full_hq.flac

    &#xA;

    where full_hq.flac has level=8 and bit depth=24 bit&#xA;The command fails :

    &#xA;

    shntool [split]: warning: unsupported format 0xfffe (Unknown) while processing file: [full_hq.flac]&#xA;shntool [split]: error: cannot continue due to error(s) shown above&#xA;

    &#xA;

    https://bugs.launchpad.net/ubuntu/+source/shntool/+bug/2000794

    &#xA;

    Method 2 : ffmpeg

    &#xA;

    Trying to split the flac file with comma separated 'split points' input

    &#xA;

    ffmpeg -i "full_hq.flac" -c copy -map 0 -f segment -segment_times "22,441,556,559" "%d_output.flac"

    &#xA;

    But the output from this ffmpeg command has broken length metadata :

    &#xA;

    https://trac.ffmpeg.org/ticket/4905

    &#xA;

    Is there a better way to split a high quality 24bit flac file into individual segments, where each exported segment file has correct length metadata ?

    &#xA;

    Files :&#xA;https://file.io/lvGTUEgQArb7

    &#xA;