[FFmpeg-user] produces blank dark frames

Sumesh P.T. sumesh_pt at yahoo.com
Sun May 5 07:19:47 CEST 2013


Dear all,

Since I didnt find any response to the previous question, so I am putting it again with some more details. Sorry if you have already seen it, but I cannot find a solution to this right now, and hoping somebody here might have ideas.

I have created a movie 'input.avi' (from matlab, in a mac machine). Then I did 'ffmpeg -i input.avi output.avi'. My idea is to reduce the size of the file, however right now I am not giving any options since I want to see by default what happens so that I can do it optimally. However the file output.avi produces a movie of same length but with completely black frames in it ! I do not see anything like this reported in a google search. Has anybody encountered such things ? How would I resolve this ? Can anybody hint ? By the way I am using ffmpeg for the first time, so may be I am doing something very stupid ? Here are details about the file:

---------------------------------------------------------------------------
 ffmpeg -i input.avi output.avi
FFmpeg version SVN-r26402, Copyright (c) 2000-2011 the FFmpeg developers
  built on Feb 19 2013 16:28:16 with llvm_gcc 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)
  configuration: --enable-libmp3lame --enable-shared --disable-mmx --arch=x86_64
  libavutil     50.36. 0 / 50.36. 0
  libavcore      0.16. 1 /  0.16. 1
  libavcodec    52.108. 0 / 52.108. 0
  libavformat   52.93. 0 / 52.93. 0
  libavdevice   52. 2. 3 / 52. 2. 3
  libavfilter    1.74. 0 /  1.74. 0
  libswscale     0.12. 0 /  0.12. 0
Input #0, avi, from 'input.avi':
  Duration: 00:00:01.00, start: 0.000000, bitrate: 14161 kb/s
    Stream #0.0: Video: rawvideo, bgr24, 343x343, 5 tbr, 5 tbn, 5 tbc
    Metadata:
      title           : test.avi
[buffer @ 0x7ff0aac044c0] w:343 h:343 pixfmt:bgr24
[ffsink @ 0x7ff0aac04700] auto-inserting filter 'auto-inserted scaler 0' between the filter 'src' and the filter 'out'
[scale @ 0x7ff0aac04920] w:343 h:343 fmt:bgr24 -> w:343 h:343 fmt:yuv420p flags:0x4
Output #0, avi, to 'output.avi':
  Metadata:
    ISFT            : Lavf52.93.0
    Stream #0.0: Video: mpeg4, yuv420p, 343x343, q=2-31, 200 kb/s, 5 tbn, 5 tbc
    Metadata:
      title           : test.avi
Stream mapping:
  Stream #0.0 -> #0.0
Press [q] to stop encoding
frame=    5 fps=  0 q=4.5 Lsize=     582kB time=1.00 bitrate=4770.4kbits/s    
video:577kB audio:0kB global headers:0kB muxing overhead 0.985468%
-------------------------------------------


________________________________
 From: Sumesh P.T. <sumesh_pt at yahoo.com>
To: FFmpeg user questions <ffmpeg-user at ffmpeg.org> 
Sent: Saturday, 4 May 2013, 11:05
Subject: Re: [FFmpeg-user] Invalid data found when processing input
 

Dear Carl,

Thank you for your message. It works with newer versions. However the output I get has blank frames. I did ffmpeg -i input.avi ouput.avi. Since I didnt give any specifications it should have just converted by taking all the specifications of the input file. Doesn't it do that? Do I need to specify the codec also? How do I find the right one? Could you please help me with this? I tried attaching the input and output videos, but the email didn't go through.

Thanks a lot,
sumesh


________________________________
From: Carl Eugen Hoyos <cehoyos at ag.or.at>
To: ffmpeg-user at ffmpeg.org 
Sent: Friday, 3 May 2013, 9:55
Subject: Re: [FFmpeg-user] Invalid data found when processing input


Sumesh P.T. <sumesh_pt <at> yahoo.com> writes:

> ffmpeg -i test-kindofrepul.avi ouput.avi
> ffmpeg version 0.7.13

This is old, if the problem is also reproducible 
with current FFmpeg, please provide the sample.

Carl Eugen

_______________________________________________
ffmpeg-user mailing list
ffmpeg-user at ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
_______________________________________________
ffmpeg-user mailing list
ffmpeg-user at ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


More information about the ffmpeg-user mailing list