Recherche avancée

Médias (0)

Mot : - Tags -/médias

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (46)

  • List of compatible distributions

    26 avril 2011, par

    The table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
    If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...)

  • 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

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

Sur d’autres sites (8127)

  • av_interleaved_write_frame() : Connection reset by peer mjpeg : What is wrong with mjpeg stream, ffserver and ffplay ?

    31 décembre 2016, par Ilya Yevlampiev

    I’m creating mjpeg stream from image files using ffmpeg and write it to ffserver’s feed :

    sudo ffmpeg -loop 1 -i fon.jpeg -vcodec mjpeg -f mjpeg http://localhost:8090/feed1.ffm

    ffmpeg version 2.0 Copyright (c) 2000-2013 the FFmpeg developers
    built on Aug 19 2013 23:10:58 with gcc 4.7 (Debian 4.7.2-5)
    configuration:
    libavutil      52. 38.100 / 52. 38.100
    libavcodec     55. 18.102 / 55. 18.102
    libavformat    55. 12.100 / 55. 12.100
    libavdevice    55.  3.100 / 55.  3.100
    libavfilter     3. 79.101 /  3. 79.101
    libswscale      2.  3.100 /  2.  3.100
    libswresample   0. 17.102 /  0. 17.102
    Input #0, image2, from 'fon.jpeg':
    Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: mjpeg, yuvj420p, 1280x720 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 25 tbn, 25 tbc
    Output #0, mjpeg, to 'http://localhost:8090/feed1.ffm':
    Metadata:
    encoder         : Lavf55.12.100
    Stream #0:0: Video: mjpeg, yuvj420p, 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 90k tbn, 25 tbc
    Stream mapping:
    Stream #0:0 -> #0:0 (mjpeg -> mjpeg)
    Press [q] to stop, [?] for help

    ffserver is configured as

    Port 8090
    RTSPPort 8594
    BindAddress 0.0.0.0
    MaxClients 100
    MaxBandwidth 20000
    NoDaemon
    <feed>
    File /tmp/feed.ffm
    FileMaxSize 3M
    </feed>
    <stream>
    Feed feed.ffm
    Format rtsp
    VideoCodec mjpeg
    VideoFrameRate 30
    VideoBufferSize 80000
    VideoBitRate 200
    VideoQMin 1
    VideoQMax 5
    VideoSize 1280x720
    PreRoll 1
    Noaudio
    </stream>
    <stream>
    Feed feed.ffm
    Format swf
    VideoCodec flv
    VideoFrameRate 30
    VideoBufferSize 50000
    VideoBitRate 100
    VideoQMin 1
    VideoQMax 5
    VideoSize 1280x720
    PreRoll 0
    Noaudio
    </stream>

    Then I’m trying to retrieve the rtsp stream from the ffserver :

    ffplay http://localhost:8090/test.rtsp -loglevel debug
    avplay version 0.8.5-6:0.8.5-1, Copyright (c) 2003-2012 the Libav developers
    built on Jan 13 2013 12:05:48 with gcc 4.7.2
    configuration: --arch=amd64 --enable-pthreads --enable-runtime-cpudetect --extra-         version='6:0.8.5-1' --libdir=/usr/lib/x86_64-linux-gnu --prefix=/usr --enable-bzlib --enable-libdc1394 --enable-libdirac --enable-libfreetype --enable-frei0r --enable-gnutls --enable-libgsm --enable-libmp3lame --enable-librtmp --enable-libopencv --enable-libopenjpeg --enable-libpulse --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-vaapi --enable-vdpau --enable-libvorbis --enable-libvpx --enable-zlib --enable-gpl --enable-postproc --enable-swscale --enable-libcdio --enable-x11grab --enable-libx264 --enable-libxvid --shlibdir=/usr/lib/x86_64-linux-gnu --enable-shared --disable-static

    avutil configuration : —arch=amd64 —enable-pthreads —enable-runtime-cpudetect —extra-version=’6:0.8.4-1’ —libdir=/usr/lib/x86_64-linux-gnu —prefix=/usr —enable-bzlib —enable-libdc1394 —enable-libdirac —enable-libfreetype —enable-frei0r —enable-gnutls —enable-libgsm —enable-libmp3lame —enable-librtmp —enable-libopencv —enable-libopenjpeg —enable-libpulse —enable-libschroedinger —enable-libspeex —enable-libtheora —enable-vaapi —enable-vdpau —enable-libvorbis —enable-libvpx —enable-zlib —enable-gpl —enable-postproc —enable-swscale —enable-libcdio —enable-x11grab —enable-libx264 —enable-libxvid —shlibdir=/usr/lib/x86_64-linux-gnu —enable-shared —disable-static
    avcodec configuration : —arch=amd64 —enable-pthreads —enable-runtime-cpudetect —extra-version=’6:0.8.4-1’ —libdir=/usr/lib/x86_64-linux-gnu —prefix=/usr —enable-bzlib —enable-libdc1394 —enable-libdirac —enable-libfreetype —enable-frei0r —enable-gnutls —enable-libgsm —enable-libmp3lame —enable-librtmp —enable-libopencv —enable-libopenjpeg —enable-libpulse —enable-libschroedinger —enable-libspeex —enable-libtheora —enable-vaapi —enable-vdpau —enable-libvorbis —enable-libvpx —enable-zlib —enable-gpl —enable-postproc —enable-swscale —enable-libcdio —enable-x11grab —enable-libx264 —enable-libxvid —shlibdir=/usr/lib/x86_64-linux-gnu —enable-shared —disable-static
    avformat configuration : —arch=amd64 —enable-pthreads —enable-runtime-cpudetect —extra-version=’6:0.8.4-1’ —libdir=/usr/lib/x86_64-linux-gnu —prefix=/usr —enable-bzlib —enable-libdc1394 —enable-libdirac —enable-libfreetype —enable-frei0r —enable-gnutls —enable-libgsm —enable-libmp3lame —enable-librtmp —enable-libopencv —enable-libopenjpeg —enable-libpulse —enable-libschroedinger —enable-libspeex —enable-libtheora —enable-vaapi —enable-vdpau —enable-libvorbis —enable-libvpx —enable-zlib —enable-gpl —enable-postproc —enable-swscale —enable-libcdio —enable-x11grab —enable-libx264 —enable-libxvid —shlibdir=/usr/lib/x86_64-linux-gnu —enable-shared —disable-static
    swscale configuration : —arch=amd64 —enable-pthreads —enable-runtime-cpudetect —extra-version=’6:0.8.4-1’ —libdir=/usr/lib/x86_64-linux-gnu —prefix=/usr —enable-bzlib —enable-libdc1394 —enable-libdirac —enable-libfreetype —enable-frei0r —enable-gnutls —enable-libgsm —enable-libmp3lame —enable-librtmp —enable-libopencv —enable-libopenjpeg —enable-libpulse —enable-libschroedinger —enable-libspeex —enable-libtheora —enable-vaapi —enable-vdpau —enable-libvorbis —enable-libvpx —enable-zlib —enable-gpl —enable-postproc —enable-swscale —enable-libcdio —enable-x11grab —enable-libx264 —enable-libxvid —shlibdir=/usr/lib/x86_64-linux-gnu —enable-shared —disable-static
    postproc configuration : —arch=amd64 —enable-pthreads —enable-runtime-cpudetect —extra-version=’6:0.8.4-1’ —libdir=/usr/lib/x86_64-linux-gnu —prefix=/usr —enable-bzlib —enable-libdc1394 —enable-libdirac —enable-libfreetype —enable-frei0r —enable-gnutls —enable-libgsm —enable-libmp3lame —enable-librtmp —enable-libopencv —enable-libopenjpeg —enable-libpulse —enable-libschroedinger —enable-libspeex —enable-libtheora —enable-vaapi —enable-vdpau —enable-libvorbis —enable-libvpx —enable-zlib —enable-gpl —enable-postproc —enable-swscale —enable-libcdio —enable-x11grab —enable-libx264 —enable-libxvid —shlibdir=/usr/lib/x86_64-linux-gnu —enable-shared —disable-static

    libavutil    51. 22. 1 / 51. 22. 1
    libavcodec   53. 35. 0 / 53. 35. 0
    libavformat  53. 21. 1 / 53. 21. 0
    libavdevice  53.  2. 0 / 53.  2. 0
    libavfilter   2. 15. 0 /  2. 15. 0
    libswscale    2.  1. 0 /  2.  1. 0
    libpostproc  52.  0. 0 / 52.  0. 0
    http://localhost:8090/test.rtsp: Invalid data found when processing input

    So, what is wrong in this streaming example, if I have no problem when I substitute streams to the files ?

    I create a mjpeg file using the same parameters 9i.e. file is an output insteadof stream)

    sudo ffmpeg -loop 1 -i fon.jpeg -vcodec mjpeg -f mjpeg test.mjpg
    ffmpeg version 2.0 Copyright (c) 2000-2013 the FFmpeg developers
    built on Aug 19 2013 23:10:58 with gcc 4.7 (Debian 4.7.2-5)
    configuration:
    libavutil      52. 38.100 / 52. 38.100
    libavcodec     55. 18.102 / 55. 18.102
    libavformat    55. 12.100 / 55. 12.100
    libavdevice    55.  3.100 / 55.  3.100
    libavfilter     3. 79.101 /  3. 79.101
    libswscale      2.  3.100 /  2.  3.100
    libswresample   0. 17.102 /  0. 17.102
    Input #0, image2, from 'fon.jpeg':
    Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: mjpeg, yuvj420p, 1280x720 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 25 tbn, 25 tbc
    Output #0, mjpeg, to 'test.mjpg':
    Metadata:
    encoder         : Lavf55.12.100
    Stream #0:0: Video: mjpeg, yuvj420p, 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 90k tbn, 25 tbc
    Stream mapping:
    Stream #0:0 -> #0:0 (mjpeg -> mjpeg)
    Press [q] to stop, [?] for help
    frame=   36 fps=0.0 q=0.0 size=     888kB time=00:00:01.36 bitrate=5349.2kbits/sframe=   78 fps= 76 q=0.0 size=    1711kB time=00:00:03.04 bitrate=4609.9kbits/sframe=  120 fps= 78 q=0.0 size=    2533kB time=00:00:04.72 bitrate=4396.9kbits/sframe=  161 fps= 79 q=0.0 size=    3336kB time=00:00:06.36 bitrate=4297.5kbits/sframe=  202 fps= 79 q=0.0 size=    4139kB      
    time=00:00:08.00 bitrate=4238.8kbits/sframe=  243 fps= 79 q=0.0 size=    4943kB  
    time=00:00:09.64 bitrate=4200.1kbits/sframe=  282 fps= 79 q=0.0 size=    5706kB
    time=00:00:11.20 bitrate=4173.9kbits/sframe=  321 fps= 79 q=0.0 size=    6470kB  
    time=00:00:12.76 bitrate=4154.0kbits/sframe=  358 fps= 78 q=0.0 size=    7195kB
    time=00:00:14.24 bitrate=4139.2kbits/sframe=  397 fps= 68 q=0.0 size=    7959kB
    time=00:00:15.80 bitrate=4126.6kbits/s    
    [1]+  Stopped sudo ffmpeg -loop 1 -i fon.jpeg -vcodec mjpeg -f mjpeg test.mjpg

    And then I playback this mjpeg file with ffplay. The play back is correct, I see no errors or exceptions.

    ffplay test.mjpg
    avplay version 0.8.5-6:0.8.5-1, Copyright (c) 2003-2012 the Libav developers
    built on Jan 13 2013 12:05:48 with gcc 4.7.2
    [mjpeg @ 0x7fc3680008c0] max_analyze_duration reached
    [mjpeg @ 0x7fc3680008c0] Estimating duration from bitrate, this may be inaccurate
    Input #0, mjpeg, from 'test.mjpg':
    Duration: N/A, bitrate: N/A
    Stream #0.0: Video: mjpeg, yuvj420p, 1280x720 [PAR 1:1 DAR 16:9], 25 fps, 25 tbr, 1200k tbn, 1200k tbc
    [avsink @ 0x7fc360001020] auto-inserting filter 'auto-inserted scaler 0' between the filter 'src' and the filter 'out'
    [scale @ 0x7fc360001700] w:1280 h:720 fmt:yuvj420p -> w:1280 h:720 fmt:yuv420p flags:0x4
    27.99 A-V:  0.000 s:0.0 aq=    0KB vq=    0KB sq=    0B f=0/0   0/0

    So, what is the configuration issue for ffserver, or may be it is a bug of the ffserver ?

    UPD. I have realized, that i fed file1.ffm instead of file.ffm ; that caused some ffserver problem :

    Mon Sep  9 11:43:20 2013 [ffm @ 0x2110000]Format ffm probed with size=2048 and score=101
    Mon Sep  9 11:43:20 2013 Deleting feed file 'feed1.ffm' as stream counts differ (1 != 2)
    Mon Sep  9 11:43:20 2013 [AVIOContext @ 0x210d660]Statistics: 4096 bytes read, 0 seeks
    Mon Sep  9 11:43:20 2013 [AVIOContext @ 0x210a9a0]Statistics: 0 seeks, 1 writeouts
    Mon Sep  9 11:43:20 2013 FFserver started.
    Mon Sep  9 11:44:18 2013 File '/feed1.ffm' not found
    Mon Sep  9 11:44:18 2013 127.0.0.1 - - [POST] "/feed1.ffm HTTP/1.1" 404 149

    After i set a correct feed, i got another exception on ffmpeg side :

    sudo ffmpeg -loop 1 -i fon.jpeg -vcodec mjpeg -f mjpeg http://localhost:8090/feed.ffm
    ffmpeg version 2.0 Copyright (c) 2000-2013 the FFmpeg developers
    built on Aug 19 2013 23:10:58 with gcc 4.7 (Debian 4.7.2-5)
    configuration:
    libavutil      52. 38.100 / 52. 38.100
    libavcodec     55. 18.102 / 55. 18.102
    libavformat    55. 12.100 / 55. 12.100
    libavdevice    55.  3.100 / 55.  3.100
    libavfilter     3. 79.101 /  3. 79.101
    libswscale      2.  3.100 /  2.  3.100
    libswresample   0. 17.102 /  0. 17.102
    Input #0, image2, from 'fon.jpeg':
    Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: mjpeg, yuvj420p, 1280x720 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 25 tbn, 25 tbc
    Output #0, mjpeg, to 'http://localhost:8090/feed.ffm':
    Metadata:
    encoder         : Lavf55.12.100
    Stream #0:0: Video: mjpeg, yuvj420p, 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 90k tbn, 25 tbc
    Stream mapping:
    Stream #0:0 -> #0:0 (mjpeg -> mjpeg)
    Press [q] to stop, [?] for help
    av_interleaved_write_frame(): Connection reset by peer

    While ffserver shows no error at all :

    sudo ffserver -f  /etc/ffserver3.conf
    ffserver version 2.0 Copyright (c) 2000-2013 the FFmpeg developers
    built on Aug 19 2013 23:10:58 with gcc 4.7 (Debian 4.7.2-5)
    configuration:
    libavutil      52. 38.100 / 52. 38.100
    libavcodec     55. 18.102 / 55. 18.102
    libavformat    55. 12.100 / 55. 12.100
    libavdevice    55.  3.100 / 55.  3.100
    libavfilter     3. 79.101 /  3. 79.101
    libswscale      2.  3.100 /  2.  3.100
    libswresample   0. 17.102 /  0. 17.102
    Mon Sep  9 12:08:19 2013 FFserver started.
    Mon Sep  9 12:08:40 2013 127.0.0.1 - - [POST] "/feed.ffm HTTP/1.1" 200 4096
    Mon Sep  9 12:12:28 2013 127.0.0.1 - - [GET] "/ HTTP/1.1" 200 1847

    So, what is the problem now ?

  • Error concatenating two files with ffmpeg ubuntu

    3 janvier 2014, par Dan Ramos

    The following command works fine in OS X :

    ffmpeg -f concat -i videos_playlist.txt -c copy final.mkv

    But when I try to run it on ubuntu i get the following :

    Unknown input format: &#39;concat&#39;

    Any idea what I'm missing or a possible work around ?

    OS X build :

    ffmpeg version 1.2.1 Copyright (c) 2000-2013 the FFmpeg developers
    built on Aug  8 2013 11:49:17 with Apple LLVM version 4.2 (clang-425.0.24) (based on LLVM 3.2svn)

    Ubuntu build :

    ffmpeg version 0.10.8-7:0.10.8-1~precise1 Copyright (c) 2000-2013 the FFmpeg developers
    built on Sep  5 2013 14:56:20 with gcc 4.6.3
  • Add SRT subtitle to video with ffmpeg

    3 juillet 2015, par jAckOdE

    I use ffmpeg to encode, and add subtitle to a video by following command

    $ ffmpeg -i hifi.avi -i hifi.srt -acodec libfaac -ar 48000 -ab 128k -ac 2 -vcodec libx264 -vpre ipod640 -s 480x240 -b 256k -scodec copy  hifi.m4v -newsubtitle

    Here is the output

    ffmpeg version 0.8.git, Copyright (c) 2000-2011 the FFmpeg developers
     built on Aug  4 2011 11:11:39 with gcc 4.5.2
     configuration: --extra-cflags=-I/usr/local/include --extra-ldflags=-L/usr/local/lib --disable-shared --enable-static --enable-gpl --enable-postproc --enable-pthreads --enable-ffplay --disable-ffserver --enable-memalign-hack --enable-nonfree --enable-libfaac --arch=x86 --enable-swscale --enable-libx264 --enable-avfilter --enable-debug=3
     libavutil    51. 11. 1 / 51. 11. 1
     libavcodec   53.  9. 1 / 53.  9. 1
     libavformat  53.  6. 0 / 53.  6. 0
     libavdevice  53.  2. 0 / 53.  2. 0
     libavfilter   2. 27. 5 /  2. 27. 5
     libswscale    2.  0. 0 /  2.  0. 0
     libpostproc  51.  2. 0 / 51.  2. 0
    Input #0, avi, from 'hifi.avi':
     Metadata:
       encoder         : VirtualDubMod 1.5.4.1 (build 2178/release)
       IAS1            : English
     Duration: 01:49:02.20, start: 0.000000, bitrate: 897 kb/s
       Stream #0.0: Video: mpeg4 (Simple Profile), yuv420p, 544x304 [SAR 1:1 DAR 34:19], 25 tbr, 25 tbn, 25 tbc
       Stream #0.1: Audio: mp3, 48000 Hz, stereo, s16, 32 kb/s
    [srt @ 0152c100] Estimating duration from bitrate, this may be inaccurate
    Input #1, srt, from 'hifi.srt':
     Duration: N/A, start: 56.080000, bitrate: N/A
       Stream #1.0: Subtitle: srt
    File 'hifi.m4v' already exists. Overwrite ? [y/N] y
    [buffer @ 02548920] w:544 h:304 pixfmt:yuv420p tb:1/1000000 sar:1/1 sws_param:
    [scale @ 02558ee0] w:544 h:304 fmt:yuv420p -> w:480 h:240 fmt:yuv420p flags:0x4
    [libx264 @ 02547f20] Default settings detected, using medium profile
    [libx264 @ 02547f20] using SAR=1/1
    [libx264 @ 02547f20] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.1 Cache64
    [libx264 @ 02547f20] profile High, level 3.0
    [libx264 @ 02547f20] 264 - core 115 - H.264/MPEG-4 AVC codec - Copyleft 2003-2011 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=0 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=256 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=10000 vbv_bufsize=10000 nal_hrd=none ip_ratio=1.40 aq=1:1.00
    Output #0, ipod, to 'hifi.m4v':
       Stream #0.0: Video: libx264, yuv420p, 480x240 [SAR 1:1 DAR 2:1], q=2-31, 256 kb/s, 90k tbn, 25 tbc
       Stream #0.1: Audio: libfaac, 48000 Hz, 2 channels, s16, 128 kb/s
       Stream #0.2: Subtitle: srt
       Stream #0.3: Subtitle: [0][0][0][0] / 0x0000, 64 kb/s
    Stream mapping:
     Stream #0.0 -> #0.0
     Stream #0.1 -> #0.1
     Stream #1.0 -> #0.2
     Stream #1.0 -> #0.3
    Encoder (codec id 0) not found for output stream #0.3

    can anyone tell what wrong with my command ??

    thanks,