Change/remove default audio strean in an avi?
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Other forums
- :
- Tech Help - Software/Hardware etc
- :
- Re: Change/remove default audio strean in an avi?
Change/remove default audio strean in an avi?
20-06-2010 9:55 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Re: Change/remove default audio strean in an avi?
20-06-2010 11:00 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Less short answer: have you tried avidemux?
$ apt-cache show avidemux
[...]
Description: A free video editor (GTK version)
Avidemux is a free video editor designed for simple cutting, filtering and
encoding tasks. It supports many file types, including AVI, DVD compatible
MPEG files, MP4 and ASF, using a variety of codecs. Tasks can be automated
using projects, job queue and powerful scripting capabilities.
.
This package contains the classic version with GTK+ interface.
Bugs: mailto:marillat@debian.org
Homepage: http://fixounet.free.fr/avidemux/
Re: Change/remove default audio strean in an avi?
21-06-2010 9:33 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Re: Change/remove default audio strean in an avi?
21-06-2010 3:08 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
http://ubuntuforums.org/showthread.php?t=1148243
That'll probably be quicker than using a full on gui like avidemux.
Re: Change/remove default audio strean in an avi?
21-06-2010 3:39 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Duration: 01:33:07.52, start: 0.000000, bitrate: 1201 kb/s
Stream #0.0: Video: mpeg4, yuv420p, 640x352 [PAR 1:1 DAR 20:11], 25 tbr, 25 tbn, 25 tbc
Stream #0.1: Audio: mp3, 48000 Hz, stereo, s16, 32 kb/s
Stream #0.2: Audio: mp3, 48000 Hz, stereo, s16, 32 kb/s
doing an
ffmpeg -i file.avi -map 0:0 -map 0:2 -acodec copy -vcodec copy filea.avi
Which is I think correct ? I want streams 0 & 2, but it gives corrupt audio on playing.
Re: Change/remove default audio strean in an avi?
21-06-2010 6:30 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
You might have to demux the avi file into a mp4 (video) and a mp3 (audio) files.
Then mangle the mp3 into mono (if wanted)
Finally remux the mp4 and mp3 file back into a avi file.
A lot of processing!
"In The Beginning Was The Word, And The Word Was Aardvark."
Re: Change/remove default audio strean in an avi?
21-06-2010 6:51 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Using avidemux just now and it says the audio is VBR, which is probably why is is corrupt when I try to do a simple copy.
Have it running on a sample of 10 to see how fast/slow it is at the mo.
Re: Change/remove default audio strean in an avi?
22-06-2010 10:29 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Nope it isn't working
Re: Change/remove default audio strean in an avi?
22-06-2010 11:56 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Re: Change/remove default audio strean in an avi?
22-06-2010 1:29 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
That`s the beauty of Linux..... Simpliicity !...
(mental note.... keep HB happy, in case you need to know how to do it ! ! )
Re: Change/remove default audio strean in an avi?
22-06-2010 2:05 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
So as I said simple 😉
#!/bin/bash
mkdir converted
VAR="files.txt"
ls *.avi | sort > $VAR # Collect the files in the current directory
cat $VAR | while read line; do # Loop read the filenames from the file
INPUT=$(echo ${line}) # Grab the nxt new filename
avidemux --force-alt-h264 --load "$INPUT" --run ../sample.js --save "converted/$INPUT" --output-format AVI --quit
done
rm $VAR # Remove the text file with the file names
This is the script. It was originally to convert mpg to avi.
I create a folder called converted, generate a list of all the avi's in the folder, then for each run avidemux telling it to save to converted and use my sample.js file that tells it to select the second audio stream as the main one.
Re: Change/remove default audio strean in an avi?
22-06-2010 6:47 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
new cmd line is
"mkvmerge" -o "converted/$INPUT" "--forced-track" "0:no" "--forced-track" "2:no" "-a" "2" "-d" "0" "-S" "-T" "--no-global-tags" "--no-chapters" "$INPUT" "--track-order" "0:0,0:2"
using mkvmerge to generate mkv's from the avi source, removing the first audio track
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Other forums
- :
- Tech Help - Software/Hardware etc
- :
- Re: Change/remove default audio strean in an avi?