google-cloud-python icon indicating copy to clipboard operation
google-cloud-python copied to clipboard

Making video or audio optional in transcoder api

Open ahmed-trailfive opened this issue 2 years ago • 5 comments

  • 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 avatar Jul 01 '22 10:07 ahmed-trailfive

@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.

jskeet avatar Jul 01 '22 11:07 jskeet

Sorry. You guys were coming in tag suggestions.

ahmed-trailfive avatar Jul 01 '22 11:07 ahmed-trailfive

@nicain Hi Will this be added soon?

ahmed-trailfive avatar Jul 14 '22 10:07 ahmed-trailfive

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.

parthea avatar Apr 17 '23 16:04 parthea

Any update?

reco avatar Apr 27 '24 02:04 reco