Ubuntu Multimedia :: Converting OGV To AVI In Mencoder - Too Much Framedrop?
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!
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:
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?
The version of mencoder I currently have installed segfaults (immediately) when you ask it to convert x264-encoded MKVs to another format. One sample command-line would be:
Code: mencoder -nosound -ovc libdv Puella_Magi_Madoka_Magica_720p_GG_-_06.mkv -o a.avi This produces the following output: Code: MEncoder 20110702-4.5.2 (C) 2000-2011 MPlayer Team success: format: 0 data: 0x0 - 0x1c43987e libavformat file format detected.
[Code]...
Incidentally, I'm wondering if the version of FFMpeg that the MPlayer configure script downloads might be at fault. The slightly outdated FFMpeg I installed from SBo (6.1) does not crash when converting the same file. And no, I can't use either Alien Bob's Mplayer build or the MPlayer binaries included with Slackware. Neither is built against either libdv or x264. I need libdv as an output codec.
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:
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.
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
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:
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:
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.
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'
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?
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?
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 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, .
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?
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.
I want to encode video content with mencoder and libvpx codec. I have libvpx installed on my machine and I can encode with libvpx using ffmpeg. My OS is Ubuntu 10.10, 64bit. I downloaded fresh mplayer/mencoder from SVN repository. If I configure mplayer/mencoder without any explicit enabled features using:
Is there a way to instruct mencoder to stop streaming/recording after a specified period associated with a loss of signal?I use mencoder to record over-the-air television recordings. Most of the time there are no problems.Occasionally a station's transmission signal disappears, caused by quirky atmospheric conditions, usually at night.Noticing these signal outages is easy by the mencoder error message:dvb_streaming_read, attempt N. %x failed with errno %y when reading %z bytes"Lengthy outages are unbearable because mencoder silently waits forever rather than quit.The significant problem with lengthy signal outages is mencoder continues recording for the time specified by the -endpos parameter. Thus, for example, if the recording is scheduled for 2 hours and there is a 20 minute loss of signal, the recording does not end until 2 hours and 20 minutes after starting.
Generally, when the interruption is lengthy the recording is ruined and I don't care to watch. I would like to programmatically tell mencoder to stop waiting and quit.Is there a way to do this? Say, after ten minutes of no signal, just terminate.I do not notice any parameters that might offer that option, but I could be overlooking something obvious. I tried the -skiplimit parameter with no success.I am aware of the MPlayer/MEncoder Tips and Tricks thread.
I'm wondering if anyone distributes mplayer, mencoder, and ffmpeg, up-to-date builds of each and their associated dependencies (x264, faac, xvid, etc).I had to compile all that stuff myself and fought with it, and finally got it working.
If no one distributes latest builds, then I was thinking of going further with what I've done to help others: virtualbox lenny and automated compiles of all packages and putting up the builds, with latest revisions of mplayer and ffmpeg from their source code repos. Using LD_LIBRARY_PATH to isolate the build so any modern linux can run the produced binaries, with only glibc as a dependency.
I have spend the entire weekend trying to convert a mkv file with a DTS audio track to an AC3 audio track. I wrote a small article on it on my website with plenty of links and suggestions. I used applications like TVersity, PS3 Media Server, mkvdts2ac3 script, and avidemux. I just hope i can save someone's weekend with this. Anyway here is the link:
i am converting my DVDs into a media library. The ripping itself is no problem. (using Xilisoft dvd-rip under wine; works flawless).
when i convert to a mp4 file, with good quality, the output is always around 1.2 -1.8 gb. depending on the movie file. i tried Xvid and the size is pretty much the same. only by reduucing the pixel size etc... i get like a 600-800 mb file.
when i see other ripped movies, with about the same movie length, they getting 800mb mp4, in perfect quality, no smaller screen, pixels are great etc... is there any kind of advanced setting to it? bitrate, audio? to get down to this file size..?
I have mediatomb (0.12.0~svn2018-6ubuntu2) installed on Ubuntu Server 10.04.2 LTS which I use to serve video to my PS3 (slim version). MOst videos work fine but I have some mkv's giving me trouble.I'm trying to use mencoder to re-code the video to one that the PS3 can play. mkvinfo says the video track is Codec ID: V_MPEG4/ISO/AVC and the audio track is Codec ID: A_AC3.I used this command to convert to avi (found it in a thread on this forum):