Recherche avancée

Médias (1)

Mot : - Tags -/MediaSPIP 0.2

Autres articles (93)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

  • Menus personnalisés

    14 novembre 2010, par

    MediaSPIP utilise le plugin Menus pour gérer plusieurs menus configurables pour la navigation.
    Cela permet de laisser aux administrateurs de canaux la possibilité de configurer finement ces menus.
    Menus créés à l’initialisation du site
    Par défaut trois menus sont créés automatiquement à l’initialisation du site : Le menu principal ; Identifiant : barrenav ; Ce menu s’insère en général en haut de la page après le bloc d’entête, son identifiant le rend compatible avec les squelettes basés sur Zpip ; (...)

  • Soumettre bugs et patchs

    10 avril 2011

    Un logiciel n’est malheureusement jamais parfait...
    Si vous pensez avoir mis la main sur un bug, reportez le dans notre système de tickets en prenant bien soin de nous remonter certaines informations pertinentes : le type de navigateur et sa version exacte avec lequel vous avez l’anomalie ; une explication la plus précise possible du problème rencontré ; si possibles les étapes pour reproduire le problème ; un lien vers le site / la page en question ;
    Si vous pensez avoir résolu vous même le bug (...)

Sur d’autres sites (7431)

  • Getting this error using ffmpeg concat in ReactNative "concat imposible to open"

    2 février 2021, par Josip Bogdan

    Hy, I am trying to concat multyple video using ffmpeg concat, testing on samsung j76, android version 8.1.0

    


    const textFile = await (await writeTextFileWithAllVideoFiles(filePaths))  
const outputPath = Platform.OS === 'ios' ? `${RNFS.DocumentDirectoryPath}/video-1.mp4` : `${RNFS.DocumentDirectoryPath}/video-1.mp4`
console.log(`-f concat -safe 0 -i ${textFile} -c copy ${outputPath}`)
const result = await RNFFmpeg.execute(`-f concat -safe 0 -i ${textFile} -c copy ${outputPath}`)


    


    And here is how I create the txt file

    


    const writeTextFileWithAllVideoFiles = async (filePaths) => {
var RNFS = require('react-native-fs');
var path = RNFS.DocumentDirectoryPath + '/videoList.txt';

var fileContent = ''
console.log("fileplay1");
filePaths.forEach(path => {
   fileContent += 'file ' + '\'' + path.substring(8) + '\'' + '\r\n'
});
console.log(fileContent);
return RNFS.writeFile(path, fileContent, 'utf8')
.then((success) => {
   console.log(path)
   if (RNFS.exists(path))
      console.log('FILE WRITTEN!')
   return path
})
.catch((err) => {
    console.log(err.message)
    return err.message
});  
}


    


    This is my console log output

    


    file 'data/user/0/com.videoeditorapp/cache/Camera/f27579d2-1488-4a59-8a9d-7a4e7b6fe716.mp4'
file 'data/user/0/com.videoeditorapp/cache/Camera/58130175-bd20-4002-9629-070d0cdd18ac.mp4'

[Tue Feb 02 2021 16:30:45.375]  LOG      /data/user/0/com.videoeditorapp/files/videoList.txt
[Tue Feb 02 2021 16:30:45.376]  LOG      FILE WRITTEN!
[Tue Feb 02 2021 16:30:45.376]  LOG      -f concat -safe 0 -i /data/user/0/com.videoeditorapp/files/videoList.txt -c copy /data/user/0/com.videoeditorapp/files/video-1.mp4
[Tue Feb 02 2021 16:30:45.376]  LOG      [concat @ 0xe2b22000] Impossible to open '/data/user/0/com.videoeditorapp/files/data/user/0/com.videoeditorapp/cache/Camera/f27579d2-1488-4a59-8a9d-7a4e7b6fe716.mp4'
[Tue Feb 02 2021 16:30:45.377]  LOG      /data/user/0/com.videoeditorapp/files/videoList.txt: No such file or directory


    


    And the txt file is not on my android device
My manifest is like this

    


    &#xA;  &#xA;      &#xA;&#xA;<application></application>&#xA;

    &#xA;

  • how to record camera to file while encoding stream to v4l2-loopback device ?

    3 février 2021, par Jonatas

    So i have this logitech c920 camera 1920x1080 h264 capable and i would like to record the camera to file while at the same time copying/encoding the stream to a loopback device so the camera can be still used by other apps.&#xA;here is the code i got so far :

    &#xA;

    ffmpeg -report -f alsa -i hw:CARD=C920,DEV=0 -r 1500 -s 1920x1080 -f v4l2 -vcodec h264 \&#xA;-i /dev/video1 -copyinkf -vcodec copy /home/jonatas/Videos/2021-02-01185658.mp4 \ &#xA;-f v4l2 /dev/video0&#xA;

    &#xA;

    error :

    &#xA;

    Unknown V4L2 pixel format equivalent for yuvj420p&#xA;Could not write header for output file #1 (incorrect codec parameters ?): Invalid argument&#xA;Error initializing output stream 1:0 -- &#xA;

    &#xA;

    some info on /dev/video0(loopbackdevice) :

    &#xA;

    v4l2-ctl -d /dev/video0&#xA;&#xA;    Device Caps      : 0x05208003&#xA;        Video Capture&#xA;        Video Output&#xA;        Video Memory-to-Memory&#xA;        Read/Write&#xA;        Streaming&#xA;        Extended Pix Format&#xA;Priority: 0&#xA;Video input : 0 (loopback: ok)&#xA;Video output: 0 (loopback in)&#xA;Format Video Output:&#xA;    Width/Height      : 1280/720&#xA;    Pixel Format      : &#x27;YUYV&#x27; (YUYV 4:2:2)&#xA;    Field             : None&#xA;    Bytes per Line    : 2560&#xA;    Size Image        : 1843200&#xA;    Colorspace        : sRGB&#xA;    Transfer Function : Default (maps to sRGB)&#xA;    YCbCr/HSV Encoding: Default (maps to ITU-R 601)&#xA;    Quantization      : Default (maps to Limited Range)&#xA;    Flags             : &#xA;Streaming Parameters Video Capture:&#xA;    Frames per second: 30.000 (30/1)&#xA;    Read buffers     : 8&#xA;Streaming Parameters Video Output:&#xA;    Frames per second: 30.000 (30/1)&#xA;    Write buffers    : 8&#xA;&#xA;User Controls&#xA;&#xA;                    keep_format 0x0098f900 (bool)   : default=0 value=0&#xA;              sustain_framerate 0x0098f901 (bool)   : default=0 value=0&#xA;                        timeout 0x0098f902 (int)    : min=0 max=100000 step=1 default=0 value=0&#xA;               timeout_image_io 0x0098f903 (bool)   : default=0 value=0&#xA;

    &#xA;

    some info on my camera in /dev/video1

    &#xA;

    v4l2-ctl -d /dev/video1 --all&#xA;Driver Info:&#xA;    Driver name      : uvcvideo&#xA;    Card type        : HD Pro Webcam C920&#xA;    Bus info         : usb-0000:00:14.0-7.2&#xA;    Driver version   : 5.4.78&#xA;    Capabilities     : 0x84a00001&#xA;        Video Capture&#xA;        Metadata Capture&#xA;        Streaming&#xA;        Extended Pix Format&#xA;        Device Capabilities&#xA;    Device Caps      : 0x04200001&#xA;        Video Capture&#xA;        Streaming&#xA;        Extended Pix Format&#xA;Media Driver Info:&#xA;    Driver name      : uvcvideo&#xA;    Model            : HD Pro Webcam C920&#xA;    Serial           : EC6C336F&#xA;    Bus info         : usb-0000:00:14.0-7.2&#xA;    Media version    : 5.4.78&#xA;    Hardware revision: 0x00000011 (17)&#xA;    Driver version   : 5.4.78&#xA;Interface Info:&#xA;    ID               : 0x03000002&#xA;    Type             : V4L Video&#xA;Entity Info:&#xA;    ID               : 0x00000001 (1)&#xA;    Name             : HD Pro Webcam C920&#xA;    Function         : V4L2 I/O&#xA;    Flags         : default&#xA;    Pad 0x01000007   : 0: Sink&#xA;      Link 0x0200001f: from remote pad 0x100000a of entity &#x27;Processing 3&#x27;: Data, Enabled, Immutable&#xA;Priority: 2&#xA;Video input : 0 (Camera 1: ok)&#xA;Format Video Capture:&#xA;    Width/Height      : 1280/720&#xA;    Pixel Format      : &#x27;H264&#x27; (H.264)&#xA;    Field             : None&#xA;    Bytes per Line    : 2560&#xA;    Size Image        : 1843200&#xA;    Colorspace        : sRGB&#xA;    Transfer Function : Default (maps to sRGB)&#xA;    YCbCr/HSV Encoding: Default (maps to ITU-R 601)&#xA;    Quantization      : Default (maps to Full Range)&#xA;    Flags             : &#xA;Crop Capability Video Capture:&#xA;    Bounds      : Left 0, Top 0, Width 1280, Height 720&#xA;    Default     : Left 0, Top 0, Width 1280, Height 720&#xA;    Pixel Aspect: 1/1&#xA;Selection Video Capture: crop_default, Left 0, Top 0, Width 1280, Height 720, Flags: &#xA;Selection Video Capture: crop_bounds, Left 0, Top 0, Width 1280, Height 720, Flags: &#xA;Streaming Parameters Video Capture:&#xA;    Capabilities     : timeperframe&#xA;    Frames per second: 30.000 (30/1)&#xA;    Read buffers     : 0&#xA;                     brightness 0x00980900 (int)    : min=0 max=255 step=1 default=128 value=128&#xA;                       contrast 0x00980901 (int)    : min=0 max=255 step=1 default=128 value=128&#xA;                     saturation 0x00980902 (int)    : min=0 max=255 step=1 default=128 value=128&#xA; white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1&#xA;                           gain 0x00980913 (int)    : min=0 max=255 step=1 default=0 value=255&#xA;           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2&#xA;                0: Disabled&#xA;                1: 50 Hz&#xA;                2: 60 Hz&#xA;      white_balance_temperature 0x0098091a (int)    : min=2000 max=6500 step=1 default=4000 value=3233 flags=inactive&#xA;                      sharpness 0x0098091b (int)    : min=0 max=255 step=1 default=128 value=128&#xA;         backlight_compensation 0x0098091c (int)    : min=0 max=1 step=1 default=0 value=0&#xA;                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3&#xA;                1: Manual Mode&#xA;                3: Aperture Priority Mode&#xA;              exposure_absolute 0x009a0902 (int)    : min=3 max=2047 step=1 default=250 value=333 flags=inactive&#xA;         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=0&#xA;                   pan_absolute 0x009a0908 (int)    : min=-36000 max=36000 step=3600 default=0 value=0&#xA;                  tilt_absolute 0x009a0909 (int)    : min=-36000 max=36000 step=3600 default=0 value=0&#xA;                 focus_absolute 0x009a090a (int)    : min=0 max=250 step=5 default=0 value=0&#xA;                     focus_auto 0x009a090c (bool)   : default=1 value=0&#xA;                  zoom_absolute 0x009a090d (int)    : min=100 max=500 step=1 default=100 value=100&#xA;

    &#xA;

    if i remove the 3rd line of my script the camera records the stream of video and sound to the file flawless. i tried diferent things for the 3rd line as -vcodec and something to do with pix-format flag to YUYV without success.&#xA;Is it possible to achieve this with just one ffmpeg process ?&#xA;Will the sound be made available to the loopback device also ?&#xA;How to transcode it to the proper pixel format used by loopback device ?

    &#xA;

  • ffserver : translate cropped video

    26 janvier 2021, par Michael O.

    I'm getting the h264 video from IP camera. I need to crop it and retranslate with ffserver. Here is the command ffmpeg to get a stream :

    &#xA;

    ffmpeg -rtsp_transport tcp -i "rtsp://admin:@192.168.88.10:554/channel=1&amp;stream=0.sdp" -filter:v "crop=400:250:800:1045" -vcodec h264 tmp.mp4&#xA;

    &#xA;

    It works fine and I get the cropped video in the file tmp.mp4.

    &#xA;

    Here are the ffserver settings :

    &#xA;

    <feed>&#xA;File /tmp/feed1.ffm&#xA;FileMaxSize 200M&#xA;Launch ffmpeg -rtsp_transport tcp -i "rtsp://admin:@192.168.88.10:554/channel=1&amp;stream=0.sdp" -filter:v "crop=400:250:800:1045" -vcodec h264&#xA;</feed>&#xA;<stream>&#xA;Feed feed1.ffm&#xA;Format mjpeg&#xA;VideoBitRate 1000&#xA;VideoBufferSize 400&#xA;VideoFrameRate 17&#xA;VideoSize 400x250&#xA;VideoGopSize 10&#xA;NoAudio&#xA;Preroll 5&#xA;NoDefaults&#xA;</stream>&#xA;

    &#xA;

    Trying to launch ffserver :

    &#xA;

    $ ffserver -loglevel debug -d -f /etc/ffserver.conf&#xA;ffserver started on 2021-01-27 at 01:02:43&#xA;Report written to "ffserver-20210127-010243.log"&#xA;ffserver version 3.4.8-0ubuntu0.2 Copyright (c) 2000-2020 the FFmpeg developers&#xA;  built with gcc 7 (Ubuntu 7.5.0-3ubuntu1~18.04)&#xA;  configuration: --prefix=/usr --extra-version=0ubuntu0.2 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --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-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg --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-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared&#xA;  libavutil      55. 78.100 / 55. 78.100&#xA;  libavcodec     57.107.100 / 57.107.100&#xA;  libavformat    57. 83.100 / 57. 83.100&#xA;  libavdevice    57. 10.100 / 57. 10.100&#xA;  libavfilter     6.107.100 /  6.107.100&#xA;  libavresample   3.  7.  0 /  3.  7.  0&#xA;  libswscale      4.  8.100 /  4.  8.100&#xA;  libswresample   2.  9.100 /  2.  9.100&#xA;  libpostproc    54.  7.100 / 54.  7.100&#xA;Wed Jan 27 01:02:43 2021 [NULL @ 0x55769974cbc0]Opening &#x27;/tmp/feed1.ffm&#x27; for reading&#xA;Wed Jan 27 01:02:43 2021 [file @ 0x557699755300]Setting default whitelist &#x27;file,crypto&#x27;&#xA;Wed Jan 27 01:02:43 2021 [ffm @ 0x55769974cbc0]Format ffm probed with size=2048 and score=101&#xA;Wed Jan 27 01:02:43 2021 [NULL @ 0x557699757320]Setting entry with key &#x27;b&#x27; to value &#x27;1000000&#x27;&#xA;Wed Jan 27 01:02:43 2021 [NULL @ 0x557699757320]Setting entry with key &#x27;bufsize&#x27; to value &#x27;3276800&#x27;&#xA;Wed Jan 27 01:02:43 2021 [NULL @ 0x557699757320]Setting entry with key &#x27;time_base&#x27; to value &#x27;1/17&#x27;&#xA;Wed Jan 27 01:02:43 2021 [NULL @ 0x557699757320]Setting entry with key &#x27;video_size&#x27; to value &#x27;400x250&#x27;&#xA;Wed Jan 27 01:02:43 2021 [NULL @ 0x557699757320]Setting entry with key &#x27;g&#x27; to value &#x27;10&#x27;&#xA;Wed Jan 27 01:02:43 2021 Codecs do not match for stream 0&#xA;Wed Jan 27 01:02:43 2021 [AVIOContext @ 0x55769974d7a0]Statistics: 4096 bytes read, 0 seeks&#xA;Wed Jan 27 01:02:43 2021 [file @ 0x5576997552e0]Setting default whitelist &#x27;file,crypto&#x27;&#xA;Wed Jan 27 01:02:43 2021 [ffm @ 0x55769974cbc0]Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.&#xA;Wed Jan 27 01:02:43 2021 writing recommended configuration: b=1000000,bufsize=3276800,time_base=1/17,video_size=400x250,g=10&#xA;Wed Jan 27 01:02:43 2021 [AVIOContext @ 0x557699757be0]Statistics: 0 seeks, 1 writeouts&#xA;Wed Jan 27 01:02:43 2021 FFserver started.&#xA;Wed Jan 27 01:02:43 2021 Launch command line: ./ffmpeg -rtsp_transport tcp -i rtsp://admin:@192.168.88.10:554/channel=1&amp;stream=0.sdp -filter:v crop=400:250:800:1045 -vcodec h264 http://127.0.0.1:8090/feed1.ffm &#xA;feed1.ffm: Pid 30808 exited with status 256 after 0 seconds&#xA;

    &#xA;

    There is the line :

    &#xA;

    Codecs do not match for stream 0&#xA;

    &#xA;

    every time when I try to launch it. I tried various video formats : mpjpeg, avi, mpeg, flv, mp4, webm, and the result is the same. How can I successfully launch ffserver ?

    &#xA;