Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Main Support Categories > Multimedia & Video
Register Reset Password Forum Help Forum Council Today's Posts

Ubuntu 9.10 is out!!!

When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu.

The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely.

Multimedia & Video
Have multimedia question? ATI, Nvidia, Sound cards. Just ask here.

 
Thread Tools Display Modes
Old May 4th, 2009   #1
rick71
Gee! These Aren't Roasted!
 
Join Date: Oct 2007
Beans: 159
ffmpeg - remove an audio stream from mpg

I would like to remove an audio stream from some mpgs my camera generates.
ffmpg -1 shows the following:

Input #0, mpeg, from 'hpim0212.mpg':
Duration: 00:00:04.08, start: 0.122878, bitrate: 1916 kb/s
Stream #0.0[0x87]: Audio: liba52, s16
Stream #0.1[0x1e0]: Video: mpeg1video, yuv420p, 320x240 [PAR 1:1 DAR 4:3], 104857 kb/s, 24.00 tb(r)
Stream #0.2[0x1c0]: Audio: mp2, 44100 Hz, mono, s16, 96 kb/s

Can anyone tell me how to remove that first audio stream using ffmpeg or something else?

Thanks.
rick71 is offline   Reply With Quote
Old May 4th, 2009   #2
FakeOutdoorsman
May the Ubuntu Be With You!
 
FakeOutdoorsman's Avatar
 
Join Date: Sep 2006
Location: Alaska
Beans: 1,561
Re: ffmpeg - remove an audio stream from mpg

Try this:
Code:
ffmpeg -i hpim0212.mpg -map 0:1 -map 0:2 -acodec copy -vcodec copy hpim0212b.mpg
The -map option corresponds with each stream. The -acodec copy and -vcodec copy options tell FFmpeg to just copy the streams. No re-encoding necessary.
FakeOutdoorsman is online now   Reply With Quote
Old May 4th, 2009   #3
rick71
Gee! These Aren't Roasted!
 
Join Date: Oct 2007
Beans: 159
Re: ffmpeg - remove an audio stream from mpg

Thanks.
rick71 is offline   Reply With Quote

Bookmarks

Tags
ffmpeg


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 On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:06 PM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. lingonberry