From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id BC79B44D94 for ; Fri, 23 Dec 2022 18:30:13 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 23DAC68BB41; Fri, 23 Dec 2022 20:30:10 +0200 (EET) Received: from mail-yw1-f170.google.com (mail-yw1-f170.google.com [209.85.128.170]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 76ECE680CB2 for ; Fri, 23 Dec 2022 20:30:03 +0200 (EET) Received: by mail-yw1-f170.google.com with SMTP id 00721157ae682-3e45d25de97so75994537b3.6 for ; Fri, 23 Dec 2022 10:30:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=X3C9FVz0DmPCw+ueWGWTa8LktgMezzKYDG/X0mmPQ/E=; b=hs0vsJhBLY+uj20bOggZ8vrw1pznTapXcVLABZeGyidCKlMzNVooSOW7wqVSrvjA2E /8CqqzL9itoS3ca1aLTClHSSA8KFDbSOtgEmNaMpuhacFiB7SsgkQX/jF5Frug8CRFiV HH8Xr1OqIHbFFDtl16pinYviuSqvD14ao02d1q3XaoWWc2RPruMgM4DAp2fbQmnSRPlV PX9C5mw3l2oLxzh4IuiWlNBzy37B+DN7ZThjgIvoGlTP7fCiwxY+5MJpdYd8SMya0aJa uXFDv2tuNnC6D4Gpe7t9vld3XPufvvTi+NdT0t4EEx6/7fW68YRoQAGB9yDZhfRTxMzC VTPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=X3C9FVz0DmPCw+ueWGWTa8LktgMezzKYDG/X0mmPQ/E=; b=ukcKuw54gMYCMt2VjBdwewZE6e3RX0Kswpu+s+TtsmIkUAypNTIZ6Vtmfa8ktpvU2L qSpMkNCeAQkntvHfO3bmQNyb4CnF67g4T3Pkl1us7HIXuHiL0hBPeZOcm73MIXJU72Lz bmif/uq4hDce4djs1IfWS/Ne3+r3oPYYMfpSCti9CiwHeEGOeDpeuffZ3JEeDLq/WWwk pc09dAJ0nlpgNKY7AdvYxpnVsNnIVSj2DGaCaMsdEnaE6PkbuGfaZRuOUysnNuF7iz29 KApHPsO3jVkY8K+a4D7p+Ctcqa9GKFQT08chAJLpp1qXAcCIO225MxbMPrS3nsxrciBS SI3Q== X-Gm-Message-State: AFqh2kpQeoKD9m/cuZfrnJpIqZav6Q0k74Ch2vBoTzIUi/fYWZs8SWNN vnk5CwIzrqk9lVj5B5pwjAZnNmbcOBRmZL+PLBe4PaWk X-Google-Smtp-Source: AMrXdXvB7QhKW8a69OelzsVQ4bq0pBmZx886mhxskBDz+lbbktzgY5798wTzgCyxt9GFmdZTt0o5+xjcGhrrbbUm58o= X-Received: by 2002:a81:5588:0:b0:46a:cb68:9add with SMTP id j130-20020a815588000000b0046acb689addmr361887ywb.102.1671820201660; Fri, 23 Dec 2022 10:30:01 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Mahesh Velankar Date: Fri, 23 Dec 2022 13:29:50 -0500 Message-ID: To: ffmpeg-devel@ffmpeg.org X-Content-Filtered-By: Mailman/MimeDel 2.1.29 Subject: [FFmpeg-devel] AC3 decoding throws error number -16976906 ... vlc plays well X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: I have got a mpeg ts file with following composition (shown by ffprobe) ffprobe version N-109444-geef763c705 Copyright (c) 2007-2022 the FFmpeg developers built with gcc 7 (Ubuntu 7.5.0-3ubuntu1~18.04) configuration: --enable-openssl libavutil 57. 43.100 / 57. 43.100 libavcodec 59. 55.103 / 59. 55.103 libavformat 59. 34.102 / 59. 34.102 libavdevice 59. 8.101 / 59. 8.101 libavfilter 8. 53.100 / 8. 53.100 libswscale 6. 8.112 / 6. 8.112 libswresample 4. 9.100 / 4. 9.100 [mpegts @ 0x56201c2c1cc0] Could not find codec parameters for stream 1 (Audio: ac3 ([129][0][0][0] / 0x0081), stereo, fltp): unspecified sample rate Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options Input #0, mpegts, from 'ff_vlc.ts': Duration: 00:10:00.02, start: 1.400000, bitrate: 1839 kb/s Program 1 Metadata: service_name : Service01 service_provider: FFmpeg Stream #0:0[0x100]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709, progressive), 856x480 [SAR 320:321 DAR 16:9], 30 fps, 59.94 tbr, 90k tbn Stream #0:1[0x101](spa): Audio: ac3 ([129][0][0][0] / 0x0081), stereo, fltp -------------------------------------------------- I intend to transcode this so that I copy the video as it is but the audio will be encoded to aac ...so that I can play it in the browser. I use the following ffmpeg command to attempt that ffmpeg -i ff_vlc.ts -vcodec copy -acodec aac -map 0:v:0 -map 0:a:0 ff_vlc_2.ts this throws errors with -16976906 as follows..........( I have clipped the repetitive excessively long output) ffmpeg -i ff_vlc.ts -vcodec copy -acodec aac -map 0:v:0 -map 0:a:0 ff_vlc_2.ts ffmpeg version N-109444-geef763c705 Copyright (c) 2000-2022 the FFmpeg developers built with gcc 7 (Ubuntu 7.5.0-3ubuntu1~18.04) configuration: --enable-openssl libavutil 57. 43.100 / 57. 43.100 libavcodec 59. 55.103 / 59. 55.103 libavformat 59. 34.102 / 59. 34.102 libavdevice 59. 8.101 / 59. 8.101 libavfilter 8. 53.100 / 8. 53.100 libswscale 6. 8.112 / 6. 8.112 libswresample 4. 9.100 / 4. 9.100 [mpegts @ 0x55b4369b2440] Could not find codec parameters for stream 1 (Audio: ac3 ([129][0][0][0] / 0x0081), stereo, fltp): unspecified sample rate Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options Input #0, mpegts, from 'ff_vlc.ts': Duration: 00:10:00.02, start: 1.400000, bitrate: 1839 kb/s Program 1 Metadata: service_name : Service01 service_provider: FFmpeg Stream #0:0[0x100]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709, progressive), 856x480 [SAR 320:321 DAR 16:9], 30 fps, 59.94 tbr, 90k tbn Stream #0:1[0x101](spa): Audio: ac3 ([129][0][0][0] / 0x0081), stereo, fltp Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #0:1 -> #0:1 (ac3 (native) -> aac (native)) Press [q] to stop, [?] for help Error while decoding stream #0:1: Error number -16976906 occurred Last message repeated 17065 times Too many packets buffered for output stream 0:0. Error submitting a packet to the muxer for output stream #0:0. Error while decoding stream #0:1: Error number -16976906 occurred Last message repeated 2 times Too many packets buffered for output stream 0:0. Error submitting a packet to the muxer for output stream #0:0. Too many packets buffered for output stream 0:0. Error submitting a packet to the muxer for output stream #0:0. Too many packets buffered for output stream 0:0. Error submitting a packet to the muxer for output stream #0:0. Error while decoding stream #0:1: Error number -16976906 occurred Last message repeated 2 times Too many packets buffered for output stream 0:0. Error submitting a packet to the muxer for output stream #0:0. Too many packets buffered for output stream 0:0. Error submitting a packet to the muxer for output stream #0:0. Error while decoding stream #0:1: Error number -16976906 occurred Last message repeated 2 times .... .... ....(repetitive output clipped and removed) .... .... Last message repeated 2 times Too many packets buffered for output stream 0:0. Error submitting a packet to the muxer for output stream #0:0. Too many packets buffered for output stream 0:0. Error submitting a packet to the muxer for output stream #0:0. Too many packets buffered for output stream 0:0. Error submitting a packet to the muxer for output stream #0:0. Too many packets buffered for output stream 0:0. Error submitting a packet to the muxer for output stream #0:0. Error while decoding stream #0:1: Error number -16976906 occurred Last message repeated 2 times Too many packets buffered for output stream 0:0. Error submitting a packet to the muxer for output stream #0:0. Too many packets buffered for output stream 0:0. Error submitting a packet to the muxer for output stream #0:0. Error while decoding stream #0:1: Error number -16976906 occurred Too many packets buffered for output stream 0:0. Error submitting a packet to the muxer for output stream #0:0. Too many packets buffered for output stream 0:0. Error submitting a packet to the muxer for output stream #0:0. [abuffer @ 0x56289e5ab100] Value inf for parameter 'time_base' out of range [0 - 2.14748e+09] Last message repeated 1 times [abuffer @ 0x56289e5ab100] Error setting option time_base to value 1/0. [graph_0_in_0_1 @ 0x5628a3f5e800] Error applying options to the filter. Error reinitializing filters! Error while filtering: Numerical result out of range Finishing stream 0:1 without any data written to it. [abuffer @ 0x56289b2b89c0] Value inf for parameter 'time_base' out of range [0 - 2.14748e+09] Last message repeated 1 times [abuffer @ 0x56289b2b89c0] Error setting option time_base to value 1/0. [graph_0_in_0_1 @ 0x56289a63e780] Error applying options to the filter. Error configuring filter graph Conversion failed! -------------------------------------------------- I tried the above even with this command ffmpeg -analyzeduration 2147483647 -probesize 2147483647 -i ff_vlc.ts -vcodec copy -acodec aac -map 0:v:0 -map 0:a:0 ff_vlc_2.ts Still get the same errors. Only changed lines in the output are [mpegts @ 0x55e1b757d580] Failed to allocate buffers for seekback [mpegts @ 0x55e1b757d580] Could not find codec parameters for stream 1 (Audio: ac3 ([129][0][0][0] / 0x0081), stereo, fltp): unspecified sample rate Consider increasing the value for the 'analyzeduration' (2147483647) and 'probesize' (2147483647) options -------------------------------------------------- VLC player has no problems in playing this audio ... only ffmpeg cannot decode. How do I fix this? Please help Thanks _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".