Dropdown field and variable for choosing audio track with ff

Got an idea? Missing something? Post your feature request here.

Moderator: moderators

Dropdown field and variable for choosing audio track with ff

Postby eger » Sat Feb 12, 2011 6:21 am

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.
eger
 
Posts: 6
Joined: Thu Jan 27, 2011 12:25 am

Postby 3R3 » Mon Feb 14, 2011 2:58 am

+1
this would be amazing. sounds like a doable mod too, weļl see :)
User avatar
3R3
 
Posts: 332
Joined: Mon May 04, 2009 2:09 pm
Location: Germany

Postby eger » Mon Feb 14, 2011 3:44 am

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.
eger
 
Posts: 6
Joined: Thu Jan 27, 2011 12:25 am

Re: Dropdown field and variable for choosing audio track wit

Postby fincheresque » Wed Feb 08, 2012 1:19 am

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.
fincheresque
 
Posts: 1
Joined: Wed Feb 08, 2012 1:12 am


Return to Feature Requests

Who is online

Users browsing this forum: No registered users and 5 guests