[MPlayer-users] Video from one, audio from another

Jason C. Greb jgreb at electronerdz.com
Sat Dec 16 23:49:56 CET 2006


On Sat, 2006-12-16 at 23:37 +0100, Dominik 'Rathann' Mierzejewski wrote:
> On Saturday, 16 December 2006 at 22:23, Jason Greb wrote:
> > I have been using mencoder to rip video off of Mini-DVDs recorded by Sony
> > DVD Cams. (I've done about 100 DVDs, and will be doing about another 300).
> > In these videos, GPS data is embedded in the audio stream. It sounds
> > similar to a fax machine (very annoying, must keep speakers on mute). I've
> > written a bash script along with Zenity that reads track 1, and rips each
> > chapter separately into MPEG2 files:
> > 
> > mencoder dvd://1 -dvd-device $dvddevice -chapter
> > $chapternumber-$chapternumber -alang English -of mpeg -mpegopts
> > format=mpeg2:tsaf:vaspect=4/3 -o
> > $outputdvdfolder/$foldername\_$chapternumber.mpg -oac copy -ovc lavc
> > -lavcopts vcodec=mpeg2video:vbitrate=4000:keyint=15:mbd=2:aspect=4/3 -vf
> > pp=fd
> 
> Don't use -vf pp=fd. There are better deinterlacers:
> http://guru.multimedia.cx/index.php?s=deinterlacing
> 

I just copied this from a place that I found, and I know it works in
Windows (where these will be playing). I'll check out the others.

> > It takes the audio track and just copies it over so no data is lost. It
> > took the longest time for me to get it to play under Windows. Anyway, some
> > of the videos were taken before the GPS attachments, and have regular
> > sound. I've taped one chapter with GPS data in a known location, so I can
> > manually edit the GPS data later in ArcMap.
> > 
> > I need to take the video out of the MPEGs missing the GPS data, and take
> > the audio of the one file that I have recorded with GPS data, and mix them
> > together. I've used Mplayer to do an audiodump, but when I try to use -ova
> > copy (and pcm) and -audiofile out.wav, it never copies the audio into the
> > file.
> > 
> > I've gotten the following:
> > 
> > Audio format 0x56444152 is incompatible with '-oac copy', please try
> > '-oac pcm' instead....
> 
> printf  '\x56\x44\x41\x52\n'
> VDAR
> 
> -> FourCC is "RADV"
> 
> Looks like RAW DV audio. -oac copy can't handle that.
> 
> > Also, just to note, while doing all this mixing, I've take the one MPEG2
> > file and the sound, and used -ovc copy, and for some reason it creates an
> > AVI instead. Do I need to specify more options for that part?
> 
> Yes. You need -of mpeg. There is a big warning about that in mencoder
> output. I'm surprised you missed it.

I've watched so much stuff along with errors that get spit out that I've
probably missed a lot.

> 
> > Or can I encoded from MPEG2 to MPEG2 without losing anything (kinda like
> > saving a JPG several times)?
> 
> Reencoding to JPG serveral times looses quality each time. Same with any
> lossy codec.

But I can use -ovc copy -of mpeg and it won't lose quality?

> 
> > Does anyone have an easy way to take two different sources and combine
> > them?
> 
> Dump the audio track from one of them and remux with the other using
> -audiofile.

How would you recommend I dump the file. I've tried mplayer dvd://1
-chapter 2-2 -dumpfile out.wav -ao pcm, but I am not sure if it is
change the audio stream or not. I'd like to have just a RAW stream of
some sort. I also thought I should mention that when I use the
-audiofile, it had been locking up on me, but I think that was a botched
dump. I have an MPEG2 created the same way as above, or I have the
original DVD source.

> 
> Regards,
> R.
> 
> -- 
> MPlayer developer and RPMs maintainer: http://mplayerhq.hu http://rpm.livna.org
> There should be a science of discontent. People need hard times and
> oppression to develop psychic muscles.
> 	-- from "Collected Sayings of Muad'Dib" by the Princess Irulan
> _______________________________________________
> MPlayer-users mailing list
> MPlayer-users at mplayerhq.hu
> http://lists.mplayerhq.hu/mailman/listinfo/mplayer-users
> 
> 
-- 
Jason C. Greb
ElectroNerdz, Inc.
jgreb at electronerdz.com
http://www.electronerdz.com/
P.O. Box 6556
Lakeland, FL 33807
Voice: 863-709-0204
Cell: 863-860-0985
Fax: 863-709-0506



More information about the MPlayer-users mailing list