0

I am currently converting a video. Uploaded to cloud storage using a signed URL, using Transcoder API and transcoding a video larger than 5 seconds. But when video or audio is missing the job failed. How do I make video or audio optional for my job?

My Current Code:

job.config = transcoder_v1.types.JobConfig(
        elementary_streams=[
            transcoder_v1.types.ElementaryStream(
                key="video-stream0",
                video_stream=transcoder_v1.types.VideoStream(
                    h264=transcoder_v1.types.VideoStream.H264CodecSettings(
                        bitrate_bps=550000,
                        frame_rate=60,
                    ),
                ),
            ),
            transcoder_v1.types.ElementaryStream(
                key="video-stream1",
                video_stream=transcoder_v1.types.VideoStream(
                    h264=transcoder_v1.types.VideoStream.H264CodecSettings(
                        bitrate_bps=2500000,
                        frame_rate=60,
                    ),
                ),

            ),
            transcoder_v1.types.ElementaryStream(
                key="audio-stream0",
                audio_stream=transcoder_v1.types.AudioStream(
                    codec="aac", bitrate_bps=64000
                ),
            ),
        ],
        mux_streams=[
            transcoder_v1.types.MuxStream(
                key="sd",
                container="ts",
                elementary_streams=["video-stream0", "audio-stream0"],
            ),
            transcoder_v1.types.MuxStream(
                key="hd",
                container="ts",
                elementary_streams=["video-stream1", "audio-stream0"],
            ),
            
        ],
        manifests=[
            transcoder_v1.types.Manifest(
                type="HLS",
                mux_streams=["sd", "hd"],
            ),
        ],
    )

Error message:
No Audio:

\atom atom0 does not have any inputs (input0) with an audio track

No Video:

message": "editList does not have any input with a video track"

I have viewed the following documents.

JM Gelilio
  • 3,482
  • 1
  • 11
  • 23
Mrcreamio
  • 73
  • 2
  • 10
  • Hi @Mrcreamio, Currently it’s not possible to make video and audio track to be optional when transcoding using Transcoder API, this issue has been raised in this [issue tracker](https://issuetracker.google.com/238583496). However, we cannot provide an ETA at the moment but you can “STAR” the issue to receive automatic updates and give it traction by referring to this [link](https://developers.google.com/issue-tracker/guides/subscribe#starring_an_issue). – Prajna Rai T Jul 11 '22 at 07:29
  • yes. also on GitHub they have tagged this issue as a bug. https://github.com/googleapis/python-video-transcoder/issues/206 – Mrcreamio Jul 18 '22 at 07:19

0 Answers0