Recherche avancée

Médias (29)

Mot : - Tags -/Musique

Autres articles (62)

Sur d’autres sites (10299)

  • Capturing frames from an h264 stream with gst/ffmpeg

    13 août 2021, par Yuval.Sightec

    I want to save (as jpegs) or reach the data of the frames streaming from my usb camera.
Meaning that I want to use the h.264 hardware encoding (I running it on nvdia jetson) in order to get a sequence of compressed files (I prefer not save it on the disc and get an array, if possible).
Can I do that ?

    



    So far I tried this :

    



    gst-launch-1.0 -v v4l2src device=/dev/video0 ! video/x-h264,framerate=30/1,stream-format=byte-stream ! decodebin ! videorate ! video/x-raw,framerate=30/1 ! videoconvert ! jpegenc ! multifilesink location=img_%04d.jpg


    



    but I get an internal data flow error from v4l2src0 element, and an error from gst_base_src_loop() after the pipeline was set to PLAYING.

    



    Can anybody please help me ?

    



    b.t.w- It doesnt have to be neccecerly h.264 encoding, it also can be mpeg encoding or something else : I want to use the fact that it is pictures of a video, frames, in order to get smaller size frames.

    



    Thank you so much !

    


  • Capturing frames from an h264 stream with gst/ffmpeg

    17 août 2016, par Yuval.Sightec

    I want to save (as jpegs) or reach the data of the frames streaming from my usb camera.
    Meaning that I want to use the h.264 hardware encoding (I running it on nvdia jetson) in order to get a sequence of compressed files (I prefer not save it on the disc and get an array, if possible).
    Can I do that ?

    So far I tried this :

    gst-launch-1.0 -v v4l2src device=/dev/video0 ! video/x-h264,framerate=30/1,stream-format=byte-stream ! decodebin ! videorate ! video/x-raw,framerate=30/1 ! videoconvert ! jpegenc ! multifilesink location=img_%04d.jpg

    but I get an internal data flow error from v4l2src0 element, and an error from gst_base_src_loop() after the pipeline was set to PLAYING.

    Can anybody please help me ?

    b.t.w- It doesnt have to be neccecerly h.264 encoding, it also can be mpeg encoding or something else : I want to use the fact that it is pictures of a video, frames, in order to get smaller size frames.

    Thank you so much !

  • Revision 6e5e75fa21 : Revert "Removing redundant variables from variance_test.cc." This reverts commi

    8 mai 2014, par James Zern

    Changed Paths :
     Modify /test/variance_test.cc



    Revert "Removing redundant variables from variance_test.cc."

    This reverts commit 4725ab7e51a69bf890856e524c6d78aadd97d64e.

    The constants are necessary to avoid breakage in vs9 builds :
    warning C4180 : qualifier applied to function type has no meaning ; ignored
    error C2436 : ’f2_’ : member function or nested class in constructor initializer
    list
    while compiling class template member function
    ’std::tr1::tuple::tuple(const int &,const int
    &,unsigned int (__cdecl &))’
    ..\test\variance_test.cc : see reference to class template instantiation
    ’std::tr1::tuple’ being compiled

    Change-Id : Ia218b74fc473d40f02fee84cb7009adfbe82e5a7