Recherche avancée

Médias (91)

Autres articles (46)

  • Le plugin : Podcasts.

    14 juillet 2010, par

    Le problème du podcasting est à nouveau un problème révélateur de la normalisation des transports de données sur Internet.
    Deux formats intéressants existent : Celui développé par Apple, très axé sur l’utilisation d’iTunes dont la SPEC est ici ; Le format "Media RSS Module" qui est plus "libre" notamment soutenu par Yahoo et le logiciel Miro ;
    Types de fichiers supportés dans les flux
    Le format d’Apple n’autorise que les formats suivants dans ses flux : .mp3 audio/mpeg .m4a audio/x-m4a .mp4 (...)

  • Installation en mode ferme

    4 février 2011, par

    Le mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
    C’est la méthode que nous utilisons sur cette même plateforme.
    L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
    Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...)

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

Sur d’autres sites (6825)

  • H.264 video file size from camera is much bigger than x264 output

    10 août 2020, par Lawrence song

    I have a UVC camera which supports h264 protocol. we can see the h264 listed below when we list all formats supported.

    


    msm8909:/data # ./ffmpeg -f v4l2 -list_formats all -i /dev/video1
ffmpeg version N-53546-g5eb4405fc5-static https://johnvansickle.com/ffmpeg/  Copyright (c) 2000-2020 the FFmpeg developers
  built with gcc 6.3.0 (Debian 6.3.0-18+deb9u1) 20170516
  configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gmp --enable-libgme --enable-gray --enable-libfribidi --enable-libass --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librubberband --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libxml2 --enable-libxvid --enable-libzimg
  libavutil      56. 56.100 / 56. 56.100
  libavcodec     58. 97.100 / 58. 97.100
  libavformat    58. 49.100 / 58. 49.100
  libavdevice    58. 11.101 / 58. 11.101
  libavfilter     7. 87.100 /  7. 87.100
  libswscale      5.  8.100 /  5.  8.100
  libswresample   3.  8.100 /  3.  8.100
  libpostproc    55.  8.100 / 55.  8.100
[video4linux2,v4l2 @ 0x4649140] Compressed:        h264 :                H.264 : 1920x1080 1280x720 640x480 320x240
[video4linux2,v4l2 @ 0x4649140] Compressed:       mjpeg :                MJPEG : 1920x1080 1280x720 640x480 320x240


    


    I am running the ffmpeg cmd to record UVC camera video to local device.

    


    ffmpeg -f v4l2 -input_format h264 -framerate 30 -video_size 1280*720 -i /dev/video1 -c copy /sdcard/Movies/output.mkv


    


    The video size is way bigger than running the command below :

    


    ffmpeg -f v4l2 -input_format mjpeg -framerate 30 -video_size 1280*720 -i /dev/video1 -c:v libx264 -vf format=yuv420p /sdcard/Movies/output.mp4


    


    I assume the camera already supports h264 protocol. Thus I don't need to re-encode to 264 formats. However, the video size does not look like an H264 encoded video.

    


  • FFmpeg RTSP problem with IP camera

    22 avril 2014, par NoviceAndNovice

    I download FFmpeg windows binary and use ffplay.exe successfully for media files and some Ip Cameras with RTSP support (eg Acti).

    I try ffplay on a Bosch( h264) NDC 265 P camera it does not work. When i start ffplay with debug option i get folllowing

    D:\Test>ffplay -debug 1 rtsp:/XXXXXXXXXX/video
    FFplay version SVN-r26400, Copyright (c) 2003-2011 the FFmpeg developers
     built on Jan 18 2011 04:09:28 with gcc 4.4.2
     configuration: --enable-gpl --enable-version3 --enable-libgsm --enable-libvorb
    is --enable-libtheora --enable-libspeex --enable-libmp3lame --enable-libopenjpeg
    --enable-libschroedinger --enable-libopencore_amrwb --enable-libopencore_amrnb
    --enable-libvpx --disable-decoder=libvpx --arch=x86 --enable-runtime-cpudetect -
    -enable-libxvid --enable-libx264 --enable-librtmp --extra-libs='-lrtmp -lpolarss
    l -lws2_32 -lwinmm' --target-os=mingw32 --enable-avisynth --enable-w32threads --
    cross-prefix=i686-mingw32- --cc='ccache i686-mingw32-gcc' --enable-memalign-hack
    --enable-shared --disable-static
     libavutil     50.36. 0 / 50.36. 0
     libavcore      0.16. 1 /  0.16. 1
     libavcodec    52.108. 0 / 52.108. 0
     libavformat   52.93. 0 / 52.93. 0
     libavdevice   52. 2. 3 / 52. 2. 3
     libavfilter    1.74. 0 /  1.74. 0
     libswscale     0.12. 0 /  0.12. 0
    [rtsp @ 006db540] SDP:
    v=0
    o=- 0 0 IN IP4 XXXXXXXXXX
    s=LIVE VIEW
    t=0 0
    c=IN IP4 0.0.0.0
    m=video 0 RTP/AVP 35
    a=rtpmap:35 H264/90000
    a=control:rtsp://XXXXXXXXXX/video
    a=recvonly
    a=fmtp:35 packetization-mode=1;profile-level-id=4d0028;sprop-parameter-sets=Z00A
    KI2NKAoAt2AgEA==,aO48gA==

    [rtsp @ 006db540] video codec set to: (null)
    [rtsp @ 006db540] hello state=0
    [rtsp @ 006db540] Probe buffer size limit 5000000 reached
    [rtsp @ 006db540] Estimating duration from bitrate, this may be inaccurate
    Input #0, rtsp, from 'rtsp:/XXXXXXXXXX/video':
     Metadata:
       title           : LIVE VIEW
     Duration: N/A, start: 0.000000, bitrate: N/A
       Stream #0.0, 4035, 1/90000: Video: [0][0][0][0] / 0x0000, 90k tbr, 90k tbn,
    90k tbc
    rtsp:/XXXXXXXXXX/video: c1o3u0l1d7 3n2o1t5 2o.p2e1n  Ac-oVd:e c s0
    .000 s:0.0 aq=    0KB vq=    0KB sq=    0B f=0/0

    I can play Bosch IP camera with VLC Player...But can not with FFmpeg...

    So

    • Does ffmpeg not support H264 ?
  • Streaming video from Unity's camera target texture to RTSP

    9 septembre 2024, par Kronon

    I've been trying to find ways of streaming video from Unity's camera to an RTSP stream.

    



    So far I've been trying out this particular plugin here https://github.com/keijiro/FFmpegOut which takes the camera's target texture as the input, and outputs it as an MP4 file on the disk, and https://github.com/aler9/rtsp-simple-server as a simple RTSP server

    



    My initial thought was that it'd be as easy as changing the original FFMPEG commandline syntax from this :

    



      "-y -f rawvideo -vcodec rawvideo -pixel_format rgba"
+ " -colorspace bt709"
+ " -video_size 800x600"
+ " -framerate 30"
+ " -pix_fmt yuv420p"
+ " test.mp4"


    



    to this :

    



      "-y -re -f rawvideo -vcodec rawvideo -pixel_format rgba"
+ " -colorspace bt709"
+ " -video_size 800x600"
+ " -framerate 30"
+ " -pix_fmt yuv420p"
+ " -f rtsp -rtsp_transport tcp rtsp://127.0.0.1:8554/stream"


    



    This works for the first 4-5 seconds of streaming which I can view on VLC player. But after that, the process just hangs and I'll have to terminate it, with the same behaviour regardless of it being run through the Unity Editor, or as a standalone.

    



    Would greatly appreciate any help with this, or thoughts on how I should pinpoint which part of the chain might be breaking down, or even alternative plugins/resources I can look into in order to achieve this. Thanks !

    



    Edit : Also looked through the Unity Player and Editor logs, but there weren't any error messages.