LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-20-2014, 11:06 AM   #1
Pinonoir
Member
 
Registered: May 2014
Posts: 209

Rep: Reputation: 0
Switching subtitle streams in ffmpeg


I'm wanting to select a certain subtitle stream in ffmpeg and I'm not sure how to do it. I've tried using -slang, which to my knowledge no longer works. The output file uses no subs as default and I want to change it to use eng subs.
 
Old 11-21-2014, 04:15 PM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
what exactly are you trying to achieve, what have you tried so far and where & how is it failing?

give us more information, post commands and output please.
 
Old 11-22-2014, 02:20 AM   #3
Pinonoir
Member
 
Registered: May 2014
Posts: 209

Original Poster
Rep: Reputation: 0
Sorry for the long delay. Had to work. The problem seems to happen when I want to change the subtitle, that's all I would like to happen in the output file. The normal output for this is no subtitles at all, I just want to be able to choose which subtitle stream to use at will.
For reference here is a script I'm trying to get to work
Code:
#! /bin/bash

ffmpeg  -i $1 -threads 0 -c:v libvpx -ss 15:12 -t 24.5 -an "$1".webm
I understand if this comes off as a rookie type of question, but I can't really find any good documentation for it as the manpages in ffmpeg have yet to be updated. For example. -slang was removed due to redundancy, yet the documentation still exists.
 
Old 11-25-2014, 02:42 PM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by Pinonoir View Post
I understand if this comes off as a rookie type of question
no, it doesn't.
except maybe for the fact that you are omiting important things.
like, how do you even know the input file has subtitles, and how many?
how is the input file encoded?

as a general courtesy (meaning: i have no clue) i'll point you to
http://ffmpeg.org/
there's forums, documentation, a wiki...
 
Old 11-25-2014, 07:33 PM   #5
Pinonoir
Member
 
Registered: May 2014
Posts: 209

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by ondoho View Post
no, it doesn't.
except maybe for the fact that you are omiting important things.
like, how do you even know the input file has subtitles, and how many?
how is the input file encoded?

as a general courtesy (meaning: i have no clue) i'll point you to
http://ffmpeg.org/
there's forums, documentation, a wiki...
I'm using mpv to select subtitles, and I'm not sure what it would be encoded as. Also, thanks for the link.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Specify which streams to convert in ffmpeg penyuan Linux - Software 3 09-20-2013 02:19 PM
howto extract individual audio/video/subtitle streams from dvd? Meson Linux - Software 10 02-01-2010 03:43 PM
Help me in installing ffmpeg, ffmpeg-PHP, Mplayer, Mencoder, flv2tool, LAME MP3 Encod mitesh.ever Red Hat 5 05-16-2009 01:14 PM
DVD backup: howto copy subtitle streams?? psychotron1 Linux - General 6 01-24-2005 01:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration