Giter VIP home page Giter VIP logo

ffmpeg-tv's People

Contributors

zurfyx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

ffmpeg-tv's Issues

map argument is allowed only once

ffmpeg takes multiple "map" arguments, one for each output stream, like

ffmpeg \
-i in.mkv \
-map 0:v:0 \
-map 0:a:0 \
-map 0:a:1 \
-map 0:s:0 \
out.mkv

ffmpeg-tv.py allows only one "map" argument. fix:

# line 90
  #map="0"
  map=[] # empty list

# line 150
  #if (args.map):
  #  ffmpeg_query += ['-map', args.map]
  for m in args.map:
    ffmpeg_query += ['-map', m]

so we can use

ffmpeg-tv.py -m 0:v:0 -m 0:a:0 -m 0:a:1 -m 0:s:0 in.mkv out.mkv

the default case of "-map 0" will simply use all input streams

to list input streams we can use

ffprobe in.mkv -v error -of flat \
-show_entries stream=index,codec_type,width,height:stream_tags=language

streams.stream.0.index=0
streams.stream.0.codec_type="video"
streams.stream.0.width=720
streams.stream.0.height=404
streams.stream.1.index=1
streams.stream.1.codec_type="audio"
streams.stream.1.tags.language="ger"
streams.stream.2.index=2
streams.stream.2.codec_type="audio"
streams.stream.2.tags.language="eng"
streams.stream.3.index=3
streams.stream.3.codec_type="subtitle"
streams.stream.3.width="N/A"
streams.stream.3.height="N/A"
streams.stream.3.tags.language="ger"
streams.stream.4.index=4
streams.stream.4.codec_type="subtitle"
streams.stream.4.width=1920
streams.stream.4.height=1080
streams.stream.4.tags.language="ger"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.