Recherche avancée

Médias (0)

Mot : - Tags -/diogene

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

Autres articles (49)

  • 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

  • Taille des images et des logos définissables

    9 février 2011, par

    Dans beaucoup d’endroits du site, logos et images sont redimensionnées pour correspondre aux emplacements définis par les thèmes. L’ensemble des ces tailles pouvant changer d’un thème à un autre peuvent être définies directement dans le thème et éviter ainsi à l’utilisateur de devoir les configurer manuellement après avoir changé l’apparence de son site.
    Ces tailles d’images sont également disponibles dans la configuration spécifique de MediaSPIP Core. La taille maximale du logo du site en pixels, on permet (...)

  • Participer à sa traduction

    10 avril 2011

    Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
    Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
    Actuellement MediaSPIP n’est disponible qu’en français et (...)

Sur d’autres sites (7357)

  • RTSP stream to HLS Stream using FFMPEG, Getting Error with newer FFMPEG

    8 novembre 2017, par shaun

    I am trying to take an RTSP stream and convert it to an HLS sTream.

    If I use ffmpeg version N-76684-g1fe82ab
    This command Works just fine.

    c:\temp\ffmpeg.exe -i "rtsp://192.168.249.233:8554/Stream" -c:v copy -hls_time 3 -hls_wrap 10 "c:\inetpub\wwwroot\hls\streaming.m3u8"

    However, if I use a newer compiled version of FFMPEG ffmpeg version N-83779-gfe57bf7cd6
    using the same exact command as above I get the error :

    Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument.

    What am I doing wrong ? I would like to use the newer FFMPEG, but it appears that something broke between them.....


    complete console output of N-83779

    C:\inetpub\wwwroot\hls>ffmpeg.exe -i "rtsp://192.168.249.233:8554/Stream" -c:v copy -hls_time 3 -hls_wrap 10 "c:\inetpub\wwwroot\hls\streaming.m3u8"
    ffmpeg version N-83779-gfe57bf7cd6 Copyright (c) 2000-2017 the FFmpeg developers
     built with gcc 4.9.3 (GCC)
     configuration: --prefix=/usr/local/x86_64-w64-mingw32 --enable-gpl --enable-nonfree --enable-libx264 --enable-libfdk_aac --enable-static --enable-runtime-cpudetect --enable-w32th
    reads --disable-shared --disable-ffplay --disable-ffserver --arch=x86_64 --extra-cflags=-I/local/x86_64-w64-mingw32/include --extra-ldflags='-L/local/x86_64-w64-mingw32/lib -static
    '
     libavutil      55. 48.100 / 55. 48.100
     libavcodec     57. 82.102 / 57. 82.102
     libavformat    57. 66.103 / 57. 66.103
     libavdevice    57.  3.100 / 57.  3.100
     libavfilter     6. 74.100 /  6. 74.100
     libswscale      4.  3.101 /  4.  3.101
     libswresample   2.  4.100 /  2.  4.100
     libpostproc    54.  2.100 / 54.  2.100
    [udp @ 023e9d40] 'circular_buffer_size' option was set but it is not supported on this build (pthread support is required)
    [udp @ 039af180] 'circular_buffer_size' option was set but it is not supported on this build (pthread support is required)
    Invalid UE golomb code
    [h264 @ 023eaca0] log2_max_frame_num_minus4 out of range (0-12): -1094995529
    [rtsp @ 023e7220] Failed to open codec in avformat_find_stream_info
    Invalid UE golomb code
    [NULL @ 023eaca0] log2_max_frame_num_minus4 out of range (0-12): -1094995529
    [NULL @ 023eaca0] non-existing PPS 0 referenced
    Invalid UE golomb code
    [h264 @ 023eaca0] log2_max_frame_num_minus4 out of range (0-12): -1094995529
    [NULL @ 023eaca0] non-existing PPS 0 referenced
       Last message repeated 20 times
    [rtsp @ 023e7220] Stream #0: not enough frames to estimate rate; consider increasing probesize
    [rtsp @ 023e7220] Could not find codec parameters for stream 0 (Video: h264 (High), none(progressive)): unspecified size
    Consider increasing the value for the 'analyzeduration' and 'probesize' options
    Input #0, rtsp, from 'rtsp://192.168.249.233:8554/Stream':
     Metadata:
       title           : Session streamed by Stream
       comment         : Stream
     Duration: N/A, start: 0.000000, bitrate: N/A
       Stream #0:0: Video: h264 (High), none(progressive), 90k tbr, 90k tbn, 180k tbc
    [hls @ 039d5140] dimensions not set
    Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument
    Stream mapping:
     Stream #0:0 -> #0:0 (copy)
       Last message repeated 1 times

    Tried -analyzeduration 10M -probesize 10M did not help.

    ffmpeg -analyzeduration 10M -probesize 10M -i "rtsp://192.168.249.233:8554/Stream" -c:v copy -hls_time 3 -hls_wrap 10 "c:\inetpub\wwwroot\hls\streaming.m3u8"
    ffmpeg version N-83779-gfe57bf7cd6 Copyright (c) 2000-2017 the FFmpeg developers
     built with gcc 4.9.3 (GCC)
     configuration: --prefix=/usr/local/x86_64-w64-mingw32 --enable-gpl --enable-nonfree --enable-libx264 --enable-libfdk_aac --enable-static --enable-runtime-cpudetect --enable-w32threads --disable-shared --disable-ffplay --disable-ffserver --arch=x86_64 --extra-cflags=-I/local/x86_64-w64-mingw32/include --extra-ldflags='-L/local/x86_64-w64-mingw32/lib -static'
     libavutil      55. 48.100 / 55. 48.100
     libavcodec     57. 82.102 / 57. 82.102
     libavformat    57. 66.103 / 57. 66.103
     libavdevice    57.  3.100 / 57.  3.100
     libavfilter     6. 74.100 /  6. 74.100
     libswscale      4.  3.101 /  4.  3.101
     libswresample   2.  4.100 /  2.  4.100
     libpostproc    54.  2.100 / 54.  2.100
    [udp @ 0238a140] 'circular_buffer_size' option was set but it is not supported on this build (pthread support is required)
    [udp @ 0421f1a0] 'circular_buffer_size' option was set but it is not supported on this build (pthread support is required)
    Invalid UE golomb code
    [h264 @ 0238af20] log2_max_frame_num_minus4 out of range (0-12): -1094995529
    [rtsp @ 02387960] Failed to open codec in avformat_find_stream_info
    Invalid UE golomb code
    [NULL @ 0238af20] log2_max_frame_num_minus4 out of range (0-12): -1094995529
    [NULL @ 0238af20] non-existing PPS 0 referenced
    Invalid UE golomb code
    [h264 @ 0238af20] log2_max_frame_num_minus4 out of range (0-12): -1094995529
    [NULL @ 0238af20] non-existing PPS 0 referenced
       Last message repeated 24 times
    [rtsp @ 02387960] Stream #0: not enough frames to estimate rate; consider increasing probesize
    [rtsp @ 02387960] Could not find codec parameters for stream 0 (Video: h264 (High), none(progressive)): unspecified size
    Consider increasing the value for the 'analyzeduration' and 'probesize' options
    Input #0, rtsp, from 'rtsp://192.168.249.233:8554/FirstVuHD':
     Metadata:
       title           : Session streamed by Stream
       comment         : Stream
     Duration: N/A, start: 0.000000, bitrate: N/A
       Stream #0:0: Video: h264 (High), none(progressive), 90k tbr, 90k tbn, 180k tbc
    [hls @ 04edf8a0] dimensions not set
    Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument
    Stream mapping:
     Stream #0:0 -> #0:0 (copy)
       Last message repeated 1 times

    Working older version of FFMPEG output

    c:/temp/ffmpeg -i "rtsp://192.168.249.233:8554/Stream" -c:v copy -hls_time 3 -hls_wrap 10 "c:\inetpub\wwwroot\hls\streaming.m3u8"
    ffmpeg version N-76684-g1fe82ab Copyright (c) 2000-2015 the FFmpeg developers
     built with gcc 5.2.0 (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-libdcadec --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-libzimg --enable-lzma --enable-decklink --enable-zlib
     libavutil      55.  6.100 / 55.  6.100
     libavcodec     57. 15.100 / 57. 15.100
     libavformat    57. 14.100 / 57. 14.100
     libavdevice    57.  0.100 / 57.  0.100
     libavfilter     6. 15.100 /  6. 15.100
     libswscale      4.  0.100 /  4.  0.100
     libswresample   2.  0.101 /  2.  0.101
     libpostproc    54.  0.100 / 54.  0.100
    [h264 @ 0000000000506d20] log2_max_frame_num_minus4 out of range (0-12): -1
       Last message repeated 5 times
    [h264 @ 0000000000506d20] non-existing PPS 0 referenced
       Last message repeated 1 times
    [h264 @ 0000000000506d20] decode_slice_header error
    [h264 @ 0000000000506d20] no frame!
    [h264 @ 0000000000506d20] non-existing PPS 0 referenced
       Last message repeated 1 times
    [h264 @ 0000000000506d20] decode_slice_header error
    [h264 @ 0000000000506d20] no frame!
    [h264 @ 0000000000506d20] non-existing PPS 0 referenced
       Last message repeated 1 times
    [h264 @ 0000000000506d20] decode_slice_header error
    [h264 @ 0000000000506d20] no frame!
    [h264 @ 0000000000506d20] non-existing PPS 0 referenced
       Last message repeated 1 times
    [h264 @ 0000000000506d20] decode_slice_header error
    [h264 @ 0000000000506d20] no frame!
    [rtsp @ 0000000000503e60] max delay reached. need to consume packet
    [h264 @ 0000000000506d20] RTP: missed 75 packets
    [h264 @ 0000000000506d20] non-existing PPS 0 referenced
       Last message repeated 1 times
    [h264 @ 0000000000506d20] decode_slice_header error
    [h264 @ 0000000000506d20] no frame!
    [rtsp @ 0000000000503e60] max delay reached. need to consume packet
    [h264 @ 0000000000506d20] RTP: missed 86 packets
    [h264 @ 0000000000506d20] non-existing PPS 0 referenced
       Last message repeated 1 times
    [h264 @ 0000000000506d20] decode_slice_header error
    [h264 @ 0000000000506d20] no frame!
    [rtsp @ 0000000000503e60] max delay reached. need to consume packet
    [h264 @ 0000000000506d20] RTP: missed 57 packets
    [h264 @ 0000000000506d20] non-existing PPS 0 referenced
       Last message repeated 1 times
    [h264 @ 0000000000506d20] decode_slice_header error
    [h264 @ 0000000000506d20] no frame!
    [rtsp @ 0000000000503e60] max delay reached. need to consume packet
    [h264 @ 0000000000506d20] RTP: missed 6 packets
    [h264 @ 0000000000506d20] non-existing PPS 0 referenced
       Last message repeated 1 times
    [h264 @ 0000000000506d20] decode_slice_header error
    [h264 @ 0000000000506d20] no frame!
    [h264 @ 0000000000506d20] non-existing PPS 0 referenced
       Last message repeated 1 times
    [h264 @ 0000000000506d20] decode_slice_header error
    [h264 @ 0000000000506d20] no frame!
    [h264 @ 0000000000506d20] non-existing PPS 0 referenced
       Last message repeated 1 times
    [h264 @ 0000000000506d20] decode_slice_header error
    [h264 @ 0000000000506d20] no frame!
    [h264 @ 0000000000506d20] non-existing PPS 0 referenced
       Last message repeated 1 times
    [h264 @ 0000000000506d20] decode_slice_header error
    [h264 @ 0000000000506d20] no frame!
    [h264 @ 0000000000506d20] non-existing PPS 0 referenced
       Last message repeated 1 times
    [h264 @ 0000000000506d20] decode_slice_header error
    [h264 @ 0000000000506d20] no frame!
    [rtsp @ 0000000000503e60] max delay reached. need to consume packet
    [h264 @ 0000000000506d20] RTP: missed 1093 packets
    [rtsp @ 0000000000503e60] max delay reached. need to consume packet
    [h264 @ 0000000000506d20] RTP: missed 10 packets
    [rtsp @ 0000000000503e60] max delay reached. need to consume packet
    [h264 @ 0000000000506d20] RTP: missed 2 packets
    [rtsp @ 0000000000503e60] max delay reached. need to consume packet
    [h264 @ 0000000000506d20] RTP: missed 20 packets
    Input #0, rtsp, from 'rtsp://192.168.249.233:8554/Stream':
     Metadata:
       title           : Session streamed by Stream
       comment         : Stream
     Duration: N/A, start: 0.033367, bitrate: N/A
       Stream #0:0: Video: h264 (High), yuv420p, 1920x1080, 29.97 tbr, 90k tbn, 180k tbc
    Output #0, hls, to 'c:\inetpub\wwwroot\hls\streaming.m3u8':
     Metadata:
       title           : Session streamed by Stream
       comment         : Stream
       encoder         : Lavf57.14.100
       Stream #0:0: Video: h264, yuv420p, 1920x1080, q=2-31, 29.97 tbr, 90k tbn, 90k tbc
    Stream mapping:
     Stream #0:0 -> #0:0 (copy)
    Press [q] to stop, [?] for help
    [rtsp @ 0000000000503e60] max delay reached. need to consume packet
    [NULL @ 0000000000506d20] RTP: missed 211 packets
    frame=  398 fps= 71 q=-1.0 size=N/A time=00:00:16.68 bitrate=N/A
  • ffmpeg segments only the first part of my audio file

    30 juin 2012, par hammat

    I'm implementing a http live streaming server to send audio file to iOS devices.
    No problem with Apple's tools, mediafilesegmenter, my files are valid and it works fine.

    I'm trying now to segment the same file using ffmpeg. I've downloaded the last stable version which is the 0.10.2 for now.

    Here is how I try to segment my mp3 file :

    ./ffmpeg -re -i input.mp3 -f segment -segment_time 10 -segment_list outputList.m3u8 -acodec libmp3lame -map 0 output%03d.mp3

    It starts the mapping like expected but finish with only one .mp3 file.

    Did I miss something in the process ?
    Thanks in advance.

    edit

    Ok here is my latest command line :

    ffmpeg -i input.mp3 -c:a libmp3lame -b:a 128k -map 0:0 -f segment -segment_time 10 -segment_list outputlist.m3u8 -segment_format mp3 'output%03d.mp3'

    It still gives me only one file but the file is the hole song, not only one part.
    Here is the output of ffmpeg :

    ffmpeg version 0.10.2 Copyright (c) 2000-2012 the FFmpeg developers
    built on Apr 20 2012 07:08:29 with gcc 4.5.2  
    configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-libmp3lame  
       libavutil      51. 35.100 / 51. 35.100  
       libavcodec     53. 61.100 / 53. 61.100  
       libavformat    53. 32.100 /
           53. 32.100  
       libavdevice    53.  4.100 / 53.  4.100  
       libavfilter     2. 61.100 /  2. 61.100  
       libswscale      2.  1.100 /  2.  1.100  
       libswresample   0.  6.100 /  0.  6.100  
       libpostproc    52.  0.100 /  52.  0.100
       [mp3 @ 0x8e4f120] max_analyze_duration 5000000 reached at 5015510
    Input #0, mp3, from 'BeachHouse-Myth.mp3':  
       Metadata:
               title           : Myth
               artist          : Beach House
               track           : /
               album           : Bloom
               disc            : /
               genre           : Alternative
               TSRC            : USSUB1296501  
       Duration: 00:04:18.69, start: 0.000000, bitrate: 320 kb/s
               Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16, 320 kb/s Output #0, segment, to 'stream%03d.mp3':   Metadata:
               title           : Myth
               artist          : Beach House
               track           : /
               album           : Bloom
               disc            : /
               genre           : Alternative
               TSRC            : USSUB1296501
               encoder         : Lavf53.32.100
               Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16, 128 kb/s
    Stream mapping:  
       Stream #0:0 -> #0:0 (mp3 -> libmp3lame)
       Press [q] to stop, [?] for help
       Truncating packet of size 1024 to 105ate=   0.0kbits/s    
       Truncating packet of size 1024 to 1
       size=       0kB time=00:04:18.71 bitrate=   0.0kbits/s     video:0kB audio:4042kB global headers:0kB muxing overhead -100.000000%
  • Encode flv video with no audio with ffmpeg

    15 avril 2012, par David Bengoa

    I'm making an application that needs to convert videos to webm or mp4, it works great with all videos I've tried, but it fails if I use a flv file with no audio channels.

    $ ffmpeg -i 0986229665-339108519108-86498841039-6078455325.flv out.webm
    ffmpeg version 0.7.3-4:0.7.3-0ubuntu0.11.10.1, Copyright (c) 2000-2011 the Libav developers
     built on Jan  4 2012 16:08:51 with gcc 4.6.1
     configuration: --extra-version='4:0.7.3-0ubuntu0.11.10.1' --arch=amd64 --prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --enable-shared --disable-static
     WARNING: library configuration mismatch
     avutil      configuration: --extra-version='4:0.7.3ubuntu0.11.10.1' --arch=amd64 --prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --enable-runtime-cpudetect --enable-vaapi --enable-libopenjpeg --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdirac --enable-libmp3lame --enable-librtmp --enable-libx264 --enable-libxvid --enable-libvo-aacenc --enable-version3 --enable-libvo-amrwbenc --enable-version3 --enable-libdc1394 --enable-shared --disable-static
     avcodec     configuration: --extra-version='4:0.7.3ubuntu0.11.10.1' --arch=amd64 --prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --enable-runtime-cpudetect --enable-vaapi --enable-libopenjpeg --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdirac --enable-libmp3lame --enable-librtmp --enable-libx264 --enable-libxvid --enable-libvo-aacenc --enable-version3 --enable-libvo-amrwbenc --enable-version3 --enable-libdc1394 --enable-shared --disable-static
     libavutil    51.  7. 0 / 51.  7. 0
     libavcodec   53.  6. 0 / 53.  6. 0
     libavformat  53.  3. 0 / 53.  3. 0
     libavdevice  53.  0. 0 / 53.  0. 0
     libavfilter   2.  4. 0 /  2.  4. 0
     libswscale    2.  0. 0 /  2.  0. 0
     libpostproc  52.  0. 0 / 52.  0. 0
    [flv @ 0x2184560] Could not find codec parameters (Audio: [0][0][0][0] / 0x0000, 0 channels)
    [flv @ 0x2184560] Estimating duration from bitrate, this may be inaccurate
    Input #0, flv, from '0986229665-339108519108-86498841039-6078455325.flv':
     Metadata:
       audiocodecid    : -1
       server          : Red5 Server 1.0.0 RC1 $Rev: 4193 $
       duration        : 3
       canSeekToEnd    : true
       videocodecid    : 2
     Duration: 00:00:03.02, start: 0.000000, bitrate: N/A
       Stream #0.0: Video: flv, yuv420p, 640x362, 1k tbr, 1k tbn, 1k tbc
       Stream #0.1: Audio: [0][0][0][0] / 0x0000, 0 channels
    Incompatible sample format '(null)' for codec 'libvorbis', auto-selecting format 's16'
    [buffer @ 0x21852c0] w:640 h:362 pixfmt:yuv420p
    [libvpx @ 0x2184040] v0.9.6
    [libvorbis @ 0x2185ee0] oggvorbis_encode_init: init_encoder failed
    Output #0, webm, to 'out.webm':
       Stream #0.0: Video: libvpx, yuv420p, 640x362, q=2-31, 200 kb/s, 90k tbn, 1k tbc
       Stream #0.1: Audio: libvorbis, 0 channels, s16, 64 kb/s
    Stream mapping:
     Stream #0.0 -> #0.0
     Stream #0.1 -> #0.1
    Error while opening encoder for output stream #0.1 - maybe incorrect parameters such as bit_rate, rate, width or height

    If I pass the -an option, it works, but I can't do that because then all videos wouldn't have audio.

    Any ideas ?