Seg Fault

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Seg Fault

Matthew Berry-2

I have seen this issue come up before and was hoping that someone could
provide some input on this.  If you download the Sicko trailer from the
apple site.  This is the data that I worked with.

In our system all files are converted to mp4 before any work is performed on
them.  This is accomplished with this command:
    ffmpeg -i sicko-tlr1_h480.mov -sameq sicko-tlr1.mp4
with this output:

FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2007 Fabrice Bellard, et al.
  configuration: --prefix=/usr --enable-libmp3lame --enable-libogg
--enable-libvorbis --enable-libfaad --enable-libfaac --enable-liba52
--enable-pp --enable-shared --enable-pthreads --enable-gpl --enable-xvid
--enable-x264 --enable-libgsm --enable-libtheora
  libavutil version: 1d.49.3.0
  libavcodec version: 1d.51.38.0
  libavformat version: 1d.51.10.0
  built on Dec 26 2007 16:52:09, gcc: 4.1.3 20070929 (prerelease) (Ubuntu
4.1.2-16ubuntu2)
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xb7fb2bd4]negative ctts, ignoring
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'sicko-tlr1_h480.mov':
  Duration: 00:02:27.2, start: 0.000000, bitrate: 758 kb/s
  Stream #0.0(eng): Video: h264, yuv420p, 480x260, 29.97 fps(r)
  Stream #0.1(eng): Audio: aac, 44100 Hz, stereo
  Stream #0.2(eng): Data: tmcd / 0x64636D74
Output #0, mp4, to 'sicko-tlr1.mp4':
  Stream #0.0: Video: mpeg4, yuv420p, 480x260, q=2-31, 200 kb/s, 29.97
fps(c)
  Stream #0.1: Audio: aac, 44100 Hz, stereo, 64 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
Press [q] to stop encoding
frame= 4386 q=0.0 Lsize=   33411kB time=145.2 bitrate=1884.5kbits/s
video:32341kB audio:984kB global headers:0kB muxing overhead 0.256946%


Then later on, a wave file needs to be extracted for the software to
process.  This is done with this command:
   /usr/bin/ffmpeg -y -i sicko-tlr1.mp4 -ac 1 -ar 8000 -acodec pcm_s16le -f
wav sicko-tlr1.wav
with this output:

FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2007 Fabrice Bellard, et al.
  configuration: --prefix=/usr --enable-libmp3lame --enable-libogg
--enable-libvorbis --enable-libfaad --enable-libfaac --enable-liba52
--enable-pp --enable-shared --enable-pthreads --enable-gpl --enable-xvid
--enable-x264 --enable-libgsm --enable-libtheora
  libavutil version: 1d.49.3.0
  libavcodec version: 1d.51.38.0
  libavformat version: 1d.51.10.0
  built on Dec 26 2007 16:52:09, gcc: 4.1.3 20070929 (prerelease) (Ubuntu
4.1.2-16ubuntu2)

Seems stream 0 codec frame rate differs from container frame rate: 2997.00
(2997/1) -> 29.97 (30000/1001)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'sicko-tlr1.mp4':
  Duration: 00:02:26.3, start: 0.000000, bitrate: 1870 kb/s
  Stream #0.0(und): Video: mpeg4, yuv420p, 480x260, 29.97 fps(r)
  Stream #0.1(und): Audio: aac, 44100 Hz, stereo
Output #0, wav, to 'sicko-tlr1.wav':
  Stream #0.0: Audio: pcm_s16le, 8000 Hz, mono, 128 kb/s
Stream mapping:
  Stream #0.1 -> #0.0
Press [q] to stop encoding
[aac @ 0xb7ea3348]faac: frame decoding failed: Invalid number of channels
Error while decoding stream #0.1
[aac @ 0xb7ea3348]faac: frame decoding failed: Gain control not yet
implemented
Error while decoding stream #0.1
[aac @ 0xb7ea3348]faac: frame decoding failed: Gain control not yet
implemented
Error while decoding stream #0.1

.... [repeated numerous times]

Segmentation fault

If I run this same command but use the sicko-tlr1_h480.mov as the source,
there is no problem.
If I use the -sameq command to make an flv instead of an mp4, then run the
command to make a wave, it works correctly.

Something is happening between the mov (h264, acc) -> mp4 (mpeg4, aac)
conversion that is causing a problem when trying to make a wave file from
the mp4.

Thanks for any help!

Matt


_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: Seg Fault

Benjamin Larsson-2
Matthew Berry wrote:

> I have seen this issue come up before and was hoping that someone could
> provide some input on this.  If you download the Sicko trailer from the
> apple site.  This is the data that I worked with.
>
> In our system all files are converted to mp4 before any work is performed on
> them.  This is accomplished with this command:
>     ffmpeg -i sicko-tlr1_h480.mov -sameq sicko-tlr1.mp4
> with this output:
>
> FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2007 Fabrice Bellard, et al.
>   configuration: --prefix=/usr --enable-libmp3lame --enable-libogg
> --enable-libvorbis --enable-libfaad --enable-libfaac --enable-liba52
> --enable-pp --enable-shared --enable-pthreads --enable-gpl --enable-xvid
> --enable-x264 --enable-libgsm --enable-libtheora
>   libavutil version: 1d.49.3.0
>   libavcodec version: 1d.51.38.0
>   libavformat version: 1d.51.10.0
>   built on Dec 26 2007 16:52:09, gcc: 4.1.3 20070929 (prerelease) (Ubuntu
> 4.1.2-16ubuntu2)
> [mov,mp4,m4a,3gp,3g2,mj2 @ 0xb7fb2bd4]negative ctts, ignoring
> Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'sicko-tlr1_h480.mov':
>   Duration: 00:02:27.2, start: 0.000000, bitrate: 758 kb/s
>   Stream #0.0(eng): Video: h264, yuv420p, 480x260, 29.97 fps(r)
>   Stream #0.1(eng): Audio: aac, 44100 Hz, stereo
>   Stream #0.2(eng): Data: tmcd / 0x64636D74
> Output #0, mp4, to 'sicko-tlr1.mp4':
>   Stream #0.0: Video: mpeg4, yuv420p, 480x260, q=2-31, 200 kb/s, 29.97
> fps(c)
>   Stream #0.1: Audio: aac, 44100 Hz, stereo, 64 kb/s
> Stream mapping:
>
>  

The aac encoder is buggy producing faulty streams.

> [aac @ 0xb7ea3348]faac: frame decoding failed: Invalid number of channels
> Error while decoding stream #0.1
> [aac @ 0xb7ea3348]faac: frame decoding failed: Gain control not yet
> implemented
> Error while decoding stream #0.1
> [aac @ 0xb7ea3348]faac: frame decoding failed: Gain control not yet
> implemented
>  


MvH
Benjamin Larsson


_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user