Questions tagged [libav]

libav (or libav*) is the collective name of the FFmpeg libraries: libavcodec, libavformat, libavfilter, libavutil, etc. The name has also been appropriated by the Libav project–a fork of FFmpeg.

591 questions
0
votes
1 answer

libav gives audio duration as negative

I am trying to make a simple av player, and in some cases I am getting values correctly as below: checking /media/timecapsule/Music/02 Baawre.mp3 [mp3 @ 0x7f0698005660] Skipping 0 bytes of junk at 2102699. dur is 4396400640 duration is 311 However,…
Amit
  • 3,952
  • 7
  • 46
  • 80
0
votes
1 answer

Stream #0:0: Unknown: none (pcm_s16be)

I am trying to create an RTP audio stream using FFmpeg with the code below. When running on my Windows 10 machine, I get the following response: Output #0, rtp, to 'rtp://127.0.0.1:8554': Stream #0:0: Audio: pcm_s16be, 8000 Hz, mono, s16, 128…
bot1131357
  • 877
  • 8
  • 25
0
votes
0 answers

ffmpeg in cocoa app does not do perfect streaming

I am using ffmpeg 3.1.4 If i stream via command line on Mac 10.10.5 its done properly. However when i compile source code and add library files in my cocoa app and try to stream i get errors. Format context is created properly using…
Swati
  • 2,870
  • 7
  • 45
  • 87
0
votes
0 answers

raspberry pi 3 OpenMax EmptyThisBuffer slow response when transcoding with libav or ffmpeg

The context is transcoding on a Raspberry Pi 3 from 1080i MPEG2 TS to 1080p@30fps H264 MP4 using libav avconv or ffmpeg. Both are using almost idenitical omx.c source file and share the same result. The performance is short of 30fps (about 22fps)…
A. H.
  • 1
  • 2
0
votes
0 answers

How do I correctly mux a encoded h264 packet?

I am grabbing a video frame from my webcam and trying to stream it live through RTMP (to YouTube specifically). I have been able to successfully grab a YUV420p frame from the camera, encode it in h.264, but when I try to send it to the muxer, it…
cmacia06
  • 189
  • 1
  • 2
  • 13
0
votes
0 answers

Error encoding MP4 video with libav

Right now I'm trying to encode some Images to an mp4 file with the help of the libav headers. the Encoding was succesful, after the Encoding i receive some Output, and an mp4 file is generated. But somehow I can not Play the Video with normal…
Van Gan
  • 45
  • 6
0
votes
1 answer

Installing FFmpeg in Ubuntu 14.04 (64 bit)

While converting a video feed from a GigE Cam into '.mp4' using FFmpeg(x264) with Opencv 2.4.9 ,I was getting error message as below. [libx264 @ 0x6a586e0] broken ffmpeg default settings detected [libx264 @ 0x6a586e0] use an encoding preset…
user3555809
  • 31
  • 1
  • 1
  • 5
0
votes
1 answer

Error while installing libav on ubuntu 14.04

I am getting this error while installing libav on ubuntu 14.04 (Reading database ... 357718 files and directories currently installed.) Preparing to unpack .../libvpx/x264_0-1_amd64.deb ... Unpacking x264 (0-1) ... dpkg: error processing archive…
0
votes
1 answer

Overlaying alpha images on a video using ffmpeg

I have the following ffmpeg-cli command which does not produce the described effect in documentation. Could this be a bug, or I have something wrong with the command. ffmpeg \ -y \ -i small.mp4 \ -i monkey/monkey_%04d.png \ …
neuro_sys
  • 805
  • 7
  • 13
0
votes
1 answer

Saving raw YUV420P frame FFmpeg/Libav

Previously i successfully opened, decoded and saved frames from .mp4 file. Raw frames were in YUV420P format which i converted to RGB24 using sws_scale() function and saved them into a .ppm file. What i'm trying to do now is to keep raw decoded…
Sir DrinksCoffeeALot
  • 593
  • 2
  • 11
  • 20
0
votes
1 answer

How can I really pick up the correct format when storing incoming stream?

I want to re-mux a incoming h264 stream. But how could I pick the correct AVOutputFormat for the AVFormatContext? Currently I used: AVOutputFormat* fmt = av_guess_format(NULL, "xxx.avi", NULL); // Open the…
Nyaruko
  • 4,329
  • 9
  • 54
  • 105
0
votes
1 answer

AVCONV / FFMPEG hardware acceleration for video conversion

I have an Ubuntu PC with no video card. I use avconv for video conversion: avconv -i video.wmv -c:v libx264 -c:a libmp3lame -b:v 1800K video.mp4 My CPU (Intel Core i7-4770K) processes 1.5-2Gb video in around 7-10 minutes. In the avconv github…
Alex Bern
  • 1
  • 1
  • 2
0
votes
1 answer

decode raw buffer with ffmpeg av_codec_video_2

I'm trying to write a decoder for a webrtc app in C. I receive a RTP stream, I parse every packet, reorder them, and put the payload in a AVPacket, as described here (FFmpeg decode raw buffer with avcodec_decode_video2). The reordering part is not…
will.I4M
  • 343
  • 2
  • 6
0
votes
1 answer

Add attachment to Matroska (mkv) programmatically after video write

I want to add a protobuf message as attachment to a Matroska (mkv) video file after all video frames have been written without copying the video data. This must be possible because attaching an arbitrary file to an mkv can be achieved with the…
Faber
  • 1,504
  • 2
  • 13
  • 21
0
votes
1 answer

libav: encoding/decoding error: get_buffer() failed

I am trying to edit the given Audio encoding/decoding examples of the libav located in libav-11.4/doc/examples/avcodec.c. I simply want to encode a .wav file into aac and then decode back to .wav But in the decoding step I allways get the following…
IIIIIIIIIIIIIIIIIIIIII
  • 3,958
  • 5
  • 45
  • 70