problem about video-encoding-Collection of common programming errors


  • alessio23
    video-streaming video-processing vlc video-encoding
    I’m trying to capture a video from rpt to my pc (Ubuntu 12-04 LTS). I’m using vlc from command line as below:cvlc -vvv rtp://address:port –start-time=00 –stop-time=300 –sout file/ts:test.tsbut vlc ignores the command –stop-time and it continues to download video even more than 300 seconds as specified.Does anyone know the reason for this? and a possible solution?Thanks

  • slhck
    ffmpeg video-encoding x264
    When I convert an EXR sequence into a QuickTime MOV file using FFmpeg and the x264 codec, it codes the video – but in QuickTime Player and Windows Media Player it’s just black! But when I open it up with VLC I can see the image and it looks fine. When I try the same thing with a JPG sequence instead of EXR it works perfectly! Does anyone have an idea what that could be?Here is my FFmpeg code:ffmpeg -y -i C:/seq_v001.%04d.exr -c:v libx264 -preset slow -crf 17 C:/out.movHere is the console output:

  • PtrFdr
    ffmpeg mp4 video-encoding
    I’m trying to encode an image-sequence (frame0001.png, frame0002.png, … , frame0160.png) into an x264 video using the following command:ffmpeg -i frame%04d.png -sameq -r 24 out.mp4After encoding, it says drop=5 and indeed there are noticeable “jumps” in the video.It appears someone else had a similar problem, but for me the accepted answer isn’t very useful since I’d like to have no frames dropped.Is a switch missing from the command? Or am I doing something else wrong?Edit: Added console outp

  • Simon Stevens
    windows ffmpeg mp4 mkv video-encoding
    I had a ffmpeg command that would successfully remux an mkv to a iTunes compatible mp4. However it only took the first audio stream regardless of language. I want to remux all audio streams, or at the very least the english stream. I also need to retain 5.1.Here’s what I have so far:ffmpeg -i “input.mkv” -y -f mp4 -vcodec copy -acodec libvo_aacenc -ac 6 “output.mp4″Which throws the following error:Error while opening encoder for output stream #0:1 – maybe incorrect parameters such as bit_rat

  • Daniel H
    ffmpeg video-conversion ubuntu-12.04 video-encoding libav
    I am using the version of avconv in Ubuntu 12.04 to archive videos. I would preferably use some kind of lossless video compression (e.g., huffyuv or FFV1), but using the original video stream (copy codec) would also be acceptable. Unfortunately, with any of these options the output file (mkv containing only the video in whatever format) is much larger than the input file (vob containing video, audio, and subtitles). I could understand if the lossless compression just did a horrible job on my par

  • Cyril Gandon

  • CDR
    c winapi video-encoding
    I have a video decrypter library that can decode an obsolete video format, and returns video frames in BMP and audio in WAV through callback functions. Now I need to encode a new video in any standard format under windows. What might be the standard way to do this? I am using Win32/C. I guess Windows has its own encoding library and drivers and I don’t need to use FFMPEG. Any pointer to an example code or at least to a library to look at will be greatly helpful.Edit: I accept. FFMPEG is the easi

  • HPP
    android crash fatal-error video-encoding mediacodec
    Keep getting a Fatal Signal 11 crash. I have debugged it down to the following line of codeint outBuffIdx = codec.dequeueOutputBuffer(null, 16000);The first time it passes this line of code it returns -1 for Format change, but the next time it just crashes. Looking into the error it is saying it has something to do with a null reference variable, but the both the input and output buffers should not be null.

  • devil_ninja
    android video-encoding
    I am trying to extract Track 0 (video track) of an avi file using MediaExtract and encode to h264 format using MediaCodec. Here is how i configured mediaCodecpublic MediaCodec configure_codec(){Log.d(“OUT”,”configure starts”);MediaCodec codec = MediaCodec.createEncoderByType(“video/avc”);MediaFormat format = MediaFormat.createVideoFormat(“video/avc”, 320, 240);format.setInteger(MediaFormat.KEY_BIT_RATE, 700000);format.setInteger(MediaFormat.KEY_FRAME_RATE, 15);format.setInteger(MediaFormat.KEY_C

  • zeroasterisk
    iphone ffmpeg video-encoding x264
    There are a lot of questions on this topic, and I’ve read most of them and most of the google search results I could come up with.When I use FFMPEG to convert a FLV to a iphone3 compatble MP4 file, it just doesn’t preserver enough of the quality. Yes, I’ve worked the hell out of -sameq and -b and -bt settings, text just isn’t readable.Next I tried to split the video out and process it directly, using these instructions: https://sites.google.com/site/linuxencoding/x264-encoding-guideThe problem

  • KaiK
    ffmpeg video-encoding x264 mpeg-4 libavformat
    I’ve been trying to set a H264 video stream created from images, into an MPEG4 container. I’ve been able to get the video stream from images successfully. But when muxing it in the container, I must do something wrong because no player is able to reproduce it, despite ffplay – that plays the video until the end and after that, the image gets frozen until the eternity -.The ffplay cannot identify Duration neither bitrate, so I supose it might be an issue related with dts and pts, but I’ve searche

  • Michael IV
    c++ audio ffmpeg video-encoding
    I am learning how to create MP4 video from this example.The problem is that the example demonstrates audio encoding from some dummy source data generated on the fly.I need to encode audio from a file.I have checked many examples and most of them show the same or just a separate audio encoding. In my trial and error process I am using the same AVFormatContext for both audio and video frames.I am not sure if it’s right thing to do, or should I rather have 2 separate contexts?So far I got Video enc

  • blahdiblah
    ffmpeg flv video-encoding transcoding .mov
    I have some .mov video files recorded from a JVC GC-FM1 HD video camera in 720p mode. I have FFMPEG running on a Linux box that I upload files to for encoding into FLV format. The video appears to be encoding ok, but there is no audio in the resulting FLV file. Also, when I play it back in Flash Player, in a browser or on Adobe Media Player, the video pauses at the start. It appears that Adobe Media Player waits for the progress bar to reach the end of the video before starting the playback – i.

  • Luuk D. Jansen
    ffmpeg video-encoding http-live-streaming xuggle xuggler
    I have created a server system based on Xuggle to encode an incoming file to H264 and segment it. However, when playing the video back in Quicktime it almost works (with a small hiccup in the audio sometimes) but when changing fro one quality stream to another the image gets lost.So I ran the ‘mediastreamvalidator’and got the following error:ERROR: (-1) Unknown video codec: 1836069494 (program 0, track 0)ERROR: (-1) failed to parse segment as either an MPEG-2 TS or an ESSo I used FFMPEG to get s

  • Paul Lammertsma
    android c++ ffmpeg video-encoding
    I’m trying to get ffmpeg to encode several individual JPEG images into a video on Android. I’ve successfully built it for Android (see the configuration string at the end of this post).I can encode an h.263+ video with randomly generated frame content, and ffmpeg otherwise appears to work well.A similar question suggests that the following code should be sufficient to load an image into an AvFrame:// Make sure we have the codecs av_register_all();AVFormatContext *pFormatCtx; int ret = av_open_in

  • Ofeargall
    ffmpeg video-encoding libavcodec
    I’ve installed the latest ffmpeg but it seems unable to locate the video codecs. Do I need to completeley remove ffmpeg and re run the ./configure differently in order for ffmpeg to find the video codecs?Here’s my current configuration: FFmpeg version git-f61cbc2, Copyright (c) 2000-2011 the FFmpeg developersbuilt on Jan 18 2011 10:59:49 with gcc 4.0.1 (Apple Inc. build 5465)configuration: –enable-libmp3lame –enable-shared –disable-mmx –arch=x86_64libavutil 50.36. 0 / 50.36. 0libavcore

Web site is in building