google-cloud-python
google-cloud-python copied to clipboard
Making video or audio optional in transcoder api
- What I am trying to do I am trying to transcode a video larger than 5 seconds. But the video or audio should be optional
- What code I have already tried
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 messages I am getting
When no audio is found:
\atom atom0 does not have any inputs (input0) with an audio track
When no audio is found:message": "editList does not have any input with a video track"
@ahmed-trailfive: Please don't tag unrelated individuals in issues. I'm sure the Python libraries team will get to your issue in a timely fashion. Spamming other teams doesn't help anyone.
Sorry. You guys were coming in tag suggestions.
@nicain Hi Will this be added soon?
I'm going to transfer this issue to the google-cloud-python
repository as we are preparing to move the code for google-cloud-video-transcoder
to that repository in the next 1-2 weeks.
Any update?