Results 1 to 6 of 6

Thread: Could not get raw video data from buffer

  1. #1
    Join Date
    Feb 2018
    Beans
    3

    Could not get raw video data from buffer

    My Os version is Ubuntu 16.04 LTS and LibVlc version is 2.2.2-5. I have a c++ project using LibVlc I am buffering audio and video data and then read it from buffer. I want to get raw data that is why i use RV24 or RV32 Video codecs in my program but video data does not come. For example when I use Video codec SVQ1 I get some video data. This problem comes from LibVlc version and it works on Ubuntu 14.04 but not on 16.04.I asked this question in VideoLan forums and in Stackoverflow but still have no answer. Is there any idea how this issue could be fixed. Thanks in advance I will appreciate any help.
    Code:
    int StreamGrabberSetMedia(VlcStreamGrabber * pGrabber, libvlc_media_t * pMedia, bool paceControl)
    {
        char vcodec[] = "RV32";
        char acodec[] = "s16l";
        char pszOptions[1024] = {0};
        libvlc_event_manager_t * pEventManager = NULL;
    
        if (pGrabber == NULL || pMedia == NULL) return VLC_ENOITEM; 
    
        sprintf_s( 
            pszOptions,
            1024,
            ":sout=#transcode{"
                 "vcodec=%s,"
                 "acodec=%s,"
                 "threads=2,"
            "}:smem{"
                "%s,"
                "audio-prerender-callback=%lld,"
                "audio-postrender-callback=%lld,"
                "video-prerender-callback=%lld,"
                "video-postrender-callback=%lld,"
                "audio-data=%lld,"
                "video-data=%lld"
            "}",
            vcodec,
            acodec,
            (paceControl ? "time-sync" : "no-time-sync"),
            (long long int)(intptr_t)(void*) &AudioPrerender,
            (long long int)(intptr_t)(void*) &AudioPostrender,
            (long long int)(intptr_t)(void*) &VideoPrerender,
            (long long int)(intptr_t)(void*) &VideoPostrender,
            (long long int)(intptr_t)(void*) pGrabber,
            (long long int)(intptr_t)(void*) pGrabber
        );
    }

  2. #2
    Join Date
    Oct 2009
    Location
    Reykjavk, sland
    Beans
    12,881
    Distro
    Lubuntu 17.10 Artful Aardvark

    Re: Could not get raw video data from buffer

    Hi, welcome to the fora.

    Quote Originally Posted by narekkrean11 View Post
    This problem comes from LibVlc version and it works on Ubuntu 14.04 but not on 16.04.
    Have you tried how it works in a live boot of 17.10.1?
    Bringing old hardware back to life. About problems due to upgrading.
    Please visit Quick Links -> Unanswered Posts.
    Don't use this space for a list of your hardware. It only creates false hits in the search engines.

  3. #3
    Join Date
    Feb 2018
    Beans
    3

    Re: Could not get raw video data from buffer

    Thanks for answer but i need this to work on 16.04 i write some program which must work on all Ubuntu versions

  4. #4
    Join Date
    Oct 2009
    Location
    Reykjavk, sland
    Beans
    12,881
    Distro
    Lubuntu 17.10 Artful Aardvark

    Re: Could not get raw video data from buffer

    On the way to 'need to work' you have to gather knowledge and narrow down the problem.

    That could for example come from trying various other releases
    Bringing old hardware back to life. About problems due to upgrading.
    Please visit Quick Links -> Unanswered Posts.
    Don't use this space for a list of your hardware. It only creates false hits in the search engines.

  5. #5
    Join Date
    Feb 2018
    Beans
    3

    Re: Could not get raw video data from buffer

    Oh i now where the problem comes from...when i buffer the video i encode it and when i want to read it from buffer i decode it. In program I use libVlc api and when VLC compiles function smem does not work correctly when i use RGB on Ubuntu 16.04(they change sours code and in this Ubuntu version VLC compiles the other way) this problem could be fixed by VideoLan developers or by Ubuntu developers

  6. #6
    Join Date
    Oct 2009
    Location
    Reykjavk, sland
    Beans
    12,881
    Distro
    Lubuntu 17.10 Artful Aardvark

    Re: Could not get raw video data from buffer

    Quote Originally Posted by narekkrean11 View Post
    ...this problem could be fixed by VideoLan developers or by Ubuntu developers
    ...or the problem could already be fixed in a recent Ubuntu release.
    Bringing old hardware back to life. About problems due to upgrading.
    Please visit Quick Links -> Unanswered Posts.
    Don't use this space for a list of your hardware. It only creates false hits in the search engines.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •