Closed GoogleCodeExporter closed 9 years ago
can you play the file withh ffplay?
Original comment by dirk.vdb
on 23 Jan 2009 at 8:20
I can if I move the file to my workstation at home and try. Unfortunately the
location I need it to work in is a server and has no video card so I get errors
such as,
[root@vm-flashdev small]# ffplay -nodisp -vn ../CC017-04.flv
Could not initialize SDL - No available video device
Original comment by jzehn...@gmail.com
on 23 Jan 2009 at 9:19
One big thing I failed to mention, this is also a VMWare ESX 3.5 virtual
machine. I
do not know if that plays any part in the error but I forgot to list the
information
above.
Original comment by jzehn...@gmail.com
on 23 Jan 2009 at 9:20
Try to transcode the file on the target machine using the ffmpeg binary and see
if
that works. I just want to know if something essential is wrong with your ffmpeg
installation or if is the way I invoke ffmpeg. Since the crash is occurring
inside
ffmpeg library.
Original comment by dirk.vdb
on 23 Jan 2009 at 9:25
this is where i get lost as I do not normally use this program. I am a sys
admin
trying to get this working for someone else. :) I will paste what I tried in
response to your request but I am guessing it is not what you are wanting to
see. At
any rate I will point a developer at this thread tomorrow and get you a more
rational
response than what is listed below.
[root@vm-flashdev small]# ffmpeg -i test1.flv -f avi test1.avi
FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2007 Fabrice Bellard, et al.
configuration: --prefix=/usr --libdir=/usr/lib64 --mandir=/usr/share/man
--incdir=/usr/include/ffmpeg --extra-cflags=-fPIC --enable-libmp3lame
--enable-libogg
--enable-libvorbis --enable-libogg --enable-libtheora --enable-libfaad
--enable-libfaac --enable-libgsm --enable-xvid --enable-x264 --enable-liba52
--enable-liba52bin --enable-pp --enable-shared --enable-pthreads --enable-gpl
--disable-strip
libavutil version: 49.4.0
libavcodec version: 51.40.4
libavformat version: 51.12.1
built on Jun 4 2007 10:46:34, gcc: 4.1.1 20070105 (Red Hat 4.1.1-52)
Seems stream 0 codec frame rate differs from container frame rate: 1000.00
(1000/1)
-> 1.00 (1/1)
Input #0, flv, from 'test1.flv':
Duration: 00:22:10.0, start: 0.000000, bitrate: N/A
Stream #0.0: Video: flv, yuv420p, 160x120, 1.00 fps(r)
Output #0, avi, to 'test1.avi':
Stream #0.0: Video: mpeg4, yuv420p, 160x120, q=2-31, 200 kb/s, 1.00 fps(c)
Stream mapping:
Stream #0.0 -> #0.0
Press [q] to stop encoding
frame= 1325 fps= 0 q=2.0 Lsize= 1688kB time=1325.0 bitrate= 10.4kbits/s
video:119kB audio:0kB global headers:0kB muxing overhead 1315.094401%
and
[root@vm-flashdev small]# ffmpeg -i test1.flv test2.flv
FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2007 Fabrice Bellard, et al.
configuration: --prefix=/usr --libdir=/usr/lib64 --mandir=/usr/share/man
--incdir=/usr/include/ffmpeg --extra-cflags=-fPIC --enable-libmp3lame
--enable-libogg
--enable-libvorbis --enable-libogg --enable-libtheora --enable-libfaad
--enable-libfaac --enable-libgsm --enable-xvid --enable-x264 --enable-liba52
--enable-liba52bin --enable-pp --enable-shared --enable-pthreads --enable-gpl
--disable-strip
libavutil version: 49.4.0
libavcodec version: 51.40.4
libavformat version: 51.12.1
built on Jun 4 2007 10:46:34, gcc: 4.1.1 20070105 (Red Hat 4.1.1-52)
Seems stream 0 codec frame rate differs from container frame rate: 1000.00
(1000/1)
-> 1.00 (1/1)
Input #0, flv, from 'test1.flv':
Duration: 00:22:10.0, start: 0.000000, bitrate: N/A
Stream #0.0: Video: flv, yuv420p, 160x120, 1.00 fps(r)
Output #0, flv, to 'test2.flv':
Stream #0.0: Video: flv, yuv420p, 160x120, q=2-31, 200 kb/s, 1.00 fps(c)
Stream mapping:
Stream #0.0 -> #0.0
Press [q] to stop encoding
frame= 1325 fps= 0 q=2.0 Lsize= 1882kB time=1325.0 bitrate= 11.6kbits/s
video:145kB audio:0kB global headers:0kB muxing overhead 1198.598760%
Original comment by jzehn...@gmail.com
on 23 Jan 2009 at 9:43
Well, transcoding the file seems to work like a charm. Unfortunately that
doesn't
help me solve the problem :-) It is really hard debugging crashes in ffmpeg, and
impossible if I can't reproduce it...
Original comment by dirk.vdb
on 23 Jan 2009 at 9:59
I would definitely need a gdb backtrace of the crash to get a better idea of the
location of the crash.
Original comment by dirk.vdb
on 23 Jan 2009 at 10:01
Hope this helps..
[root@vm-flashdev small]# gdb /usr/local/bin/ffmpegthumbnailer
GNU gdb Red Hat Linux (6.5-37.el5_2.2rh)
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu"...Using host libthread_db
library "/lib64/libthread_db.so.1".
(gdb) run -i../CC017-04.flv -otest.jpg
Starting program: /usr/local/bin/ffmpegthumbnailer -i../CC017-04.flv -otest.jpg
[Thread debugging using libthread_db enabled]
[New Thread 47057714993616 (LWP 3975)]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 47057714993616 (LWP 3975)]
0x00002acc7948b0c0 in MovieDecoder::initializeVideo (this=0x7fff31625d10) at
moviedecoder.cpp:114
114 if (m_pFormatContext->streams[i]->codec->codec_type ==
CODEC_TYPE_VIDEO)
(gdb) backtrace
#0 0x00002acc7948b0c0 in MovieDecoder::initializeVideo (this=0x7fff31625d10) at
moviedecoder.cpp:114
#1 0x00002acc7948b444 in MovieDecoder::initialize (this=0x7fff31625d10,
filename=@0x7fff31625ed0) at moviedecoder.cpp:68
#2 0x00002acc7948e97d in VideoThumbnailer::generateThumbnail
(this=0x7fff31625e70,
videoFile=@0x139e49b0,
imageWriter=@0x139db0a0, pavContext=0x0) at videothumbnailer.cpp:118
#3 0x00002acc7948eed9 in VideoThumbnailer::generateThumbnail
(this=0x7fff31625e70,
videoFile=@0x7fff31625ed0,
type=<value optimized out>, outputFile=@0x7fff31625eb0, pavContext=0x0) at
videothumbnailer.cpp:157
#4 0x00000000004018df in main (argc=<value optimized out>, argv=<value
optimized
out>) at main.cpp:107
Original comment by jzehn...@gmail.com
on 23 Jan 2009 at 10:12
Interesting the crash happens on initialization, not in the ffmpeg lib as I
wrongly
assumed. But I would need to know the values of all the variables in this
expression
(m_pFormatContext->streams[i]->codec->codec_type) to identify the issue.
Original comment by dirk.vdb
on 23 Jan 2009 at 10:43
thanks for your help, i finally gave up and found an old pre-compiled copy of
1.3 and
that is not working on the same box. i will just go with this until someone
graces
us with centos yum package. :)
Original comment by jzehn...@gmail.com
on 24 Jan 2009 at 12:30
Original comment by dirk.vdb
on 12 May 2009 at 8:38
Original issue reported on code.google.com by
jzehn...@gmail.com
on 23 Jan 2009 at 8:10