Opened 4 years ago

Closed 4 years ago

#953 closed defect (needs_more_info)

0.10 - Input channel layout isnt supported

Reported by: Atarikid Owned by:
Priority: normal Component: undetermined
Version: 0.10 Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

When you try to convert a video with PCM audio and you use -async you always get the error : "Input channel layout isn't supported"

To be more exact:
-async 1 -> works
-async 44110 -> does not work

This bug is not present with 0.91

Change History (7)

comment:1 Changed 4 years ago by cehoyos

Please add a failing command line and complete, uncut console output.

comment:2 Changed 4 years ago by Atarikid

Yes, sorry for that. Here is some more useful info - it is most certainly a bug with 0.10

ffmpeg -i /Volumes/Data/Movies?\ 2/Unbenannt1\-160.mov -c:a libfaac -ab 128k -ar 48000 -ac 1 -strict experimental -async 48000 -c:v libx264 -y "/Users/xtophe/Movies/Unbenannt1-160.mp4"

Output:

ffmpeg version 0.10 Copyright (c) 2000-2012 the FFmpeg developers

built on Jan 28 2012 09:14:21 with gcc 4.2.1 (Apple Inc. build 5666) (dot 3)
configuration: --prefix=/Volumes/tempdisk/sw --enable-gpl --enable-pthreads --enable-version3 --enable-nonfree --disable-ffplay --disable-ffserver --enable-libvpx --disable-decoder=libvpx --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-libxavs --enable-avfilter --enable-libopencore_amrwb --enable-libopencore_amrnb --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-bzlib --enable-zlib --enable-filters --arch=x86 --enable-runtime-cpudetect
libavutil 51. 34.101 / 51. 34.101
libavcodec 53. 60.100 / 53. 60.100
libavformat 53. 31.100 / 53. 31.100
libavdevice 53. 4.100 / 53. 4.100
libavfilter 2. 60.100 / 2. 60.100
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 6.100 / 0. 6.100
libpostproc 52. 0.100 / 52. 0.100

Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Volumes/Data/Movies? 2/Unbenannt1-160.mov':

Metadata:

major_brand : qt
minor_version : 537199360
compatible_brands: qt
creation_time : 2009-08-05 21:27:22

Duration: 00:00:16.16, start: 0.525200, bitrate: 27447 kb/s

Stream #0:0(eng): Video: mpeg2video (Main) (hdv3 / 0x33766468), yuv420p, 1440x1080 [SAR 4:3 DAR 16:9], 25000 kb/s, 25 fps, 25 tbr, 2500 tbn, 50 tbc
Metadata:

creation_time : 2009-08-05 21:27:22
handler_name : ?Apple Alias-Datensteuerung

Stream #0:1(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, 1 channels (FL), s16, 768 kb/s
Metadata:

creation_time : 2009-08-05 21:27:22
handler_name : ?Apple Alias-Datensteuerung

Stream #0:2(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, 1 channels (FR), s16, 768 kb/s
Metadata:

creation_time : 2009-08-05 21:27:22
handler_name : ?Apple Alias-Datensteuerung

Stream #0:3(eng): Data: none (tmcd / 0x64636D74)
Metadata:

creation_time : 2009-08-05 21:27:22
handler_name : ?Apple Alias-Datensteuerung
timecode : 00:12:31:11

[buffer @ 0x101716ba0] w:1440 h:1080 pixfmt:yuv420p tb:1/1000000 sar:4/3 sws_param:
[libx264 @ 0x10185a400] using SAR=4/3
[libx264 @ 0x10185a400] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle? SSE4.2 AVX
[libx264 @ 0x10185a400] profile High, level 4.0
[libx264 @ 0x10185a400] 264 - core 120 r2146 bcd41db - H.264/MPEG-4 AVC codec - Copyleft 2003-2011 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=12 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to '/Users/xtophe/Movies/Unbenannt1-160.mp4':

Metadata:

major_brand : qt
minor_version : 537199360
compatible_brands: qt
creation_time : 2009-08-05 21:27:22
encoder : Lavf53.31.100
Stream #0:0(eng): Video: h264 (![0][0][0] / 0x0021), yuv420p, 1440x1080 [SAR 4:3 DAR 16:9], q=-1--1, 25 tbn, 25 tbc
Metadata:

creation_time : 2009-08-05 21:27:22
handler_name : ?Apple Alias-Datensteuerung

Stream #0:1(eng): Audio: aac (@[0][0][0] / 0x0040), 48000 Hz, 1 channels, s16, 128 kb/s
Metadata:

creation_time : 2009-08-05 21:27:22
handler_name : ?Apple Alias-Datensteuerung

Stream mapping:

Stream #0:0 -> #0:0 (mpeg2video -> libx264)
Stream #0:1 -> #0:1 (pcm_s16le -> libfaac)

Press [q] to stop, ? for help
[SWR @ 0x10855bc00] Input channel layout isnt supported
swr_init() failed
Can not resample 1 channels @ 48000 Hz to 1 channels @ 48000 Hz

Now,when you remove -async 48000 from the above commandline it works fine and doesn't gives any errors.

Hope this helps sorting out the problem.

comment:3 follow-up: Changed 4 years ago by cehoyos

Please provide the input sample.

What is "-async 48000" supposed to do?

comment:4 in reply to: ↑ 3 Changed 4 years ago by Atarikid

Replying to cehoyos:

What is "-async 48000" supposed to do?

Using this with the source samplerate (in this case 48000) resolves a lot of audio syncing.
Isn't this the correct way of doing this? -async 1 only syncs the start and this is mostly not enough.

comment:5 follow-up: Changed 4 years ago by Atarikid

It seems when you want to change the audio channels count too, you get the same error (can not resample ...).
It most definitely has something todo with PCM S16LE audio streams and resampling. I have uploading a 50MB example which always triggers this issue.
Please note that it worked with previous versions. All version + 0.10 (including latest git) have this issue.

Here is the download link: http://www.mediafire.com/?mmihkak5ha8g2d2

comment:6 in reply to: ↑ 5 Changed 4 years ago by cehoyos

  • Component changed from FFmpeg to undetermined

Replying to Atarikid:

I have uploading a 50MB example which always triggers this issue.
Please note that it worked with previous versions. All version + 0.10 (including latest git) have this issue.

Here is the download link: http://www.mediafire.com/?mmihkak5ha8g2d2

The sample does not work for me:

$ md5sum Unbenannt1-160.mov
8a29f87e274b32df4f53335ae18968d5  Unbenannt1-160.mov
$ ffmpeg -i Unbenannt1-160.mov
ffmpeg version N-37798-gcd1c12b Copyright (c) 2000-2012 the FFmpeg developers
  built on Feb 12 2012 01:52:42 with gcc 4.5.3
  configuration: --cc=/usr/local/gcc-4.5.3/bin/gcc
  libavutil      51. 39.100 / 51. 39.100
  libavcodec     54.  1.100 / 54.  1.100
  libavformat    54.  0.100 / 54.  0.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 62.100 /  2. 62.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0.  6.100 /  0.  6.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x13d13a0] moov atom not found
Unbenannt1-160.mov: Invalid data found when processing input

comment:7 Changed 4 years ago by cehoyos

  • Resolution set to needs_more_info
  • Status changed from new to closed

A mov file with two audio streams with channel layout "FL" and "FR" was uploaded for ticket #1474.
It is now used for ticket #1764.

Note: See TracTickets for help on using tickets.