como selecionar fluxo para mapeamento

1

aqui está a informação do stream

  Program 0
    Metadata:
      variant_bitrate : 660144
    Stream #0:0(en): Audio: aac (LC) ([15][0][0][0] / 0x000F), 44100 Hz, mono, fltp (default)
    Metadata:
      comment         : English
    Stream #0:1: Data: timed_id3 (ID3  / 0x20334449)
    Stream #0:2(hi): Audio: aac (LC) ([15][0][0][0] / 0x000F), 44100 Hz, mono, fltp
    Metadata:
      comment         : Hindi
    Stream #0:3: Data: timed_id3 (ID3  / 0x20334449)
    Stream #0:4(bn): Audio: aac (LC) ([15][0][0][0] / 0x000F), 44100 Hz, mono, fltp
    Metadata:
      comment         : Bengali
    Stream #0:5: Data: timed_id3 (ID3  / 0x20334449)
    Stream #0:6(mr): Audio: aac (LC) ([15][0][0][0] / 0x000F), 44100 Hz, mono, fltp
    Metadata:
      comment         : Marathi
    Stream #0:7: Data: timed_id3 (ID3  / 0x20334449)
    Stream #0:8: Video: h264 (Constrained Baseline) ([27][0][0][0] / 0x001B), yuv420p, 640x360 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
    Metadata:
      variant_bitrate : 660144
    Stream #0:9: Audio: aac (LC) ([15][0][0][0] / 0x000F), 44100 Hz, stereo, fltp
    Metadata:
      variant_bitrate : 660144
    Stream #0:10: Data: timed_id3 (ID3  / 0x20334449)
    Metadata:
      variant_bitrate : 660144
  Program 1
    Metadata:
      variant_bitrate : 944962
    Stream #0:0(en): Audio: aac (LC) ([15][0][0][0] / 0x000F), 44100 Hz, mono, fltp (default)
    Metadata:
      comment         : English
    Stream #0:1: Data: timed_id3 (ID3  / 0x20334449)
    Stream #0:2(hi): Audio: aac (LC) ([15][0][0][0] / 0x000F), 44100 Hz, mono, fltp
    Metadata:
      comment         : Hindi
    Stream #0:3: Data: timed_id3 (ID3  / 0x20334449)
    Stream #0:4(bn): Audio: aac (LC) ([15][0][0][0] / 0x000F), 44100 Hz, mono, fltp
    Metadata:
      comment         : Bengali
    Stream #0:5: Data: timed_id3 (ID3  / 0x20334449)
    Stream #0:6(mr): Audio: aac (LC) ([15][0][0][0] / 0x000F), 44100 Hz, mono, fltp
    Metadata:
      comment         : Marathi
    Stream #0:7: Data: timed_id3 (ID3  / 0x20334449)
    Stream #0:11: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 640x360 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
    Metadata:
      variant_bitrate : 944962
    Stream #0:12: Audio: aac (LC) ([15][0][0][0] / 0x000F), 44100 Hz, stereo, fltp
    Metadata:
      variant_bitrate : 944962
    Stream #0:13: Data: timed_id3 (ID3  / 0x20334449)
    Metadata:
      variant_bitrate : 944962

Eu gostaria de mapear 0:11 e 0: 2 do Programa 1. Provavelmente precisarei de p: program_id [: stream_index].

aqui está o que eu tentei, mas mapeia 0: 0 duas vezes do Programa 0 sempre que um comando é executado com sucesso.

ffmpeg -i "https://cdnapisec.kaltura.com/p/1982551/sp/198255100/playManifest/protocol/https/entryId/0_eyx5tw99/format/applehttp/defaultAudioLang/English/tags/tv_hd/f/a.m3u8" -map p:1:#0:11 -map p:1:#0:2 -c copy video101.ts
ffmpeg -i "https://cdnapisec.kaltura.com/p/1982551/sp/198255100/playManifest/protocol/https/entryId/0_eyx5tw99/format/applehttp/defaultAudioLang/English/tags/tv_hd/f/a.m3u8" -map p:1:#11 -map p:1:#2 -c copy video101.ts
ffmpeg -i "https://cdnapisec.kaltura.com/p/1982551/sp/198255100/playManifest/protocol/https/entryId/0_eyx5tw99/format/applehttp/defaultAudioLang/English/tags/tv_hd/f/a.m3u8" -map p:1:[0:11] -map p:1:[0:2] -c copy video101.ts
ffmpeg -i "https://cdnapisec.kaltura.com/p/1982551/sp/198255100/playManifest/protocol/https/entryId/0_eyx5tw99/format/applehttp/defaultAudioLang/English/tags/tv_hd/f/a.m3u8" -map p:1:[:11] -map p:1:[:2] -c copy video101.ts
ffmpeg -i "https://cdnapisec.kaltura.com/p/1982551/sp/198255100/playManifest/protocol/https/entryId/0_eyx5tw99/format/applehttp/defaultAudioLang/English/tags/tv_hd/f/a.m3u8" -map p:Program 1:[:11] -map p:Program 1:[:2] -c copy video101.ts
    
por sameer 30.04.2018 / 08:22

1 resposta

0

Quase lá. É

... -map p:1:8 -map p:1:2 -c copy video101.ts

O ID do fluxo refere-se à posição do fluxo no programa (começando com 0)

Nesse caso específico, você também pode usar IDs de fluxo absoluto, já que os fluxos são relistados em programas diferentes, mas se referem ao mesmo fluxo subjacente.

... -map 0:11 -map 0:2 -c copy video101.ts
    
por 30.04.2018 / 10:47

Tags