LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 09-20-2013, 06:42 AM   #1
penyuan
Member
 
Registered: Oct 2009
Distribution: Scientific Linux 6
Posts: 190

Rep: Reputation: 19
Question Specify which streams to convert in ffmpeg


Hello,

I am converting (using ffmpeg version 2.0-0988709) a file from m4v to webm using my usual routine. But this time I got the following error:
Quote:
Stream mapping:
Stream #0:0 -> #0:0 (h264 -> libvpx)
Stream #0:1 -> #0:1 (aac -> libvorbis)
Stream #0:2 -> #0:2 (? -> ?)
Encoder (codec none) not found for output stream #0:2
I don't care about Stream #0:2, how do I tell ffmpeg to only convert streams #0:0 and #0:1??? Thanks!

Last edited by penyuan; 09-20-2013 at 06:43 AM. Reason: specified ffmpeg version
 
Old 09-20-2013, 08:25 AM   #2
D.V
LQ Newbie
 
Registered: Sep 2013
Posts: 13

Rep: Reputation: Disabled
You could try passing the map option to ffmpeg.

-map 0:0 -map 0:1

This tells ffmpeg to process only streams 0:0 and 0:1

If 0:2 is a subtitle stream, you can pass the -sn option to ignore the stream.

If the above fails, try different programs like Handbrake and VLC to convert the videos.

Last edited by D.V; 09-20-2013 at 08:28 AM.
 
1 members found this post helpful.
Old 09-20-2013, 10:31 AM   #3
penyuan
Member
 
Registered: Oct 2009
Distribution: Scientific Linux 6
Posts: 190

Original Poster
Rep: Reputation: 19
Thumbs up

Quote:
Originally Posted by D.V View Post
You could try passing the map option to ffmpeg.

-map 0:0 -map 0:1

This tells ffmpeg to process only streams 0:0 and 0:1

If 0:2 is a subtitle stream, you can pass the -sn option to ignore the stream.

If the above fails, try different programs like Handbrake and VLC to convert the videos.
Seemed to work, thank you!!
 
Old 09-20-2013, 01:19 PM   #4
D.V
LQ Newbie
 
Registered: Sep 2013
Posts: 13

Rep: Reputation: Disabled
you're welcome
 
  


Reply

Tags
conversion, ffmpeg, flags, video



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
How to convert VOB file using ffmpeg ? PayNow Linux - Newbie 8 07-01-2012 10:13 AM
How to convert .VOB to mp4 using ffmpeg? sarbojit Linux - Newbie 2 05-12-2011 11:10 AM
using ffmpeg to convert video files acamus Linux - Newbie 2 01-04-2011 08:41 PM
[SOLVED] Convert flv to dvd w/ ffmpeg agrestic Linux - General 6 10-18-2009 11:05 PM
how do i convert wmv to flv using ffmpeg? farmerjoe Linux - Software 0 11-15-2005 02:20 PM

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

All times are GMT -5. The time now is 09:02 AM.

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