Discussion:
[FFmpeg-user] Invalid data found when processing input
Sumesh P.T.
2013-05-03 08:22:32 UTC
Permalink
Hi,

I was trying to process a video file using ffmpeg. It is not processing. I am pasting the command line output of it. Would you please help me to sort this out?

Thanks a lot,
sumesh

ffmpeg -i test-kindofrepul.avi ouput.avi
ffmpeg version 0.7.13, Copyright (c) 2000-2011 the FFmpeg developers
  built on Sep 22 2012 01:29:36 with clang 3.0 (tags/RELEASE_30/final)
  configuration: --prefix=/opt/local --enable-swscale --enable-avfilter --enable-libmp3lame --enable-libvorbis --enable-libtheora --enable-libdirac --enable-libschroedinger --enable-libopenjpeg --enable-libvpx --enable-libspeex --disable-libopencore-amrnb --disable-libopencore-amrwb --mandir=/opt/local/share/man --enable-shared --enable-pthreads --cc=/opt/local/bin/clang-mp-3.0 --enable-gpl --enable-postproc --enable-libx264 --enable-libxvid --arch=x86_64 --enable-yasm
  libavutil    50. 43. 0 / 50. 43. 0
  libavcodec   52.123. 0 / 52.123. 0
  libavformat  52.111. 0 / 52.111. 0
  libavdevice  52.  5. 0 / 52.  5. 0
  libavfilter   1. 80. 0 /  1. 80. 0
  libswscale    0. 14. 1 /  0. 14. 1
  libpostproc  51.  2. 0 / 51.  2. 0
test-kindofrepul.avi: Invalid data found when processing input
Carl Eugen Hoyos
2013-05-03 08:55:53 UTC
Permalink
Post by Sumesh P.T.
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
Sumesh P.T.
2013-05-04 10:05:43 UTC
Permalink
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 <***@ag.or.at>
To: ffmpeg-***@ffmpeg.org
Sent: Friday, 3 May 2013, 9:55
Subject: Re: [FFmpeg-user] Invalid data found when processing input
Post by Sumesh P.T.
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
Carl Eugen Hoyos
2013-05-04 11:12:39 UTC
Permalink
Post by Sumesh P.T.
However the output I get has blank frames.
Sorry, I don't understand "blank frames" in this
context.
Post by Sumesh P.T.
I did ffmpeg -i input.avi ouput.avi.
Complete, uncut console output missing.

Please do not top-post here, it is considered rude.
Carl Eugen
Sumesh P.T.
2013-05-05 05:19:47 UTC
Permalink
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. <***@yahoo.com>
To: FFmpeg user questions <ffmpeg-***@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 <***@ag.or.at>
To: ffmpeg-***@ffmpeg.org
Sent: Friday, 3 May 2013, 9:55
Subject: Re: [FFmpeg-user] Invalid data found when processing input
Post by Sumesh P.T.
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
Lou
2013-05-05 19:28:31 UTC
Permalink
Post by Sumesh P.T.
However the file output.avi produces a movie of same length but with
completely black frames in it !
With what player(s)?
Post by Sumesh P.T.
FFmpeg version SVN-r26402, Copyright (c) 2000-2011 the FFmpeg developers
Absolutely ancient and not supported. Please compile from Git head or
use a current build:

http://www.evermeet.cx/ffmpeg/snapshots/
Sumesh P.T.
2013-05-05 21:11:11 UTC
Permalink
 Dear Lou,

Thanks a lot for the reply. The frames are black and blank in real player. In VLC it plays fine. But I wanted to put them in a presentation where compatibility with real player is needed.

I didnt know that its such an old version. After a struggle I have done this installation in my MAC. Wondering now what to do!
 Thanks,

sumesh


________________________________
From: Lou <***@lrcd.com>
To: ffmpeg-***@ffmpeg.org
Sent: Sunday, 5 May 2013, 20:28
Subject: Re: [FFmpeg-user] produces blank dark frames
Post by Sumesh P.T.
However the file output.avi produces a movie of same length but with
completely black frames in it !
With what player(s)?
Post by Sumesh P.T.
FFmpeg version SVN-r26402, Copyright (c) 2000-2011 the FFmpeg developers
Absolutely ancient and not supported. Please compile from Git head or
use a current build:

http://www.evermeet.cx/ffmpeg/snapshots/

Loading...