hamedramzi / ffmbc

Automatically exported from code.google.com/p/ffmbc
0 stars 0 forks source link

Encoding FLAC to 6-channel AAC/MP4 crashes with segmentation fault #141

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. I attempt to convert FLAC input files to a AAC in an MP4 stream.  I use six 
input files in order to make a six-channel output file.  This crashes with a 
Segmentation fault.  If I try fewer than six channels, the output proceeds as 
expected.  (Possibly there's something fishy in the last input file - 
ED-CM-5.1-DVD-LFE.flac.)

What is the expected output? What do you see instead?
I expected to receive an MP4 output file, but I get a Segmentation fault 
instead.

What version of the product are you using? On what operating system?
FFmbc version 0.7-rc8
Ubunto 10.04 LTS

Please provide any additional information below:

- Full commandline run (with -v 3) and everything the program printed
without
the repeating parts.

ffmbc -v 3 -i ED-CM-5.1-DVD-C.flac  -i ED-CM-5.1-DVD-L.flac -i 
ED-CM-5.1-DVD-R.flac -i ED-CM-5.1-DVD-LS.flac -i ED-CM-5.1-DVD-RS.flac -i 
ED-CM-5.1-DVD-LFE.flac  -strict experimental -acodec aac  foo.mp4 
-map_audio_channel 0:0:0:0:0:0 -map_audio_channel 1:0:0:0:0:1 
-map_audio_channel 2:0:0:0:0:2 -map_audio_channel 3:0:0:0:0:3 
-map_audio_channel 4:0:0:0:0:4 -map_audio_channel 5:0:0:0:0:5
FFmbc version 0.7-rc8
Copyright (c) 2008-2013 Baptiste Coudurier and the FFmpeg developers
Input #0, flac, from 'ED-CM-5.1-DVD-C.flac':
  Duration: 00:10:58.08, bitrate: 629 kb/s
    Stream #0.0(und): Audio: flac, 48000 Hz, mono, s32
Input #1, flac, from 'ED-CM-5.1-DVD-L.flac':
  Duration: 00:10:58.08, bitrate: 711 kb/s
    Stream #1.0(und): Audio: flac, 48000 Hz, mono, s32
Input #2, flac, from 'ED-CM-5.1-DVD-R.flac':
  Duration: 00:10:58.08, bitrate: 708 kb/s
    Stream #2.0(und): Audio: flac, 48000 Hz, mono, s32
Input #3, flac, from 'ED-CM-5.1-DVD-LS.flac':
  Duration: 00:10:58.08, bitrate: 497 kb/s
    Stream #3.0(und): Audio: flac, 48000 Hz, mono, s32
Input #4, flac, from 'ED-CM-5.1-DVD-RS.flac':
  Duration: 00:10:58.08, bitrate: 490 kb/s
    Stream #4.0(und): Audio: flac, 48000 Hz, mono, s32
Input #5, flac, from 'ED-CM-5.1-DVD-LFE.flac':
  Duration: 00:10:58.08, bitrate: 159 kb/s
    Stream #5.0(und): Audio: flac, 48000 Hz, mono, s32
Incompatible sample format 's32' for codec 'aac', auto-selecting format 's16'
Output #0, mp4, to 'foo.mp4':
  Metadata:
    encoder: FFmbc 0.7
    Stream #0.0(und): Audio: aac, 48000 Hz, 6 channels, s16, 64 kb/s
Stream mapping:
  Stream #0.0 -> #0.0 [channel: 0 -> 0]
  Stream #1.0 -> #0.0 [channel: 0 -> 1]
  Stream #2.0 -> #0.0 [channel: 0 -> 2]
  Stream #3.0 -> #0.0 [channel: 0 -> 3]
  Stream #4.0 -> #0.0 [channel: 0 -> 4]
  Stream #5.0 -> #0.0 [channel: 0 -> 5]
Press [q] to stop, [?] for help
Segmentation fault

- Upload your sample somewhere and supply url
Source files at http://media.xiph.org/ED/

Original issue reported on code.google.com by k...@vizrt.com on 25 Mar 2013 at 10:13

GoogleCodeExporter commented 9 years ago
Humm yes, it's probably related to encoding 6 channels.
Let me investigate

Original comment by baptiste...@gmail.com on 25 Mar 2013 at 9:36

GoogleCodeExporter commented 9 years ago
I'll only enable mono or stereo encoding for now

Original comment by baptiste...@gmail.com on 6 Oct 2014 at 7:09