Skip to content

Video encoded with no sound

0

There is a job template I use to encode video.

{
                        "ContainerSettings": {
                            "Container": "M3U8",
                            "M3u8Settings": {
                                "AudioFramesPerPes": 4,
                                "PcrControl": "PCR_EVERY_PES_PACKET",
                                "PmtPid": 480,
                                "PrivateMetadataPid": 503,
                                "ProgramNumber": 1,
                                "PatInterval": 0,
                                "PmtInterval": 0,
                                "VideoPid": 481,
                                "AudioPids": [
                                    482,
                                    483,
                                    484,
                                    485,
                                    486,
                                    487,
                                    488,
                                    489,
                                    490,
                                    491,
                                    492,
                                    493,
                                    494,
                                    495,
                                    496,
                                    497,
                                    498
                                ]
                            }
                        },
                        "VideoDescription": {
                            "Width": 1920,
                            "ScalingBehavior": "DEFAULT",
                            "Height": 1080,
                            "TimecodeInsertion": "DISABLED",
                            "AntiAlias": "ENABLED",
                            "Sharpness": 100,
                            "CodecSettings": {
                                "Codec": "H_264",
                                "H264Settings": {
                                    "InterlaceMode": "PROGRESSIVE",
                                    "ParNumerator": 1,
                                    "NumberReferenceFrames": 3,
                                    "Syntax": "DEFAULT",
                                    "GopClosedCadence": 1,
                                    "HrdBufferInitialFillPercentage": 90,
                                    "GopSize": 3,
                                    "Slices": 1,
                                    "GopBReference": "ENABLED",
                                    "HrdBufferSize": 21250000,
                                    "Bitrate": 8500000,
                                    "SlowPal": "DISABLED",
                                    "ParDenominator": 1,
                                    "SpatialAdaptiveQuantization": "ENABLED",
                                    "TemporalAdaptiveQuantization": "ENABLED",
                                    "FlickerAdaptiveQuantization": "ENABLED",
                                    "EntropyEncoding": "CABAC,"
                                    "FramerateControl": "INITIALIZE_FROM_SOURCE",
                                    "RateControlMode": "CBR",
                                    "CodecProfile": "HIGH",
                                    "Telecine": "NONE",
                                    "MinIInterval": 0,
                                    "AdaptiveQuantization": "HIGH",
                                    "FieldEncoding": "PAFF",
                                    "SceneChangeDetect": "ENABLED",
                                    "QualityTuningLevel": "SINGLE_PASS_HQ",
                                    "FramerateConversionAlgorithm": "DUPLICATE_DROP",
                                    "UnregisteredSeiTimecode": "DISABLED",
                                    "GopSizeUnits": "SECONDS",
                                    "ParControl": "SPECIFIED",
                                    "NumberBFramesBetweenReferenceFrames": 5,
                                    "RepeatPps": "DISABLED",
                                    "DynamicSubGop": "ADAPTIVE"
                                }
                            },
                            "AfdSignaling": "NONE",
                            "DropFrameTimecode": "ENABLED",
                            "RespondToAfd": "NONE",
                            "ColorMetadata": "INSERT"
                        },
                        "AudioDescriptions": [
                            {
                                "AudioTypeControl": "FOLLOW_INPUT",
                                "AudioSourceName": "Audio Selector 1",
                                "CodecSettings": {
                                    "Codec": "AAC",
                                    "AacSettings": {
                                        "AudioDescriptionBroadcasterMix": "NORMAL",
                                        "Bitrate": 128000,
                                        "RateControlMode": "CBR",
                                        "CodecProfile": "LC",
                                        "CodingMode": "CODING_MODE_2_0",
                                        "RawFormat": "NONE",
                                        "SampleRate": 48000,
                                        "Specification": "MPEG4"
                                    }
                                },
                                "LanguageCodeControl": "FOLLOW_INPUT",
                                "AudioType": 0
                            }
                        ],
                        "NameModifier": "_Ott_Hls_Ts_Avc_Aac_16x9_1920x1080p_8.5Mbps_qvbr"
                    }

The origin template you can see here: https://github.com/aws-solutions/video-on-demand-on-aws/blob/main/source/custom-resource/lib/mediaconvert/templates/1080p_avc_aac_16x9_qvbr_no_preset.json I changed the variable bitrate to static, and the HV1 codec was replaced with LC.

I encode two videos with pretty similar definitions. Here they are:

{
                "@type": "Audio",
                "StreamOrder": "1",
                "ID": "2",
                "Format": "AAC",
                "Format_AdditionalFeatures": "LC",
                "CodecID": "mp4a-40-2",
                "Duration": "81.123",
                "Source_Duration": "81.152",
                "BitRate_Mode": "VBR",
                "BitRate": "317307",
                "BitRate_Maximum": "412500",
                "Channels": "2",
                "ChannelPositions": "Front: L R",
                "ChannelLayout": "L R",
                "SamplesPerFrame": "1024",
                "SamplingRate": "48000",
                "SamplingCount": "3893904",
                "FrameRate": "46.875",
                "FrameCount": "3803",
                "Source_FrameCount": "3804",
                "Compression_Mode": "Lossy",
                "StreamSize": "3217926",
                "StreamSize_Proportion": "0.04894",
                "Source_StreamSize": "3218772",
                "Source_StreamSize_Proportion": "0.04896",
                "Language": "en",
                "Encoded_Date": "UTC 2024-01-24 22:55:56",
                "Tagged_Date": "UTC 2024-01-24 22:55:56"
            }

,

{
                "@type": "Audio",
                "StreamOrder": "1",
                "ID": "2",
                "Format": "AAC",
                "Format_AdditionalFeatures": "LC",
                "CodecID": "mp4a-40-2",
                "Duration": "2164.362",
                "Source_Duration": "2164.395",
                "BitRate_Mode": "VBR",
                "BitRate": "317372",
                "BitRate_Maximum": "556875",
                "Channels": "2",
                "ChannelPositions": "Front: L R",
                "ChannelLayout": "L R",
                "SamplesPerFrame": "1024",
                "SamplingRate": "48000",
                "SamplingCount": "103889376",
                "FrameRate": "46.875",
                "FrameCount": "101454",
                "Source_FrameCount": "101456",
                "Compression_Mode": "Lossy",
                "StreamSize": "85863222",
                "StreamSize_Proportion": "0.05672",
                "Source_StreamSize": "85864915",
                "Source_StreamSize_Proportion": "0.05672",
                "Language": "en",
                "Encoded_Date": "UTC 2024-02-29 22:20:27",
                "Tagged_Date": "UTC 2024-02-29 22:20:27"
            }

One of them encoded successfully and played correctly. The second one is without any sound. There are links to play them, and it seems like the first one doesn't contain a sound stream.

I don't see any errors in my AWS MediaConvert job. Can somebody help with indicating the issue? Is there any workaround to handle it?

1 Answer
0

Hi there,

To answer your concern, we would need details that are non-public information. I would highly recommend reaching out to our AWS Premium Support team for deep dive technical assistance - Please open a support case with AWS using the following link https://console.aws.amazon.com/support/home#/case/create

AWS
SUPPORT ENGINEER

answered 2 years ago

EXPERT

reviewed 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.