General :: Extract Audio From Video File Using Mencoder?
Feb 2, 2011Code:
mencoder The.Negotiator.mkv -of rawaudio -oac mp3lame -ovc copy -o sound-mencoder.mp3
I got a 195.3MB mp3 file
[code]...
Code:
mencoder The.Negotiator.mkv -of rawaudio -oac mp3lame -ovc copy -o sound-mencoder.mp3
I got a 195.3MB mp3 file
[code]...
My 1st and only grandson turned 1 year old and we have taken about 1 million pics of him. I wanted to make a video from pictures taken in the past year. The first one is an ultra sound picture. The last one was taken this last Saturday. I have 153 12 MPixel pictures in a folder. They are named C001.jpg - C153.jpg (I can rename them if needed).
I had noticed mencoder or ffmpeg can create movies from jpegs. But, I didn't think about the frames per second. Would I need to make like 20 copies of each picture and then make it like 10 FPS? or something like that? Optimally, I would like to have a video where each picture lasts for 8-10 seconds or so and I would be able to add a song as audio. (I think I know how to use mencoder to add the audio).
I am trying to use ffmpeg and mencoder to slice a portion of my video out but the audio is always 2 seconds out of sync.
ffmpeg -i bird.avs.MP4 -acodec copy -vcodec copy -ss 00:08:40 -t 00:01:00 test.mp4
mencoder -ss 00:08:40 -endpos 00:01:00 -oac copy -ovc copy bird.avs.MP4 -o test.mp4
mencoder -ss 00:08:40 -endpos 00:01:00 -oac copy -ovc copy -noskip bird.avs.MP4 -o test.mp4
[Code]....
I have a video file I wish to extract the audio from .... its a seminar that was recorded in mpeg but all i need is the audio into mp3 .
View 9 Replies View RelatedI've decided to start backing up my dvd collection. I want to extract all of the audio, video, and subtitle streams individually (from the main movie title only). Then for convenience and usability I want to put them all in a .mkv container. How can I do this and with which programs? ffmpeg, vlc, mplayer? If I can do this all at once, that's fine. But I don't want to get the streams out of sync.
View 10 Replies View RelatedI have two video files (Xvid) and would like to combine the video from one of these with the audio track of the other, in order to create a new video file.
This is somewhat complicated by the fact that I would like the resulting audio to be a mixture of the two original audio tracks, for instance, during some time segments, I would like to switch from one to the other, but the video should always be the same.
Another issue that complicates the things is that the two audio tracks have different bit rates, and when I briefly managed to merge the two, one of the audio tracks was playing much faster than the other. To clarify, the audio tracks should not overlap but just be played at the different time during the video playback.
I am trying to do this by using Audacity. The problem is that I am fairly new to Audacity and I have not been able to find any info in their user guides regarding this specific issue.
how can extract audio from a mkv file.. i've done it with ffmpeg but the output's quality was terrible. do you knox any apps for doing that kind of thing with not loosing its quality. platform: debian testing
View 4 Replies View Relatedi like to know if can extract the audio track from a MP4 file sorry to ask is acc track how to extract it
View 10 Replies View RelatedI would like to know how to demux the audio from a flash video file (copied from /tmp while browsing a video site). I would prefer to avoid re encoding if possible.
View 5 Replies View RelatedIf I convert an audio file to a different format (such as mp3) using a pipe I lose the tags.
Code:
ffmpeg -i <filename> -f wav - | lame - output.mp3
If I knew the tags of the input file I could put them back using a program such as id3v2
[code]....
I have a vp6 codec flv. I have a wav file that I want to convert into mp3 and added to the vp6 flv. So when I play the flv the audio is added and the video quality is not changed.I tried:ffmpeg -i 20.flv -i 20.wav -vcodec copy -acodec libmp3lame new_file.flvbut I an error "Could not write header for output file #0 (incorrect codec parameters ?)". I'm guessing because it is a vp6 flv codec.Is there a way to just add an audio file to the flv? There is no audio in the current flv. I cannot lose any quality in the video.
View 1 Replies View RelatedWhen I play any video/audio file in ubuntu i get the error"An error ocurred.The playback of this movie requires a MPEG-4 AAC decoder plugin which is not installed.The playback of this movie requires a H.264 decoder plugin which is not installed."I have'nt installed any audio video player software.. i was playing the file with the default inbuilt player.
View 1 Replies View RelatedI have found that if I change the FPS of a video, the audio is out of sync.
Is there a way in mencoder to have it correct this, and maintain the correct sync?
I don't think it is just a matter of audio/video delay. I have tried many times to correct this via that method, and it doesn't come close. Although, if I encode the video to another format, but with the original fps, the audio is sync'd.
I'm using mencoder to capture audio from a Encore ENLTV-FM3 video capture device. I have recently noticed that, since one week ago, when the machine was forcibly restarted due to a power outage, all recordings are slightly pitched, they play back slower than they should.
I narrowed down the problem to the following command line:
$ time mencoder -really-quiet -tv driver=v4l2:device=/dev/video1:chanlist=us-cable:audiorate=32000:alsa:adevice=hw.1:input=0:amode=1:normid=11 -endpos 00:10:00 -ovc copy -oac pcm -of rawaudio -o test-32000.wav tv://69
real 9m54.886s
user 0m5.536s
sys 0m1.740s
$ ls -l test-32000.wav
-rw-r--r--@ 1 martin martin 76800000 Mar 15 17:20 test-32000.wav
Somehow, mencode managed to gather precisely 10 minutes worth of raw audio in 9m 55s. That's not physically possible, unless the capture device's A/D converters are "overclocked". I can't think of any other explanation besides hardware failure. Can that be? Could it be that something got burnt during the power outage and now the capture device's internal clock went nuts?
Since the machine's restart, I've also noticed dmesg is flooded with entries like this:
CE: hpet increased min_delta_ns to XXX nsec
Which seem to indicate that the computer's high precision event timer is somehow out of sync. Does this have to do with the audio issue? Can it be that the audio converter's sample rate is linked to the HPET? I'm totally lost here. Has anyone bumped into something similar?
I'm trying to convert a video in .ogm format to .avi format so I can stream it to my PS3 via uShare. I'm using Mencoder and the following command to do it (to transcode the audio from vorbis to mp3 and the video from mpeg4 to xvid):
Code: mencoder input.ogm -oac mp3lame -ovc xvid -xvidencopts pass=1 -o output.avi.The only problem is, the video contains 2 audio streams - one Japanese and one English. Needless to say, I need the English one. The above command only seems to transcode the Japanese audio though!Here's what ffmpeg has to say about the input file:
Code:
Input #0, ogg, from 'input.ogm':
Duration: 00:24:16.12, start: 0.000000, bitrate: 1280 kb/s[code]...
what I can do to specify the correct audio stream to encode? Also, how can I keep the bitrate the same as the output.avi seems to default to 96kbps?I'm not sure which audio stream is which but a little trial and error will sort that out in no time.
I whipped up a script to convert VOBs to AVIs for storage on ym NFS backend. I'm using mencoder on CentOS5 to do the conversion.For 9 out of 10 videos, this works great. There is the occasional 1 that will not have the correct audio stream however. I've tried -alang, -slang, aid, etc. to no avail. Here is my script (also in case anyone else finds it useful), but can anyone offer any suggestions on how to get the correct audio in my avi? When I open the vob in mplayer, I get English. When I run it through mencoder, I get Spanish.
View 2 Replies View RelatedMencoder settings... I'm doing a simple transcoding of an avi file from FFmpeg MPEG4 codec to XVID MPEG-4 codec. The problem is that the audio bitrate is changing from 192 kbps to 32 kbps. The audio codec for both files is mp3 (MPEG-1 layer 3). (I'm transcoding the FFmpeg MPEG4 encoded avi because my blu-ray player doesn't see, let alone play it. Any XVID MPEG-4 encoded avi files the blu-ray player sees and plays fine). I ran mencoder trying the four settings below but the audio bitrate still comes out at 32 kbps:
Code:
mencoder camping_en.avi -ovc xvid -oac mp3lame -xvidencopts bitrate=192 -o camping_us.avi
mencoder camping_en.avi -ovc xvid -oac mp3lame -xvidencopts bitrate=687 -o camping_us.avi
mencoder camping_en.avi -ovc xvid -oac mp3lame -xvidencopts bitrate=9146 -o camping_us.avi
mencoder camping_en.avi -ovc xvid -oac mp3lame -xvidencopts bitrate=192000 -o camping_us.avi
How to keep the bitrate at 192 kbps?
When I convert files with mencoder I get the output with incorrect audio bitrate. Seems that mencoder ignores the bitrate I pass to it. Here's my script:
Code:
#!/bin/bash
vbitrate=800
abitrate=128
#mkdir $2/../$2_rip
unlink frameno.avi 2> /dev/null
mencoder $1 -ovc frameno -oac mp3lame -lameopts abr:br=$abitrate -o frameno.avi
mencoder $1 -oac copy -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=$vbitrate:v4mv:mbd=2:trell:cmp=10:subcmp=3:vpass=1 -ffourcc DX50 -o /dev/null
mencoder $1 -oac copy -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=$vbitrate:v4mv:mbd=2:trell:cmp=10:subcmp=3:vpass=2 -ffourcc DX50 -o $2
unlink frameno.avi 2> /dev/null
unlink divx2pass.log 2> /dev/null
Result file should have 128kbps audio bitrate, but here are the results:
Input file:
02_seminar.avi, 42Mb
video: 432x320 00:05:10 25fps DivX5 1Mbps
audio: 48KHz 00:05:10 Stereo 138Kbps mp3
Output file:
02.avi, 34Mb
video: 432x320 00:05:10 25fps FMP4 802Kbps
audio: 48KHz 00:05:10 Stereo 138Kbps mp3
Why audio bitrate remains unchanged?
I recorded a TV show on my pc using mythbuntu software (ubuntu version of mythtv). It cut out all the commercials and then transcoded it to a nice 40 min nuv file that I put onto a usb thumb drive. Now it's portable and vlc can play the file...on a pc. I want to burn it onto a DVD so I can put it in any NTSC DVD player. Also, the file was recorded at 480x480 and I want to change the size to widescreen (16:9). Additionally, the top of the screen recorded a thin horizontal line of junk that needs to be deleted.
Now, I've googled around and found this line in ffmpeg that should work:
ffmpeg -i V-RedSky.nuv -croptop 4 -y -target ntsc-dvd -sameq -aspect 16:9 RedSky.mpg
The new 16:9 video size is great, the annoying horizontal line got cropped, and I got a nice mpg file...but the audio is now out of sync. I tried ffmpeg with fewer options and the audio still got out of sync.
So, I'm thinking I should try different software. Maybe mencoder. How could I put the above ffmpeg options into mencoder?
I am working in a script I have, to capture video with sound from my capture board, wich is a clone of the pico2000. This script was working in Ubuntu 9.10 untill I reformated my machine and instaled the Ubuntu 10.10, 64 bits. The machine is an AMD Athlon II, 2.6GHz with 3 GBytes of Ram. The former script was:
Code:
#!/bin/bash
clear
SERVICE="mencoder"
MOVIE=$(date +"%H%M")
[Code].....
I just install mplayer-1.0-0.111.20091029svn.fc12.i686 and I can only hear the sound of the wmv file, but not the video [URL].
View 2 Replies View RelatedI'm trying to extract the audio from an mp4 video file and convert it to mp3 using ffmpeg. The problem is that the resulting audio file is only 3m2s long, whereas the video file is 8m15s long. Anyone know why the audio file is being truncated? Am I doing something wrong? Apart from being truncated the mp3 file plays perfectly. Here's what ffmpeg has to say about the video file:
Code:
Seems stream 1 codec frame rate differs from container frame rate: 59.83 (59834/1000) -> 29.92 (359/12)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Part1.mp4':
Duration: 00:08:15.60, start: 0.000000, bitrate: 541 kb/s
Stream #0.0(und): Audio: aac, 44100 Hz, stereo, s16
Stream #0.1(und): Video: h264, yuv420p, 1152x720, 29.92 tbr, 29.92 tbn, 59.83 tbc
And here's the command I'm using to extract and convert the audio:
Code:
ffmpeg -i Part1.mp4 -ab 128k Part1.mp3
Is there an application available to generate videos of waves of an audio file? I've seen this kind of things in player's plugins but they are normally just viewers and won't generate a video from it.
View 2 Replies View RelatedI can play a video on XP, but there's no audio in Lucid. The hardware is a Lenovo SL400, 2GB RAM, 7200rpm drive w/ 36GB free, and an Intel T5870 Core 2 Duo 2GHz CPU.Media player and Banshee fails to play the video with the error messageNo packages with the requested plugins foundThe requested plugins areWindows Media Audio 9
Avidemux crashes when I try to open the 6.3GB file, which I can play with audio AOK in XP.
Assert failed :_offset<=pakSize
at line 352, file /build/buildd/avidemux-2.5.2/avidemux/ADM_inputs/ADM_asf
[code]...
I would like to get one software using which we can converto file format to another. Like .mkv to .mpg and .avi to mpg or .3gp to .avi . converting one to another.The other software I need is about ripping and editing mp3.From DVD video or VCD format, i would like to extract only audio mp3 files and i would like to cut some unwanted portion of those mp3 files.Which software do I need? I dont want to install Ubuntu studio
View 4 Replies View RelatedHow do you loop a video a number of times in ffmpeg or mencoder? I made a ogv out of a gif. It loops 1 time, so it's less than a second.
View 4 Replies View RelatedI know a .bin file is an executable file type in linux. We have an error after installing it and it referes to a file name and a line number within the file. I'm trying to find out if the file is part of the .bin file but I need a way to see what's inside of it or extract it.
View 5 Replies View Relatedit is possible to extract a value from a file with awk, grep or something similar. I have a file like this...
ID1,NAME1,LAT1,LON1,VAR1=5.0,VAR2=7.0,VAR6=9.0,VAR15=0.0,VAR20=0.0
ID2,NAME2,LAT2,LON2,VAR1=6.0,VAR15=1.0,VAR20=5.0,VAR22=0.0
ID3,NAME3,LAT3,LON3,VAR1=10.0,VAR2=20.0,VAR3=8.0,VAR10=3.0,VAR15=0.5,VAR20=9.0
[code].....
and I want to extract VAR15 from each line (which can be at any column unfortunately - columns separated with commas - csv file), or VAR15 together with LATn,LONn from each line. Is it possible to do it with awk, grep or something other in linux?
For about three months I've been going up and down the internet looking for a solution to this problem... Basically I take this distance learning course. Every lesson is sent to me via email in PDF format and it includes many audio examples which are embedded in the file. The problem is none of the Ubuntu readers seem to recognize it, and the Adobe reader says I need a plug-in which does not exist for my system. I quote: "We're sorry, but the third-party media player required to play the selected media file in your Adobe PDF document isn't available for your system". I've been taking this course for two years and I still have two more to go. I contacted the company that sells this course and they were as puzzled as I am... Is there a way to extract the audio from the PDF? Or alternatively open it with another application? I would hate to have to go back to windows for this one issue...
View 3 Replies View RelatedFile in question is [URL].. meder@pc:~$ tar -xvjf wkhtmltopdf-0.10.0_rc2-static-i386.tar.bz2 bzip2: (stdin) is not a bzip2 file. tar: Child returned status 2 tar: Error exit delayed from previous errors
I tried to unzip it as well, and I tried a various slew of commands to no avail on my Debian box which has no GUI. I downloaded this on my local desktop ( Ubuntu ) and was able to easily extract w/ my mouse so I'm not exactly sure what the extractor did differently...