Page 1 of 1

Dropdown field and variable for choosing audio track with ff

PostPosted: Sat Feb 12, 2011 6:21 am
by eger
I have some mkv files that have multiple audio tracks. I am able to hard code the correct track using the ffmpeg -map switch like so:

-map 0:0 -map 0:2

This maps the video track output to 0 (first switch) and the audio track to track 2 (second switch).

It would be cool if there was a variable to select the video and audio track from a dropdown to change this number dynamically in the transcoding step.

PostPosted: Mon Feb 14, 2011 2:58 am
by 3R3
+1
this would be amazing. sounds like a doable mod too, weļl see :)

PostPosted: Mon Feb 14, 2011 3:44 am
by eger
Hmm, this might be a little more complicated than I thought. I tried some other videos and the mapping doesn't work when the number of streams do not line up with the -map switches. For example, in another video that only has 1 input stream it fails to play with the 2 -map switches.

Re: Dropdown field and variable for choosing audio track wit

PostPosted: Wed Feb 08, 2012 1:19 am
by fincheresque
Just a note, and I realize I'm replying a year later, but my solution for multiple audio-tracks was to do this:
- In the Setup -> Transcoders Tab I made a copy of the default video transcoder and called it Commentary 1
- I added the -map 0:0 -map 0:2 to the ffmpeg command to the Commentary 1 transcoder I made above.

- In the Setup -> Players Tab I selected Player 1, and clicked Clone player
- From the dropdown, I selected the newly cloned player (that may be called Player 2, depends on your config)
- I changed the player name to Commentary 1
- I disabled the default video transcoder from the Active Transcodings and enabled the Commentary 1 transcoder I added above.

- Now when I want to play a commentary, I just pick the Commentary 1 player instead of the default. :) This works pretty well!

Thanks eger for the ffmpeg switch...I would have never gotten that on my own.