Page 1 of 1

[Resolved] Change Language of Movies

PostPosted: Fri Dec 09, 2011 12:42 pm
by Panther368
Hello all,

i´m trying since about 1week to change the standard language of viewing movies via Subsonic.

The problem is,I like to view my movies in German and not in English.
But the audiopath is first English and then German :(

Is there a way to change the Language?

I tried it via the transcode command -VLang, but i think i got the wrong parameter after it.

I´m using Subsonic V4.6 with standard transcoding parameters atm.


Sorry for this bad English :(

Thanks for help
Panther

Re: Change Language of Movies

PostPosted: Fri Dec 09, 2011 2:28 pm
by BKKKPewsey
I am not an expert with ffmpeg but I believe its the map parameter that you may need.

Re: Change Language of Movies

PostPosted: Fri Dec 09, 2011 2:37 pm
by Panther368
Where must the parameter stand in?

Step 1 or Step 2?

I always get an error when i try to put this parameter in :(

Atm:
Step1:
ffmpeg -ss %o -i %s -async 1 -b %bk -s %wx%h -ar 44100 -ac 2 -v 0 -f flv -vcodec libx264 -preset superfast -threads 0 -map -


gets an error :(

Re: Change Language of Movies

PostPosted: Fri Dec 09, 2011 3:02 pm
by BKKKPewsey
This is from the ffmpeg website - it may help :|
Code: Select all
-map [-]input_file_id[:stream_specifier][,sync_file_id[:stream_specifier]] (output)’
Designate one or more input streams as a source for the output file. Each input stream is identified by the input file index input_file_id and the input stream index input_stream_id within the input file. Both indices start at 0. If specified, sync_file_id:stream_specifier sets which input stream is used as a presentation sync reference.

The first -map option on the command line specifies the source for output stream 0, the second -map option specifies the source for output stream 1, etc.

A - character before the stream identifier creates a "negative" mapping. It disables matching streams from already created mappings.

For example, to map ALL streams from the first input file to output

   
ffmpeg -i INPUT -map 0 output
For example, if you have two audio streams in the first input file, these streams are identified by "0:0" and "0:1". You can use -map to select which streams to place in an output file. For example:

   
ffmpeg -i INPUT -map 0:1 out.wav
will map the input stream in ‘INPUT’ identified by "0:1" to the (single) output stream in ‘out.wav’.

For example, to select the stream with index 2 from input file ‘a.mov’ (specified by the identifier "0:2"), and stream with index 6 from input ‘b.mov’ (specified by the identifier "1:6"), and copy them to the output file ‘out.mov’:

   
ffmpeg -i a.mov -i b.mov -c copy -map 0:2 -map 1:6 out.mov
To select all video and the third audio stream from an input file:

   
ffmpeg -i INPUT -map 0:v -map 0:a:2 OUTPUT

Re: Change Language of Movies

PostPosted: Fri Dec 09, 2011 3:27 pm
by Panther368
Thank you!!!

finaly this works:

step1:
ffmpeg -ss %o -i %s -map 0:0 -map 0:1 -async 1 -b %bk -s %wx%h -ar 44100 -ac 2 -v 0 -f flv -vcodec libx264 -preset superfast -threads 0 -

Re: [Resolved] Change Language of Movies

PostPosted: Fri Feb 22, 2013 11:19 am
by quickmic
Old thread, but I'm searching for an comfortable solution for switching between the different tracks. Modifying the parameters works, but it's a pain in the ass to do this every time.
Is there a possibility to integrate a check box or something similar to adjust, which kind of transcoding parameters should be used?
I mean, I would save two (or more) transcoding command parameters (for different streams) and do a manual selection which configuration should be used.

Re: [Resolved] Change Language of Movies

PostPosted: Wed Apr 30, 2014 12:05 am
by pedro_fr
thanks