Recherche avancée

Médias (91)

Autres articles (74)

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

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

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

Sur d’autres sites (5389)

  • ffmpeg hls video recording timing inforamtion is inaccurate

    27 juin 2018, par Haris

    I am recording the rtsp stream in HLS format which is working fine with below command.

    ~/bin/ffmpeg -i rtsp://10.0.7.39:554/media/live/1/1 -c:a aac -c:v copy -hls_list_size 65535 -hls_time 2 live.m3u8

    But when I check the the duration of each ts file with live.m3u8 file content the value is not accurate.

    Here is the live.m3u8

    #EXTM3U
    #EXT-X-VERSION:3
    #EXT-X-TARGETDURATION:2
    #EXT-X-MEDIA-SEQUENCE:0
    #EXTINF:2.000000,
    live0.ts
    #EXTINF:2.000000,
    live1.ts
    #EXTINF:1.200000,
    live2.ts
    #EXTINF:2.500000,
    live3.ts
    #EXTINF:2.000000,
    live4.ts
    #EXTINF:2.600000,
    live5.ts
    #EXTINF:1.700000,
    live6.ts
    #EXT-X-ENDLIST

    And when I check the timing information of the ts file live2.ts using the command,

     ~/bin/ffprobe -i live2.ts -show_entries format=duration -v quiet -of csv="p=0"

    I am getting the value 2.136000 where as in m3u8 file it is 1.20000.

    I have build the latest FFMPEG based on official guild https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu.

    OS : Ubuntu 12.04

    ffmpeg Version

    $~/bin//ffmpeg -version


    ffmpeg version N-91369-g4ac88ba Copyright (c) 2000-2018 the FFmpeg developers
    built with gcc 4.8 (Ubuntu 4.8.1-2ubuntu1~12.04)
    configuration: --prefix=/home/haris/ffmpeg_build --pkg-config-flags=--static --extra-cflags=-I/home/haris/ffmpeg_build/include --extra-ldflags=-L/home/haris/ffmpeg_build/lib --extra-libs='-lpthread -lm' --bindir=/home/haris/bin --enable-gpl --enable-libaom --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-nonfree
    libavutil      56. 18.102 / 56. 18.102
    libavcodec     58. 20.104 / 58. 20.104
    libavformat    58. 17.101 / 58. 17.101
    libavdevice    58.  4.101 / 58.  4.101
    libavfilter     7. 25.100 /  7. 25.100
    libswscale      5.  2.100 /  5.  2.100
    libswresample   3.  2.100 /  3.  2.100
    libpostproc    55.  2.100 / 55.  2.100

    Note

    If I tested the same command in Ubuntu 16.04 where ffmpeg installed with apt-get every thing works fine.

    Here is the ffmpeg details

    $ ~/bin/ffmpeg -version
    ffmpeg version 2.8.14-0ubuntu0.16.04.1 Copyright (c) 2000-2018 the FFmpeg developers
    built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.9) 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

    What could be the cause, any help will be appreciated.

  • Why the audio of my mp4 file is going out of async

    16 juillet 2018, par Dop

    I am having a problem converting a wmv file to mp4. I am using x264.exe this command to get the video stream

    x264 --output temporal.264 --fps 25 --preset slow --bitrate 2048 --vbv-maxrate 2048 --vbv-bufsize 9600 --min-keyint 48 --keyint 48 --scenecut 0 --no-scenecut --pass 1 --video-filter "resize:width=640,height=480" Original.wmv

    Then I use ffmpeg.exe to extract the audio stream with this line :

    ffmpeg -i .wmv -acodec libfdk_aac -b:a 32000 temporal.aac

    finally I use MP4Box to merges each stream with this line :

    MP4Box -add temporal.264 Final.mp4
    MP4Box -add temporal.aac Final.mp4

    The problem is that the final.mp4 audio is out of sync. It starts good but with time it goes out of sync with time.

    I run this command :

    MP4Box -info 010004470063PE-10022017083824-2_MultiMedia--1.mp4

    and I discover that the estimated time of both streams are different :

    output of command

    * Movie Info *
           Timescale 600 - 2 tracks
           Computed Duration 01:00:03.643 - Indicated Duration 01:00:03.643
           Fragmented File: no
           File suitable for progressive download (moov before mdat)
           File Brand isom - version 1
                   Compatible brands: isom avc1
           Created: GMT Wed Jun 27 16:31:44 2018
           Modified: GMT Wed Jun 27 16:31:44 2018
    File has root IOD (9 bytes)
    Scene PL 0xff - Graphics PL 0xff - OD PL 0xff
    Visual PL: AVC/H264 Profile (0x7f)
    Audio PL: AAC Profile @ Level 2 (0x29)
    No streams included in root OD
    Track # 1 Info - TrackID 1 - TimeScale 25000
    Media Duration 00:59:57.520 - Indicated Duration 00:59:57.520
    Track has 1 edit lists: track duration is 00:59:57.320
    Media Info: Language "Undetermined (und)" - Type "vide:avc1" - 89938 samples
    Visual Track layout: x=0 y=0 width=640 height=480
    MPEG-4 Config: Visual Stream - ObjectTypeIndication 0x21
    AVC/H264 Video - Visual Size 640 x 480
           AVC Info: 1 SPS - 1 PPS - Profile Main @ Level 3
           NAL Unit length bits: 32
           Chroma format YUV 4:2:0 - Luma bit depth 8 - chroma bit depth 8
           SPS#1 hash: 41EE779BEF2AA71A7131EAFD3C77C7E3BC95FD8E
           PPS#1 hash: 086E1D72A40A0E8CF35D102F34A9DF6CD44D6CEF
    Self-synchronized
           RFC6381 Codec Parameters: avc1.4D401E
           Average GOP length: 250 samples
    Track # 2 Info - TrackID 2 - TimeScale 44100
    Media Duration 01:00:03.644 - Indicated Duration 01:00:03.644
    Media Info: Language "Undetermined (und)" - Type "soun:mp4a" - 155196 samples
    MPEG-4 Config: Audio Stream - ObjectTypeIndication 0x40
    MPEG-4 Audio AAC LC - 2 Channel(s) - SampleRate 44100
    Synchronized on stream 1
           RFC6381 Codec Parameters: mp4a.40.2
           All samples are sync

    I am not shore why this is happening, becar the original wmv is perfectly synchronize. Any help ?

  • Problems writing to pipe in ffmpeg

    28 juin 2018, par Mikkel Bachmann

    I have written a stream server that utilizes FFMPEG for transcoding. [StreamServer2 v.1.5]

    The way it works is that i have thru a control channel tell a DVR to open a stream, when the stream is open the DVR will respond with a sdp file- or the info for the sdp file.
    This is working when i run StreamServer2 on my windows 10 computer, byt when i run it on my 2016 server, i get an error saying : Output file #0 does not contain any stream

    I works on my Windows 10 computer, also I have an old version of StreamServer2 from before we created the control channel ; that one is opning a RTSP stream as you normally will do, bu calling the rtsp url, and that is currently running live on an server 2008R2 environment.

    The reason that we did change the way of getting a stream is that we have a new system where the DVRs IPAddress is dynamic and unpredictable.

    So i hope that somebody can help me find out why it does not work on Windows Server 2016

    The FFMPG Report file

    ffmpeg started on 2018-06-27 at 13:06:51
    Report written to "ffmpeg-20180627-130651.log"
    Command line:
    "E:\\r2pPrograms\\StreamServer2\\ffmpeg.exe" -stdin -y -loglevel info -report -protocol_whitelist file,udp,rtp -i 8936021605650268160_37.sdp -f mpeg1video -g 52 -movflags frag_keyframe+empty_moov -b:v 64k -q 5 -an -
    ffmpeg version N-91024-g293a6e8332 Copyright (c) 2000-2018 the FFmpeg developers
     built with gcc 7.3.0 (GCC)
     configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-bzlib --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. 18.100 / 56. 18.100
     libavcodec     58. 19.101 / 58. 19.101
     libavformat    58. 13.102 / 58. 13.102
     libavdevice    58.  4.100 / 58.  4.100
     libavfilter     7. 21.100 /  7. 21.100
     libswscale      5.  2.100 /  5.  2.100
     libswresample   3.  2.100 /  3.  2.100
     libpostproc    55.  2.100 / 55.  2.100
    Splitting the commandline.
    Reading option '-stdin' ... matched as option 'stdin' (enable or disable interaction on standard input) with argument '1'.
    Reading option '-y' ... matched as option 'y' (overwrite output files) with argument '1'.
    Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'info'.
    Reading option '-report' ... matched as option 'report' (generate a report) with argument '1'.
    Reading option '-protocol_whitelist' ... matched as AVOption 'protocol_whitelist' with argument 'file,udp,rtp'.
    Reading option '-i' ... matched as input url with argument '8936021605650268160_37.sdp'.
    Reading option '-f' ... matched as option 'f' (force format) with argument 'mpeg1video'.
    Reading option '-g' ... matched as AVOption 'g' with argument '52'.
    Reading option '-movflags' ... matched as AVOption 'movflags' with argument 'frag_keyframe+empty_moov'.
    Reading option '-b:v' ... matched as option 'b' (video bitrate (please use -b:v)) with argument '64k'.
    Reading option '-q' ... matched as option 'q' (use fixed quality scale (VBR)) with argument '5'.
    Reading option '-an' ... matched as option 'an' (disable audio) with argument '1'.
    Reading option '-' ... matched as output url.
    Finished splitting the commandline.
    Parsing a group of options: global .
    Applying option stdin (enable or disable interaction on standard input) with argument 1.
    Applying option y (overwrite output files) with argument 1.
    Applying option loglevel (set logging level) with argument info.
    Applying option report (generate a report) with argument 1.
    Successfully parsed a group of options.
    Parsing a group of options: input url 8936021605650268160_37.sdp.
    Successfully parsed a group of options.
    Opening an input file: 8936021605650268160_37.sdp.
    [NULL @ 000001484256c1c0] Opening '8936021605650268160_37.sdp' for reading
    [sdp @ 000001484256c1c0] Format sdp probed with size=2048 and score=50
    [sdp @ 000001484256c1c0] video codec set to: h264
    [udp @ 0000014842572700] 'circular_buffer_size' option was set but it is not supported on this build (pthread support is required)
    [udp @ 0000014842572700] end receive buffer size reported is 65536
    [udp @ 000001484258f140] 'circular_buffer_size' option was set but it is not supported on this build (pthread support is required)
    [udp @ 000001484258f140] end receive buffer size reported is 65536
    [sdp @ 000001484256c1c0] setting jitter buffer size to 500
    [sdp @ 000001484256c1c0] Before avformat_find_stream_info() pos: 152 bytes read:152 seeks:0 nb_streams:1
    [sdp @ 000001484256c1c0] Could not find codec parameters for stream 0 (Video: h264, none): unspecified size
    Consider increasing the value for the 'analyzeduration' and 'probesize' options
    [sdp @ 000001484256c1c0] After avformat_find_stream_info() pos: 152 bytes read:152 seeks:0 frames:0
    Input #0, sdp, from '8936021605650268160_37.sdp':
     Duration: N/A, bitrate: N/A
       Stream #0:0, 0, 1/90000: Video: h264, none, 90k tbr, 90k tbn, 180k tbc
    Successfully opened the file.
    Parsing a group of options: output url -.
    Applying option f (force format) with argument mpeg1video.
    Applying option b:v (video bitrate (please use -b:v)) with argument 64k.
    Applying option q (use fixed quality scale (VBR)) with argument 5.
    Applying option an (disable audio) with argument 1.
    Successfully parsed a group of options.
    Opening an output file: -.
    Output #0, mpeg1video, to 'pipe:':
    Output file #0 does not contain any stream
    [AVIOContext @ 0000014842574b80] Statistics: 152 bytes read, 0 seeks