Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    mifritscher
    @mifritscher
    I suspect that it still sees the data as gray data (8 bit per pixel) despite of explicitly setting the Format to 12 (which has 12 bit per pixel) - which explains the 2 vs 3 MB
    Samuel Audet
    @saudet
    Could you open an issue with some code and data to reproduce this?
    mifritscher
    @mifritscher
    I'll try ;)
    adham-suwan
    @adham-suwan
    hi
    I have a video with 492 frames, this frames count I got using getLengthInVideoFrames() or getLengthInFrames()
    now when I request frame at index 491, using setVideoFrameNumber
    I got null
    this issue happens with some videos not all
    most of the videos works fine and returns the last frame normally
    but some videos return null when requesting the last frame!
    any help?
    Samuel Audet
    @saudet
    @adham-suwan The value returned by getLengthInFrames() is estimated from the frame rate. It is not the actual number of frames, so it won't work well for videos with variable frame rates, and problems are to be expected.
    adham-suwan
    @adham-suwan
    @saudet
    when building on maven
    I provide the below arguments
    clean install -Djavacpp.platform=windows-x86_64
    is there any way to include MAC?
    so I want to build for Windows and MAC only
    adham-suwan
    @adham-suwan
    I meant the same release to be work on both Windows and MAC
    If I use clean install only without providing platform, I will get a cross-platform release but the problem is that the JAR files will be very big
    so I want a small size file that will work on both Windows and MAC (no need for Linux, Android and other platforms)
    adham-suwan
    @adham-suwan
    thanks @saudet
    one more question, is there anything needed to be done on the MAC machine so the JAR file can work on it normally?
    anything like installing something or configure something...
    I meant that the JavaCV can work normally
    Samuel Audet
    @saudet
    no, it should work without having to install anything
    adham-suwan
    @adham-suwan
    hi
    any help about detecting main object in the image
    using javacv
    Samuel Audet
    @saudet
    what do you mean by "main object"?
    adham-suwan
    @adham-suwan
    for example if a person is running between trees then the person is the main object
    if there is a car on the street and there are signs or traffic light around, then the car is the main object
    Samuel Audet
    @saudet
    sounds like a pretty specific application, but if you have working code in C++ and would like to port it to Java, that's easy
    adham-suwan
    @adham-suwan
    hi
    does ffmpeg in javacv supports MOV videos?
    Samuel Audet
    @saudet
    Yes it does. Are you experiencing any issues in particular?
    adham-suwan
    @adham-suwan
    no not yet
    I will try soon
    thanks a lot
    zhimin.yu
    @yuzhimin201

    Hi guys!

    I got a problem here, when i use ffmpegframeRecorder, i input a mp3 audio and output as outputstream, but i will block at recorder.stop()
    the error is could not encode audio packet

    image.png
    Samuel Audet
    @saudet
    Check the log on the console for more details about the error.
    zhimin.yu
    @yuzhimin201
    [mp3float @ 0x7f9f81f34d00] Could not update timestamps for skipped samples.
    [libmp3lame @ 0x7f9f81f68b00] inadequate AVFrame plane padding
    [libmp3lame @ 0x7f9f81f68b00] 4 frames left in the queue on closing
    [2019-09-06 17:28:32.909] ERROR [stream-service-2] StreamProcessService.java:131 - avcodec_encode_audio2() error -22: Could not encode audio packet.
    Input #0, mp3, from 'hua.mp3':
    Metadata:
    encoder : Lavf58.11.101
    Duration: 00:02:15.00, start: 0.069063, bitrate: 128 kb/s
    Stream #0:0: Audio: mp3, 16000 Hz, mono, fltp, 128 kb/s
    [mp3float @ 0x7f49f84b9f80] Could not update timestamps for skipped samples.
    Output #0, mp3, to '':
    Metadata:
    TSSE : Lavf58.20.100
    Stream #0:0: Audio: mp3, 16000 Hz, mono, fltp, 64 kb/s
    [libmp3lame @ 0x7f49f8f8e280] inadequate AVFrame plane padding
    [libmp3lame @ 0x7f49f8f8e280] 4 frames left in the queue on closing
    [2019-09-06 17:30:00.321] ERROR [stream-service-1] StreamProcessService.java:131 - avcodec_encode_audio2() error -22: Could not encode audio packet.
    The source code is :
    FFmpegFrameRecorder recorder = new FFmpegFrameRecorder(outputStream, 1);
    recorder.setFormat("mp3");
    recorder.setFrameRate(grabber.getFrameRate());
    recorder.setAudioCodec(avcodec.AV_CODEC_ID_MP3);
    recorder.setSampleRate(grabber.getSampleRate());
    it will crash when i call recoder.stop()
    Samuel Audet
    @saudet
    You might be trying to encode images as audio? Make sure you're not passing images there.
    zhimin.yu
    @yuzhimin201
            FFmpegFrameGrabber grabber = new FFmpegFrameGrabber(streamScanRequest.getData().getAudioUrl());            
    I didn't use images
    Samuel Audet
    @saudet
    Ok, could you open an issue on GitHub with some sample code and data that fails?
    zhimin.yu
    @yuzhimin201
    ok issue id:1294
    Muqsit
    @Muqsit
    i get this error when trying to start VideoInputFrameGrabber
    java.lang.UnsatisfiedLinkError: Platform "linux-armhf" not supported by class org.bytedeco.videoinput.videoInput
    https://pastebin.com/raw/MhWXH6wU
    im testing this on a raspberry pi 3 B+, Raspbian 10
    Samuel Audet
    @saudet
    That library supports only Windows. On Linux, try with FFmpegFrameGrabber or OpenCVFrameGrabber.