Ubuntu Multimedia :: Convert AVCHD (MTS/M2TS) To MP4 Losslessly?
Sep 11, 2010
I'll start with the end:
Code:
mencoder infile.mts -demuxer lavf -oac copy -ovc copy -of lavf=mp4 -o outfile.mp4 ..and now to explain myself:
AVCHD (MTS) is basically a container format for MPEG4-AVC video and AC-3 Audio. It's commonly found on modern camcorders. I have pulled files off a Sony Camcorder (I forget which model), which records in 1080i@50Hz. It seems there are timestamp problems, and both the even and odd fields are stamped with the same time, and not 1/50th of a second apart as you'd expect. This currently breaks ffmpeg (0.6~svn20100711), and the mencoder (SVN-r31722) internal demuxer doesn't like it either. The libavformat (lavf 0.6~svn20100711) demuxer/muxer seems to handle it, so that's what we'll use.
I installed mediatomb on may Debian CLI PC (no graphical). I can stream video (avi) to my PS3 but AVCHD h264 (m2ts) format is not working. config.xml configuration (if necessary)!
I have been searching the forums with limited success on how to convert MTS files to MPEG. I have been able to open the MTS file with OpenShot and KdenLive but they aren't really for converting files or at least I haven't figured out how to do it. Is there a simple GUI tool to convert these MTS files quickly and easily?
I'm running Ubuntu 10.04, and installed mplayer, when I tried to SSH and capture a screenshot from a m2ts file, I always get an error: number of reference frames exceeds max (probably corrupt input)But i'm sure the file isn't corrupt. However, I did captured a picture, but the picture is corrupt.Here is the log:
When importing files from my digital camera, I find it less confusing to open a folder and then drag the files to where I want them on my hard drive rather than to have Shotwell do it automatically (as described by jennacav in this post). That's straightforward for photo files, but what about for video files? On my camera, they are stored in an AVCHD folder, which itself has several folders and subfolders. Does this mean that I have to drag the files over as a group, or is there some way they can be handled individually as photos can be? (I'm new to both Ubuntu and digital photography.....)
I've been trying to view the footage I have in 1080i AVCHD on my new system but can only view it in VLC, and then only when hardware acceleration is turned off, and there's still a bit of shearing with a hexcore and a Radeon 5850.
Is there a trick to get it to play and/or preview in Mplayer/OpenShot/PiTiVi ? I've tried them all, and I can hear sound but no video. Maybe there's a system-wide way to shut off video decode acceleration.
I guess what I'm asking is, can anyone play/preview/edit in these applications with AVCHD or is it something with my new system? Everything else seems to work great. Maybe I need to try turning off compiz compositing?
Unfortunately, I bought the damn thing to do exactly this kind of video editing, and don't want to have to drop back into Win 7 to use Vegas.
I have an mp4 file I'd like to get the audio out of (details below if you want to know), and every method I've seen suggested either produces a junk file, re-encodes it with loss in quality (noticeable), or re-encodes it at 64kbps (which is disgusting for music, frankly). Not looking for anything more than an audio rip.
EDIT: Just obtained Avidemux and am attempting with it. Have a feeling it's doable, but frankly, I've never used the program and have no clue how to work it. If that'd do it, tips there would work too! And now for a second edit, after looking into it, seems in the newer versions of avidemux, that feature is broken. Ah well.
I have tried to convert movie files like I used to on Windows with AnyVideoConverter... I installed WINFF, but it doesnt seem to work with anything. When trying to convert a .mov file, it does something on the terminal and it gives this: Unknow encoder -libxvid- ... and then nothing.
I am sitting on over a hundred Disney and other kid's VHS tapes we still have around from when our kids were little. My granddaughter has found them and finds them fantastically entertaining but VHS isn't exactly hardy for a 4 year old to handle. I'm looking to convert them to DVD for both backup and space savings. Cinderella has already bit the dust and I'm paying dearly for it. I have done some research and every bit of information assumes that I would have an idea of what I'm doing.
I do own a DVR but most of them won't copy for copy protect reasons. As far as I can tell the only way I can convert them is by going from analog VHS to digital DVD. Now, I have no clue how to do this nor what hardware I would need if any to do this.
I'm trying to make a copy of my Blu-Ray movies on DVD-R so I can play them on my DVD player. The movies have been ripped to my HDD and the HD audio extracted. So I'm left with one video stream and one audio stream (either DTS or AC3) in a single m2ts file. I've tried to use mencoder with the same command that I use to convert DVB HD broadcasts to DVD compliant mpeg files as so:
Is there something wrong with my mencoder command, or is there perhaps a better way of attacking this. I've spent a fair bit of time looking for a solution to this and there seems to very little information around. I would have thought this would be quite a common thing to try and do?
I need to convert a few avi files ( around 20 )to the mp4 format and need to know how to do this in Ubuntu.would prefer if it would be a Gui based.my ubuntu version is 9.10.
I have several files (DVDs, flv, mpeg, mp4...) that I'd like to watch on my Android phone (HTC Tattoo) that supports H264 and my other phone that supports 3GP.
INstalled Handbrake - does not have a 3GP option; mp4 will play audio but not video on Tattoo.
Installed Transmageddon - complains that cannot find the plugin although I click OK on download
Installed WinFF - complains no encoder.
I'm missing something from my packages but what? And where to get it?
I have a video on DVD disk. It is split into 4 parts with file extension VOB. The total time is ~90 mins. In the fourth part I need just the 4:53 first minutes. I would like to append the 3 parts and the 4:53 first minutes of the fourth part together without lessening the quality and to convert them into AVI. How can I do it?
I'm trying to convert a screencast of RecordMyDesktop, from .ogv to .avi. I want to upload this video to ....., but the problem that i found is: When the convertion with mencoder is finished; the video resultant is longer that the original, the original video has 13:01 min and the converted video have 39:00, in wich only up to the minute 13:01 is reproducible. And when I use Arista Transcoder, and convert the video to mp4 for example. The video resultant is normal, but when it's uploaded to , in the sound is ruined.
Is there a way to convert oga files to mp3 or maybe wma so that my mp3 player will play them without my having to log in to Windows to rip cds and transfer the files to Linux? I'm running Intrepid.
I am trying to convert some .asf files to .avi and do not ask me which kind of avi because I could only answer "the kind which would play on my DVD player". It takes avi but it does not say what kind. Doing it through vlc would be favorite because ffmepg looks really complicated. But I'll have a go with ffmepg (or whatever) if I'm advised to do it.
I have quite a few HD WMV files on my hard drive and it's a pain in the *** to play these on Ubuntu, since it eats up a lot of CPU. I use vdpau with SMplayer, so MKV's work well, that is why I would like to convert these WMVs to MKV, without losing quality. Is this possible with software for ubuntu?
I would like to convert an ogv file to an avi file so i can upload it to ...... I have been having trouble though. When you used the command below and the file was converted all the display was distorted, I could not see the video as it was in ogv. Is there some known issue here with converting ogv? ffmpeg -i file.ogv copy /home/user/Desktop/file.avi
I'm tyring to convert the 3gp format that my droid likes to avi format which is more recognizable (like on my xbmc black xbox) I'm doing this conversion using memcoder and this script I wrote.
Code: #!/bin/bash _Working() { _INPUTFILE=$file
[Code].....
And that makes for low quality and skipping up movies. basically I want to take the 3gp and convert to avi with leaving as much of the playback alone as possible. What is a better way to convert these files? How can I prevent these skipped frames? What would be the memcoder switches line to retain as much quality as possible while converting the files to avi?
We have an analog tv (no plans to buy digital) which I'm planning to connect to an old laptop so we can watch online tv. The tv has rca input ports for audio l/r and video, and also has scart of course. The laptop has both vga (not really relevant) and mini-dvi outputs plus, of course, audio line-out.I have seen that I can get a mini-dvi to rca converter. The strange thing in this connection is that the converter has three rca plugs, which colour match audio l/r and video but I thought that dvi was purely video and not audio/video.
However, I have heard that rca inputs tend to give a poor quality picture - not that we're so choosy when it comes to tv, vcr quality is quite good enough - and I have seen that there is an rca to scart converter also. Would this be a better alternative or is it a case of the weakest link determining picture quality?So basically I have three questions:
1. Does mini-dvi include audio? 2. Should I just buy the mini-dvi to rca converter or the rca to scart converter also? 3. Is there a direct mini-dvi to scart converter available that I haven't found yet?
One of the laptops that I could use runs Ubuntu 9-10. It's and old Dell that sits in a docking station. The other one is a MacBook Pro. I assume, however, that the mini-dvi output will be the same pinwise from either machine. Come to think of it, I also have an old tower model, also running Ubuntu 9-10 that has a mini-dvi output.
I've got a bunch of HD files in .mkv format that I want to convert to a format that the 360 will read (currently just trying .avi files) so I can stream the media to my xbox360. I'd rather avoid transcoding the entire file, so I tried unpacking the .mkv file into audio and video (and subtitle if necessary) and repacking said file into avi using ffmpeg. The repacking is where I am having the problem. Here's the commands I tried at first (it might look familiar):
Error while opening codec for output stream #0.1 - maybe incorrect parameters such as bit_rate, rate, width or height Where stream #0.1 is the output audio stream to the .avi file. I think I have narrowed it down to the fact that the input streams are all 6 channel (5.1 surround sound) which mp2 doesn't support (the ffmpeg audio default) so I did this instead:
to change the sound to stereo it works. Problem is I'd like to keep my media in surround sound. Any thoughts on how to get all 6 channels in the new mp3 file? I'm fairly certain that mp3s support 5.1. And after some messing around, I haven't found that my ffmpeg can transcode audio format from 5.1 back to 5.1. So since (I think) the 360 can play .ac3 files I decided to just copy both the video and audio file to the .avi file sans transcoding using
however now about halfway through, I run into this error:
Code:
NULL @ 0x22f3a00]error, non monotone timestamps 62562 >= 62562
av_interleaved_write_frame(): Error while opening file I can't seem to find any solution to this problem anywhere online, does anyone know how to get around this? I'd prefer to use ffmpeg for this if possible. (so I can write a script and just attack an entire directory at once) For what it's worth, I'm using the latest ffmpeg in the ubuntu (karmic) default repositories.
I am taking a Geology class this semester and we were assigned a CD that has an interactive program on it. I didn't like the access speed- especially when the narrator was supposed to talk. The DVD/CDRW drive had to spin up and... then the narrator spoke.I'm wondering if I can create an ISO image of that CD and then transfer it to a SD card so it's less noisy and less pokey than a CD.I only have Brasero at this point so I don't know if that program will be enough
i work for a nonprofit, so professional and personal hardware upgrades are unlikely in the near future in this time of budget cuts.
we plan to post some videos videos to help raise awareness of our programs, but the camera we got only records in h.264 mp4 format, which our aging machines doesn't like. video is choppy at best, though the audio remains intact.
so basically what i'm asking is, what is the best method for converting h.264 into a format friendlier to older machines?
I have acquired a MDV 001 Mini Video Camera that works very well with UBUNTU. I want to transfer the recorded data from my PC to CD/DVD but the problem I have is, the camera records in AVI format but my video player can only handle JPEG. any conversion program AVI to JPEG which I could use.