I'm sure that this has been requested before, however, I'm looking for a Linux based command line app that will strip out the 5.1 AAC audio channel. I have some recommendations to use MP4Muxer, however, I'm looking for something that will run on Linux. My primary reason for doing this is so that I can run these MP4 files on my xbox 360. I scanned the forums and couldn't find anything. Any help or links would be greatly appreciated.
thanks!
Eric
		
			+ Reply to Thread
			
		
		
		
			
	
	
				Results 1 to 11 of 11
			
		- 
	
- 
	thanks for the reply baldrick, I had a feeling that ffmpeg would do this. I've been scanning for the last hour for a tutorial to demux the 5.1 ac3 audio track out of this mp4 container and have not come up with much. Do you have any tutorials for this or could someone tell me the command to run this? 
- 
	ok thanks I will try this, based on the documentation though: 
 
 `-acodec codec'
 Force audio codec to codec. Use the copy special value to specify that the raw codec data must be copied as is.
 
 so if we used '-acodec copy', how would ffmpeg know which track is the correct one? Documentation doesn't say anything about demuxing audio tracks. I'll give this a go though and see what happens.
 
 thanks.
- 
	ok, I see what your saying now.. I think that my initial request was incorrectly stated. I'm looking for a way to strip out the ac3 track and be left with the 2.1 channel audio track and the video file in my mp4 container. This is the only way that the xbox 360 can apparently play this type of formate, avi allows for ac3 5.1, however mp4 only allows for 2 channel. I'm looking for a command line based demuxer to rip out the ac3 channel and be left with the video + 2 channel audio. Thoughts? 
 
 Many thanks, learning ffmpeg regardless  
- 
	If you want to strip audio, and you can map channels 
 http://howto-pages.org/ffmpeg/#strip
 
 But that's probably NOT what you want to do. You probably want to downmix 5.1 => 2.1 audio with the proper coefficients. The problem with what you were suggesting, is that you don't use information from the other 4 channels. So dialog or ambient sound might be completely missing, for example. A proper downmix incorporates all the channels.
 
 Easy to do on windows, I don't know how to do on linux
 
 Edit - You could use avidemux's audio channel downmixer, but I don't know how to use the CLI (only GUI). This way you could copy the video, and just convert the audio (stereo downmix) in 1 step.
- 
	thanks again for the response poison. The file has two audio tracks: 
 
 Format: AAC
 Audio #1: AAC = 128 kbps (2 Channel)
 Audio #2: AAC = 313 kbps (6 Channel)
 Sample Rate: 48000Hz
 
 I want to rip out Audio#2 as the 2 channel is already in the container. I don't think that downmixing is necessary.
 
 cheers.
 
 Eric
- 
	OK now it makes sense. I'm a dummy. You have 2 audio tracks. 
 
 BTW it's not really "ripping out" , it's more like copying the audio & video into a new container, but leaving 1 track out. , it's more like copying the audio & video into a new container, but leaving 1 track out.
 
 You can copy video track, and audio #1 then using -map, -vcodec copy, and -acodec copy
 http://howto-pages.org/ffmpeg/#map
 
 And welcome to the forum  
- 
	For those curious, I did 
 
 and this worked great, thanks for the help again poison.Code:ffmpeg -i movie.mp4 -map 0:0 -map 0:1 -vcodec copy -acodec copy outtest.mp4 
Similar Threads
- 
  CLI to mux/merge MP4 video and AAC audio?By RogerTango in forum Video ConversionReplies: 8Last Post: 13th May 2013, 16:43
- 
  Streaming MP4 using VLC and ffmpeg on Linux?By bobc02 in forum Video Streaming DownloadingReplies: 2Last Post: 24th Sep 2011, 12:02
- 
  Extracting timecodes from an mp4/h264 under linuxBy asbonasty in forum Video ConversionReplies: 0Last Post: 13th May 2010, 10:19
- 
  Converting video of any format to MOV or MP4 Linux/DebianBy lordshadow in forum Newbie / General discussionsReplies: 11Last Post: 31st Aug 2008, 11:35
- 
  ffmpeg on Linux Error - .avi to mp4By coolboarderguy in forum Video ConversionReplies: 10Last Post: 5th Nov 2007, 10:10


 
		
		 View Profile
				View Profile
			 View Forum Posts
				View Forum Posts
			 Private Message
				Private Message
			 
 
			
			

 Quote
 Quote Visit Homepage
				Visit Homepage
			