Ubuntu Multimedia :: Transcoding Audio With Mencoder?
Mar 7, 2010
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.
View 7 Replies
ADVERTISEMENT
Jan 4, 2010
The commandcvlc --run-time 180 "http://amber.streamguys.com:4500/wcvehd1.m3u" --sout file/ogg:/home/mikeb/Audio_Recordings/WCVE-test"$(date +%F-%T)".oggwill successfully record a stream from my local NPR station. If I understand the messages thatare printed to stdout when I run it, this transcodes the mp3 stream to an ogg filece I am using this to timeshift a program that I otherwise would not be able to listen to, I would prefer simply to dump the stream in mp3 format without transcoding. tried changing "ogg" "dump" but that produces an error about the --sout option. Can someone tell me how to modify this command so that it simply dumps the incoming stream to a file in mp3 format
View 8 Replies
View Related
Jan 18, 2010
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).
View 9 Replies
View Related
Mar 10, 2011
I am looking for audio transcoding tips. I would like to transcode mp3 to ogg on F14. Can someone advise me the tool to use and if there are some script lines required to operate in bulk mode?
View 10 Replies
View Related
Nov 22, 2009
I 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.
View 2 Replies
View Related
Jul 28, 2009
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 Related
Feb 2, 2011
Code:
mencoder The.Negotiator.mkv -of rawaudio -oac mp3lame -ovc copy -o sound-mencoder.mp3
I got a 195.3MB mp3 file
[code]...
View 2 Replies
View Related
Nov 25, 2010
Mencoder 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?
View 2 Replies
View Related
Dec 26, 2009
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?
View 4 Replies
View Related
Jan 7, 2010
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]....
View 5 Replies
View Related
Jan 22, 2010
I tried converting wma to mp3 with vlc, but an error comes up this is what it says.
p, li { white-space: pre-wrap; }
Streaming / Transcoding failed:
It seems your FFMPEG (libavcodec) installation lacks the following encoder:
MPEG Audio layer 1/2/3.
Either how can I get that encoder for vlc or what else can I use to convert wma to mp3?
View 9 Replies
View Related
Sep 21, 2010
Can't find anything quite like this having been asked already I have just bought all of Babylon 5, and want to put it on my hdd instead of using the discs. dvd::rip works fine for me. I can rip and then transcode titles to AVI manually. What I want is to rip a disc or two, and then have dvd::rip transcode them overnight (takes about 50 minutes per episode on my machine). I tried this on the command line: dvdrip -f transcode -t 2 b5s1d1.rip which, after briefly loading the GUI, just gets this error: Can't locate object method "error_dialog" via package "Video:VDRip::GUI::Main" at /usr/share/perl5/Video/DVDRip/GUI/Main.pm line 173. Gave up and found dvd::ripqueue, which is a gui utility that automates what I would have put into a script, but it doesn't work properly - dvd::rip launches, but only performs the first pass and produces no output. My projects were set up and saved correctly (as I said, all this works if I start it manually from the dvd::rip GUI).
View 2 Replies
View Related
Aug 24, 2010
I've been interested in trying to figure out how to do some real-time transcoding to downsize video files on the fly and play them back on my android phone. I read the Mencoder and vlc documentations and am trying to figure out an open source method and i don't mind setting up an apache server and writing some code to get a web interface.
View 1 Replies
View Related
Sep 12, 2010
In newer versions of Avidemux wrong parameters are set when choosing "Sony Playstation Portable" from the Auto menu. The PSP doesn't support more than 2 reference frames or 8x8 DCT Transform.
This is how you can fix it. Backup the original file
Code:
sudo cp /usr/lib/ADM_plugins/videoEncoder/x264/Sony PlayStation Portable.xml /usr/lib/ADM_plugins/videoEncoder/x264/Sony PlayStation Portable.xml.org
Edit the file
Code:
sudo gedit /usr/lib/ADM_plugins/videoEncoder/x264/Sony PlayStation Portable.xml
Change this line
[Code]...
View 1 Replies
View Related
Mar 15, 2011
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?
View 2 Replies
View Related
Apr 20, 2010
I'm trying to transcode and merge sub with mencoder in order to watch a video on my nokia cellphone.
I'm using this command :
Code:
without success. The transcoding works, but no subtitle is merged.
The transcoding log is here
I'm using Karmic.
View 4 Replies
View Related
Apr 28, 2010
So I typically use cat to put my avi files together.. but today I figure lets see about ripping over so I can watch on my Droid.
As nobody has a xvid or vlc player on the droid (yet.. coders are doing alot for Android ya know) I will have to convert the video down and change the format.. So.. can anybody tell me a mencoder command line directive to get as close to this as possible (I found ipod settings leave the actual video lacking).
Video
Format MP4
Encoder H.264
Resolution 854 x 480 (or 720 x 480; 480 x 320; 320 x 240)
Frame Rate 12 fps - 30 fps
[Code]....
View 1 Replies
View Related
Jun 2, 2010
how to remove audio from an .ogv video (GTKRcordmydesktop) while converting to .avi using mencoder?
I've started with this command:
Code:
mencoder -ovc lavc -ofps 15 -oac mp3lame -af volnorm=1:1 out-2.ogv -o sound_editing.avi
View 1 Replies
View Related
Jun 6, 2010
Using Miksoft's Mobile Media Converter, and I cannot convert files to MPEG4.[URL]Converting to MPEG1/2 works fine, but trying to convert video for my son's PSP always produces an error. Here's the output:
Code:
>> Command executed:
"/opt/MIKSOFT/MobileMediaConverter/lib/mencoder" -oac lavc -ovc lavc -of lavf -lavcopts
[code]....
View 3 Replies
View Related
Sep 29, 2010
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].....
View 1 Replies
View Related
Nov 26, 2010
I'm doing a little python app for encoding .avi from dvds. I know there are a few really good applications out there that do the same thing but I wanted something simple with less faff. The application has 3 settings: Fast, Medium, and Slow. These are for the varying quality rips. For file format I was thinking either lavc or Xvid.
So my first question is, which is better? I really don't know anything about it and I haven't found a decent site that compares them. And secondly what are the best settings for a DVD rip for a Fast Rip, a 'Best of Both' Rip, and a Best Quality Rip? If I've missed any factors in this, please let me know, I'm new to the DVD ripping game. I have no intentions of distributing the movies, they are for my own uses.
View 2 Replies
View Related
Jan 9, 2011
I'm trying to convert my screencast to an .avi file, but when I open it... the commentary track is waaay out of sync. No matter which codec I use, it will not stop dropping frames!
View 4 Replies
View Related
Apr 9, 2011
I wonder if there is a way to convert 3gp format to avi using mencoder or something similar?
View 7 Replies
View Related
Feb 12, 2010
I've just been trying to convert a video to DV format, but mencoder doesn't know about libdv.
Using the command code...
How can I get mencoder to find the codec? Is there a specific place it looks for them?
View 3 Replies
View Related
Apr 5, 2010
I have a video that is currently in .mkv format, and I need it in .avi, however, when I attempt to convert it with MEncoder, it cannot find the video. (Please note this is my first attempt to convert anything with MEncoder, or convert any video on Linux). What I entered and my results are as follows -
mencoder Pocketful_Of_Rainbows.mkv -o Pocketful_Of_Rainbows.avi -ovc xvid -oac mp3lame
MEncoder SVN-r29237-4.4.1 (C) 2000-2009 MPlayer Team
File not found: 'Pocketful_Of_Rainbows.mkv'
[code].....
View 4 Replies
View Related
Apr 7, 2010
I want to try encoding some videos with Dirac. I was told on another site that I have to build mencoder with Schroedinger support if I want to do this with OGMRip. I have installed the libschroedinger package installed. How do I buld it with mencoder?
I am using Ubuntu 10.04.
View 1 Replies
View Related
May 24, 2010
Is the motion compensation deinterlacer missing in Ubuntu's Version of Mencoder?
mencoder -vf help doesn't show it (I guess this means it's not installed...), although mencoder's man pages do have an mcdeint entry.
I have those versions installed:
Code:
I first tried the Versions shipped with Ubuntu Lucid Lynx, then I installed them from the Medibuntu repositories. Both without any success. Does anyone know, how to enable mcdeint support? Is there a repository or something I could add to my sources?
View 2 Replies
View Related
Aug 5, 2010
I use the script h264enc (installed from the repos) to encode my dvds into avi and mp4. It was working flawlessly under 9.10, now I get the error that MEncoder doesn't support AAC encoding? I have installed all the restricted drivers and I can play dvds, mp4's, .
View 8 Replies
View Related
Oct 16, 2010
I recently upgraded to Maverick and am loving it. Converting over my various scripts to work on the new box I notice that my video trascoding script, which uses mencoder to re-encode video as h264, now does not work.
Code:
mencoder $inpfile -oac mp3lame -lameopts vbr=3:q=3 -ovc x264 -x264encopts crf=22:threads=auto:subq=4:bframes=2:b_pyramid:weight_b:turbo=1 -ofps 25 -o $outfile
For a long time this has worked just fine but the command basically bombs out every time with
Code:
FATAL: Cannot initialize video driver.
I tried using the medibuntu mplayer/mencoder but still no dice.
Does anyone know how I can get this important functionality back?
View 4 Replies
View Related
Mar 20, 2011
I have been using mencoder to record audio and video from my Logitech Quickcam Pro 9000. I've been using the following wrapper script under 10.04:
Code:
#!/bin/bash
outFile=$(date +%Y-%m-%d)
mencoder tv:// -tv driver=v4l2:width=800:height=600:device=/dev/video0:forceaudio:adevice=/dev/audio1 -ovc lavc -oac mp3lame -lameopts
[Code]....
The video and audio work in other applications, but for some reason mencoder isn't using them. I don't like Cheese because it seems like I can't get equally high framerates at good resolution, and besides I want to be able to run this from the command line.
View 6 Replies
View Related