Newest 'ffmpeg' Questions - Stack Overflow

http://stackoverflow.com/questions/tagged/ffmpeg

Les articles publiés sur le site

  • Install ffmpeg/ffprobe on localhost for laravel 4 package ?

    21 février 2014, par cchacholiades

    How can I install ffmpeg and ffprobe on my localhost, so that I can use sonus ffmpeg laravel-4 package? https://github.com/rafasamp/sonus

    Can I just get it directly from git?

    git clone git://source.ffmpeg.org/ffmpeg.git ffmpeg
    
  • H264 HW accelerated decoding in Android using stagefright library

    21 février 2014, par user3215358

    I`m trying to decode h264 video using HW with Stagefright library.

    i have used an example in here. Im getting decoded data in MedaBuffer. For rendering MediaBuffer->data() i tried AwesomeLocalRenderer in AwesomePlayer.cpp.

    but picture in screen are distorted

    Here is The Link of original and crashed picture.

    And also tried this in example`

    sp metaData = mVideoBuffer->meta_data();
    int64_t timeUs = 0;
    metaData->findInt64(kKeyTime, &timeUs);
    native_window_set_buffers_timestamp(mNativeWindow.get(), timeUs * 1000);
    err = mNativeWindow->queueBuffer(mNativeWindow.get(), 
    mVideoBuffer->graphicBuffer().get(), -1);`
    

    But my native code crashes. I can`t get real picture its or corrupted or it black screen.

    Please, I need Your help, What i'm doing wrong?

    Thanks in Advance.

  • FFMPEG Streaming using RTMP

    20 février 2014, par desto

    I'm trying to create a stream using ffmpeg to send a video to a Red5 Server. I've already managed to do this using this command:

    ffmpeg -re -y -i "Videos\Video1.mp4" -c:v libx264 -b:v 600k -r 25 -s 640x360 -t 40 -vf yadif -b:a 64k -ac 1 -ar 44100 -f flv "rtmp://192.168.0.12/live/videostream"
    

    My problem is, when ffmpeg finishes encoding the video, it stops the stream, and thus cuts the video short for 5-10 seconds (for short videos), but this gets worse on larger videos.

    Is there a way to stop this behavior? I was trying to add a blank 10 second video before and after the original video, but due to some encoding options, I always end up losing audio. And this only kind-of works on the short videos, but on longer videos the problem is still there.

    Any recommendations?

  • per-frame metadata h264 using ffmpeg libraries

    20 février 2014, par Dennis Jansky

    Right now, I have an application client-server where the server is encoding frames and upon request sending those frames to the client. This all works ! One thing that I want to do is to measure the latency of the video frames being received by the client. I was thinking that I could add metadata to each frame like frame_data=frame_number:timestamp.

    To do so, I have placed the following code on the server-side.

    std::stringstream frame_number; frame_number << frame_count << ":" << ts;

    av_dict_set(&picture->metadata, "frame_data", frame_number.str().c_str());

    avcodec_encode_video2(codec_ctx, pkt, picture, has_packet);

    I have stepped through this code using gdb and everything gets stored correctly.

    Then, on the other side I have the following code:

    AVPacket pkt; av_init_packet(&pkt);

    avcodec_decode_video2(codec_ctx, picture, &frame_complete, &pkt);

    AVDictionaryEntry *entry; if ( (entry = av_dict_get(&picture->metadata, "frame_data", entry, AV_DICT_IGNORE_SUFFIX) ) { ... }

    However, on the client-side, I am not receiving anything .. The picture->metadata is empty (0x0).

    I should say that I am using mpegts container with h264 encoding

    Any ideas ?

  • Reading RTCP packets from an IP camera using FFMPEG

    20 février 2014, par Dídac Pérez

    I am using ffmpeg C++ library. I need to intercept RTCP packets from the camera in order to get the timestamp from the Sender Report. Is there any method or structure in the ffmpeg that gives me this information? I am completely stuck but I am not able to solve that problem.

    Any help will be appreciate. Thanks in advance,