From liste at kurgan.org Sun Apr 1 18:57:51 2007 From: liste at kurgan.org (Fabio Muzzi) Date: Sun, 1 Apr 2007 18:57:51 +0200 Subject: [MEncoder-users] Audio-density is ignored when recordin from TV if audio is not "pcm" or "copy" ? Message-ID: <1741526299.20070401185751@kurgan.org> Hello mencoder-users, This is my first post to the list, and I am quite a newbie about video. I have a TV grabber card that I use in my linux box (debian etch). I have installed Mencoder from the debian-multimedia.org repository, and I can record TV quite well, but I'm having issues with the number of the audio chunks compared to the number of video frames. Since I need to split the AVI that I record (using avisplit), I have found that if I don't have the same number of audio chunks and video frames, when I split the AVI I get audio synch errors in the parts after the first one. I have found that Mencoder has an "audio-density" option, and I have tried to use it to produce an AVI that has the same number of audio chunks and video frames, but I was able to get a proper output (that has the same number of chunks and frames) only if I use pcm or copy as audio output encoders. (I use audio-density=25 and fps=25) If I try to use lavc or mp3lame for audio encoding, even using CBR (as stated in the man page), I always get the wrong number of audio chunks, that is 1667 audio chunks for 1500 video frames (that is one minute of recording). What am I doing wrong? -- Fabio "Kurgan" Muzzi From pedrocasqueiro at sic.pt Mon Apr 2 20:00:39 2007 From: pedrocasqueiro at sic.pt (Pedro Casqueiro) Date: Mon, 2 Apr 2007 19:00:39 +0100 Subject: [MEncoder-users] Encapsulation the output as a MPEG-TS Message-ID: <5B4F1D49F1BCDF44B038A96EF8096192012F718A@SIC-CL-EX01.SIC.PT> Hi, Is there any way to use MEncoder to generate a MPEG2-TS file? Thanks, Pedro From nicola_sabbi at fastwebnet.it Mon Apr 2 21:11:14 2007 From: nicola_sabbi at fastwebnet.it (Nico Sabbi) Date: Mon, 02 Apr 2007 21:11:14 +0200 Subject: [MEncoder-users] Encapsulation the output as a MPEG-TS In-Reply-To: <5B4F1D49F1BCDF44B038A96EF8096192012F718A@SIC-CL-EX01.SIC.PT> References: <5B4F1D49F1BCDF44B038A96EF8096192012F718A@SIC-CL-EX01.SIC.PT> Message-ID: <46115552.10901@fastwebnet.it> Pedro Casqueiro wrote: > Hi, > > Is there any way to use MEncoder to generate a MPEG2-TS file? > > > > Thanks, > > Pedro > -of lavf -lavfopts format=mpegts:i_certify_...... but it's a known fact that the TS it generates is useless From totob at libero.it Tue Apr 3 15:07:43 2007 From: totob at libero.it (totob at libero.it) Date: Tue, 3 Apr 2007 15:07:43 +0200 Subject: [MEncoder-users] Problem encoding from flv to wmv Message-ID: Hello everybody, Im encountering some problem enoding a .flv video into a wmnv. I use the following syntax: mencoder.exe in.flv -o out.wmv -oac lavc -ovc lavc -lavcopts vcodec=wmv2:acodec=mp3 -vf scale=320:240 -of lavf -lavfopts i_certify_that_my_video_stream_does_not_use_b_frames The resulting video is not weel played in WMP since the video stream gets often stuck in some frame. Why does this happen? If in the command i remove the -lavfopts part the video in WMV is not stuck anymore but opening it i get a message that the format of the file is incorrect and this is very bothering. What am i missing in my syntax? Thank you!! ------------------------------------------------------ Passa a Infostrada. ADSL e Telefono senza limiti e senza canone Telecom http://click.libero.it/infostrada From keokisan88 at gmail.com Tue Apr 3 17:52:00 2007 From: keokisan88 at gmail.com (Robert Paulson) Date: Tue, 3 Apr 2007 10:52:00 -0500 Subject: [MEncoder-users] Performance question Message-ID: I have a 12GB HD transport stream mpeg that I am encoding to mpeg4. I was using v1.0rc1 off of the download site and thought that the encoding was taking longer than my previous version of mencoder so I did a test. Here is the command I ran for both tests, which only encoded 1 minute of video: mencoder -quiet -aid 0x34 -vid 0x31 -ss 00:05:30 -endpos 00:06:30 /tmp/0328.atsc -oac lavc -lavcopts acodec=ac3:abitrate=192 -vf pullup,softskip,harddup,scale=720:480 -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=8000:aspect=16/9 -o /ts/0328.avi With version: MEncoder 1.0rc1-4.1.1 (C) 2000-2006 MPlayer Team CPU: AMD Opteron(tm) Processor 146 (Family: 15, Model: 5, Stepping: 10) CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1 Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE SSE2 time reported: real 11m48.062s user 11m31.771s sys 0m2.308s with version: MEncoder 1.0pre7try2-3.2.3 (C) 2000-2005 MPlayer Team CPU: Advanced Micro Devices Opteron Sledgehammer (Family: 8, Stepping: 10) Detected cache-line size is 64 bytes CPUflags: Type: 8 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1 Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE SSE2 time reported: real 10m31.155s user 10m25.503s sys 0m2.764s To me it appears that the prerelease of 1.0 is faster than 1.0 itself. With the later version taking an extra 75 seconds to encode a minute of video that could build up to a significant amount of time when encoding a full length movie. I see that the later version detects my cpu differently, but I did not know if that would make a difference, or if there were some significant modification to how mencoder encodes video between these two releases. Any feedback is greatly appreciated. Also I had to rebuild my machine so I think these versions were compiled with different gcc compilers, but I would assume that the more recent versions would be at least as efficient as it's predecessors. From morrisb at avpresentations.com Wed Apr 4 17:25:45 2007 From: morrisb at avpresentations.com (Morris Beverly) Date: Wed, 04 Apr 2007 11:25:45 -0400 Subject: [MEncoder-users] using mf:// with stdin Message-ID: <4613C379.6090809@avpresentations.com> Is it possible to output a series of image files onto stdin and have mencoder encode them to an avi? I haven't been able to find an example of this and don't know if it can be done this way. I'm currently using a an image processing program to output jpegs to files & then using the normal mf://*.jpg to create the video. I'd like to save the time & disk space of writing the files out. I can also send out some sort of raw or encoded format if that would work better with some other input option. I'm open to any other ideas for how to do this. thanks, morris From pierre.catello at gmail.com Wed Apr 4 19:59:21 2007 From: pierre.catello at gmail.com (Pierre Catello) Date: Wed, 4 Apr 2007 19:59:21 +0200 Subject: [MEncoder-users] Can mencoder mux a valid avi with aac audio ? Message-ID: <9ee2499c0704041059o1d965800h40077f0723adab6e@mail.gmail.com> Hello everyone, I try to make AVI file with AAC audio, but the resulting file has no sound, except with mplayer... all other player : VLC, media player classic (coreAAC DS filter is installed), windows wedia player all report unknown codec or undefined stream for the audio stream. >From what I have read, AAC in AVI, although uncommon, is a valid format. I demuxed the streams produced by mencoder with mplayer -dumpaudio and -dumpvideo, and muxed them with the AVImux-GUI software which produced a playable AVI file, so it is possible. I would like to do the same with Mencoder (I encode under Linux and I need scriptable tools), but all the settings I have tried failed : mencoder "$1" -ovc xvid -xvidencopts "vhq=2:bvhq=1:chroma_opt:quant_type=mpeg:fixed_quant=4" -oac faac -faacopts "br=128:mpeg=4" -o "$1.xvid.avi" adding -oac faac -fafmttag 0x706D .... did not helped adding -faacopts "object=1:...." did not helped adding -faacopts "....:raw" did not helped Well, I'm running out of inspiration for options to try ;-) Pierre From rcooley at spamcop.net Wed Apr 4 21:13:42 2007 From: rcooley at spamcop.net (RC) Date: Wed, 04 Apr 2007 12:13:42 -0700 Subject: [MEncoder-users] using mf:// with stdin In-Reply-To: <4613C379.6090809@avpresentations.com> References: <4613C379.6090809@avpresentations.com> Message-ID: <20070404121342.412b4702.rcooley@spamcop.net> On Wed, 04 Apr 2007 11:25:45 -0400 Morris Beverly wrote: > Is it possible to output a series of image files onto stdin and have > mencoder encode them to an avi? Yes, it should work. If not automatically, then at least after setting -demuxer and -vc appropritately. From nicola_sabbi at fastwebnet.it Wed Apr 4 21:52:59 2007 From: nicola_sabbi at fastwebnet.it (Nico Sabbi) Date: Wed, 04 Apr 2007 21:52:59 +0200 Subject: [MEncoder-users] Can mencoder mux a valid avi with aac audio ? In-Reply-To: <9ee2499c0704041059o1d965800h40077f0723adab6e@mail.gmail.com> References: <9ee2499c0704041059o1d965800h40077f0723adab6e@mail.gmail.com> Message-ID: <4614021B.1050206@fastwebnet.it> Pierre Catello wrote: > > demuxed the streams produced by mencoder with mplayer -dumpaudio and > -dumpvideo, and muxed them with the AVImux-GUI software which produced a > playable AVI file, so it is possible. > I would like to do the same with Mencoder (I encode under Linux and I > need > scriptable tools), but all the settings I have tried failed : > > mencoder "$1" -ovc xvid -xvidencopts > "vhq=2:bvhq=1:chroma_opt:quant_type=mpeg:fixed_quant=4" -oac faac > -faacopts > "br=128:mpeg=4" -o "$1.xvid.avi" > > adding -oac faac -fafmttag 0x706D .... did not helped > adding -faacopts "object=1:...." did not helped > adding -faacopts "....:raw" did not helped > > Well, I'm running out of inspiration for options to try ;-) > > Pierre if you upload to incoming a playable sample produed by avimux-gui I'll give it a look From pierre.catello at gmail.com Thu Apr 5 00:28:06 2007 From: pierre.catello at gmail.com (Pierre Catello) Date: Thu, 5 Apr 2007 00:28:06 +0200 Subject: [MEncoder-users] Can mencoder mux a valid avi with aac audio ? In-Reply-To: <4614021B.1050206@fastwebnet.it> References: <9ee2499c0704041059o1d965800h40077f0723adab6e@mail.gmail.com> <4614021B.1050206@fastwebnet.it> Message-ID: <9ee2499c0704041528l4eaf330bo6b46a00170f1846e@mail.gmail.com> 2007/4/4, Nico Sabbi : > > > if you upload to incoming a playable sample produed by avimux-gui I'll > give > it a look Many thanks Nico, I just uploaded a short sample in the incoming directory : sample-menc.avi is the version generated with MEncoder : $ mencoder sample.mpg -ovc xvid -xvidencopts \ "vhq=2:bvhq=1:chroma_opt:quant_type=mpeg:fixed_quant=4" -oac faac -faacopts "br=128:mpeg=4" \ -o sample-menc.avi sample.m4a = mplayer -dumpaudio -dumpfile=sample.m4a sample-menc.avi and sample-avimux.avi is generated with avi-mux-gui from sample-menc.avi, dropping the audio stream and replacing it with sample.m4a. Audio is Ok with all players with sample-avimux.avi, while only MPlayer can play the audio from sample-menc.avi Pierre From nicola_sabbi at fastwebnet.it Thu Apr 5 00:55:54 2007 From: nicola_sabbi at fastwebnet.it (Nico Sabbi) Date: Thu, 05 Apr 2007 00:55:54 +0200 Subject: [MEncoder-users] Can mencoder mux a valid avi with aac audio ? In-Reply-To: <9ee2499c0704041528l4eaf330bo6b46a00170f1846e@mail.gmail.com> References: <9ee2499c0704041059o1d965800h40077f0723adab6e@mail.gmail.com> <4614021B.1050206@fastwebnet.it> <9ee2499c0704041528l4eaf330bo6b46a00170f1846e@mail.gmail.com> Message-ID: <46142CFA.8040308@fastwebnet.it> Pierre Catello wrote: > > Many thanks Nico, > > > I just uploaded a short sample in the incoming directory : > > sample-menc.avi is the version generated with MEncoder : > > $ mencoder sample.mpg -ovc xvid -xvidencopts \ > "vhq=2:bvhq=1:chroma_opt:quant_type=mpeg:fixed_quant=4" -oac faac > -faacopts > "br=128:mpeg=4" \ > -o sample-menc.avi > > sample.m4a = mplayer -dumpaudio -dumpfile=sample.m4a sample-menc.avi > > and sample-avimux.avi is generated with avi-mux-gui from sample-menc.avi, > dropping the audio stream and replacing it with sample.m4a. > > Audio is Ok with all players with sample-avimux.avi, while only > MPlayer can > play the audio from sample-menc.avi > > Pierre > try with ./mencoder -oac faac -faacopts br=..:raw:mpeg=4 recompiled with this patch applied (that, in any case, looks nonsense to me) maybe specifying the object=.. something Index: libmpcodecs/ae_faac.c =================================================================== --- libmpcodecs/ae_faac.c (revisione 22837) +++ libmpcodecs/ae_faac.c (copia locale) @@ -50,7 +50,7 @@ static int bind_faac(audio_encoder_t *encoder, muxer_stream_t *mux_a) { mux_a->wf = calloc(1, sizeof(WAVEFORMATEX) + decoder_specific_len + 256); - mux_a->wf->wFormatTag = 0x706D; + mux_a->wf->wFormatTag = 0xFF; mux_a->wf->nChannels = encoder->params.channels; mux_a->h.dwSampleSize=0; // VBR mux_a->h.dwRate=encoder->params.sample_rate; From brice.rouanet at iut-tlse3.fr Fri Apr 6 11:26:28 2007 From: brice.rouanet at iut-tlse3.fr (brice.rouanet at iut-tlse3.fr) Date: Fri, 06 Apr 2007 11:26:28 +0200 Subject: [MEncoder-users] Using specific dll codec to encode a movie Message-ID: <20070406112628.3ol9w39y800wwkco@www.iut-tlse3.fr> Hi, I want to convert a movie with a specific MPG 4 dll codec on windows, i try to do : mencoder test.mpg -oac mp3lame -ovc mycodec.dll -o test.avi but it not work :( Is it possible to do this with mencoder ? Regards, Brice Rouanet. ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. From johnbrown105 at hotmail.com Fri Apr 6 12:53:00 2007 From: johnbrown105 at hotmail.com (John Brown) Date: Fri, 06 Apr 2007 06:53:00 -0400 Subject: [MEncoder-users] Using specific dll codec to encode a movie In-Reply-To: <20070406112628.3ol9w39y800wwkco@www.iut-tlse3.fr> Message-ID: Hello Brice, >Brice Rouanet wrote: > >Hi, > >I want to convert a movie with a specific MPG 4 dll codec on windows, >i try to do : > >mencoder test.mpg -oac mp3lame -ovc mycodec.dll -o test.avi > >but it not work :( > >Is it possible to do this with mencoder ? > See DOCS/tech/codecs.conf.txt in the MPlayer source folder. _________________________________________________________________ Interest Rates Fall Again! $430,000 Mortgage for $1,399/mo - Calculate new payment http://www.lowermybills.com/lre/index.jsp?sourceid=lmb-9632-18679&moid=7581 From brice.rouanet at iut-tlse3.fr Fri Apr 6 13:32:12 2007 From: brice.rouanet at iut-tlse3.fr (brice.rouanet at iut-tlse3.fr) Date: Fri, 06 Apr 2007 13:32:12 +0200 Subject: [MEncoder-users] Using specific dll codec to encode a movie In-Reply-To: References: Message-ID: <20070406133212.h2768dsls84c4s4g@www.iut-tlse3.fr> Thanks jhon, but how I must put this file on windows system ? Brice. > Hello Brice, > >> Brice Rouanet wrote: >> >> Hi, >> >> I want to convert a movie with a specific MPG 4 dll codec on windows, >> i try to do : >> >> mencoder test.mpg -oac mp3lame -ovc mycodec.dll -o test.avi >> >> but it not work :( >> >> Is it possible to do this with mencoder ? >> > > See DOCS/tech/codecs.conf.txt in the MPlayer source folder. > > _________________________________________________________________ > Interest Rates Fall Again! $430,000 Mortgage for $1,399/mo - Calculate > new payment > http://www.lowermybills.com/lre/index.jsp?sourceid=lmb-9632-18679&moid=7581 > > _______________________________________________ > MEncoder-users mailing list > MEncoder-users at mplayerhq.hu > http://lists.mplayerhq.hu/mailman/listinfo/mencoder-users ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. From johnbrown105 at hotmail.com Fri Apr 6 14:26:36 2007 From: johnbrown105 at hotmail.com (John Brown) Date: Fri, 6 Apr 2007 12:26:36 +0000 (UTC) Subject: [MEncoder-users] Re: Using specific dll codec to encode a movie References: <20070406133212.h2768dsls84c4s4g@www.iut-tlse3.fr> Message-ID: iut-tlse3.fr> writes: > >> I want to convert a movie with a specific MPG 4 dll codec on windows, > >> > >> Is it possible to do this with mencoder ? > >> > > > > See DOCS/tech/codecs.conf.txt in the MPlayer source folder. > > Thanks jhon, > > but how I must put this file on windows system ? > > Sorry, I gave you incorrect information. The codecs.conf file is used by MPlayer. Therefore what you want is not possible, unless you or someone else adds support for your codec. For what it's worth, if MPlayer is installed in c:\mplayer, then the path is c:\mplayer\mplayer\codecs.conf. From pierre.catello at gmail.com Fri Apr 6 18:27:27 2007 From: pierre.catello at gmail.com (Pierre Catello) Date: Fri, 6 Apr 2007 18:27:27 +0200 Subject: [MEncoder-users] Weird sound corruption with AAC... Message-ID: <9ee2499c0704060927o6cedae64r8c509023df197b28@mail.gmail.com> I'm pulling my hair out on a weird problem : On a well identified sample, AAC encoding with MEncoder results in a strangely corrupted sound when played back by MPlayer (other players play nicely the file generated by MEncoder). - and If I encode the sound stream with FAAC, then MPlayer plays the file nicely. I only noticed the problem on this specific sample (at the beginning of a recorded movie). ---- details: source=clip.mpg # mpeg2 program stream, from a DVB source mencoder $clip.mpg -vf crop=704:320:0:133 -ovc xvid -xvidencopts "vhq=2:bvhq=1:chroma_opt:quant_type=mpeg:fixed_quant=4" -oac faac -faacopts "br=128:mpeg=4" -o clip.xvidaac.avi mplayer -dumpaudio -dumpfile clip.menc.aac clip.xvidaac.avi # clip.menc.aac --> corrupted sound when played by MPlayer, ok with usual Windows players (VLC, MPC, WMP, Nero Show Time) MP4Box -add clip.xvidaac.avi#video clip.mp4 MP4Box -add clip.menc.aac clip.mp4 # clip.mp4 --> corrupted sound when played by MPlayer, ok with other players # With FAAC : clip.wav = PCM wave extracted from the source file clip.mpg (MPlayer -ao pcm:fast ...) faac -b 128 --mpeg-vers 4 clip.wav # clip.aac plays nicely with MPlayer and other players MP4Box -add clip.xvidaac.avi#video clip2.mp4 MP4Box -add clip.aac clip2.mp4 # clip.mp4 --> Plays nicely with MPlayer and other players ---------- From sysadm at amikom.com.pl Fri Apr 6 22:44:40 2007 From: sysadm at amikom.com.pl (Mariusz Zynel) Date: Fri, 06 Apr 2007 22:44:40 +0200 Subject: [MEncoder-users] Target file size too big wrt bitrate Message-ID: <4616B138.3040302@amikom.com.pl> Hi, I'm encoding a movie from DVD to DIVX in three passes. First the audio is encoded: mencoder -ovc frameno -o frameno.avi -oac lavc -lavcopts acodec=ac3:abitrate=96 -alang pl -aid 131 some_file Then two passes to encode the video stream go: mencoder -o /dev/null -oac copy -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=980:vhq:vpass=1:turbo -vf scale=640:360 some_file mencoder -o movie.avi -ffourcc DIVX -oac copy -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=980:vhq:vpass=2 -vf scale=640:360 some_file The specified video bitrate 980kbps is suggested by the first pass to make the target file of size 800MB. Everything goes fine except that the target file is 1007MB. I'm working on Solaris 10 Update 3. MPlayer/MEncoder is todays snapshot: mplayer-export-2007-04-06 built with GCC 4.1.2 on two way Xeon 3.06GHz box. I've been using Mplayer/Mencoder for a long time and had encoded a lot of movies successfully with the above commands. The last version that works flawlessly is 1.0pre6a. First noticed the problem in 1.0pre8. 1.0pre6a built with the same compiler on the same platform creates target files as expected. I've tried additional options like: vcodec=mpeg4:mbd=2:trell:v4mv:last_pred=2:dia=-1:vmax_b_frames=2:vb_strategy=1:cmp=3:subcmp=3:precmp=0:vqcomp=0.6 with no luck. Any help in greatly appreciated as I'm fighting this bug for couple of months now. Mariusz From joey.parrish at gmail.com Fri Apr 6 23:39:52 2007 From: joey.parrish at gmail.com (Joey Parrish) Date: Fri, 6 Apr 2007 15:39:52 -0600 Subject: [MEncoder-users] Target file size too big wrt bitrate In-Reply-To: <4616B138.3040302@amikom.com.pl> References: <4616B138.3040302@amikom.com.pl> Message-ID: On 4/6/07, Mariusz Zynel wrote: > I'm encoding a movie from DVD to DIVX in three passes. First the > audio is encoded: > > mencoder -ovc frameno -o frameno.avi -oac lavc -lavcopts > acodec=ac3:abitrate=96 -alang pl -aid 131 some_file > > Then two passes to encode the video stream go: > > mencoder -o /dev/null -oac copy -ovc lavc -lavcopts > vcodec=mpeg4:vbitrate=980:vhq:vpass=1:turbo -vf scale=640:360 some_file > > mencoder -o movie.avi -ffourcc DIVX -oac copy -ovc lavc -lavcopts > vcodec=mpeg4:vbitrate=980:vhq:vpass=2 -vf scale=640:360 some_file Try this: mencoder -o movie.avi -ffourcc DIVX -oac copy -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=980:vhq:vpass=2 -vf scale=640:360 some_file -audiofile frameno.avi I think that without -audiofile option, your -oac copy is copying the _original_ audio track from some_file. If the original is much larger than your re-encoded 64 kbit, then this might account for the difference. I think older versions would load frameno.avi automatically. New SVN does not seem to. From the manual: > ?frameno-file (DEPRECATED) > > Specify the name of the audio file with framenumber mappings created in the first > (audio only) pass of a special three pass encoding mode. > NOTE: Using this mode will most likely give you A-V desync. Do not use it. > It is kept for backwards compatibility only and will possibly be removed in a > future version. So if you want the old behavior, you could use -frameno-file frameno.avi. However, since it is noted that you could lose sync, I would suggest instead -audiofile. In my brief tests just now, I did not seem to lose sync this way. --Joey From joey.parrish at gmail.com Fri Apr 6 23:42:12 2007 From: joey.parrish at gmail.com (Joey Parrish) Date: Fri, 6 Apr 2007 15:42:12 -0600 Subject: [MEncoder-users] Using specific dll codec to encode a movie In-Reply-To: <20070406112628.3ol9w39y800wwkco@www.iut-tlse3.fr> References: <20070406112628.3ol9w39y800wwkco@www.iut-tlse3.fr> Message-ID: On 4/6/07, brice.rouanet at iut-tlse3.fr wrote: > I want to convert a movie with a specific MPG 4 dll codec on windows, > i try to do : > > mencoder test.mpg -oac mp3lame -ovc mycodec.dll -o test.avi > > but it not work :( > > Is it possible to do this with mencoder ? RTFM mencoder. It doesn't work that way. Use -ovc help to see available options for ovc. --Joey From lucaspglinard at gmail.com Sat Apr 7 00:07:38 2007 From: lucaspglinard at gmail.com (Lucas Linard) Date: Fri, 6 Apr 2007 19:07:38 -0300 Subject: [MEncoder-users] Mencoder SIMPLY Freezes or gives a mpg123: Can't rewind stream by 20 bits! error Message-ID: <45bb4360704061507i1a3a2d9bp65f9088b322c19f2@mail.gmail.com> When I run the following command, mencoder starts ok, but at some point during 1st pass, it just freezes. It won't accept any command, no ctrl+c or something. ust there's no way (that I know) to get it working again. It happens always at specific point of the video (it changes as I change the video file). The command is this: mencoder -oac lavc -ovc lavc -of mpeg -mpegopts format=dvd:tsaf -vf crop=704:400,scale=720:400,expand=720:576,harddup -srate 48000 -af lavcresample=48000 -lavcopts mbd=2:trell:last_pred=2:dia=-1:vmax_b_frames=2:vb_strategy=1:cmp=3:subcmp=3:precmp=0:vqcomp=0.6:vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=1800:keyint=15:vstrict=0:acodec=ac3:abitrate=192:aspect=4/3:border_mask=0.3:vpass=1:turbo -o "/dev/null" "movie003.mp4" mencoder -oac lavc -ovc lavc -of mpeg -mpegopts format=dvd:tsaf -vf crop=704:400,scale=720:480,expand=720:576,harddup -srate 48000 -af lavcresample=48000 -lavcopts mbd=2:trell:last_pred=2:dia=-1:vmax_b_frames=2:vb_strategy=1:cmp=3:subcmp=3:precmp=0:vqcomp=0.6:vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=1800:keyint=15:vstrict=0:acodec=ac3:abitrate=192:aspect=4/3:border_mask=0.3:vpass=2 -o "movie_converted_03.mpg" "movie003.mp4" Also with some videos I get this error: "Skipping frame! mpg123: Can't rewind stream by 32 bits!: 89min 1053mb A-V:0.072 [1728:191] mpg123: Can't rewind stream by 47 bits!: 88min 1035mb A-V:0.079 [1731:192] Pos: 30.4s 733f ( 0%) 25.41fps Trem: 87min 1056mb A-V:0.084 [1743:192] Skipping frame! mpg123: Can't rewind stream by 96 bits!: 86min 1038mb A-V:0.046 [1752:192] mpg123: Can't rewind stream by 20 bits!: 86min 1024mb A-V:0.052 [1761:192] mpg123: Can't rewind stream by 172 bits! 74min 1047mb A-V:0.078 [1883:191] " I use mencoder from Ubuntu Feisty repos. MEncoder 2:1.0~rc1-0ubuntu8 (C) 2000-2006 MPlayer Team CPU: AMD Athlon(tm) XP 2400+ (Family: 6, Model: 8, Stepping: 1) CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0 Compiled with runtime CPU detection. success: format: 0 data: 0x0 - 0x2bcee000 AVI file format detected. VIDEO: [DX50] 572x312 12bpp 23.976 fps 923.4 kbps (112.7 kbyte/s) [V] filefmt:3 fourcc:0x30355844 size:572x312 fps:23.98 ftime:=0.0417 Can Anyone help me? Sorry if this has already been asked, I don't know how tho search the mail list. -- Abra?os, Lucas PG Linard (\ /) (O.o) (> <) Bunny, taking over the world, one signature at a time. From nicola_sabbi at fastwebnet.it Sat Apr 7 00:31:52 2007 From: nicola_sabbi at fastwebnet.it (Nico Sabbi) Date: Sat, 07 Apr 2007 00:31:52 +0200 Subject: [MEncoder-users] Mencoder SIMPLY Freezes or gives a mpg123: Can't rewind stream by 20 bits! error In-Reply-To: <45bb4360704061507i1a3a2d9bp65f9088b322c19f2@mail.gmail.com> References: <45bb4360704061507i1a3a2d9bp65f9088b322c19f2@mail.gmail.com> Message-ID: <4616CA58.6020105@fastwebnet.it> Lucas Linard wrote: > Also with some videos I get this error: > "Skipping frame! > mpg123: Can't rewind stream by 32 bits!: 89min 1053mb A-V:0.072 > [1728:191] > mpg123: Can't rewind stream by 47 bits!: 88min 1035mb A-V:0.079 > [1731:192] > Pos: 30.4s 733f ( 0%) 25.41fps Trem: 87min 1056mb A-V:0.084 > [1743:192] > Skipping frame! > mpg123: Can't rewind stream by 96 bits!: 86min 1038mb A-V:0.046 > [1752:192] > mpg123: Can't rewind stream by 20 bits!: 86min 1024mb A-V:0.052 > [1761:192] > mpg123: Can't rewind stream by 172 bits! 74min 1047mb A-V:0.078 > [1883:191] " > > -ac mad or -ac ffmp3 will use a different decoder From comes at naic.edu Sat Apr 7 00:37:24 2007 From: comes at naic.edu (Giacomo Comes) Date: Fri, 6 Apr 2007 18:37:24 -0400 Subject: [MEncoder-users] Target file size too big wrt bitrate In-Reply-To: References: <4616B138.3040302@amikom.com.pl> Message-ID: <20070406223724.GA7227@monopoli.naic.edu> On Fri, Apr 06, 2007 at 03:39:52PM -0600, Joey Parrish wrote: > On 4/6/07, Mariusz Zynel wrote: > >I'm encoding a movie from DVD to DIVX in three passes. First the > >audio is encoded: > > > >mencoder -ovc frameno -o frameno.avi -oac lavc -lavcopts > >acodec=ac3:abitrate=96 -alang pl -aid 131 some_file > > > >Then two passes to encode the video stream go: > > > >mencoder -o /dev/null -oac copy -ovc lavc -lavcopts > >vcodec=mpeg4:vbitrate=980:vhq:vpass=1:turbo -vf scale=640:360 some_file > > > >mencoder -o movie.avi -ffourcc DIVX -oac copy -ovc lavc -lavcopts > >vcodec=mpeg4:vbitrate=980:vhq:vpass=2 -vf scale=640:360 some_file > > Try this: > mencoder -o movie.avi -ffourcc DIVX -oac copy -ovc lavc -lavcopts > vcodec=mpeg4:vbitrate=980:vhq:vpass=2 -vf scale=640:360 some_file > -audiofile frameno.avi > > I think that without -audiofile option, your -oac copy is copying the > _original_ audio track from some_file. If the original is much larger > than your re-encoded 64 kbit, then this might account for the > difference. > > I think older versions would load frameno.avi automatically. New SVN > does not seem to. From the manual: > > >?$B!]frameno-file (DEPRECATED) > > > >Specify the name of the audio file with framenumber mappings created in > >the first > >(audio only) pass of a special three pass encoding mode. > >NOTE: Using this mode will most likely give you A-V desync. Do not use it. > >It is kept for backwards compatibility only and will possibly be removed > >in a > >future version. > > So if you want the old behavior, you could use -frameno-file > frameno.avi. However, since it is noted that you could lose sync, I > would suggest instead -audiofile. In my brief tests just now, I did > not seem to lose sync this way. The proper way to go, is: 1) get the suggested video bit rate mencoder -ovc frameno -o frameno.avi -oac lavc -lavcopts acodec=ac3:abitrate=96 -aid 131 some_file (-alang is not necessary because you select the audio stream with -aid) 2) first pass mencoder -o /dev/null -aid 131 -oac lavc -ovc lavc -lavcopts acodec=ac3:abitrate=96:vcodec=mpeg4:vbitrate=980:vhq:vpass=1:turbo -vf scale=640:360 some_file 3) second pass mencoder -o movie.avi -ffourcc DIVX -oac lavc -ovc lavc -lavcopts acodec=ac3:abitrate=96:vcodec=mpeg4:vbitrate=980:vhq:vpass=2 -vf scale=640:360 some_file Also you should read a more recent documentation and use more appropriate video encoding options (in order to have better quality with the same file size) Ciao Giacomo From lucaspglinard at gmail.com Sat Apr 7 01:39:11 2007 From: lucaspglinard at gmail.com (Lucas Linard) Date: Fri, 6 Apr 2007 20:39:11 -0300 Subject: [MEncoder-users] Mencoder SIMPLY Freezes or gives a mpg123: Can't rewind stream by 20 bits! error Message-ID: <45bb4360704061639i19110bc2p997e3a00aeea0aef@mail.gmail.com> Nico Sabbi: Thanks dude, the mpg123 error stopped. But what can I do about the freeze?? It jsut freezes, with no message or something (at least as far as I know). this is the output: MEncoder 2:1.0~rc1-0ubuntu8 (C) 2000-2006 MPlayer Team CPU: AMD Athlon(tm) XP 2400+ (Family: 6, Model: 8, Stepping: 1) CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0 Compiled with runtime CPU detection. success: format: 0 data: 0x0 - 0x2bcee000 AVI file format detected. VIDEO: [DX50] 572x312 12bpp 23.976 fps 923.4 kbps (112.7 kbyte/s) [V] filefmt:3 fourcc:0x30355844 size:572x312 fps:23.98 ftime:=0.0417 ========================================================================== Forced audio codec: mad Opening audio decoder: [libmad] libmad mpeg audio decoder AUDIO: 48000 Hz, 2 ch, s16le, 160.0 kbit/10.42% (ratio: 20000->192000) Selected audio codec: [mad] afm: libmad (libMAD MPEG layer 1-2-3) ========================================================================== SUB: Detected subtitle file format: subviewer SUB: Read 960 subtitles. PACKET SIZE: 2048 bytes, deltascr: 43885 Opening video filter: [expand osd=1] Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1 Opening video filter: [harddup] Opening video filter: [expand w=720 h=576] Expand: 720 x 576, -1 ; -1, osd: 0, aspect: 0.000000, round: 1 Opening video filter: [scale w=720 h=400] Opening video filter: [crop w=572 h=312] Crop: 572 x 312, -1 ; -1 ========================================================================== Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4) ========================================================================== Limiting audio preload to 0.4s. Increasing audio density to 4. VDec: vo config request - 572 x 312 (preferred colorspace: Planar YV12) VDec: using Planar YV12 as output csp (no 0) Movie-Aspect is 1.83:1 - prescaling to correct movie aspect. SwScaler: reducing / aligning filtersize 5 -> 4 SwScaler: reducing / aligning filtersize 5 -> 4 SwScaler: reducing / aligning filtersize 5 -> 4 SwScaler: reducing / aligning filtersize 5 -> 4 SwScaler: BICUBIC scaler, from yuv420p to yuv420p using MMX2 SwScaler: using 4-tap MMX scaler for horizontal luminance scaling SwScaler: using 4-tap MMX scaler for horizontal chrominance scaling SwScaler: using n-tap MMX scaler for vertical scaling (YV12 like) SwScaler: 572x312 -> 720x400 videocodec: libavcodec (720x576 fourcc=3267706d [mpg2]) [VE_LAVC] High quality encoding selected (non-realtime)! Pos: 0.0s 1f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.000 [0:0] 1 duplicate frame(s)! Writing header...2f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.004 [0:0] INITV: 0.200, 0.158, fps: 23.976 Pos: 97.0s 2327f ( 1%) 29.99fps Trem: 68min 1209mb A-V:0.048 [1806:192] and it simply STOPS. Is there another way I can make quality mpg (to create a dvd video) using mencoder? I am using the following command mencoder movie.avi -sub sub.srt -subcp latin1 -ovc lavc -oac lavc -of mpeg -mpegopts format=dvd:tsaf -vf crop=572:312,scale=720:400,expand=720:576,harddup -srate 48000 -af lavcresample=48000 -lavcopts vcodec=mpeg2video:mbd=2:mv0:trell:cbp:last_pred=3:predia=2:dia=2:vmax_b_frames=2:vb_strategy=1:precmp=2:cmp=2:subcmp=2:preme=2:qns=2:vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=1800:keyint=15:vstrict=0:acodec=ac3:abitrate=192:aspect=4/3:border_mask=0.3:vpass=1:turbo -o "/dev/null" -ofps 24000/1001 -ac mad after that I use the same, but without turbo, and with vpass=2 can you point me a way to prevent the freeze? again, thanks a LOT for the -ac mad tip. -- Abra?os, Lucas PG Linard (\ /) (O.o) (> <) Bunny, taking over the world, one signature at a time. From nicola_sabbi at fastwebnet.it Sat Apr 7 01:49:23 2007 From: nicola_sabbi at fastwebnet.it (Nico Sabbi) Date: Sat, 07 Apr 2007 01:49:23 +0200 Subject: [MEncoder-users] Mencoder SIMPLY Freezes or gives a mpg123: Can't rewind stream by 20 bits! error In-Reply-To: <45bb4360704061639i19110bc2p997e3a00aeea0aef@mail.gmail.com> References: <45bb4360704061639i19110bc2p997e3a00aeea0aef@mail.gmail.com> Message-ID: <4616DC83.6010009@fastwebnet.it> Lucas Linard wrote: > Nico Sabbi: > Thanks dude, the mpg123 error stopped. But what can I do about the > freeze?? It jsut freezes, with no message or something (at least as > far as I know). > this is the output: > > MEncoder 2:1.0~rc1-0ubuntu8 (C) 2000-2006 MPlayer Team > old, use svn instead > and it simply STOPS. Is there another way I can make quality mpg (to > create a dvd video) using mencoder? > I am using the following command > mencoder movie.avi -sub sub.srt -subcp latin1 -ovc lavc -oac lavc -of > mpeg -mpegopts format=dvd:tsaf -vf > crop=572:312,scale=720:400,expand=720:576,harddup -srate 48000 -af > lavcresample=48000 -lavcopts > vcodec=mpeg2video:mbd=2:mv0:trell:cbp:last_pred=3:predia=2:dia=2:vmax_b_frames=2:vb_strategy=1:precmp=2:cmp=2:subcmp=2:preme=2:qns=2:vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=1800:keyint=15:vstrict=0:acodec=ac3:abitrate=192:aspect=4/3:border_mask=0.3:vpass=1:turbo > > -o "/dev/null" -ofps 24000/1001 -ac mad > > after that I use the same, but without turbo, and with vpass=2 > > can you point me a way to prevent the freeze? again, thanks a LOT for > the -ac mad tip. > if svn still freezes retry with this patch reversed, please, and report if it still freezes http://svn.mplayerhq.hu/mplayer/trunk/libmpdemux/muxer_mpeg.c?r1=22879&r2=22878&pathrev=22879 From brice.rouanet at iut-tlse3.fr Sat Apr 7 10:30:36 2007 From: brice.rouanet at iut-tlse3.fr (brice.rouanet at iut-tlse3.fr) Date: Sat, 07 Apr 2007 10:30:36 +0200 Subject: [MEncoder-users] Using specific dll codec to encode a movie In-Reply-To: References: <20070406112628.3ol9w39y800wwkco@www.iut-tlse3.fr> Message-ID: <20070407103036.jz65xaz7gw8sgkc4@www.iut-tlse3.fr> I dead it and I not see how to do this. > On 4/6/07, brice.rouanet at iut-tlse3.fr wrote: >> I want to convert a movie with a specific MPG 4 dll codec on windows, >> i try to do : >> >> mencoder test.mpg -oac mp3lame -ovc mycodec.dll -o test.avi >> >> but it not work :( >> >> Is it possible to do this with mencoder ? > > RTFM mencoder. It doesn't work that way. Use -ovc help to see > available options for ovc. > > --Joey > _______________________________________________ > MEncoder-users mailing list > MEncoder-users at mplayerhq.hu > http://lists.mplayerhq.hu/mailman/listinfo/mencoder-users ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. From simon.oualid at gmail.com Sat Apr 7 10:44:06 2007 From: simon.oualid at gmail.com (Simon Oualid) Date: Sat, 7 Apr 2007 10:44:06 +0200 Subject: [MEncoder-users] Create standard MPEG PS with MPEG 1 video and MP2 audio Message-ID: <790d7a550704070144q2ab46578qff92cffa45c4ce1b@mail.gmail.com> Hello, I am using Mencoder to create various type of files and I am really enjoying it, but I cannot find the right command line in that'll create a MPEG PS file (audio + video) that will play on a default installation of MS Windows (with WMP). I think MPEG1 video and MP2 audio should work, but I am still having troubles after many tries. Any help would be greatly appreciated, thank you ! :) Here is the command line I currently use (I tried lot of variations, including the usage of lavf muxer instead of Mencoder one... I also did some tries with different muxrate and resolution) : --- mencoder test.avi of mpeg -ovc lavc -lavcopts vcodec=mpeg1video:vbitrate=1000 -mpegopts format=mpeg1 -ofps 25 -oac lavc -lavcopts acodec=mp2:abitrate=224 -vf harddup -o test.mpg --- I am running Mencoder 1.0RC1 on Windows, MacOSX and / or Linux box... But I can't remember if I already gave a try using these 3 OS. Thank you for reading, Simon From nicola_sabbi at fastwebnet.it Sat Apr 7 10:52:40 2007 From: nicola_sabbi at fastwebnet.it (Nico Sabbi) Date: Sat, 07 Apr 2007 10:52:40 +0200 Subject: [MEncoder-users] Create standard MPEG PS with MPEG 1 video and MP2 audio In-Reply-To: <790d7a550704070144q2ab46578qff92cffa45c4ce1b@mail.gmail.com> References: <790d7a550704070144q2ab46578qff92cffa45c4ce1b@mail.gmail.com> Message-ID: <46175BD8.3020707@fastwebnet.it> Simon Oualid wrote: > Hello, > > I am using Mencoder to create various type of files and I am really > enjoying > it, but I cannot find the right command line in that'll create a MPEG PS > file (audio + video) that will play on a default installation of MS Windows > (with WMP). > > I think MPEG1 video and MP2 audio should work, but I am still having > troubles after many tries. Any help would be greatly appreciated, thank you > ! :) > > Here is the command line I currently use (I tried lot of variations, > including the usage of lavf muxer instead of Mencoder one... I also did > some > tries with different muxrate and resolution) : > > --- > mencoder test.avi of mpeg -ovc lavc -lavcopts > vcodec=mpeg1video:vbitrate=1000 -mpegopts format=mpeg1 -ofps 25 -oac lavc > -lavcopts acodec=mp2:abitrate=224 -vf harddup -o test.mpg > --- these 2 were reported to work (of course in mutual exclusion): - -mpegopts format=mpeg2 - -lavfopts format=vcd From shaker_doc at yahoo.com Sat Apr 7 11:27:06 2007 From: shaker_doc at yahoo.com (DEF) Date: Sat, 7 Apr 2007 02:27:06 -0700 (PDT) Subject: [MEncoder-users] Create standard MPEG PS with MPEG 1 video and MP2 audio In-Reply-To: <46175BD8.3020707@fastwebnet.it> Message-ID: <370607.66647.qm@web53903.mail.re2.yahoo.com> --- Nico Sabbi wrote: > Simon Oualid wrote: > > Hello, > > > > I am using Mencoder to create various type of > files and I am really > > enjoying > > it, but I cannot find the right command line in > that'll create a MPEG PS > > file (audio + video) that will play on a default > installation of MS Windows > > (with WMP). > > > > I think MPEG1 video and MP2 audio should work, but > I am still having > > troubles after many tries. Any help would be > greatly appreciated, thank you > > ! :) > > > > Here is the command line I currently use (I tried > lot of variations, > > including the usage of lavf muxer instead of > Mencoder one... I also did > > some > > tries with different muxrate and resolution) : > > > > --- > > mencoder test.avi of mpeg -ovc lavc -lavcopts > > vcodec=mpeg1video:vbitrate=1000 -mpegopts > format=mpeg1 -ofps 25 -oac lavc > > -lavcopts acodec=mp2:abitrate=224 -vf harddup -o > test.mpg > > --- > > these 2 were reported to work (of course in mutual > exclusion): > - -mpegopts format=mpeg2 > - -lavfopts format=vcd Please just a question of curiosity: In your orginal message on April 22 2006 when you gave us the new mpeg muxer in the cvs (back then) the following appeared. >strongly advised: >- when encoding video (e.g. without -ovc copy) >_always_ use -vf softskip >(btw, I have and had a lot of problems with harddup, >so I don't use >it); >- using -ofps is generally quite bad (with the old >muxer, too), better >use -speed newfr/oldfr >(eventually resampling audio) However, given that it was never added to the manual (doc), it is almost never followed. Do you still advice that as of now? DEF ____________________________________________________________________________________ Now that's room service! Choose from over 150,000 hotels in 45,000 destinations on Yahoo! Travel to find your fit. http://farechase.yahoo.com/promo-generic-14795097 From pierre.catello at gmail.com Mon Apr 9 14:31:53 2007 From: pierre.catello at gmail.com (Pierre Catello) Date: Mon, 9 Apr 2007 14:31:53 +0200 Subject: [MEncoder-users] Aspect ratio signaling Message-ID: <9ee2499c0704090531h4491ea22ya373b21d2a584814@mail.gmail.com> Hello, Some mpeg2 transport streams change the aspect ratio quite often (movie review programs, programs with movie + debate, etc.) The mpeg2 transport stream has proper signaling, but is it possible to include aspect ratio change signals into an AVI... If it is not possible, does anyone know a way to map aspect ratio signaling from mpeg2 program or transport streams to an MP4 container ? Thanks From pierre.catello at gmail.com Tue Apr 10 18:13:33 2007 From: pierre.catello at gmail.com (Pierre Catello) Date: Tue, 10 Apr 2007 18:13:33 +0200 Subject: [MEncoder-users] x264encopts equivalent for some x264 parameters ? Message-ID: <9ee2499c0704100913r71dd0140vf76789b78467b0ef@mail.gmail.com> Hello, I can't find in the doc how to use in MEncoder the equivalent of this x264 mode : --crf -q x (x belonging to [0..1]) From bugfood-ml at fatooh.org Tue Apr 10 21:08:21 2007 From: bugfood-ml at fatooh.org (Corey Hickey) Date: Tue, 10 Apr 2007 12:08:21 -0700 Subject: [MEncoder-users] x264encopts equivalent for some x264 parameters ? In-Reply-To: <9ee2499c0704100913r71dd0140vf76789b78467b0ef@mail.gmail.com> References: <9ee2499c0704100913r71dd0140vf76789b78467b0ef@mail.gmail.com> Message-ID: <461BE0A5.9030809@fatooh.org> Pierre Catello wrote: > Hello, > > I can't find in the doc how to use in MEncoder the equivalent of this x264 > mode : > --crf -q x (x belonging to [0..1]) -x264encopts crf=x That sort of information is in the man page. -Corey From simon.oualid at gmail.com Tue Apr 10 22:48:53 2007 From: simon.oualid at gmail.com (Simon Oualid) Date: Tue, 10 Apr 2007 22:48:53 +0200 Subject: [MEncoder-users] Create standard MPEG PS with MPEG 1 video and MP2 audio In-Reply-To: <370607.66647.qm@web53903.mail.re2.yahoo.com> References: <46175BD8.3020707@fastwebnet.it> <370607.66647.qm@web53903.mail.re2.yahoo.com> Message-ID: <790d7a550704101348q73a72312w5b8f87c0f7c2f31a@mail.gmail.com> Sorry for being long to confirm that it works, but I wanted to be sure so I reinstalled a fresh xp on my macbook, and it works ! The file produced with the lavf muxer plays perfectly, the mencoder one (-of mpeg) now plays on WMP (where it used to block), but it plays without any image (only audio, black screen)... I'll make some other tests with different muxrate, but anyway, I have a solution with lavf, many thanks for your help ! Here is the complete command line that creates a audio+video mpeg-ps file that plays on a fresh install of windows + wmp : (I am using the 1.0 rc1 version) --- mencoder test.avi -of lavf -lavfopts format=vcd -lavfopts i_certify_that_my_video_stream_does_not_use_b_frames -ovc lavc -lavcopts vcodec=mpeg1video:vbitrate=1000 -ofps 25 -oac lavc -lavcopts acodec=mp2:abitrate=224 -vf harddup -o test.mpg --- Simon 2007/4/7, DEF : > > --- Nico Sabbi wrote: > > Simon Oualid wrote: > > > Hello, > > > > > > I am using Mencoder to create various type of > > files and I am really > > > enjoying > > > it, but I cannot find the right command line in > > that'll create a MPEG PS > > > file (audio + video) that will play on a default > > installation of MS Windows > > > (with WMP). > > > > > > I think MPEG1 video and MP2 audio should work, but > > I am still having > > > troubles after many tries. Any help would be > > greatly appreciated, thank you > > > ! :) > > > > > > Here is the command line I currently use (I tried > > lot of variations, > > > including the usage of lavf muxer instead of > > Mencoder one... I also did > > > some > > > tries with different muxrate and resolution) : > > > > > > --- > > > mencoder test.avi of mpeg -ovc lavc -lavcopts > > > vcodec=mpeg1video:vbitrate=1000 -mpegopts > > format=mpeg1 -ofps 25 -oac lavc > > > -lavcopts acodec=mp2:abitrate=224 -vf harddup -o > > test.mpg > > > --- > > > > these 2 were reported to work (of course in mutual > > exclusion): > > - -mpegopts format=mpeg2 > > - -lavfopts format=vcd > > > Please just a question of curiosity: > In your orginal message on April 22 2006 when you gave > us the new mpeg muxer in the cvs (back then) the > following appeared. > > >strongly advised: > >- when encoding video (e.g. without -ovc copy) > >_always_ use -vf softskip > >(btw, I have and had a lot of problems with harddup, > >so I don't use > >it); > > >- using -ofps is generally quite bad (with the old > >muxer, too), better > >use -speed newfr/oldfr > >(eventually resampling audio) > > However, given that it was never added to the manual > (doc), it is almost never followed. Do you still > advice that as of now? > > DEF > > > > > > > ____________________________________________________________________________________ > Now that's room service! Choose from over 150,000 hotels > in 45,000 destinations on Yahoo! Travel to find your fit. > http://farechase.yahoo.com/promo-generic-14795097 > _______________________________________________ > MEncoder-users mailing list > MEncoder-users at mplayerhq.hu > http://lists.mplayerhq.hu/mailman/listinfo/mencoder-users > From nicola_sabbi at fastwebnet.it Tue Apr 10 23:50:09 2007 From: nicola_sabbi at fastwebnet.it (Nico Sabbi) Date: Tue, 10 Apr 2007 23:50:09 +0200 Subject: [MEncoder-users] Create standard MPEG PS with MPEG 1 video and MP2 audio In-Reply-To: <370607.66647.qm@web53903.mail.re2.yahoo.com> References: <370607.66647.qm@web53903.mail.re2.yahoo.com> Message-ID: <461C0691.4040507@fastwebnet.it> DEF wrote: > > Please just a question of curiosity: > In your orginal message on April 22 2006 when you gave > us the new mpeg muxer in the cvs (back then) the > following appeared. > > >>strongly advised: >>- when encoding video (e.g. without -ovc copy) >>_always_ use -vf softskip >>(btw, I have and had a lot of problems with harddup, >>so I don't use >>it); > > >>- using -ofps is generally quite bad (with the old >>muxer, too), better >>use -speed newfr/oldfr >>(eventually resampling audio) > > > However, given that it was never added to the manual > (doc), it is almost never followed. Do you still > advice that as of now? > > DEF > sorry for the late reply, I missed the post. At the time I didn't realize that the use of -vf softskip just moves the frameskip step in a different position in the filter chain (I thought it was needed to enable it), so don't be afraid to use it when it's necessary. Remains the fact muxing with -ovc copy in some situations can lead to the weirdest effects (such as skipping keyframes, that mencoder can't tell from non-keyframes). BTW, I've spent a large portion of the week-end trying to make the output of muxer_mpeg compatible with a plain install of WMP, but although I fixed a couple of bugs that delayed the startup of the playing, I still haven't succeeded to make wimp recognize the audio track. I'll give it one more look when I'm in the right mood. From pierre.catello at gmail.com Thu Apr 12 09:55:57 2007 From: pierre.catello at gmail.com (Pierre Catello) Date: Thu, 12 Apr 2007 09:55:57 +0200 Subject: [MEncoder-users] x264encopts equivalent for some x264 parameters ? In-Reply-To: <461BE0A5.9030809@fatooh.org> References: <9ee2499c0704100913r71dd0140vf76789b78467b0ef@mail.gmail.com> <461BE0A5.9030809@fatooh.org> Message-ID: <9ee2499c0704120055q5dbb4f5an51aedba5dd8838f2@mail.gmail.com> 2007/4/10, Corey Hickey : > > Pierre Catello wrote: > > Hello, > > > > I can't find in the doc how to use in MEncoder the equivalent of this > x264 > > mode : > > --crf -q x (x belonging to [0..1]) > > -x264encopts crf=x > > That sort of information is in the man page. What you are are saying is that "x264 --crf 18 -q 0.75" is equivalent to "MEncoder -x264encopts crf=0.75" Isn't qcomp the equivalent of -q ? BTW, RTFM -style comments are useless, and worse, misleading. P. From bugfood-ml at fatooh.org Thu Apr 12 23:07:12 2007 From: bugfood-ml at fatooh.org (Corey Hickey) Date: Thu, 12 Apr 2007 14:07:12 -0700 Subject: [MEncoder-users] x264encopts equivalent for some x264 parameters ? In-Reply-To: <9ee2499c0704120055q5dbb4f5an51aedba5dd8838f2@mail.gmail.com> References: <9ee2499c0704100913r71dd0140vf76789b78467b0ef@mail.gmail.com> <461BE0A5.9030809@fatooh.org> <9ee2499c0704120055q5dbb4f5an51aedba5dd8838f2@mail.gmail.com> Message-ID: <461E9F80.4060103@fatooh.org> Pierre Catello wrote: >> > I can't find in the doc how to use in MEncoder the equivalent of this >> x264 >> > mode : >> > --crf -q x (x belonging to [0..1]) >> >> -x264encopts crf=x >> >> That sort of information is in the man page. > > What you are are saying is that "x264 --crf 18 -q 0.75" is equivalent to > "MEncoder -x264encopts crf=0.75" No, that x264 command is invalid because -q requires an integer argument. $ x264 --crf 18 -q 0.75 -o test.264 stream.yuv 852x362 x264 [error]: invalid argument: qp = 0.75 Actually, I was careless and didn't quite parse your original question properly. What you had written before (--crf -q x) is actually a syntax error, though, so I'm still not quite sure what you mean. $ x264 --crf -q 1 -o test.264 stream.yuv 852x362 x264 [error]: invalid argument: crf = -q ...because --crf requires a numeric argument, and x264 parses '-q' as that argument. "--crf x" and "-q x" specify two different and mutually exclusive modes of operation. If you specify them both on the same line, the latter takes precedence and the former is ignored (according to a quick test I just did). If you don't understand the difference between --crf and -q, ask and I'll explain. --But first read the descriptions of crf and qp in the mplayer man page. > Isn't qcomp the equivalent of -q ? No; unless I'm gravely mistaken, qcomp is the equivalent of --qcomp. x264 mencoder (-x264encopts ...) ---------------------------------------- -q x qp=x --crf x crf=x --qcomp x qcomp=x > BTW, RTFM -style comments are useless, and worse, misleading. That depends; for a complicated program with lots of documentation in several different places, pointing out a specific document (as I did) can be quite helpful. If you need further help, you have to ask a question that indicates you've read the relevant part of the documentation and still don't understand. There's nothing wrong with not understanding documentation--the material is complex. -Corey From nicolas.george at ens.fr Thu Apr 12 23:12:49 2007 From: nicolas.george at ens.fr (Nicolas George) Date: Thu, 12 Apr 2007 23:12:49 +0200 Subject: [MEncoder-users] x264encopts equivalent for some x264 parameters ? In-Reply-To: <461E9F80.4060103@fatooh.org> References: <9ee2499c0704100913r71dd0140vf76789b78467b0ef@mail.gmail.com> <461BE0A5.9030809@fatooh.org> <9ee2499c0704120055q5dbb4f5an51aedba5dd8838f2@mail.gmail.com> <461E9F80.4060103@fatooh.org> Message-ID: <20070412211249.GA15926@clipper.ens.fr> Le tridi 23 germinal, an CCXV, Corey Hickey a ?crit?: > If you don't understand the difference between --crf and -q, ask and > I'll explain. --But first read the descriptions of crf and qp in the > mplayer man page. I am not the "you" in your message, but I would very much like details about that. As I understand it, crf will try tu adapt the quantizer value to the complexity of the frame, but I would very like to know more about it: how it does it in details, and the correspondence between the crf value and the resulting quantizer, for example. Regards, -- Nicolas George -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 185 bytes Desc: Digital signature URL: From bugfood-ml at fatooh.org Fri Apr 13 01:05:06 2007 From: bugfood-ml at fatooh.org (Corey Hickey) Date: Thu, 12 Apr 2007 16:05:06 -0700 Subject: [MEncoder-users] x264encopts equivalent for some x264 parameters ? In-Reply-To: <20070412211249.GA15926@clipper.ens.fr> References: <9ee2499c0704100913r71dd0140vf76789b78467b0ef@mail.gmail.com> <461BE0A5.9030809@fatooh.org> <9ee2499c0704120055q5dbb4f5an51aedba5dd8838f2@mail.gmail.com> <461E9F80.4060103@fatooh.org> <20070412211249.GA15926@clipper.ens.fr> Message-ID: <461EBB22.2030603@fatooh.org> Nicolas George wrote: > Le tridi 23 germinal, an CCXV, Corey Hickey a ?crit : >> If you don't understand the difference between --crf and -q, ask and >> I'll explain. --But first read the descriptions of crf and qp in the >> mplayer man page. > > I am not the "you" in your message, but I would very much like details about > that. As I understand it, crf will try tu adapt the quantizer value to the > complexity of the frame, but I would very like to know more about it: how it > does it in details, and the correspondence between the crf value and the > resulting quantizer, for example. Ok... I wasn't planning on a technical explanation, but I'll take a stab at it. My understanding of the details is quite tentative, so take it with a grain of salt* unless someone who knows more than I do (Michael, Loren, ...) responds to this message and affirms/refutes what I've written. *Or maybe 10 liters of salt if I'm way off. --------- Numbers in [] are line numbers of encoder/ratecontrol.c, x264 svn r650. ---For each frame--- First, x264 generates a rate factor based on: - the number of macroblocks (hence the physical size of the frame) [275] - whether the frame is a B-frame [275] - "arbitrary rescaling to make CRF somewhat similar to QP" [275] - the crf value you specify [277] - a translation from a qp value ("h.264's quantizer") to a qscale value ("linearized quantizer = Lagrange multiplier") [277,165] - the qcomp value you specify (or the default value) [276] Next, x264 calculates a qscale based on: - the rate factor calculated earlier - the ratecontrol equation; by default, blurCplx^(1-qComp) [1311] where: - blurCplx is the value of the difference between the current frame and the previous frame, blurred (partially averaged) with the previous value difference (which was blurred with the the one before, etc., so that older frames have a diminishing effect. [1294-1300] - qComp is the qcomp value you specified, or the default Last, the final h.264 quantizer is found: - a translation from qscale back to qp [640,169] -Corey From pierre.catello at gmail.com Fri Apr 13 10:46:43 2007 From: pierre.catello at gmail.com (Pierre Catello) Date: Fri, 13 Apr 2007 10:46:43 +0200 Subject: [MEncoder-users] x264encopts equivalent for some x264 parameters ? In-Reply-To: <461E9F80.4060103@fatooh.org> References: <9ee2499c0704100913r71dd0140vf76789b78467b0ef@mail.gmail.com> <461BE0A5.9030809@fatooh.org> <9ee2499c0704120055q5dbb4f5an51aedba5dd8838f2@mail.gmail.com> <461E9F80.4060103@fatooh.org> Message-ID: <9ee2499c0704130146h2b8c9567va82adbc54ee667c@mail.gmail.com> 2007/4/12, Corey Hickey : > Actually, I was careless and didn't quite parse your original question > properly. What you had written before (--crf -q x) is actually a syntax > error, though, so I'm still not quite sure what you mean. Shame on me Corey, you're right : I meant -qcomp and was fooled by an x264 front end for Mac which seems to map its own -q parameter to x264's -qcomp. I'm very sorry, all my apologizes... Pierre From pierre.catello at gmail.com Fri Apr 13 10:56:50 2007 From: pierre.catello at gmail.com (Pierre Catello) Date: Fri, 13 Apr 2007 10:56:50 +0200 Subject: [MEncoder-users] Building MEncoder on OSX PPC w/ x264 support ? Message-ID: <9ee2499c0704130156w4e5d04c4h8a325213b651ace6@mail.gmail.com> Trying to build MEncoder for a PPC Mac, with x264 support (--enable-x264 in configure) - the compilation fails Is there a solution ? From infernix at infernix.net Fri Apr 13 12:14:21 2007 From: infernix at infernix.net (infernix) Date: Fri, 13 Apr 2007 12:14:21 +0200 Subject: [MEncoder-users] ffvhuff: encoded frame too large Message-ID: <461F57FD.1020608@infernix.net> Hi, I'm encoding to a large resolution ffvhuff file (source is 1920x1040) and am occasionally getting this message from mencoder: [ffvhuff @ 0x8847980]encoded frame too large I am using: mencoder -oac pcm -nosound -o $OUTFILE.huffyuv.avi -ovc lavc -lavcopts vcodec=ffvhuff:vstrict=-1:pred=2:context=1 $INFILE I've watched the huffyuv output file closely and couldn't really detect any problems with it at first glance. Does anyone know what happens to a frame when this error occurs? Does it get discarded? Is it because I'm encoding to avi? And if it is a problem (e.g. it gets discarded), what would be a proper solution? A different container perhaps? Thanks! Regards, infernix From inverseparadox at comcast.net Fri Apr 13 13:14:40 2007 From: inverseparadox at comcast.net (The Wanderer) Date: Fri, 13 Apr 2007 07:14:40 -0400 Subject: [MEncoder-users] Building MEncoder on OSX PPC w/ x264 support ? In-Reply-To: <9ee2499c0704130156w4e5d04c4h8a325213b651ace6@mail.gmail.com> References: <9ee2499c0704130156w4e5d04c4h8a325213b651ace6@mail.gmail.com> Message-ID: <461F6620.9010501@comcast.net> Pierre Catello wrote: > Trying to build MEncoder for a PPC Mac, with x264 support > (--enable-x264 in configure) - the compilation fails > > Is there a solution ? The most obvious thing which comes to mind is a three-step process. One, install the x264 libraries (including headers, generally from a development package). Two, familiarize yourself with the syntax and semantics of MPlayer's configure script. Third, on the basis of step two, stop using '--enable' options which are marked 'autodetect' in the output of ./configure --help. This is, of course, not remotely Mac-specific; it is basic procedure which applies to all platforms. For all I know there may well be some specific reason why it will not work that simply under MacOS. However, in the absence of anything to indicate otherwise, I would be inclined to assume that it will Just Work until something tells me that it won't. -- The Wanderer Warning: Simply because I argue an issue does not mean I agree with any side of it. Secrecy is the beginning of tyranny. From lorenm at u.washington.edu Fri Apr 13 19:38:28 2007 From: lorenm at u.washington.edu (Loren Merritt) Date: Fri, 13 Apr 2007 11:38:28 -0600 (MDT) Subject: [MEncoder-users] ffvhuff: encoded frame too large In-Reply-To: <461F57FD.1020608@infernix.net> References: <461F57FD.1020608@infernix.net> Message-ID: On Fri, 13 Apr 2007, infernix wrote: > I'm encoding to a large resolution ffvhuff file (source is 1920x1040) and am > occasionally getting this message from mencoder: > > [ffvhuff @ 0x8847980]encoded frame too large > > I am using: > > mencoder -oac pcm -nosound -o $OUTFILE.huffyuv.avi -ovc lavc -lavcopts > vcodec=ffvhuff:vstrict=-1:pred=2:context=1 $INFILE > > I've watched the huffyuv output file closely and couldn't really detect any > problems with it at first glance. The visible symptom is that the extra large frames will be truncated, so they'll display garbage at the bottom of the screen. > Does anyone know what happens to a frame when this error occurs? Does it get > discarded? Is it because I'm encoding to avi? > > And if it is a problem (e.g. it gets discarded), what would be a proper > solution? A different container perhaps? MEncoder allocates a constant buffer size of 2MB to hold a compressed frame. 1080p is 3MB uncompressed, and huffyuv (or any lossless codec) can't always compress a 3MB frame into less than 2MB. Solution: increase the buffer size, and/or make it dynamic. --Loren Merritt From infernix at infernix.net Fri Apr 13 23:45:24 2007 From: infernix at infernix.net (infernix) Date: Fri, 13 Apr 2007 23:45:24 +0200 Subject: [MEncoder-users] ffvhuff: encoded frame too large In-Reply-To: References: <461F57FD.1020608@infernix.net> Message-ID: <461FF9F4.5090305@infernix.net> Loren Merritt wrote: > MEncoder allocates a constant buffer size of 2MB to hold a compressed > frame. 1080p is 3MB uncompressed, and huffyuv (or any lossless codec) > can't always compress a 3MB frame into less than 2MB. > Solution: increase the buffer size, and/or make it dynamic. Do you know where to change this buffersize, or how to make it dynamic? I'm guessing the latter will need coding so a pointer to what I should alter in the code would suffice. Thanks. From joey.parrish at gmail.com Sat Apr 14 03:56:22 2007 From: joey.parrish at gmail.com (Joey Parrish) Date: Fri, 13 Apr 2007 19:56:22 -0600 Subject: [MEncoder-users] ffvhuff: encoded frame too large In-Reply-To: <461FF9F4.5090305@infernix.net> References: <461F57FD.1020608@infernix.net> <461FF9F4.5090305@infernix.net> Message-ID: On 4/13/07, infernix wrote: > Loren Merritt wrote: > > MEncoder allocates a constant buffer size of 2MB to hold a compressed > > frame. 1080p is 3MB uncompressed, and huffyuv (or any lossless codec) > > can't always compress a 3MB frame into less than 2MB. > > Solution: increase the buffer size, and/or make it dynamic. > > Do you know where to change this buffersize, or how to make it dynamic? > I'm guessing the latter will need coding so a pointer to what I should > alter in the code would suffice. Try the attached patch. --Joey -------------- next part -------------- A non-text attachment was scrubbed... Name: buffersize.patch Type: text/x-diff Size: 302 bytes Desc: not available URL: From ninive at gmx.at Sat Apr 14 14:26:35 2007 From: ninive at gmx.at (double) Date: Sat, 14 Apr 2007 14:26:35 +0200 Subject: [MEncoder-users] Size of video/audio stream Message-ID: <4620C87B.6020502@gmx.at> Hi, Is there a chance to determine the size of the video- and the audio stream (in Bytes)? It seams, that "mplayer -identify" does not show the size of the streams. Thank you very much Markus Doppelbauer From infernix at infernix.net Sat Apr 14 14:35:41 2007 From: infernix at infernix.net (infernix) Date: Sat, 14 Apr 2007 14:35:41 +0200 Subject: [MEncoder-users] ffvhuff: encoded frame too large In-Reply-To: References: <461F57FD.1020608@infernix.net> <461FF9F4.5090305@infernix.net> Message-ID: <4620CA9D.5030001@infernix.net> Joey Parrish wrote: > Try the attached patch. > > --Joey Works :) Thanks a lot! Regards, infernix From rcooley at spamcop.net Sun Apr 15 00:58:46 2007 From: rcooley at spamcop.net (RC) Date: Sat, 14 Apr 2007 15:58:46 -0700 Subject: [MEncoder-users] Size of video/audio stream In-Reply-To: <4620C87B.6020502@gmx.at> References: <4620C87B.6020502@gmx.at> Message-ID: <20070414155846.44b31fad.rcooley@spamcop.net> On Sat, 14 Apr 2007 14:26:35 +0200 double wrote: > Is there a chance to determine the size of the > video- and the audio stream (in Bytes)? You can approximate it, multiplying the audio/video bitrates by the length. If you need exact figures, there's really no shortcut. You have to run through the entire video with: mencoder -oac copy -ovc copy -o /dev/null From ninive at gmx.at Sun Apr 15 11:58:54 2007 From: ninive at gmx.at (double) Date: Sun, 15 Apr 2007 11:58:54 +0200 Subject: [MEncoder-users] Size of video/audio stream In-Reply-To: <20070414155846.44b31fad.rcooley@spamcop.net> References: <4620C87B.6020502@gmx.at> <20070414155846.44b31fad.rcooley@spamcop.net> Message-ID: <4621F75E.2010404@gmx.at> RC schrieb: >> Is there a chance to determine the size of the >> video- and the audio stream (in Bytes)? > > You can approximate it, multiplying the audio/video bitrates by the > length. > > If you need exact figures, there's really no shortcut. You have to run > through the entire video with: mencoder -oac copy -ovc copy -o > /dev/null To approximate the video-bitrate, I wanted to divide the size of the video by the length. :-) Because mplayer does not "identify" the video-bitrate, if it is a FLV container. To run through the video with "-oac copy -ovc copy" works pretty fast. Thank you very much for this hint. Markus Doppelbauer From petermartens.list at gmail.com Sun Apr 15 22:27:17 2007 From: petermartens.list at gmail.com (Peter Martens) Date: Sun, 15 Apr 2007 22:27:17 +0200 Subject: [MEncoder-users] Transcoding and cutting h264 TS stream Message-ID: <269ecf50704151327h381d82c5t8684af2f8fd1d1c7@mail.gmail.com> I am using MythTV to capture HDTV (AVC (H.264), 720p, +/- 13000kbit/s, 50fps, 192 kbit/s MP3 audio stream). I would like to use mencoder to transcode those files to a lower bitrate and cut the beginning few minutes and last few minutes to tide it all up. Transcoding works well for the video part and I am getting nice looking video and a smaller file. However audio is slightly out of sync (about 100 msec). To cut beginning and end I use -ss and -endpos (which can explain the audio out of sync I guess). I would rather use an edl-file, but trying so will always fail with lots of error messages ("no frame", "cannot decode frame", ...). I guess a bug is preventing me from doing this. My (working) command line: nice -n 18 mencoder "${1}" -ss 149.44 -endpos 7161.68 -vc ffh264 -o /dev/null -demuxer lavf -ovc x264 -of avi -x264encopts pass=1:turbo=2:bitrate=5000:bframes=1:threads=auto:me=umh:partitions=all:trellis=1:qp_step=4:qcomp=0.7:direct_pred=auto:keyint=300 -vf harddup -oac faac -faacopts br=192:mpeg=4:object=1 -channels 2 -srate 48000 && \ nice -n 18 mencoder "${1}" -ss 149.44 -endpos 7161.68 -vc ffh264 -o "${2}".avi -demuxer lavf -ovc x264 -of avi -x264encopts pass=2:bitrate=5000:bframes=1:threads=auto:me=umh:partitions=all:trellis=1:qp_step=4:qcomp=0.7:direct_pred=auto:keyint=300 -vf harddup -oac faac -faacopts br=192:mpeg=4:object=1 -channels 2 -srate 48000 I would like to know if it is possible to transcode and cut H.264 files and some tips on doing so... From joey.parrish at gmail.com Mon Apr 16 03:18:04 2007 From: joey.parrish at gmail.com (Joey Parrish) Date: Sun, 15 Apr 2007 19:18:04 -0600 Subject: [MEncoder-users] Transcoding and cutting h264 TS stream In-Reply-To: <269ecf50704151327h381d82c5t8684af2f8fd1d1c7@mail.gmail.com> References: <269ecf50704151327h381d82c5t8684af2f8fd1d1c7@mail.gmail.com> Message-ID: On 4/15/07, Peter Martens wrote: > I would like to know if it is possible to transcode and cut H.264 > files and some tips on doing so... It sounds like you are transcoding just fine. Cutting, however, is not the strong suit of MEncoder. It's a transcoding application, not an editor. Yes, you can achieve the effect of transcoding a piece of the file, but it's not really what MEncoder is good it. YMMV. --Joey From nicolas.rouiller at softcomponent.ch Mon Apr 16 11:37:28 2007 From: nicolas.rouiller at softcomponent.ch (Nicolas Rouiller) Date: Mon, 16 Apr 2007 11:37:28 +0200 Subject: [MEncoder-users] FW: Questions about licencing of Mencoder Message-ID: <200704160936.l3G9akNT010817@smtp1.infomaniak.ch> Hello, I'm developping an application to rip a DVD and convert its content into an AVI file. I have seen that "mencoder" tool is perfect to do that and I have some questions about the licence. I have seen that mplayer is under GPL licence, is mencoder too under GPL licence? In this case, I suppose that I must provide my source code, is it exact (I don't know if it will be possible... I must see with our client)? Thanks for your help. Nicolas From nsabbi at email.it Mon Apr 16 11:48:44 2007 From: nsabbi at email.it (Nico Sabbi) Date: Mon, 16 Apr 2007 11:48:44 +0200 Subject: [MEncoder-users] FW: Questions about licencing of Mencoder In-Reply-To: <200704160936.l3G9akNT010817@smtp1.infomaniak.ch> References: <200704160936.l3G9akNT010817@smtp1.infomaniak.ch> Message-ID: <4623467C.9040204@email.it> Nicolas Rouiller wrote: >Hello, > >I'm developping an application to rip a DVD and convert its content into an >AVI file. I have seen that "mencoder" tool is perfect to do that and I have >some questions about the licence. > >I have seen that mplayer is under GPL licence, is mencoder too under GPL >licence? In this case, I suppose that I must provide my source code, is it >exact > yes and yes >(I don't know if it will be possible... I must see with our client)? > > > if not you can't distribute your application and mencoder -- Email.it, the professional e-mail, gratis per te: http://www.email.it/f Sponsor: Videocorso di marketing: impara dagli esperti del settore come fare * un marketing di successo per la tua attivita' Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=6200&d=16-4 From trejkaz at trypticon.org Mon Apr 16 12:09:42 2007 From: trejkaz at trypticon.org (Trejkaz) Date: Mon, 16 Apr 2007 20:09:42 +1000 Subject: [MEncoder-users] FW: Questions about licencing of Mencoder In-Reply-To: <4623467C.9040204@email.it> References: <200704160936.l3G9akNT010817@smtp1.infomaniak.ch> <4623467C.9040204@email.it> Message-ID: <200704162009.45403.trejkaz@trypticon.org> On Monday 16 April 2007 19:48, Nico Sabbi wrote: > >(I don't know if it will be possible... I must see with our client)? > > if not you can't distribute your application and mencoder To explain that a bit more, it means you can distribute your application *without* mencoder, and have the user install it separately (which I've seen software doing already.) You can make this easier on the user by redistributing the mencoder bundle as a separate package, as long as any modifications you make to mencoder itself have been made available to download. The only time this enters the grey area is if your application automatically goes off to download mencoder, installing it for the user. Different application authors (and it's the authors who ultimately get the say) have different opinions of the legality of that approach. TX -- Email: trejkaz at trypticon.org Jabber ID: trejkaz at trypticon.org Web site: http://trypticon.org/ GPG Fingerprint: 9EEB 97D7 8F7B 7977 F39F A62C B8C7 BC8B 037E EA73 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: From dominik at rangers.eu.org Mon Apr 16 14:02:51 2007 From: dominik at rangers.eu.org (Dominik 'Rathann' Mierzejewski) Date: Mon, 16 Apr 2007 14:02:51 +0200 Subject: [MEncoder-users] FW: Questions about licencing of Mencoder In-Reply-To: <200704160936.l3G9akNT010817@smtp1.infomaniak.ch> References: <200704160936.l3G9akNT010817@smtp1.infomaniak.ch> Message-ID: <20070416120250.GA23622@ryvius.pekin.waw.pl> On Monday, 16 April 2007 at 11:37, Nicolas Rouiller wrote: > Hello, > > I'm developping an application to rip a DVD and convert its content into an > AVI file. I have seen that "mencoder" tool is perfect to do that and I have > some questions about the licence. > > I have seen that mplayer is under GPL licence, is mencoder too under GPL > licence? In this case, I suppose that I must provide my source code, is it > exact (I don't know if it will be possible... I must see with our client)? My understanding is that if you simply build MEncoder from unmodified sources and put the resulting binary together with your application on a CD or in an installation package, then all you need to do is provide some means to get the exact sources used to build that MEncoder binary at no additional charge. However, if you modify MEncoder, then you must release all your modifications under GPL as well. I would suggest going over GPL with your lawyer, because none of us here are lawyers and we cannot provide legal advice. 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 From Dave.Puryear at dataconversions.biz Mon Apr 16 18:19:13 2007 From: Dave.Puryear at dataconversions.biz (Dave Puryear) Date: Mon, 16 Apr 2007 12:19:13 -0400 Subject: [MEncoder-users] output format and mencoder.conf profiles Message-ID: I'm wondering why MEncoder's verbose output states the following: WARNING: OUTPUT FILE FORMAT IS _AVI_. See -of help. I am aware of the need to specify output format when using containers other than avi. Below you'll find my profile settings, build info, command output when using -profile, and command output when typing everything at the prompt. mencoder.conf profile: [MPEG2_NTSC_640x480p] profile-desc=" ...4000k (640x480)" oac=lavc=1 ovc=lavc=1 of=mpeg=1 vf=pp=lb,scale=presize=sntsc mpegopts=format=dvd:tsaf=1:vbitrate=4000:vframerate=30000/1001:vwidth=64 0:vheight=480:vaspect=4/3 lavcopts=vcodec=mpeg2video:mbd=2:cgop=1:sc_threshold=1000000000:vstrict= -1:vmax_b_frames=2:vb_strategy=0:b_sensitivity=10:brd_scale=2:vrc_eq=1:v rc_strategy=0:vrc_buf_size=1835:vrc_maxrate=4000:vrc_minrate=4000:vbitra te=4000:vpsize=2048:keyint=18:acodec=mp2:abitrate=128:autoaspect=1 ofps=30000/1001 build info: MEncoder Sherpya-SVN-r22870-4.1.2 (C) 2000-2006 MPlayer Team CPU: Genuine Intel(R) CPU T2050 @ 1.60GHz (Family: 6, Model: 14, Stepping: 8) CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1 Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2 Configuration: --prefix=/usr --language=all --enable-win32dll --enable-static --enable-qtx --enable-real --enable-md5sum --enable-menu --disable-vidix-internal --disable-sdl --enable-caca --enable-gl --enable-matrixview --enable-freetype --enable-png --enable-jpeg --enable-gif --enable-tga --enable-mad --disable-tv --disable-dvb --disable-dvbhead --with-extraincdir=/j/Devel/mplayer/live --flavor=p4 Profile command ouptut: C:\MPlayer070401>mencoder -ss 60 -endpos 10 C:\A-V\Net\file_01.wmv -profile MPEG2_NTSC_640x480p -o C:\A-V\Net\file_01_edit.mpg MEncoder Sherpya-SVN-r22870-4.1.2 (C) 2000-2006 MPlayer Team CPU: Genuine Intel(R) CPU T2050 @ 1.60GHz (Family: 6, Model: 14, Step ping: 8) CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1 Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2 WARNING: OUTPUT FILE FORMAT IS _AVI_. See -of help. success: format: 0 data: 0x0 - 0xa8cfa262 ASF file format detected. VIDEO: [WMV3] 720x480 24bpp 29.970 fps 0.0 kbps ( 0.0 kbyte/s) [V] filefmt:6 fourcc:0x33564D57 size:720x480 fps:29.97 ftime:=0.0334 ======================================================================== == Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders AUDIO: 48000 Hz, 2 ch, s16le, 96.0 kbit/6.25% (ratio: 12000->192000) Selected audio codec: [ffwmav2] afm: ffmpeg (DivX audio v2 (FFmpeg)) ======================================================================== == PACKET SIZE: 2048 bytes, deltascr: 43885 MPEG MUXER, patching resolution to 640x480 framerate to 29.97 fps aspect ratio t o 4/3 bitrate to 4000 Opening video filter: [expand osd=1] Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1 Opening video filter: [scale presize=sntsc] Opening video filter: [pp=lb] ======================================================================== == Opening video decoder: [dmo] DMO video codecs DMO dll supports VO Optimizations 0 1 DMO dll might use previous sample when requested GetOutput r=0x0 size:1036800 align:1 StreamCount r=0x0 1 1 Decoder supports the following formats: YV12 YUY2 UYVY YVYU RGB8 RGB555 RGB565 R GB24 RGB32 Decoder is capable of YUV output (flags 0x1b) VDec: vo config request - 720 x 480 (preferred colorspace: Packed YUY2) [PP] Using external postprocessing filter, max q = 6. VDec: using Planar YV12 as output csp (no 0) Movie-Aspect is 1.33:1 - prescaling to correct movie aspect. SwScaler: reducing / aligning filtersize 6 -> 8 SwScaler: reducing / aligning filtersize 6 -> 8 SwScaler: reducing / aligning filtersize 1 -> 1 SwScaler: reducing / aligning filtersize 1 -> 1 [swscaler @ 00C8D020]SwScaler: BICUBIC scaler, from yuv420p to yuv420p using MMX 2 [swscaler @ 00C8D020]SwScaler: using 8-tap MMX scaler for horizontal luminance s caling [swscaler @ 00C8D020]SwScaler: using 8-tap MMX scaler for horizontal chrominance scaling [swscaler @ 00C8D020]SwScaler: using 1-tap MMX "scaler" for vertical scaling (YV 12 like) [swscaler @ 00C8D020]SwScaler: 720x480 -> 640x480 videocodec: libavcodec (640x480 fourcc=3267706d [mpg2]) [VE_LAVC] High quality encoding selected (non-realtime)! Selected video codec: [wmv9dmo] vfm: dmo (Windows Media Video 9 DMO) ======================================================================== == Limiting audio preload to 0.4s. Increasing audio density to 4. Writing header...2f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.003 [0:0] INITV: 0.200, 0.167, fps: 29.970 Pos: 0.7s 22f ( 0%) 0.00fps Trem: 1min 0mb A-V:0.070 [0:128] Skipping frame! Pos: 0.9s 31f ( 0%) 0.00fps Trem: 1min 0mb A-V:0.067 [0:128] Skipping frame! Pos: 1.3s 42f ( 0%) 0.00fps Trem: 2min 0mb A-V:0.070 [3855:128] Skipping frame! Pos: 1.6s 52f ( 0%) 48.24fps Trem: 3min 0mb A-V:0.069 [3882:128] Skipping frame! Pos: 2.0s 65f ( 0%) 48.47fps Trem: 3min 136mb A-V:0.068 [3906:128] Skipping frame! Pos: 2.3s 77f ( 0%) 48.58fps Trem: 4min 178mb A-V:0.067 [3921:128] Skipping frame! Pos: 8.2s 254f ( 0%) 46.52fps Trem: 14min 623mb A-V:0.067 [3977:128] Skipping frame! Pos: 10.0s 309f ( 0%) 46.47fps Trem: 16min 727mb A-V:0.050 [3981:128] Flushing video frames. Writing index... Overhead: 2.064% (106752 / 5170944) Writing header... Video stream: 3981.770 kbit/s (497721 B/s) size: 5015404 bytes 10.077 secs 3 09 frames Audio stream: 128.000 kbit/s (16000 B/s) size: 160128 bytes 10.008 secs The output file is definitely MPEG-2, playable by wmp, real, vlc, mplayer, and ffplay, but why the AVI warning? Freehand CL typing produces no such warnings: C:\MPlayer070401>mencoder -ss 60 -endpos 10 -oac lavc -ovc lavc -of mpeg -mpegop ts format=dvd:tsaf:vbitrate=4000:vwidth=640:vheight=480:vframerate=30000/10 01:va spect=4/3 -lavcopts vcodec=mpeg2video:mbd=2:cgop:sc_threshold=1000000000:vstrict =-1:vmax_b_frames=2:vb_strategy=0:b_sensitivity=10:brd_scale=2:vrc_eq=1: vrc_stra tegy=0:vrc_buf_size=1835:vrc_maxrate=4000:vrc_minrate=4000:vbitrate=4000 :vpsize= 2048:keyint=18:acodec=mp2:abitrate=128:autoaspect -ofps 30000/1001 C:\A-V\Net\fi le_01.wmv -o C:\A-V\Net\file_01_edit.mpg MEncoder Sherpya-SVN-r22870-4.1.2 (C) 2000-2006 MPlayer Team CPU: Genuine Intel(R) CPU T2050 @ 1.60GHz (Family: 6, Model: 14, Step ping: 8) CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1 Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2 success: format: 0 data: 0x0 - 0xa8cfa262 ASF file format detected. VIDEO: [WMV3] 720x480 24bpp 29.970 fps 0.0 kbps ( 0.0 kbyte/s) [V] filefmt:6 fourcc:0x33564D57 size:720x480 fps:29.97 ftime:=0.0334 ======================================================================== == Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders AUDIO: 48000 Hz, 2 ch, s16le, 96.0 kbit/6.25% (ratio: 12000->192000) Selected audio codec: [ffwmav2] afm: ffmpeg (DivX audio v2 (FFmpeg)) ======================================================================== == PACKET SIZE: 2048 bytes, deltascr: 43885 MPEG MUXER, patching resolution to 640x480 framerate to 29.97 fps aspect ratio t o 4/3 bitrate to 4000 Opening video filter: [expand osd=1] Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1 ======================================================================== == Opening video decoder: [dmo] DMO video codecs DMO dll supports VO Optimizations 0 1 DMO dll might use previous sample when requested GetOutput r=0x0 size:1036800 align:1 StreamCount r=0x0 1 1 Decoder supports the following formats: YV12 YUY2 UYVY YVYU RGB8 RGB555 RGB565 R GB24 RGB32 Decoder is capable of YUV output (flags 0x1b) VDec: vo config request - 720 x 480 (preferred colorspace: Packed YUY2) VDec: using Planar YV12 as output csp (no 0) Movie-Aspect is 1.33:1 - prescaling to correct movie aspect. videocodec: libavcodec (720x480 fourcc=3267706d [mpg2]) [VE_LAVC] High quality encoding selected (non-realtime)! Selected video codec: [wmv9dmo] vfm: dmo (Windows Media Video 9 DMO) ======================================================================== == Limiting audio preload to 0.4s. Increasing audio density to 4. Writing header...2f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.003 [0:0] INITV: 0.200, 0.167, fps: 29.970 Pos: 0.7s 22f ( 0%) 0.00fps Trem: 1min 0mb A-V:0.070 [0:128] Skipping frame! Pos: 0.9s 31f ( 0%) 0.00fps Trem: 1min 0mb A-V:0.067 [0:128] Skipping frame! Pos: 1.3s 42f ( 0%) 0.00fps Trem: 2min 0mb A-V:0.070 [3855:128] Skipping frame! Pos: 1.6s 52f ( 0%) 0.00fps Trem: 2min 0mb A-V:0.069 [3882:128] Skipping frame! Pos: 2.0s 65f ( 0%) 55.27fps Trem: 3min 136mb A-V:0.068 [3906:128] Skipping frame! Pos: 2.3s 77f ( 0%) 55.48fps Trem: 3min 178mb A-V:0.067 [3921:128] Skipping frame! Pos: 8.2s 254f ( 0%) 53.10fps Trem: 12min 623mb A-V:0.067 [3977:128] Skipping frame! Pos: 10.0s 309f ( 0%) 53.04fps Trem: 14min 727mb A-V:0.050 [3981:128] Flushing video frames. Writing index... Overhead: 2.064% (106752 / 5170944) Writing header... Video stream: 3981.770 kbit/s (497721 B/s) size: 5015404 bytes 10.077 secs 3 09 frames Audio stream: 128.000 kbit/s (16000 B/s) size: 160128 bytes 10.008 secs I just don't understand why my profile produces the -of warning. TIA, -- Dave P. From joey.parrish at gmail.com Mon Apr 16 20:03:32 2007 From: joey.parrish at gmail.com (Joey Parrish) Date: Mon, 16 Apr 2007 12:03:32 -0600 Subject: [MEncoder-users] output format and mencoder.conf profiles In-Reply-To: References: Message-ID: On 4/16/07, Dave Puryear wrote: > I'm wondering why MEncoder's verbose output states the following: > WARNING: OUTPUT FILE FORMAT IS _AVI_. See -of help. > > I am aware of the need to specify output format when using containers > other than avi. > The output file is definitely MPEG-2, playable by wmp, real, vlc, > mplayer, > and ffplay, but why the AVI warning? On what are you basing the notion that it's "definitely MPEG-2"? The fact that it plays in other players is not proof of that. Run the file utility, like so: file C:\A-V\Net\file_01_edit.mpg What does it say? > Freehand CL typing produces no such warnings: Which should be good evidence that something is different. Personally, I get this warning most often when I've screwed up the path to my config file. Perhaps your config options aren't being loaded. So try the file utility and verify if it believes that your output is in fact MPEG. --Joey From Dave.Puryear at dataconversions.biz Mon Apr 16 21:11:31 2007 From: Dave.Puryear at dataconversions.biz (Dave Puryear) Date: Mon, 16 Apr 2007 15:11:31 -0400 Subject: [MEncoder-users] output format and mencoder.conf profiles In-Reply-To: References: Message-ID: Joey Parrish wrote: > On 4/16/07, Dave Puryear wrote: >> I'm wondering why MEncoder's verbose output states the following: >> WARNING: OUTPUT FILE FORMAT IS _AVI_. See -of help. >> >> I am aware of the need to specify output format when using containers >> other than avi. > >> The output file is definitely MPEG-2, playable by wmp, real, vlc, >> mplayer, and ffplay, but why the AVI warning? > > On what are you basing the notion that it's "definitely MPEG-2"? The > fact that it plays in other players is not proof of that. Run the > file utility, like so: > file C:\A-V\Net\file_01_edit.mpg > What does it say? > I'm running Windows XP - I don't know of or have "file utility," so here's mplayer -identify: C:\MPlayer070401>mplayer -identify C:\A-V\Net\file_01_edit.mpg MPlayer Sherpya-SVN-r22870-4.1.2 (C) 2000-2007 MPlayer Team CPU: Genuine Intel(R) CPU T2050 @ 1.60GHz (Family: 6, Model: 14, Step ping: 8) CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1 Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2 Playing C:\A-V\Net\file_01_edit.mpg. ID_VIDEO_ID=0 ID_AUDIO_ID=0 MPEG-PS file format detected. VIDEO: MPEG2 640x480 (aspect 2) 29.970 fps 4000.0 kbps (500.0 kbyte/s) ID_FILENAME=C:\A-V\Net\file_01_edit.mpg ID_DEMUXER=mpegps ID_VIDEO_FORMAT=0x10000002 ID_VIDEO_BITRATE=4000000 ID_VIDEO_WIDTH=640 ID_VIDEO_HEIGHT=480 ID_VIDEO_FPS=29.970 ID_VIDEO_ASPECT=0.0000 ID_AUDIO_FORMAT=80 ID_AUDIO_BITRATE=0 ID_AUDIO_RATE=0 ID_AUDIO_NCH=0 ID_LENGTH=9.11 ======================================================================== == Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough VDec: vo config request - 640 x 480 (preferred colorspace: Mpeg PES) Could not find matching colorspace - retrying with -vf scale... Opening video filter: [scale] The selected video_out device is incompatible with this codec. Try appending the scale filter to your filter list, e.g. -vf spp,scale instead of -vf spp. VDecoder init failed :( Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.4.0b Selected video codec: [mpeg12] vfm: libmpeg2 (MPEG-1 or 2 (libmpeg2)) ======================================================================== == ID_VIDEO_CODEC=mpeg12 ======================================================================== == Opening audio decoder: [mp3lib] MPEG layer-2, layer-3 AUDIO: 48000 Hz, 2 ch, s16le, 128.0 kbit/8.33% (ratio: 16000->192000) ID_AUDIO_BITRATE=128000 ID_AUDIO_RATE=48000 ID_AUDIO_NCH=2 Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3) ======================================================================== == AO: [dsound] 48000Hz 2ch s16le (2 bytes per sample) ID_AUDIO_CODEC=mp3 Starting playback... VDec: vo config request - 640 x 480 (preferred colorspace: Planar YV12) VDec: using Planar YV12 as output csp (no 0) Movie-Aspect is 1.33:1 - prescaling to correct movie aspect. ID_VIDEO_ASPECT=1.3333 VO: [directx] 640x480 => 640x480 Planar YV12 A: 2.2 V: 2.2 A-V: -0.008 ct: 0.041 61/ 61 11% 7% 1.2% 0 0 Exiting... (Quit) And ffmpeg -i: Input #0, mpeg, from 'C:\A-V\Net\file_01_edit.mpg': Duration: 00:00:09.7, start: 0.233367, bitrate: 4348 kb/s Stream #0.0[0x1e0]: Video: mpeg2video, yuv420p, 640x480, 4000 kb/s, 29.97 fps( r) Stream #0.1[0x1c0]: Audio: mp2, 48000 Hz, stereo, 128 kb/s Must supply at least one output file In addition, the file is deemed to be an MPEG-2 by MediaInfo.exe and imports successfully into ultra-finicky editing program M2-edit Pro. M2-edit Pro's info panel report: C:\A-V\Net\file_01_edit.mpg ------------------------ File name : file_01_edit.mpg File size : 5277696 Duration : 10.076734 s Number of frames: 302 Drop frame flag : not set Systems : format = MPEG-2 Program Stream mux rate = 10080000 b/s real bit rate = 4190005 b/s Video : stream ID = 0xE0 format = MPEG-2 chroma format = 4:2:0 horizontal size = 640 vertical size = 480 aspect ratio = 3/4 display width = 640 display height = 480 frame rate = 29.97003 frame/s bit rate = 4000000 bit/s start time code = 00:00:00:00 first PTS = 0.23336667 last PTS = 10.276733 vbv buf size = 229376 Audio : stream ID = 0xC0 format = LayerII bit rate = 128000 bit/s sampling rate = 48000 Hz mode = stereo ID = 1 first PTS = 0.23336667 last PTS = 9.833366 audio duration = 9.624 >> Freehand CL typing produces no such warnings: > Which should be good evidence that something is different. > > Personally, I get this warning most often when I've screwed up the > path to my config file. Perhaps your config options aren't being > loaded. So try the file utility and verify if it believes that your > output is in fact MPEG. > > --Joey > I'm sure the path to config is correct, otherwise I'd get a different warning. Plus, if I intentionally misspell a profile's option (i.e. mpegoptz) I get a warning like this: Warning unknown option mpegoptz at line 40 Thanks, --Dave P. From petermartens.list at gmail.com Mon Apr 16 21:21:56 2007 From: petermartens.list at gmail.com (Peter Martens) Date: Mon, 16 Apr 2007 21:21:56 +0200 Subject: [MEncoder-users] Transcoding and cutting h264 TS stream In-Reply-To: References: <269ecf50704151327h381d82c5t8684af2f8fd1d1c7@mail.gmail.com> Message-ID: <269ecf50704161221o67f02cf9lf890895079b98f6f@mail.gmail.com> 2007/4/16, Joey Parrish : > It sounds like you are transcoding just fine. Cutting, however, is > not the strong suit of MEncoder. It's a transcoding application, not > an editor. Yes, you can achieve the effect of transcoding a piece of > the file, but it's not really what MEncoder is good it. YMMV. > What Linux-based alternative would be usefull for editing? Avidemux doesn't like the TS-streams... -- Peter From joey.parrish at gmail.com Mon Apr 16 21:34:09 2007 From: joey.parrish at gmail.com (Joey Parrish) Date: Mon, 16 Apr 2007 13:34:09 -0600 Subject: [MEncoder-users] output format and mencoder.conf profiles In-Reply-To: References: Message-ID: On 4/16/07, Dave Puryear wrote: > I'm running Windows XP - I don't know of or have "file utility," so > here's mplayer -identify: You'd have that utility in mingw or cygwin, but the data you've posted has me convinced now anyhow. > I'm sure the path to config is correct, otherwise I'd get a different > warning. > Plus, if I intentionally misspell a profile's option (i.e. mpegoptz) I > get a warning like this: > Warning unknown option mpegoptz at line 40 Fair enough. Well, then, I'm stumped. --Joey From joey.parrish at gmail.com Mon Apr 16 21:49:00 2007 From: joey.parrish at gmail.com (Joey Parrish) Date: Mon, 16 Apr 2007 13:49:00 -0600 Subject: [MEncoder-users] Transcoding and cutting h264 TS stream In-Reply-To: <269ecf50704161221o67f02cf9lf890895079b98f6f@mail.gmail.com> References: <269ecf50704151327h381d82c5t8684af2f8fd1d1c7@mail.gmail.com> <269ecf50704161221o67f02cf9lf890895079b98f6f@mail.gmail.com> Message-ID: On 4/16/07, Peter Martens wrote: > 2007/4/16, Joey Parrish : > > It sounds like you are transcoding just fine. Cutting, however, is > > not the strong suit of MEncoder. It's a transcoding application, not > > an editor. Yes, you can achieve the effect of transcoding a piece of > > the file, but it's not really what MEncoder is good it. YMMV. > What Linux-based alternative would be usefull for editing? Avidemux > doesn't like the TS-streams... I don't know. I use virtualdub (in Wine and native Windows) and I use VideoReDo (in Wine and in native Windows). Video ReDo is MPEG only and costs money, but was useful enough for me to be worth a $50 lifetime license. This is primarily because of all the trouble I've had trying to do the same things with free software. Sorry. There may be good open solutions for this that I'm not aware of. --Joey From Dave.Puryear at dataconversions.biz Mon Apr 16 21:51:15 2007 From: Dave.Puryear at dataconversions.biz (Dave Puryear) Date: Mon, 16 Apr 2007 15:51:15 -0400 Subject: [MEncoder-users] output format and mencoder.conf profiles In-Reply-To: References: Message-ID: Joey Parrish wrote: > On 4/16/07, Dave Puryear wrote: >> I'm running Windows XP - I don't know of or have "file utility," so >> here's mplayer -identify: > > You'd have that utility in mingw or cygwin, but the data you've posted > has me convinced now anyhow. > >> I'm sure the path to config is correct, otherwise I'd get a >> different warning. Plus, if I intentionally misspell a profile's >> option (i.e. mpegoptz) I get a warning like this: Warning unknown >> option mpegoptz at line 40 > > Fair enough. Well, then, I'm stumped. > > --Joey > Thanks for looking into it, Joey. Can anyone else confirm or deny? -- Dave P. From rcooley at spamcop.net Tue Apr 17 08:25:58 2007 From: rcooley at spamcop.net (RC) Date: Mon, 16 Apr 2007 23:25:58 -0700 Subject: [MEncoder-users] Transcoding and cutting h264 TS stream In-Reply-To: <269ecf50704161221o67f02cf9lf890895079b98f6f@mail.gmail.com> References: <269ecf50704151327h381d82c5t8684af2f8fd1d1c7@mail.gmail.com> <269ecf50704161221o67f02cf9lf890895079b98f6f@mail.gmail.com> Message-ID: <20070416232558.4acb345e.rcooley@spamcop.net> On Mon, 16 Apr 2007 21:21:56 +0200 "Peter Martens" wrote: > What Linux-based alternative would be usefull for editing? Avidemux > doesn't like the TS-streams... For mpeg, you might try gopchop. From rcooley at spamcop.net Tue Apr 17 08:31:43 2007 From: rcooley at spamcop.net (RC) Date: Mon, 16 Apr 2007 23:31:43 -0700 Subject: [MEncoder-users] FW: Questions about licencing of Mencoder In-Reply-To: <200704162009.45403.trejkaz@trypticon.org> References: <200704160936.l3G9akNT010817@smtp1.infomaniak.ch> <4623467C.9040204@email.it> <200704162009.45403.trejkaz@trypticon.org> Message-ID: <20070416233143.103c3879.rcooley@spamcop.net> On Mon, 16 Apr 2007 20:09:42 +1000 Trejkaz wrote: > To explain that a bit more, it means you can distribute your > application *without* mencoder, and have the user install it > separately No, it doesn't mean that at all! The GPL has nothing to do with one application running another, or distribution with other closed-source apps. It only applies if you _link_ the two together, or otherwise modify the source of the GPL'd program. From nsabbi at email.it Tue Apr 17 09:52:16 2007 From: nsabbi at email.it (Nico Sabbi) Date: Tue, 17 Apr 2007 09:52:16 +0200 Subject: [MEncoder-users] Transcoding and cutting h264 TS stream In-Reply-To: <20070416232558.4acb345e.rcooley@spamcop.net> References: <269ecf50704151327h381d82c5t8684af2f8fd1d1c7@mail.gmail.com> <269ecf50704161221o67f02cf9lf890895079b98f6f@mail.gmail.com> <20070416232558.4acb345e.rcooley@spamcop.net> Message-ID: <46247CB0.6020900@email.it> RC wrote: >On Mon, 16 Apr 2007 21:21:56 +0200 >"Peter Martens" wrote: > > > >>What Linux-based alternative would be usefull for editing? Avidemux >>doesn't like the TS-streams... >> >> > >For mpeg, you might try gopchop. > > gopchop handles only mpeg-ps with mpeg1/2 video -- Email.it, the professional e-mail, gratis per te: http://www.email.it/f Sponsor: Fai crescere i tuoi sogni. Prestiti semplici e veloci * Rate da 20 euro al mese Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=6332&d=17-4 From joey.parrish at gmail.com Tue Apr 17 10:57:07 2007 From: joey.parrish at gmail.com (Joey Parrish) Date: Tue, 17 Apr 2007 02:57:07 -0600 Subject: [MEncoder-users] FW: Questions about licencing of Mencoder In-Reply-To: <20070416233143.103c3879.rcooley@spamcop.net> References: <200704160936.l3G9akNT010817@smtp1.infomaniak.ch> <4623467C.9040204@email.it> <200704162009.45403.trejkaz@trypticon.org> <20070416233143.103c3879.rcooley@spamcop.net> Message-ID: On 4/17/07, RC wrote: > On Mon, 16 Apr 2007 20:09:42 +1000 > Trejkaz wrote: > > To explain that a bit more, it means you can distribute your > > application *without* mencoder, and have the user install it > > separately > > No, it doesn't mean that at all! The GPL has nothing to do with one > application running another, or distribution with other closed-source > apps. It only applies if you _link_ the two together, or otherwise > modify the source of the GPL'd program. Agreed. IMO, your closed application can bundle mencoder (with sources or a permanent source URL) and launch mencoder to do the work. --Joey From dominik at rangers.eu.org Tue Apr 17 11:30:55 2007 From: dominik at rangers.eu.org (Dominik 'Rathann' Mierzejewski) Date: Tue, 17 Apr 2007 11:30:55 +0200 Subject: [MEncoder-users] FW: Questions about licencing of Mencoder In-Reply-To: <20070416233143.103c3879.rcooley@spamcop.net> References: <200704160936.l3G9akNT010817@smtp1.infomaniak.ch> <4623467C.9040204@email.it> <200704162009.45403.trejkaz@trypticon.org> <20070416233143.103c3879.rcooley@spamcop.net> Message-ID: <20070417093055.GA30453@ryvius.pekin.waw.pl> On Tuesday, 17 April 2007 at 08:31, RC wrote: > On Mon, 16 Apr 2007 20:09:42 +1000 > Trejkaz wrote: > > > To explain that a bit more, it means you can distribute your > > application *without* mencoder, and have the user install it > > separately > > No, it doesn't mean that at all! The GPL has nothing to do with one > application running another, or distribution with other closed-source > apps. It only applies if you _link_ the two together, or otherwise > modify the source of the GPL'd program. Exactly so. Read the GPL FAQ if you're unsure, but please don't spread misinformation. 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 From Lennart.Borjeson at cinnober.com Tue Apr 17 13:59:14 2007 From: Lennart.Borjeson at cinnober.com (Lennart =?iso-8859-1?q?B=F6rjeson?=) Date: Tue, 17 Apr 2007 13:59:14 +0200 Subject: [MEncoder-users] FW: Questions about licencing of Mencoder In-Reply-To: <20070416233143.103c3879.rcooley@spamcop.net> References: <200704160936.l3G9akNT010817@smtp1.infomaniak.ch> <200704162009.45403.trejkaz@trypticon.org> <20070416233143.103c3879.rcooley@spamcop.net> Message-ID: <200704171359.14224.Lennart.Borjeson@cinnober.com> tisdag 17 april 2007 08:31 skrev RC: > On Mon, 16 Apr 2007 20:09:42 +1000 > > Trejkaz wrote: > > To explain that a bit more, it means you can distribute your > > application *without* mencoder, and have the user install it > > separately > > No, it doesn't mean that at all! The GPL has nothing to do with one > application running another, or distribution with other closed-source > apps. It only applies if you _link_ the two together, or otherwise > modify the source of the GPL'd program. Well, it might or might not. Check the GPL FAQ. (links below). Quote: "What constitutes combining two parts into one program? This is a legal question, which ultimately judges will decide." /Lennart http://www.fsf.org/licensing/licenses/gpl-faq.html#TOCGPLInProprietarySystem http://www.fsf.org/licensing/licenses/gpl-faq.html#TOCGPLAndPlugins http://www.fsf.org/licensing/licenses/gpl-faq.html#TOCMereAggregation -- !++ ! Lennart B?rjeson, Cinnober Financial Technology AB ! Industrigatan 2A, S-112 46 STOCKHOLM ! Sverige/Sweden/Schweden/Su?de ! phone:+46-8-50304717 gsm:+46-70-3394717 fax:+46-8-50304701 !-- From trejkaz at trypticon.org Tue Apr 17 14:40:58 2007 From: trejkaz at trypticon.org (Trejkaz) Date: Tue, 17 Apr 2007 22:40:58 +1000 Subject: [MEncoder-users] FW: Questions about licencing of Mencoder In-Reply-To: References: <200704160936.l3G9akNT010817@smtp1.infomaniak.ch> <20070416233143.103c3879.rcooley@spamcop.net> Message-ID: <200704172241.00983.trejkaz@trypticon.org> On Tuesday 17 April 2007 18:57, Joey Parrish wrote: > > > To explain that a bit more, it means you can distribute your > > > application *without* mencoder, and have the user install it > > > separately > > > > No, it doesn't mean that at all! The GPL has nothing to do with one > > application running another, or distribution with other closed-source > > apps. It only applies if you _link_ the two together, or otherwise > > modify the source of the GPL'd program. You basically said exactly what I was trying to say. Distribute the application without it, and have the end user recombine the two. It's very hard to break a licence governing redistribution when you're not actually the one doing the redistribution. :-) > Agreed. IMO, your closed application can bundle mencoder (with > sources or a permanent source URL) and launch mencoder to do the work. Indeed. Basically I wasn't taking linking into account as I didn't realise mencoder could be linked to in the first place. TX -- Email: trejkaz at trypticon.org Jabber ID: trejkaz at trypticon.org Web site: http://trypticon.org/ GPG Fingerprint: 9EEB 97D7 8F7B 7977 F39F A62C B8C7 BC8B 037E EA73 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: From bugfood-ml at fatooh.org Tue Apr 17 19:25:18 2007 From: bugfood-ml at fatooh.org (Corey Hickey) Date: Tue, 17 Apr 2007 10:25:18 -0700 Subject: [MEncoder-users] FW: Questions about licencing of Mencoder In-Reply-To: <20070416233143.103c3879.rcooley@spamcop.net> References: <200704160936.l3G9akNT010817@smtp1.infomaniak.ch> <4623467C.9040204@email.it> <200704162009.45403.trejkaz@trypticon.org> <20070416233143.103c3879.rcooley@spamcop.net> Message-ID: <462502FE.2030808@fatooh.org> RC wrote: > On Mon, 16 Apr 2007 20:09:42 +1000 > Trejkaz wrote: > >> To explain that a bit more, it means you can distribute your >> application *without* mencoder, and have the user install it >> separately > > No, it doesn't mean that at all! The GPL has nothing to do with one > application running another, or distribution with other closed-source > apps. It only applies if you _link_ the two together, or otherwise > modify the source of the GPL'd program. If you distribute a GPL program, though, you still have to provide access to the source code, whether you have modified the program or not. Here's a big excerpt from: http://www.gnu.org/licenses/gpl.txt ---------------------------------------------------------------------- 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. ---------------------------------------------------------------------- -Corey From s-strong at mail.ru Tue Apr 17 15:16:01 2007 From: s-strong at mail.ru (Strong) Date: Tue, 17 Apr 2007 20:16:01 +0700 Subject: [MEncoder-users] mencoder =?koi8-r?b?zsUg2sHQydPZ18HF1CDJzsTFy9MgxMzRINDPydPLwS4=?= Message-ID: mencoder ?? ?????????? ?????? ??? ?????? ??? ???????? DVD ? ?????? "raw". ??? ???????, ??????? ? ?????????: mencoder -dvd-device /mnt/dvdrom2 dvd://1 -aid 128 -sid 2 -oac copy -ovc copy -o /pub/_vid/1.avi From morrisb at avpresentations.com Wed Apr 18 22:18:35 2007 From: morrisb at avpresentations.com (Morris Beverly) Date: Wed, 18 Apr 2007 16:18:35 -0400 Subject: [MEncoder-users] using mf:// with stdin In-Reply-To: <20070404121342.412b4702.rcooley@spamcop.net> References: <4613C379.6090809@avpresentations.com> <20070404121342.412b4702.rcooley@spamcop.net> Message-ID: <46267D1B.3050302@avpresentations.com> RC wrote: >> Is it possible to output a series of image files onto stdin and have >> mencoder encode them to an avi? >> > > Yes, it should work. If not automatically, then at least after setting > -demuxer and -vc appropritately. I'm afraid I'm missing something basic. The command I use for encoding from files, is: mencoder mf://*.jpg -mf type=jpg:fps=30 -ovc lavc -lavcopts vcodec=mjpeg -o test.avi I've enclosed the output of the following command, which is obviously wrong, but I've tried a lot of variations like mf:///dev/stdin, mf://-, mf://*.jpg, not using mf:// at all, all with pretty much the same result: cat *.jpg | mencoder - mf://*.jpg -mf type=jpg:fps=30 -ovc lavc -lavcopts vcodec=mjpeg -v -o 0_test.avi I'm merely using cat to try to debug the command line before I get to the java part (the ultimate goal is to write jpegs from an image processing program directly into mencoder, rather than writing to files first). I know the use of cat is discouraged, but I think it's just related to AV sync, or does cat just not work at all for this? If you still think the problem is with demuxer and/or vc, I'd appreciate it if you could elaborate. I tried adding -demuxer mf and -vc ijpg, to no avail. thank you for your help so far, morris MEncoder dev-SVN-r21625-4.1.1 (C) 2000-2006 MPlayer Team CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 4600+ (Family: 15, Model: 75, Stepping: 2) CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1 Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE SSE2 Configuration: init_freetype get_path('font/font.desc') -> '/home/morris/.mplayer/font/font.desc' font: can't open file: /home/morris/.mplayer/font/font.desc font: can't open file: /usr/local/share/mplayer/font/font.desc Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay Reading from stdin... [file] File size is -1 bytes STREAM: [file] - STREAM: Description: File STREAM: Author: Albeu STREAM: Comment: based on the code from ??? (probably Arpi) success: format: 0 data: 0x0 - 0x0 Checking for YUV4MPEG2 ASF_check: not ASF guid! Checking for NuppelVideo Checking for REAL Checking for SMJPEG Searching demuxer type for filename - ext: (null) Cannot seek backward in linear streams! Checking for Nullsoft Streaming Video Cannot seek backward in linear streams! Checking for MOV Cannot seek backward in linear streams! Checking for VIVO Cannot seek backward in linear streams! Cannot seek backward in linear streams! Cannot seek backward in linear streams! Cannot seek backward in linear streams! Cannot seek backward in linear streams! Checking for PVA Cannot seek backward in linear streams! Checking for MPEG-TS... TRIED UP TO POSITION 339861, FOUND 47, packet_size= 0, SEEMS A TS? 0 Cannot seek backward in linear streams! Cannot seek backward in linear streams! Checking for LMLM4 Stream Format Invalid packet in LMLM4 stream: ch=27562 size=-630104930 LMLM4 Stream Format not found Cannot seek backward in linear streams! sync_mpeg_ps: seems to be MP3 stream... MPEG Stream reached EOF ds_fill_buffer: EOF reached (stream: video) MPEG packet stats: p100: 2 p101: 0 p1B6: 0 p12x: 0 sli: 0 a: 4 b: 0 c: 0 idr: 0 sps: 0 pps: 0 PES: 1 MP3: 105, synced: 0 Not MPEG System Stream format... (maybe Transport Stream?) sync_mpeg_ps: seems to be MP3 stream... MPEG Stream reached EOF ds_fill_buffer: EOF reached (stream: video) MPEG packet stats: p100: 2 p101: 0 p1B6: 0 p12x: 0 sli: 0 a: 4 b: 0 c: 0 idr: 0 sps: 0 pps: 0 PES: 0 MP3: 147, synced: 0 Not MPEG System Stream format... (maybe Transport Stream?) Cannot seek backward in linear streams! Cannot seek backward in linear streams! Cannot seek backward in linear streams! Cannot seek backward in linear streams! Cannot seek backward in linear streams! ==> Found video stream: 0 ds_fill_buffer: EOF reached (stream: video) Cannot seek backward in linear streams! LAVF_check: no clue about this gibberish! Cannot seek backward in linear streams! Cannot seek backward in linear streams! demux_aac_probe, failed to detect an AAC stream Exiting... From rcooley at spamcop.net Thu Apr 19 11:49:29 2007 From: rcooley at spamcop.net (RC) Date: Thu, 19 Apr 2007 02:49:29 -0700 Subject: [MEncoder-users] using mf:// with stdin In-Reply-To: <46267D1B.3050302@avpresentations.com> References: <4613C379.6090809@avpresentations.com> <20070404121342.412b4702.rcooley@spamcop.net> <46267D1B.3050302@avpresentations.com> Message-ID: <20070419024929.7a267ff7.rcooley@spamcop.net> On Wed, 18 Apr 2007 16:18:35 -0400 Morris Beverly wrote: > I've tried a lot of variations like mf:///dev/stdin, mf://-, > mf://*.jpg, not using mf:// at all, all with pretty much the same > result: Don't use mf at all. It's not for streams. From phil at pricom.com.au Thu Apr 19 13:59:51 2007 From: phil at pricom.com.au (Phil Rhoades) Date: Thu, 19 Apr 2007 21:59:51 +1000 Subject: [MEncoder-users] conversion from rm to avi - filesize blowout Message-ID: <1176983991.11705.15.camel@prix.pricom.com.au> People, When I converted a file with: mencoder 4Corners_Energy.rm -mf fps=25 -o 4Corners_Energy.avi -ovc lavc -oac pcm -lavcopts vcodec=mpeg4 I got a filesize blowout from: 13.5MB to: 69.5MB - why is this? I was expecting a modest increase in size . . Thanks, Phil. -- Philip Rhoades Pricom Pty Limited (ACN 003 252 275 ABN 91 003 252 275) GPO Box 3411 Sydney NSW 2001 Australia Fax: +61:(0)2-8221-9599 E-mail: phil at pricom.com.au From poirierg at gmail.com Thu Apr 19 14:08:25 2007 From: poirierg at gmail.com (Guillaume POIRIER) Date: Thu, 19 Apr 2007 14:08:25 +0200 Subject: [MEncoder-users] conversion from rm to avi - filesize blowout In-Reply-To: <1176983991.11705.15.camel@prix.pricom.com.au> References: <1176983991.11705.15.camel@prix.pricom.com.au> Message-ID: <4e03026a0704190508t2e65a5c1w58a951412556d61d@mail.gmail.com> On 4/19/07, Phil Rhoades wrote: > People, > > When I converted a file with: > > mencoder 4Corners_Energy.rm -mf fps=25 -o 4Corners_Energy.avi -ovc lavc -oac pcm -lavcopts vcodec=mpeg4 > > I got a filesize blowout from: > > 13.5MB > > to: > > 69.5MB > > - why is this? I was expecting a modest increase in size . . it's likely due to -oac pcm (i.e. uncompressed WAV) Guillaume -- Rich, you're forgetting one thing here: *everybody* except you is stupid. M?ns Rullg?rd From morrisb at avpresentations.com Thu Apr 19 14:39:05 2007 From: morrisb at avpresentations.com (Morris Beverly) Date: Thu, 19 Apr 2007 08:39:05 -0400 Subject: [MEncoder-users] using mf:// with stdin In-Reply-To: <20070419024929.7a267ff7.rcooley@spamcop.net> References: <4613C379.6090809@avpresentations.com> <20070404121342.412b4702.rcooley@spamcop.net> <46267D1B.3050302@avpresentations.com> <20070419024929.7a267ff7.rcooley@spamcop.net> Message-ID: <462762E9.1010107@avpresentations.com> RC wrote: >On Wed, 18 Apr 2007 16:18:35 -0400 >Morris Beverly wrote: > > > >>I've tried a lot of variations like mf:///dev/stdin, mf://-, >>mf://*.jpg, not using mf:// at all, all with pretty much the same >>result: >> >> > >Don't use mf at all. It's not for streams. > Thanks for staying with me on this. I've tried a number of variations, below, and they all ended with the output at the bottom of message. I wonder if something is not happening with cat going into mencoder properly because of theoutput line Reading from stdin... [file] File size is -1 bytes thanks again, morris cat pix/test2.jpg | mencoder - -demuxer mf -vc ijpg -mf type=jpeg:fps=30 -ovc lavc -lavcopts vcodec=mjpeg -v -o cattest_1.avi cat pix/test2.jpg | mencoder - -demuxer mf -vc ijpg -ovc lavc -lavcopts vcodec=mjpeg -v -o cattest_1.avi cat pix/test2.jpg | mencoder - -demuxer mf -mf type=jpeg:fps=30 -ovc lavc -lavcopts vcodec=mjpeg -v -o cattest_1.avi MEncoder dev-SVN-r22780-4.1.1 (C) 2000-2006 MPlayer Team CPU: Genuine Intel(R) CPU T2400 @ 1.83GHz (Family: 6, Model: 14, Stepping: 8) CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1 Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2 Configuration: init_freetype get_path('font/font.desc') -> '/home/morris/.mplayer/font/font.desc' font: can't open file: /home/morris/.mplayer/font/font.desc font: can't open file: /usr/local/share/mplayer/font/font.desc Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay Reading from stdin... [file] File size is -1 bytes STREAM: [file] - STREAM: Description: File STREAM: Author: Albeu STREAM: Comment: based on the code from ??? (probably Arpi) success: format: 0 data: 0x0 - 0x0 MF file format detected. ============ Sorry, this file format is not recognized/supported ============= === If this file is an AVI, ASF or MPEG stream, please contact the author! === Cannot open demuxer. Exiting... From dominik at rangers.eu.org Thu Apr 19 14:46:00 2007 From: dominik at rangers.eu.org (Dominik 'Rathann' Mierzejewski) Date: Thu, 19 Apr 2007 14:46:00 +0200 Subject: [MEncoder-users] conversion from rm to avi - filesize blowout In-Reply-To: <1176983991.11705.15.camel@prix.pricom.com.au> References: <1176983991.11705.15.camel@prix.pricom.com.au> Message-ID: <20070419124600.GB27414@ryvius.pekin.waw.pl> On Thursday, 19 April 2007 at 13:59, Phil Rhoades wrote: > People, > > When I converted a file with: > > mencoder 4Corners_Energy.rm -mf fps=25 -o 4Corners_Energy.avi -ovc lavc -oac pcm -lavcopts vcodec=mpeg4 What did you use -mf fps=25 for? > I got a filesize blowout from: > > 13.5MB > > to: > > 69.5MB > > - why is this? I was expecting a modest increase in size . . My guess is -oac pcm. 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 From phil at pricom.com.au Thu Apr 19 14:51:00 2007 From: phil at pricom.com.au (Phil Rhoades) Date: Thu, 19 Apr 2007 22:51:00 +1000 Subject: [MEncoder-users] conversion from rm to avi - filesize blowout In-Reply-To: <4e03026a0704190508t2e65a5c1w58a951412556d61d@mail.gmail.com> References: <1176983991.11705.15.camel@prix.pricom.com.au> <4e03026a0704190508t2e65a5c1w58a951412556d61d@mail.gmail.com> Message-ID: <1176987060.11705.19.camel@prix.pricom.com.au> Guillaume, On Thu, 2007-04-19 at 14:08 +0200, Guillaume POIRIER wrote: > On 4/19/07, Phil Rhoades wrote: > > People, > > > > When I converted a file with: > > > > mencoder 4Corners_Energy.rm -mf fps=25 -o 4Corners_Energy.avi -ovc lavc -oac pcm -lavcopts vcodec=mpeg4 > > > > I got a filesize blowout from: > > > > 13.5MB > > > > to: > > > > 69.5MB > > > > - why is this? I was expecting a modest increase in size . . > > it's likely due to -oac pcm (i.e. uncompressed WAV) You are correct - results for audio options: -oac copy no encoding, just streamcopy # does not work with realmedia -oac pcm Encode to uncompressed PCM # large files -oac mp3lame Encode to MP3 (using LAME) # seems good -oac lavc Encode with a libavcodec codec # lose sound Phil. -- Philip Rhoades Pricom Pty Limited (ACN 003 252 275 ABN 91 003 252 275) GPO Box 3411 Sydney NSW 2001 Australia Fax: +61:(0)2-8221-9599 E-mail: phil at pricom.com.au From johnbrown105 at hotmail.com Thu Apr 19 16:17:32 2007 From: johnbrown105 at hotmail.com (John Brown) Date: Thu, 19 Apr 2007 14:17:32 +0000 (UTC) Subject: [MEncoder-users] Re: using mf:// with stdin References: <4613C379.6090809@avpresentations.com> <20070404121342.412b4702.rcooley@spamcop.net> <46267D1B.3050302@avpresentations.com> <20070419024929.7a267ff7.rcooley@spamcop.net> <462762E9.1010107@avpresentations.com> Message-ID: Morris Beverly avpresentations.com> writes: > > > RC wrote: > > >On Wed, 18 Apr 2007 16:18:35 -0400 > >Morris Beverly avpresentations.com> wrote: > > > > > > > >>I've tried a lot of variations like mf:///dev/stdin, mf://-, > >>mf://*.jpg, not using mf:// at all, all with pretty much the same > >>result: > >> > >> > > > >Don't use mf at all. It's not for streams. > > > ... I > wonder if something is not happening with cat going into mencoder > properly because of the output line > > Reading from stdin... > [file] File size is -1 bytes > [cut] > success: format: 0 data: 0x0 - 0x0 > MF file format detected. > ============ Sorry, this file format is not recognized/supported > ============= > === If this file is an AVI, ASF or MPEG stream, please contact the > author! === > Cannot open demuxer. > > Exiting... > For what it's worth, when I run: 'mencoder - -demuxer mf -vc ijpg ... < jpeg-filename', I get the correct file size (25865 bytes), but when I use cat, I get 17408 bytes. I don't know why you are getting -1. Are you using the svn version? I get the unsupported file format message in either case. Of course, even if it worked, it would give you only 1 frame. If you use -v -v, you will see: STREAM: Comment: based on the code from ??? (probably Arpi) success: format: 0 data: 0x0 - 0x0 seek to 0xqX s->pos=0 newpos=0 new_bufpos=0 buflen=0 MF file format detected. DEMUXER: freeing demuxer at 02506810 Maybe it needs to be able to seek backwards and it cannot because it is stdin. From rcooley at spamcop.net Thu Apr 19 18:00:18 2007 From: rcooley at spamcop.net (RC) Date: Thu, 19 Apr 2007 09:00:18 -0700 Subject: [MEncoder-users] using mf:// with stdin In-Reply-To: <462762E9.1010107@avpresentations.com> References: <4613C379.6090809@avpresentations.com> <20070404121342.412b4702.rcooley@spamcop.net> <46267D1B.3050302@avpresentations.com> <20070419024929.7a267ff7.rcooley@spamcop.net> <462762E9.1010107@avpresentations.com> Message-ID: <20070419090018.158eb0ba.rcooley@spamcop.net> On Thu, 19 Apr 2007 08:39:05 -0400 Morris Beverly wrote: > cat pix/test2.jpg | mencoder - -demuxer mf -vc ijpg -mf > type=jpeg:fps=30 -ovc lavc -lavcopts vcodec=mjpeg -v -o cattest_1.avi Lavf is able to demux a jpeg stream, but since it needs an extension for detection, it doesn't work from stdin. Using a fifo with an ".mjpeg" extension works. From Reimar.Doeffinger at stud.uni-karlsruhe.de Thu Apr 19 18:20:58 2007 From: Reimar.Doeffinger at stud.uni-karlsruhe.de (Reimar =?iso-8859-1?Q?D=F6ffinger?=) Date: Thu, 19 Apr 2007 18:20:58 +0200 Subject: [MEncoder-users] using mf:// with stdin In-Reply-To: <462762E9.1010107@avpresentations.com> References: <4613C379.6090809@avpresentations.com> <20070404121342.412b4702.rcooley@spamcop.net> <46267D1B.3050302@avpresentations.com> <20070419024929.7a267ff7.rcooley@spamcop.net> <462762E9.1010107@avpresentations.com> Message-ID: <20070419162058.GD6723@1und1.de> Hello, On Thu, Apr 19, 2007 at 08:39:05AM -0400, Morris Beverly wrote: > cat pix/test2.jpg | mencoder - -demuxer mf -vc ijpg -mf type=jpeg:fps=30 > -ovc lavc -lavcopts vcodec=mjpeg -v -o cattest_1.avi > cat pix/test2.jpg | mencoder - -demuxer mf -vc ijpg -ovc lavc -lavcopts > vcodec=mjpeg -v -o cattest_1.avi > cat pix/test2.jpg | mencoder - -demuxer mf -mf type=jpeg:fps=30 -ovc lavc > -lavcopts vcodec=mjpeg -v -o cattest_1.avi -demuxer mf is wrong, because 1) it can only work with mf:// 2) your input is raw mjpeg and nothing related to mf, if anything use -demuxer lavf. And 3) -ovc lavc -lavcopts vcodec=mjpeg is (most likely) stupid, your input is already mjpg so -ovc copy is the right thing. Greetings, Reimar D?ffinger From morrisb at avpresentations.com Thu Apr 19 19:14:28 2007 From: morrisb at avpresentations.com (Morris Beverly) Date: Thu, 19 Apr 2007 13:14:28 -0400 Subject: [MEncoder-users] using mf:// with stdin In-Reply-To: <20070419090018.158eb0ba.rcooley@spamcop.net> References: <4613C379.6090809@avpresentations.com> <20070404121342.412b4702.rcooley@spamcop.net> <46267D1B.3050302@avpresentations.com> <20070419024929.7a267ff7.rcooley@spamcop.net> <462762E9.1010107@avpresentations.com> <20070419090018.158eb0ba.rcooley@spamcop.net> Message-ID: <4627A374.6030909@avpresentations.com> RC wrote: >Using a fifo with an ".mjpeg" >extension works. > > Thanks, I'll have to dig up the docs on the fifo, I've seen it mentioned, but haven't tried it before John Brown >> Are you using the svn version? John, I'm using dev-SVN-r22780-4.1.1. It's probably a couple months old. Reimar D?ffinger >> -demuxer mf is wrong Thanks, I really didn't understand how the whole mf thing worked, this has been enlighening >> so -ovc copy is the right thing This is true, and I originally used this, but it only worked with mplayer, presumably because my program was outputting a somewhat nonstandard jpeg file(I think it had something to do with the colorspace used). Using vcodec mjpeg allowed it to work with quicktime and some other players without a hitch. I've run another couple quick tests using the two following commands. The full output is at the bottom. There still seems to be a problem reading from stdin with these. Perhaps a fifo is the only way to do it? thanks, morris cat pix/test2.jpg | mencoder - -demuxer lavf -ovc copy -v -o cattest_1.avi cat pix/test2.jpg | mencoder - -ovc copy -v -o cattest_1.avi [morris at localhost ~]$ cat pix/test2.jpg | mencoder - -demuxer lavf -ovc copy -v -o cattest_1.avi MEncoder dev-SVN-r22780-4.1.1 (C) 2000-2006 MPlayer Team CPU: Genuine Intel(R) CPU T2400 @ 1.83GHz (Family: 6, Model: 14, Stepping: 8) CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1 Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2 Configuration: init_freetype get_path('font/font.desc') -> '/home/morris/.mplayer/font/font.desc' font: can't open file: /home/morris/.mplayer/font/font.desc font: can't open file: /usr/local/share/mplayer/font/font.desc Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay Reading from stdin... [file] File size is -1 bytes STREAM: [file] - STREAM: Description: File STREAM: Author: Albeu STREAM: Comment: based on the code from ??? (probably Arpi) success: format: 0 data: 0x0 - 0x0 LAVF_check: no clue about this gibberish! ============ Sorry, this file format is not recognized/supported ============= === If this file is an AVI, ASF or MPEG stream, please contact the author! === Cannot open demuxer. Exiting... ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// [morris at localhost ~]$ cat pix/test2.jpg | mencoder - -ovc copy -v -o cattest_1.avi MEncoder dev-SVN-r22780-4.1.1 (C) 2000-2006 MPlayer Team CPU: Genuine Intel(R) CPU T2400 @ 1.83GHz (Family: 6, Model: 14, Stepping: 8) CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1 Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2 Configuration: init_freetype get_path('font/font.desc') -> '/home/morris/.mplayer/font/font.desc' font: can't open file: /home/morris/.mplayer/font/font.desc font: can't open file: /usr/local/share/mplayer/font/font.desc Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay Reading from stdin... [file] File size is -1 bytes STREAM: [file] - STREAM: Description: File STREAM: Author: Albeu STREAM: Comment: based on the code from ??? (probably Arpi) success: format: 0 data: 0x0 - 0x0 Checking for YUV4MPEG2 ASF_check: not ASF guid! Checking for NuppelVideo Checking for REAL Checking for SMJPEG Searching demuxer type for filename - ext: (null) Cannot seek backward in linear streams! Seek failed Checking for Nullsoft Streaming Video stream_seek: WARNING! Can't seek to 0x0 ! Checking for MOV stream_seek: WARNING! Can't seek to 0x0 ! Checking for VIVO stream_seek: WARNING! Can't seek to 0x0 ! stream_seek: WARNING! Can't seek to 0x4 ! stream_seek: WARNING! Can't seek to 0x0 ! stream_seek: WARNING! Can't seek to 0x0 ! stream_seek: WARNING! Can't seek to 0x0 ! AVS: avs_check_file - attempting to open file - Win32 LoadLibrary failed to load: avisynth.dll, /usr/local/lib/codecs/avisynth.dll, /usr/lib/win32/avisynth.dll, /usr/local/lib/win32/avisynth.dll AVS: failed to load avisynth.dll AVS: Init failed stream_seek: WARNING! Can't seek to 0x0 ! Checking for PVA stream_seek: WARNING! Can't seek to 0x0 ! Checking for MPEG-TS... THIS DOESN'T LOOK LIKE AN MPEG-TS FILE! TRIED UP TO POSITION 0, FOUND ffffff00, packet_size= 0, SEEMS A TS? 0 stream_seek: WARNING! Can't seek to 0x0 ! stream_seek: WARNING! Can't seek to 0x0 ! Checking for LMLM4 Stream Format LMLM4 Stream Format not found stream_seek: WARNING! Can't seek to 0x0 ! stream_seek: WARNING! Can't seek to 0x0 ! MPEG Stream reached EOF ds_fill_buffer: EOF reached (stream: video) MPEG packet stats: p100: 0 p101: 0 p1B6: 0 p12x: 0 sli: 0 a: 0 b: 0 c: 0 idr: 0 sps: 0 pps: 0 PES: 0 MP3: 0, synced: 0 Not MPEG System Stream format... (maybe Transport Stream?) stream_seek: WARNING! Can't seek to 0x0 ! stream_seek: WARNING! Can't seek to 0x0 ! stream_seek: WARNING! Can't seek to 0x0 ! MPEG Stream reached EOF ds_fill_buffer: EOF reached (stream: video) MPEG packet stats: p100: 0 p101: 0 p1B6: 0 p12x: 0 sli: 0 a: 0 b: 0 c: 0 idr: 0 sps: 0 pps: 0 PES: 0 MP3: 0, synced: 3 Not MPEG System Stream format... (maybe Transport Stream?) stream_seek: WARNING! Can't seek to 0x0 ! stream_seek: WARNING! Can't seek to 0x0 ! stream_seek: WARNING! Can't seek to 0x0 ! ds_fill_buffer: EOF reached (stream: video) stream_seek: WARNING! Can't seek to 0x0 ! stream_seek: WARNING! Can't seek to 0x0 ! demux_aac_probe, failed to detect an AAC stream ============ Sorry, this file format is not recognized/supported ============= === If this file is an AVI, ASF or MPEG stream, please contact the author! === Cannot open demuxer. Exiting... From Reimar.Doeffinger at stud.uni-karlsruhe.de Thu Apr 19 20:58:20 2007 From: Reimar.Doeffinger at stud.uni-karlsruhe.de (Reimar =?iso-8859-1?Q?D=F6ffinger?=) Date: Thu, 19 Apr 2007 20:58:20 +0200 Subject: [MEncoder-users] using mf:// with stdin In-Reply-To: <4627A374.6030909@avpresentations.com> References: <4613C379.6090809@avpresentations.com> <20070404121342.412b4702.rcooley@spamcop.net> <46267D1B.3050302@avpresentations.com> <20070419024929.7a267ff7.rcooley@spamcop.net> <462762E9.1010107@avpresentations.com> <20070419090018.158eb0ba.rcooley@spamcop.net> <4627A374.6030909@avpresentations.com> Message-ID: <20070419185820.GA22008@1und1.de> Hello, On Thu, Apr 19, 2007 at 01:14:28PM -0400, Morris Beverly wrote: > RC wrote: > > Using a fifo with an ".mjpeg" > > extension works. [...] > I've run another couple quick tests using the two following commands. The > full output is at the bottom. There still seems to be a problem reading > from stdin with these. Perhaps a fifo is the only way to do it? [...] > cat pix/test2.jpg | mencoder - -demuxer lavf -ovc copy -v -o cattest_1.avi I wasn't aware that there is no autodetection for mjpeg. -demuxer lavf -lavfdopts format=mjpeg should work around that problem. Greetings, Reimar D?ffinger From jean-jacques.cavelier2 at wanadoo.fr Fri Apr 20 15:33:03 2007 From: jean-jacques.cavelier2 at wanadoo.fr (jean-jacques cavelier) Date: Fri, 20 Apr 2007 15:33:03 +0200 Subject: [MEncoder-users] aid found by mplayer but not by mencoder Message-ID: <200704201533.04207.jean-jacques.cavelier2@wanadoo.fr> Hi. I encode to avi my dvd by: mencoder dvd://6 -aid 128 -ovc xxxxx vpass=1 -oac copy -o /dev/null && mencoder dvd://6 -aid 128 -ovc xxxxx vpass=2 -oac lavc xxxxxx -o ~/myFilm.avi. i obtain a avi without any sound but mplayer dvd://6 -aid 128 -v plays me the sound of the film. and with the good aid. Thanks. -- cordialement jean-jacques. Ce message a ?t? ?crit sur un syst?me libre mandriva "Tant que l'homme sera mortel, il ne pourra pas ?tre totalement d?contract? ." Woody Allen. From nsabbi at email.it Fri Apr 20 15:33:22 2007 From: nsabbi at email.it (Nico Sabbi) Date: Fri, 20 Apr 2007 15:33:22 +0200 Subject: [MEncoder-users] aid found by mplayer but not by mencoder In-Reply-To: <200704201533.04207.jean-jacques.cavelier2@wanadoo.fr> References: <200704201533.04207.jean-jacques.cavelier2@wanadoo.fr> Message-ID: <4628C122.5010807@email.it> jean-jacques cavelier wrote: >Hi. >I encode to avi my dvd by: >mencoder dvd://6 -aid 128 -ovc xxxxx vpass=1 -oac copy -o /dev/null > && mencoder dvd://6 -aid 128 -ovc xxxxx vpass=2 -oac lavc xxxxxx -o >~/myFilm.avi. > >i obtain a avi without any sound but mplayer dvd://6 -aid 128 -v plays me the >sound of the film. and with the good aid. >Thanks. > > if you need help post the full log of the second step of mencoder please. this is a ML for support, not for divinations -- Email.it, the professional e-mail, gratis per te: http://www.email.it/f Sponsor: Devi vendere qualcosa? Pubblica in un colpo le tue inserzioni sui principali siti web e sulle pi? importanti riviste di annunci! * AdBoom.it: MASSIMA VISIBILITA', MINIMO SFORZO Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=6420&d=20-4 From null274 at msn.com Sat Apr 21 05:27:24 2007 From: null274 at msn.com (alejandro Velez Palacio) Date: Sat, 21 Apr 2007 03:27:24 +0000 Subject: [MEncoder-users] How to encode flvs with the highest visual quality possible for Internet Sharing Message-ID: I do encode to flash video before uploading videos to some sharing websites like youtube or blip.tv using the following settings: mencoder -lavfopts i_certify_that_my_video_stream_does_not_use_b_frames input.avi -o output.flv -of lavf -ovc lavc -oac lavc -lavcopts vcodec=flv:vbitrate=200:autoaspect:mbd=2:mv0:trell:v4mv:cbp:last_pred=3:predia=2:dia=2:precmp=2:cmp=2:subcmp=2:preme=2:turbo but ever the resulting flv had more noticeable blocky artifacts compared with another videos in reencoded by youtube and now it seems sometimes that the quality degrades with the pass of the playback time with all flvs produced using mencoder, there are more settings that can I use to make to reduce the resulting artifacts or make the quality better if possible? the source and destination material is ever rated at 30 fps and sized at 320x240 Here are some examples One of the first videos that I encoded with Mencoder http://www.youtube.com/watch?v=_qGRfuZVZy0 Here the video has less quality than the other above and it gets even worst around 02:20 http://www.youtube.com/watch?v=pJjo7r7gQ-w Then lets look at this examples encoded by youtube http://www.youtube.com/watch?v=w5Ht1WzeWv0 http://www.youtube.com/watch?v=KVp6DHPDtHo I didn't find noticeable artifacts in these examples compared with the samples that I complain about _________________________________________________________________ MSN Amor: busca tu ? naranja http://latam.msn.com/amor/ From joey.parrish at gmail.com Sat Apr 21 09:46:42 2007 From: joey.parrish at gmail.com (Joey Parrish) Date: Sat, 21 Apr 2007 01:46:42 -0600 Subject: [MEncoder-users] How to encode flvs with the highest visual quality possible for Internet Sharing In-Reply-To: References: Message-ID: On 4/20/07, alejandro Velez Palacio wrote: > I do encode to flash video before uploading videos to some sharing websites > like youtube or blip.tv using the following settings: > > mencoder -lavfopts i_certify_that_my_video_stream_does_not_use_b_frames > input.avi -o output.flv -of lavf -ovc lavc -oac lavc -lavcopts > vcodec=flv:vbitrate=200:autoaspect:mbd=2:mv0:trell:v4mv:cbp:last_pred=3:predia=2:dia=2:precmp=2:cmp=2:subcmp=2:preme=2:turbo Have you tried 2-pass encoding, filtering the source, or higher bitrate? --Joey From rcooley at spamcop.net Sat Apr 21 13:34:04 2007 From: rcooley at spamcop.net (RC) Date: Sat, 21 Apr 2007 04:34:04 -0700 Subject: [MEncoder-users] How to encode flvs with the highest visual quality possible for Internet Sharing In-Reply-To: References: Message-ID: <20070421043404.223ae7a6.rcooley@spamcop.net> On Sat, 21 Apr 2007 03:27:24 +0000 "alejandro Velez Palacio" wrote: > mencoder -lavfopts > i_certify_that_my_video_stream_does_not_use_b_frames input.avi -o > output.flv -of lavf -ovc lavc -oac lavc -lavcopts > vcodec=flv:vbitrate=200:autoaspect:mbd=2:mv0:trell:v4mv:cbp:last_pred > =3:predia=2:dia=2:precmp=2:cmp=2:subcmp=2:preme=2:turbo > > but ever the resulting flv had more noticeable blocky artifacts Yes, that's what *cmp=2 does. Use 3 or 0 (default). Also, you don't seem to have any idea what turbo is supposed to be used for. Don't use it. From lnovak at dragon.unideb.hu Sat Apr 21 13:53:30 2007 From: lnovak at dragon.unideb.hu (Levente =?ISO-8859-1?Q?Nov=E1k?=) Date: Sat, 21 Apr 2007 13:53:30 +0200 Subject: [MEncoder-users] How to best optimise the CPU load while grabbing Message-ID: <1177156410.5332.14.camel@localhost> I have the following problem: I would like to decrease the CPU load on my system wile grabbing from v4l2, without having to buy a new mobo/CPU. I have actually a Celeron D 3.06 MHz, 512 MB of DDR2 533 MHz RAM and a SATA I hard drive. Target format would be raw DV (if only it would work under MEncoder...), or DV Avi,or MPEG2, both interlaced. As I noticed, the memory usage is only about 50%, with a CPU load of 80-90% or occasionally even more. IIRC buying more memory is not of much help above 512 KB. MEncoder's default memory usage is dynamic, but does it help if I allocate manually more for its buffers? Conversely, does an increase in bttv's video grab buffers' number help in decreasing the CPU load? Does MEncoder have some non-default settings which would improve the situation? Levente From jean-jacques.cavelier2 at wanadoo.fr Sat Apr 21 17:01:45 2007 From: jean-jacques.cavelier2 at wanadoo.fr (jean-jacques cavelier) Date: Sat, 21 Apr 2007 17:01:45 +0200 Subject: [MEncoder-users] Re:aid found by mplayer but not by mencoder In-Reply-To: <20070421100004.001D63B0F4@natsuki.mplayerhq.hu> References: <20070421100004.001D63B0F4@natsuki.mplayerhq.hu> Message-ID: <200704211701.45592.jean-jacques.cavelier2@wanadoo.fr> Le samedi 21 avril 2007 12:00, mencoder-users-request at mplayerhq.hu a ?crit?: > > ? > > if you need help post the full log of the second step of mencoder please. > this is a ML for support, not for divinations > ? yes: i ripped the entire dvd on the disk on repertory ./VIDEO-TS then My commande:# encodage de solaris2 samedi 21 avril 2007 mencoder -dvd-device ./VIDEO_TS/ dvd://6 -alang fr -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=1200:vhq:vqmin=2:vlelim=-4:mbd=2:trell:v4mv:vcelim=9:lumi_mask=0.05:dark_mask=0.01:vpass=1 -vf crop=672:432:20:64,scale=560:240 -oac copy -ffourcc DIVX -o /dev/null && mencoder -dvd-device ./VIDEO_TS/ dvd://6 -alang fr -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=1200:vhq:vqmin=2:vlelim=-4:mbd=2:trell:v4mv:vcelim=9:lumi_mask=0.05:dark_mask=0.01:vpass=2 -vf crop=672:432:20:64,scale=560:240 -oac lavc -lavcopts acodec=ac3 -ffourcc DIVX -o solaris2-fr.avi Then i read on the console: . subtitle ( sid ): 12 language: zh number of subtitles on disk: 13 success: format: 0 data: 0x0 - 0x40431800 Selected DVD audio channel: 130 language: fr MPEG-PS file format detected. Too many video packets in the buffer: (4096 in 8271603 bytes). Maybe you are playing a non-interleaved stream/file or the codec failed? For AVI files, try to force non-interleaved mode with the -ni option. MPEG: No audio stream found -> no sound. // 1 duplicate frame(s)! Pos: 158.5s 3963f ( 3%) 27.57fps Trem: 74min 732mb A-V:0.000 [1201:0] Too many audio packets in the buffer: (4096 in 8257533 bytes). Maybe you are playing a non-interleaved stream/file or the codec failed? For AVI files, try to force non-interleaved mode with the -ni option. I did exactly same commands with the first dvd and no probleme. Sound is ac3 encoded in the dvd; -- cordialement jean-jacques. Ce message a ?t? ?crit sur un syst?me libre mandriva "Tant que l'homme sera mortel, il ne pourra pas ?tre totalement d?contract? ." Woody Allen. From null274 at msn.com Sat Apr 21 23:07:53 2007 From: null274 at msn.com (alejandro Velez Palacio) Date: Sat, 21 Apr 2007 21:07:53 +0000 Subject: [MEncoder-users] How to encode flvs with the highest visualquality possible for Internet Sharing In-Reply-To: Message-ID: >From: "Joey Parrish" >Reply-To: MEncoder usage discussions >To: "MEncoder usage discussions" >Subject: Re: [MEncoder-users] How to encode flvs with the highest >visualquality possible for Internet Sharing >Date: Sat, 21 Apr 2007 01:46:42 -0600 > >On 4/20/07, alejandro Velez Palacio wrote: >>I do encode to flash video before uploading videos to some sharing >>websites >>like youtube or blip.tv using the following settings: >> >>mencoder -lavfopts i_certify_that_my_video_stream_does_not_use_b_frames >>input.avi -o output.flv -of lavf -ovc lavc -oac lavc -lavcopts >>vcodec=flv:vbitrate=200:autoaspect:mbd=2:mv0:trell:v4mv:cbp:last_pred=3:predia=2:dia=2:precmp=2:cmp=2:subcmp=2:preme=2:turbo > >Have you tried 2-pass encoding, filtering the source, or higher bitrate? > >--Joey >_______________________________________________ >MEncoder-users mailing list >MEncoder-users at mplayerhq.hu >http://lists.mplayerhq.hu/mailman/listinfo/mencoder-users The source material for the encoding is lossless, and the last thing that I want to do is use a higher bitrate because youtube will downgrade uploaded flash videos with a higher Filesize:duration ratio, I think that the other videos which doesn't have noticeable artifacts were encoded by youtube using a diferent quantization type. _________________________________________________________________ Charla con tus amigos en l?nea mediante MSN Messenger: http://messenger.latam.msn.com/ From joey.parrish at gmail.com Sun Apr 22 05:08:26 2007 From: joey.parrish at gmail.com (Joey Parrish) Date: Sat, 21 Apr 2007 22:08:26 -0500 Subject: [MEncoder-users] How to best optimise the CPU load while grabbing In-Reply-To: <1177156410.5332.14.camel@localhost> References: <1177156410.5332.14.camel@localhost> Message-ID: On 4/21/07, Levente Nov?k wrote: > I have the following problem: I would like to decrease the CPU load on > my system wile grabbing from v4l2, without having to buy a new mobo/CPU. > I have actually a Celeron D 3.06 MHz, 512 MB of DDR2 533 MHz RAM and a > SATA I hard drive. Target format would be raw DV (if only it would work > under MEncoder...), or DV Avi,or MPEG2, both interlaced. Try lower bitrate for output, lower resolution (can decrease size of memcopies), or cheaper codecs. --Joey From bayrouni at brutele.be Sun Apr 22 11:34:12 2007 From: bayrouni at brutele.be (bayrouni) Date: Sun, 22 Apr 2007 11:34:12 +0200 Subject: [MEncoder-users] which audio codec? Message-ID: <462B2C14.4020503@brutele.be> Hello all, I am using mencoder to convert all my DVDs, mpeg files to matroska(x264,ac3). But I am wondering, what is the best choice for the audio supported by mencoder? Keeping ac3, is really a good choice? (I have in mind the number of channels) I read something about aac, but aac is not free, isn't it? and it will lose the number of channels, isn't it? and what about using musepack or flac format, aren'nt they good choice ? I am not sure at all what to use as audio codec :( The ideal (for me) is to keep the number of channels if possible, but it not mandatory. I care about quality... Thanks in advance Bayrouni From morrisb at avpresentations.com Sun Apr 22 16:52:53 2007 From: morrisb at avpresentations.com (Morris Beverly) Date: Sun, 22 Apr 2007 10:52:53 -0400 Subject: [MEncoder-users] using mf:// with stdin In-Reply-To: <20070419185820.GA22008@1und1.de> References: <4613C379.6090809@avpresentations.com> <20070404121342.412b4702.rcooley@spamcop.net> <46267D1B.3050302@avpresentations.com> <20070419024929.7a267ff7.rcooley@spamcop.net> <462762E9.1010107@avpresentations.com> <20070419090018.158eb0ba.rcooley@spamcop.net> <4627A374.6030909@avpresentations.com> <20070419185820.GA22008@1und1.de> Message-ID: <462B76C5.7000505@avpresentations.com> Reimar D?ffinger wrote: >Hello, >On Thu, Apr 19, 2007 at 01:14:28PM -0400, Morris Beverly wrote: > > >> RC wrote: >> >> >>>Using a fifo with an ".mjpeg" >>>extension works. >>> >>> >[...] > > >> I've run another couple quick tests using the two following commands. The >> full output is at the bottom. There still seems to be a problem reading >> from stdin with these. Perhaps a fifo is the only way to do it? >> >> >[...] > > >> cat pix/test2.jpg | mencoder - -demuxer lavf -ovc copy -v -o cattest_1.avi >> >> > >I wasn't aware that there is no autodetection for mjpeg. >-demuxer lavf -lavfdopts format=mjpeg >should work around that problem. > >Greetings, >Reimar D?ffinger > > > That did it! I seem to be still having a colorspace problem, but I'll work on that over the next few days as I have time. This has been very educational. Thanks to everyone for the help. morris From null274 at gmail.com Sun Apr 22 17:32:58 2007 From: null274 at gmail.com (null274 at gmail.com) Date: Sun, 22 Apr 2007 10:32:58 -0500 Subject: [MEncoder-users] lame.exe equivalents settings for Mencoder mp3lame Message-ID: <273677990704220832l13a4c8d9vcdc2468ee9e846bc@mail.gmail.com> I need to know if I can transport the switches "-V# --vbr-new" used in lame.exe to their equivalents settings for Mencoder mp3lame or lavc mp3" From ken.hilliard at gmail.com Sun Apr 22 18:09:04 2007 From: ken.hilliard at gmail.com (Ken Hilliard) Date: Sun, 22 Apr 2007 23:09:04 +0700 Subject: [MEncoder-users] Encapsulation the output as a MPEG-TS In-Reply-To: <46115552.10901@fastwebnet.it> References: <5B4F1D49F1BCDF44B038A96EF8096192012F718A@SIC-CL-EX01.SIC.PT> <46115552.10901@fastwebnet.it> Message-ID: <4b531160704220909q1af8431cr385de7de493ff298@mail.gmail.com> Since mencoder does not handle mpegts container properly can anyone recommend any software for doing this. I only find Windows programs for this and would like to avoid this at all cost. On 4/3/07, Nico Sabbi wrote: > > Pedro Casqueiro wrote: > > Hi, > > > > Is there any way to use MEncoder to generate a MPEG2-TS file? > > > > > > > > Thanks, > > > > Pedro > > > > -of lavf -lavfopts format=mpegts:i_certify_...... but it's a known > fact that the TS it generates is useless > _______________________________________________ > MEncoder-users mailing list > MEncoder-users at mplayerhq.hu > http://lists.mplayerhq.hu/mailman/listinfo/mencoder-users > From rcooley at spamcop.net Sun Apr 22 21:19:16 2007 From: rcooley at spamcop.net (RC) Date: Sun, 22 Apr 2007 12:19:16 -0700 Subject: [MEncoder-users] which audio codec? In-Reply-To: <462B2C14.4020503@brutele.be> References: <462B2C14.4020503@brutele.be> Message-ID: <20070422121916.50021e95.rcooley@spamcop.net> On Sun, 22 Apr 2007 11:34:12 +0200 bayrouni wrote: > I read something about aac, but aac is not free, isn't it? and it will > lose the number of channels, isn't it? Very few audio codecs are patent free. That's life. > and what about using musepack or flac format, aren'nt they good > choice ? It's not a good idea to use musepack in any container. It's not a normal, packetized format, though that seems to be planned. FLAC is lossless, meaning your audio will be huge. > The ideal (for me) is to keep the number of channels if possible, but > it not mandatory. I care about quality... You can't get better quality than keeping the AC3. If it takes too much space, you can try other codecs, but very few are efficient at encoding more than 2 channels. From bayrouni at brutele.be Sun Apr 22 22:48:56 2007 From: bayrouni at brutele.be (bayrouni) Date: Sun, 22 Apr 2007 22:48:56 +0200 Subject: [MEncoder-users] which audio codec? In-Reply-To: <20070422121916.50021e95.rcooley@spamcop.net> References: <462B2C14.4020503@brutele.be> <20070422121916.50021e95.rcooley@spamcop.net> Message-ID: <462BCA38.70408@brutele.be> RC wrote: > On Sun, 22 Apr 2007 11:34:12 +0200 > bayrouni wrote: > >> I read something about aac, but aac is not free, isn't it? and it will >> lose the number of channels, isn't it? > > Very few audio codecs are patent free. That's life. > >> and what about using musepack or flac format, aren'nt they good >> choice ? > > It's not a good idea to use musepack in any container. It's not a > normal, packetized format, though that seems to be planned. > > FLAC is lossless, meaning your audio will be huge. >> The ideal (for me) is to keep the number of channels if possible, but >> it not mandatory. I care about quality... > > You can't get better quality than keeping the AC3. If it takes too much > space, you can try other codecs, but very few are efficient at encoding > more than 2 channels. > _______________________________________________ > Thank you for all this answers. Okay, I just decided to keep high quality videos with ac3, and encode the others using only 2 channels. I think, I shall use ogg format for this second proposal. Other suggestions are welcome Thank you again From kmurray at gmail.com Mon Apr 23 03:29:55 2007 From: kmurray at gmail.com (Ken) Date: Sun, 22 Apr 2007 18:29:55 -0700 Subject: [MEncoder-users] Encapsulation the output as a MPEG-TS In-Reply-To: <4b531160704220909q1af8431cr385de7de493ff298@mail.gmail.com> References: <5B4F1D49F1BCDF44B038A96EF8096192012F718A@SIC-CL-EX01.SIC.PT> <46115552.10901@fastwebnet.it> <4b531160704220909q1af8431cr385de7de493ff298@mail.gmail.com> Message-ID: On 4/22/07, Ken Hilliard wrote: > Since mencoder does not handle mpegts container properly can anyone > recommend any software for doing this. I only find Windows programs for this > and would like to avoid this at all cost. Please don't top post! Please read http://en.wikipedia.org/wiki/Top-post#Inline_replying before posting to any more mailing lists like this one. That aside, you may want to have a look at Avidemux. http://fixounet.free.fr/avidemux/ It may already be packaged for your distro. -- Ken echo 16i[q]sa[ln0=aln100%Pln100/snlbx]sbA0D4D465452snlb xq |dc From lnovak at dragon.unideb.hu Sun Apr 22 14:38:27 2007 From: lnovak at dragon.unideb.hu (Levente =?ISO-8859-1?Q?Nov=E1k?=) Date: Sun, 22 Apr 2007 14:38:27 +0200 Subject: [MEncoder-users] How to best optimise the CPU load while grabbing In-Reply-To: References: <1177156410.5332.14.camel@localhost> Message-ID: <1177245507.10466.0.camel@localhost> On Sat, 2007-04-21 at 22:08 -0500, Joey Parrish wrote: > On 4/21/07, Levente Nov?k wrote: > > I have the following problem: I would like to decrease the CPU load on > > my system wile grabbing from v4l2, without having to buy a new mobo/CPU. > > I have actually a Celeron D 3.06 MHz, 512 MB of DDR2 533 MHz RAM and a > > SATA I hard drive. Target format would be raw DV (if only it would work > > under MEncoder...), or DV Avi,or MPEG2, both interlaced. > > Try lower bitrate for output, lower resolution (can decrease size of > memcopies), or cheaper codecs. > > --Joey Thanks, I am well aware of this. What I would know is whether there is some magic :) switch or something else which could improve the CPU load while grabbing with the same resolution and codecs I used. Levente From scostas at det.uvigo.es Mon Apr 23 11:49:24 2007 From: scostas at det.uvigo.es (scostas) Date: Mon, 23 Apr 2007 11:49:24 +0200 Subject: [MEncoder-users] convert to AMV format Message-ID: <462C8124.90901@det.uvigo.es> Hi all: I bought a cheap MP4 player, which only support video in AMV (Anime Media Video) format. Is possible to use Mencoder to create this kind of videos? (maybe starting from an MJPEG AVI and changing the header?). Thanks. From cyberwizzard at sportlaan.adsl.utwente.nl Mon Apr 23 15:39:27 2007 From: cyberwizzard at sportlaan.adsl.utwente.nl (Berend Dekens) Date: Mon, 23 Apr 2007 15:39:27 +0200 Subject: [MEncoder-users] Problems with mencoder on Win32 and MKV Message-ID: <462CB70F.6010501@sportlaan.adsl.utwente.nl> Hi, I'm using Transcode360 for my Xbox360 to view video on my TV. Some stuff is encoded in Matroska (most of which is x264) and I can't get this content to work. It either runs heavely out of sync (seconds out of sync after seconds of video) and it looks like the video is playing too fast. With some files it runs fine for a while and then cuts out with messages about having too many packets in the audio buffer. An example of how the mencoder is executed under windows MCE: mencoder.exe -quiet -delay 0 -oac lavc -srate 48000 -af lavcresample=48000 -of mpeg -mpegopts format=dvd -o "C:\Program Files\Transcode360\Buffer\Pumpkin Scissors - 03 (1024x576 h264).360" -ovc lavc -vf scale=720:404,expand=784:432,harddup -lavcopts vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=8000:keyint=15:aspect=16/9:acodec=mp2:abitrate=320 -ofps 24000/1001 -slang eng -subpos 92 -alang jp -alang jpn "Pumpkin Scissors - 03 (1024x576 h264).mkv" I tried playing with the options and I can't get it to work. I replaced the stock mencoder.exe with numerous newer builds, some of which seemed to improve the situation a little, other only made it worse. What is going wrong? The strange thing is that everyone seems to use MKV without problems... So why do I run into a brick wall time after time (this has been broken for over a year now). Regards, Berend Dekens From rcooley at spamcop.net Mon Apr 23 15:54:55 2007 From: rcooley at spamcop.net (RC) Date: Mon, 23 Apr 2007 06:54:55 -0700 Subject: [MEncoder-users] How to best optimise the CPU load while grabbing In-Reply-To: <1177245507.10466.0.camel@localhost> References: <1177156410.5332.14.camel@localhost> <1177245507.10466.0.camel@localhost> Message-ID: <20070423065455.70840201.rcooley@spamcop.net> On Sun, 22 Apr 2007 14:38:27 +0200 Levente Nov?k wrote: > What I would know is whether there is some magic :) switch or > something else which could improve the CPU load while grabbing with > the same resolution and codecs I used. If you actually said what command-line options you're using, someone might be able to offer a few tips. From joey.parrish at gmail.com Mon Apr 23 17:58:23 2007 From: joey.parrish at gmail.com (Joey Parrish) Date: Mon, 23 Apr 2007 10:58:23 -0500 Subject: [MEncoder-users] Problems with mencoder on Win32 and MKV In-Reply-To: <462CB70F.6010501@sportlaan.adsl.utwente.nl> References: <462CB70F.6010501@sportlaan.adsl.utwente.nl> Message-ID: On 4/23/07, Berend Dekens wrote: > I'm using Transcode360 for my Xbox360 to view video on my TV. Some stuff > is encoded in Matroska (most of which is x264) and I can't get this > content to work. It either runs heavely out of sync (seconds out of sync > after seconds of video) and it looks like the video is playing too fast. > With some files it runs fine for a while and then cuts out with messages > about having too many packets in the audio buffer. > > An example of how the mencoder is executed under windows MCE: > mencoder.exe -quiet -delay 0 -oac lavc -srate 48000 -af > lavcresample=48000 -of mpeg -mpegopts format=dvd -o "C:\Program > Files\Transcode360\Buffer\Pumpkin Scissors - 03 (1024x576 h264).360" > -ovc lavc -vf scale=720:404,expand=784:432,harddup -lavcopts > vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=8000:keyint=15:aspect=16/9:acodec=mp2:abitrate=320 > -ofps 24000/1001 -slang eng -subpos 92 -alang jp -alang jpn "Pumpkin > Scissors - 03 (1024x576 h264).mkv" > > I tried playing with the options and I can't get it to work. I replaced > the stock mencoder.exe with numerous newer builds, some of which seemed > to improve the situation a little, other only made it worse. > What is going wrong? The strange thing is that everyone seems to use MKV > without problems... So why do I run into a brick wall time after time > (this has been broken for over a year now). Try another audio codec (not -oac lavc). There are bugs there that have yet to be tracked down and fixed. For me, anything I produce with -oac lavc is broken in that exact way. Alternately, you can play the broken file back correctly with mplayer -nobps or mplayer -demuxer lavf, I think. --Joey From cyberwizzard at sportlaan.adsl.utwente.nl Mon Apr 23 19:10:56 2007 From: cyberwizzard at sportlaan.adsl.utwente.nl (Berend Dekens) Date: Mon, 23 Apr 2007 19:10:56 +0200 Subject: [MEncoder-users] Problems with mencoder on Win32 and MKV In-Reply-To: References: <462CB70F.6010501@sportlaan.adsl.utwente.nl> Message-ID: <462CE8A0.6050804@sportlaan.adsl.utwente.nl> Joey Parrish schreef: > On 4/23/07, Berend Dekens wrote: > >> I'm using Transcode360 for my Xbox360 to view video on my TV. Some stuff >> is encoded in Matroska (most of which is x264) and I can't get this >> content to work. It either runs heavely out of sync (seconds out of sync >> after seconds of video) and it looks like the video is playing too fast. >> With some files it runs fine for a while and then cuts out with messages >> about having too many packets in the audio buffer. >> >> An example of how the mencoder is executed under windows MCE: >> mencoder.exe -quiet -delay 0 -oac lavc -srate 48000 -af >> lavcresample=48000 -of mpeg -mpegopts format=dvd -o "C:\Program >> Files\Transcode360\Buffer\Pumpkin Scissors - 03 (1024x576 h264).360" >> -ovc lavc -vf scale=720:404,expand=784:432,harddup -lavcopts >> vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=8000:keyint=15:aspect=16/9:acodec=mp2:abitrate=320 >> -ofps 24000/1001 -slang eng -subpos 92 -alang jp -alang jpn "Pumpkin >> Scissors - 03 (1024x576 h264).mkv" >> >> I tried playing with the options and I can't get it to work. I replaced >> the stock mencoder.exe with numerous newer builds, some of which seemed >> to improve the situation a little, other only made it worse. >> What is going wrong? The strange thing is that everyone seems to use MKV >> without problems... So why do I run into a brick wall time after time >> (this has been broken for over a year now). >> > > Try another audio codec (not -oac lavc). There are bugs there that > have yet to be tracked down and fixed. For me, anything I produce > with -oac lavc is broken in that exact way. Alternately, you can play > the broken file back correctly with mplayer -nobps or mplayer -demuxer > lavf, I think. > > --Joey > _____________ The main problem is that the Xbox supports MPEG(2) and WMV and thats it (3 cores and it still won't play anything else.... but thats a different issue) so I'm stuck with MPEG2 sound. I could try PCM and see if that solved the encoding issues and see if that works... I can't find any manual anywhere tbh, lavc seems to be a certain processing library if I'm not mistaken for video and audio. So why does it have issues with MKV files? Because everything in a AVI container works fine. Berend From joey.parrish at gmail.com Tue Apr 24 17:25:10 2007 From: joey.parrish at gmail.com (Joey Parrish) Date: Tue, 24 Apr 2007 10:25:10 -0500 Subject: [MEncoder-users] Problems with mencoder on Win32 and MKV In-Reply-To: <462CE8A0.6050804@sportlaan.adsl.utwente.nl> References: <462CB70F.6010501@sportlaan.adsl.utwente.nl> <462CE8A0.6050804@sportlaan.adsl.utwente.nl> Message-ID: On 4/23/07, Berend Dekens wrote: > Joey Parrish schreef: > > Try another audio codec (not -oac lavc). There are bugs there that > > have yet to be tracked down and fixed. For me, anything I produce > > with -oac lavc is broken in that exact way. Alternately, you can play > > the broken file back correctly with mplayer -nobps or mplayer -demuxer > > lavf, I think. > I can't find any manual anywhere tbh, lavc seems to be a certain > processing library if I'm not mistaken for video and audio. So why does > it have issues with MKV files? Because everything in a AVI container > works fine. I didn't say anything about issues with MKV files. I said that -oac lavc may produce problems itself. I cannot get working files with -oac lavc unless I play them back with special options. So if you must have mp2, try another mp2 encoder. Like twolame or toolame. --Joey From null274 at gmail.com Tue Apr 24 22:58:21 2007 From: null274 at gmail.com (=?ISO-8859-1?Q?Alejandro_V=E9lez?=) Date: Tue, 24 Apr 2007 15:58:21 -0500 Subject: [MEncoder-users] How to encode flvs with the highest visualquality possible for Internet Sharing Message-ID: <273677990704241358m515d42b4jae1542a53ed13a6b@mail.gmail.com> I just reeplaced the setting "vbitrate=200" used in the -lavcopts line: vcodec=flv:vbitrate=200:mbd=2:mv0:trell:v4mv:cbp:last_pred=3:predia=2:dia=2:precmp=2:cmp=2:subcmp=2:preme=2 with "vqscale=14" and removed the "turbo" setting, If I'm right turbo enables speed optimizations.. well that gave me a better result, there's less visual distortion in the video playback and the quality seems to be more constant than when using "vbitrate=200". From cnolan at andrew.cmu.edu Wed Apr 25 15:00:45 2007 From: cnolan at andrew.cmu.edu (Christopher Edward Nolan) Date: Wed, 25 Apr 2007 09:00:45 -0400 Subject: [MEncoder-users] Converting (rm | .ram) to Mpeg Message-ID: <462F50FD.4070407@andrew.cmu.edu> I cannot find anything on how to convert downloaded (.rm | .ram) file to an Mpeg, . . . . . I am new to mencoder and do not understand much about audio and video, . . . thank you for your help - chris From comes at naic.edu Wed Apr 25 17:23:18 2007 From: comes at naic.edu (Giacomo Comes) Date: Wed, 25 Apr 2007 11:23:18 -0400 Subject: [MEncoder-users] Converting (rm | .ram) to Mpeg In-Reply-To: <462F50FD.4070407@andrew.cmu.edu> References: <462F50FD.4070407@andrew.cmu.edu> Message-ID: <20070425152318.GB18797@monopoli.naic.edu> On Wed, Apr 25, 2007 at 09:00:45AM -0400, Christopher Edward Nolan wrote: > I cannot find anything on how to convert downloaded (.rm | .ram) file to > an Mpeg, . . . . . http://www.mplayerhq.hu/DOCS/HTML/en/menc-feat-vcd-dvd.html > I am new to mencoder and do not understand much about audio and video, . . . > thank you for your help If you are a totally newbye it may help you a lot the script encode2mpeglight present in the TOOLS directory of MPlayer source tarball. Ciao Giacomo From lnovak at dragon.unideb.hu Wed Apr 25 22:28:08 2007 From: lnovak at dragon.unideb.hu (Levente =?ISO-8859-1?Q?Nov=E1k?=) Date: Wed, 25 Apr 2007 22:28:08 +0200 Subject: [MEncoder-users] Bug: floating point exception when converting to DV Message-ID: <1177532888.9162.18.camel@localhost> I would like to transcode a mpeg2 material to DV (raw DV, not DV Avi), but mencoder gets a floating point exception before writing any frame. This happens with all types of input files when output is set to DV; however, DV Avi works OK (at least it gives playable files). Here is my command line: mencoder birthday.mpg -of lavf -lavfopts \ i_certify_that_my_video_stream_does_not_use_b_frames:format=dv \ -oac pcm -ovc lavc -lavcopts vcodec=dvvideo -o birthday.dv Here is the gdb output: gdb /tmp/trunk/mencoder GNU gdb 6.4.90-debian Copyright (C) 2006 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i486-linux-gnu"...Using host libthread_db library "/ lib/tls/i686/cmov/libthread_db.so.1". (gdb) run -v birthday.mpg -of lavf -lavfopts i_certify_that_my_video_stream_does_not_use_b_frames:format=dv -oac pcm -ovc lavc -lavcopts vcodec=dvvideo -o birthday.dv Starting program: /tmp/trunk/mencoder -v birthday.mpg -of lavf -lavfopts i_certify_that_my_video_stream_does_not_use_b_frames:format=dv -oac pcm -ovc lavc -lavcopts vcodec=dvvideo -o birthday.dv [Thread debugging using libthread_db enabled] [New Thread -1213974848 (LWP 28294)] MEncoder dev-SVN-r23112-4.1.2 (C) 2000-2007 MPlayer Team CPU: Intel(R) Celeron(R) CPU 3.06GHz (Family: 15, Model: 4, Stepping: 1) CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1 Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2 Configuration: --enable-debug=3 init_freetype get_path('font/font.desc') -> '/home/novakl/.mplayer/font/font.desc' font: can't open file: /home/novakl/.mplayer/font/font.desc font: can't open file: /usr/local/share/mplayer/font/font.desc Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay [file] File size is 800323584 bytes STREAM: [file] birthday.mpg STREAM: Description: File STREAM: Author: Albeu STREAM: Comment: based on the code from ??? (probably Arpi) success: format: 0 data: 0x0 - 0x2fb3f800 Checking for YUV4MPEG2 ASF_check: not ASF guid! Checking for NuppelVideo Checking for REAL Checking for SMJPEG Searching demuxer type for filename birthday.mpg ext: .mpg LAVF_check: MPEG PS format Checking for Nullsoft Streaming Video Checking for MOV Checking for VIVO header block 1 size: 0 AVS: avs_check_file - attempting to open file birthday.mpg AVS: File is too big, aborting... Checking for PVA Checking for MPEG-TS... TRIED UP TO POSITION 66800, FOUND 47, packet_size= 0, SEEMS A TS? 0 Checking for LMLM4 Stream Format Invalid packet in LMLM4 stream: ch=0 size=1140851704 LMLM4 Stream Format not found system stream synced at 0xD (13)! ==> Found video stream: 0 ==> Found audio stream: 0 MPEG-PS file format detected. Searching for sequence header... OK! VIDEO: MPEG2 720x576 (aspect 2) 25.000 fps 8000.0 kbps (1000.0 kbyte/s) [V] filefmt:2 fourcc:0x10000002 size:720x576 fps:25.00 ftime:=0.0400 ========================================================================== Opening audio decoder: [mp3lib] MPEG layer-2, layer-3 dec_audio: Allocating 4608 + 65536 = 70144 bytes for output buffer. mp3lib: made decode tables with MMX optimization mp3lib: using SSE optimized decore! MP3lib: init layer2&3 finished, tables done MPEG 1.0, Layer II, 48000 Hz 192 kbit Single-Channel, BPF: 576 Channels: 1, copyright: No, original: Yes, CRC: No, emphasis: 0 AUDIO: 48000 Hz, 2 ch, s16le, 192.0 kbit/12.50% (ratio: 24000->192000) Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3) ========================================================================== [file] File size is 0 bytes STREAM: [file] birthday.dv STREAM: Description: File STREAM: Author: Albeu STREAM: Comment: based on the code from ??? (probably Arpi) ** MUXER_LAVF ***************************************************************** You have certified that your video stream does not contain B frames. REMEMBER: MEncoder's libavformat muxing is presently broken and will generate INCORRECT files in the presence of B frames. Moreover, due to bugs MPlayer will play these INCORRECT files as if nothing were wrong! ******************************************************************************* OK, exit ALLOCATED STREAM N. 1, type=0 Opening video filter: [expand osd=1] Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1 ========================================================================== Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough VDec: vo config request - 720 x 576 (preferred colorspace: Mpeg PES) Trying filter chain: expand lavc Could not find matching colorspace - retrying with -vf scale... Opening video filter: [scale] SwScale params: -1 x -1 (-1=no scaling) Trying filter chain: scale expand lavc The selected video_out device is incompatible with this codec. Try appending the scale filter to your filter list, e.g. -vf spp,scale instead of -vf spp. VDecoder init failed :( Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.4.0b Selected video codec: [mpeg12] vfm: libmpeg2 (MPEG-1 or 2 (libmpeg2)) ========================================================================== ALLOCATED STREAM N. 2, type=1 Building audio filter chain for 48000Hz/2ch/s16le -> 0Hz/0ch/??... [libaf] Adding filter dummy [dummy] Was reinitialized: 48000Hz/2ch/s16le [libaf] Adding filter format [format] Changing sample format from little-endian 16-bit signed int to big-endian 8-bit signed int [dummy] Was reinitialized: 48000Hz/2ch/s16le [format] Changing sample format from little-endian 16-bit signed int to big-endian 8-bit signed int Building audio filter chain for 48000Hz/2ch/s16le -> 48000Hz/2ch/s16le... [dummy] Was reinitialized: 48000Hz/2ch/s16le [format] Changing sample format from little-endian 16-bit signed int to big-endian 8-bit signed int [libaf] Removing filter format [dummy] Was reinitialized: 48000Hz/2ch/s16le VDec: vo config request - 720 x 576 (preferred colorspace: Planar YV12) Trying filter chain: expand lavc VDec: using Planar YV12 as output csp (no 0) Movie-Aspect is 1.33:1 - prescaling to correct movie aspect. VO Config (720x576->768x576,flags=0,'MPlayer',0x32315659) REQ: flags=0x401 req=0x0 videocodec: libavcodec (720x576 fourcc=69767664 [dvvi]) get_path('subfont.ttf') -> '/home/novakl/.mplayer/subfont.ttf' New_Face failed. Maybe the font path is wrong. Please supply the text font file (~/.mplayer/subfont.ttf). subtitle font: load_sub_face failed. *** [lavc] Allocating mp_image_t, 720x576x12bpp YUV planar, 622080 bytes *** [expand] Direct Rendering mp_image_t, 720x576x12bpp YUV planar, 622080 bytes *** [lavc] Allocating mp_image_t, 720x576x12bpp YUV planar, 622080 bytesms 18/45 D/B/S 0/1/0 *** [expand] Direct Rendering mp_image_t, 720x576x12bpp YUV planar, 622080 bytes Muxer frame buffer sending 2 frame(s) to the muxer. A-V:0.004 [0:0] A/Vms 18/33 D/B/S 0/2/0 VIDEO CODEC ID: 0 AUDIO CODEC ID: 10000, TAG: 0 MUXER_LAVF(audio stream) frame_size: 1, scale: 1, sps: 48000, rate: 48000, ctx->block_align = stream->wf->nBlockAlign; 0=4 stream->wf->nAvgBytesPerSec:192000 Writing header... [dv @ 0x862fe48]Can't initialize DV format! Make sure that you supply exactly two streams: video: 25fps or 29.97fps, audio: 2ch/48Khz/PCM (50Mbps allows an optional second audio stream) Program received signal SIGFPE, Arithmetic exception. [Switching to Thread -1213974848 (LWP 28294)] 0x085f46f7 in __divdi3 () (gdb) Backtrace: (gdb) bt #0 0x085f46f7 in __divdi3 () #1 0x081c26b1 in av_frac_add (f=0x8b97a64, incr=) at utils.c:2970 #2 0x081c39d6 in compute_pkt_fields2 (st=0x8b97a40, pkt=0xbfcdc760) at utils.c:2212 #3 0x081c71d6 in av_interleaved_write_frame (s=0x8b88db0, pkt=0xbfcdc760) at utils.c:2325 #4 0x080b3e3c in write_chunk (stream=0x0, len=96000, flags=16, dts=0, pts=0) at muxer_lavf.c:288 #5 0x080ab139 in muxer_write_chunk (s=0x8b97168, len=144000, flags=16, dts=-9.2233720368547758e+18, pts=-9.2233720368547758e+18) at muxer.c:127 #6 0x080a3874 in encode_frame (vf=0x8b92540, pic=, pts=-9.2233720368547758e+18) at ve_lavc.c:802 #7 0x080a3cdc in put_image (vf=0x8b92540, mpi=0x0, pts=-9.2233720368547758e+18) at ve_lavc.c:759 #8 0x080b774b in filter_video (sh_video=0x8b4dd48, frame=0x8b51178, pts=-9.2233720368547758e+18) at dec_video.c:417 #9 0x0807f309 in main (argc=Cannot access memory at address 0x0 ) at mencoder.c:1312 (gdb) Disassemble: (gdb) disass $pc-32 $pc+32 Dump of assembler code from 0x85f46d7 to 0x85f4717: 0x085f46d7 <__divdi3+359>: lock ja 0x85f45f5 <__divdi3+133> 0x085f46de <__divdi3+366>: mov $0x1,%ecx 0x085f46e3 <__divdi3+371>: xor %eax,%eax 0x085f46e5 <__divdi3+373>: jmp 0x85f4600 <__divdi3+144> 0x085f46ea <__divdi3+378>: lea 0x0(%esi),%esi 0x085f46f0 <__divdi3+384>: mov $0x1,%eax 0x085f46f5 <__divdi3+389>: xor %edx,%edx 0x085f46f7 <__divdi3+391>: div %esi 0x085f46f9 <__divdi3+393>: mov %eax,%ecx 0x085f46fb <__divdi3+395>: jmp 0x85f45d8 <__divdi3+104> 0x085f4700 <__divdi3+400>: mov 0xfffffff0(%ebp),%eax 0x085f4703 <__divdi3+403>: movzbl 0xffffffe8(%ebp),%ecx 0x085f4707 <__divdi3+407>: shl %cl,%eax 0x085f4709 <__divdi3+409>: cmp %edi,%eax 0x085f470b <__divdi3+411>: jae 0x85f4691 <__divdi3+289> 0x085f470d <__divdi3+413>: mov 0xffffffc8(%ebp),%ecx 0x085f4710 <__divdi3+416>: xor %eax,%eax 0x085f4712 <__divdi3+418>: dec %ecx 0x085f4713 <__divdi3+419>: jmp 0x85f4600 <__divdi3+144> End of assembler dump. (gdb) Info all registers: (gdb) info all-registers eax 0x1 1 ecx 0x0 0 edx 0x0 0 ebx 0x80befc00 -2134967296 esp 0xbfcdc5f0 0xbfcdc5f0 ebp 0xbfcdc628 0xbfcdc628 esi 0x0 0 edi 0x0 0 eip 0x85f46f7 0x85f46f7 <__divdi3+391> eflags 0x210246 [ PF ZF IF RF ID ] cs 0x73 115 ss 0x7b 123 ds 0x7b 123 es 0x7b 123 fs 0x0 0 gs 0x33 51 st0 -nan(0x47004300470055) (raw 0xffff0047004300470055) st1 -nan(0x1b000b001b0000) (raw 0xffff001b000b001b0000) st2 -nan(0x2100210021002d) (raw 0xffff002100210021002d) st3 -nan(0xfff10001fff10010) (raw 0xfffffff10001fff10010) st4 -nan(0x5fff500050000) (raw 0xffff0005fff500050000) st5 -9223372036854775808 (raw 0xc03e8000000000000000) st6 0 (raw 0x00000000000000000000) ---Type to continue, or q to quit--- st7 0.5 (raw 0x3ffe8000000000000000) fctrl 0x37f 895 fstat 0x420 1056 ftag 0xffff 65535 fiseg 0x73 115 fioff 0x80b3e28 134954536 foseg 0x7b 123 fooff 0xbfcdc760 -1077033120 fop 0x784 1924 xmm0 {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {0x0 }, v8_int16 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0}, uint128 = 0x00000000000000000000000000000000} xmm1 {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {0x0 }, v8_int16 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0}, uint128 = 0x00000000000000000000000000000000} xmm2 {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {0x0 }, v8_int16 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0}, uint128 = 0x00000000000000000000000000000000} xmm3 {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {0x0 }, v8_int16 = {0x0, 0x0, 0x0, 0x0, 0x0, ---Type to continue, or q to quit--- 0x0, 0x0, 0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0}, uint128 = 0x00000000000000000000000000000000} xmm4 {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {0x0 }, v8_int16 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0}, uint128 = 0x00000000000000000000000000000000} xmm5 {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {0x0 }, v8_int16 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0}, uint128 = 0x00000000000000000000000000000000} xmm6 {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {0x0 }, v8_int16 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0}, uint128 = 0x00000000000000000000000000000000} xmm7 {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {0x0 }, v8_int16 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0}, uint128 = 0x00000000000000000000000000000000} mxcsr 0x1f80 [ IM DM ZM OM UM PM ] mm0 {uint64 = 0x47004300470055, v2_int32 = {0x470055, 0x470043}, v4_int16 = {0x55, 0x47, 0x43, 0x47}, v8_int8 = {0x55, 0x0, 0x47, 0x0, 0x43, 0x0, 0x47, 0x0}} mm1 {uint64 = 0x1b000b001b0000, v2_int32 = {0x1b0000, 0x1b000b}, ---Type to continue, or q to quit--- v4_int16 = {0x0, 0x1b, 0xb, 0x1b}, v8_int8 = {0x0, 0x0, 0x1b, 0x0, 0xb, 0x0, 0x1b, 0x0}} mm2 {uint64 = 0x2100210021002d, v2_int32 = {0x21002d, 0x210021}, v4_int16 = {0x2d, 0x21, 0x21, 0x21}, v8_int8 = {0x2d, 0x0, 0x21, 0x0, 0x21, 0x0, 0x21, 0x0}} mm3 {uint64 = 0xfff10001fff10010, v2_int32 = {0xfff10010, 0xfff10001}, v4_int16 = {0x10, 0xfff1, 0x1, 0xfff1}, v8_int8 = {0x10, 0x0, 0xf1, 0xff, 0x1, 0x0, 0xf1, 0xff}} mm4 {uint64 = 0x5fff500050000, v2_int32 = {0x50000, 0x5fff5}, v4_int16 = {0x0, 0x5, 0xfff5, 0x5}, v8_int8 = {0x0, 0x0, 0x5, 0x0, 0xf5, 0xff, 0x5, 0x0}} mm5 {uint64 = 0x8000000000000000, v2_int32 = {0x0, 0x80000000}, v4_int16 = {0x0, 0x0, 0x0, 0x8000}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x80}} mm6 {uint64 = 0x0, v2_int32 = {0x0, 0x0}, v4_int16 = {0x0, 0x0, 0x0, 0x0}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}} mm7 {uint64 = 0x8000000000000000, v2_int32 = {0x0, 0x80000000}, v4_int16 = {0x0, 0x0, 0x0, 0x8000}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x80}} (gdb) Hope this helps to locate the problem. Levente From null274 at gmail.com Wed Apr 25 23:05:41 2007 From: null274 at gmail.com (=?ISO-8859-1?Q?Alejandro_V=E9lez?=) Date: Wed, 25 Apr 2007 16:05:41 -0500 Subject: [MEncoder-users] question when encoding lossless progressive 60 fps to 30fps flash video Message-ID: <273677990704251405j1b4de616u9ac16e96ec7f4b36@mail.gmail.com> I'm looking for how to compensate the loss of motion done by frameskipping when encoding a 60fps progressive lossless or high quality video to a 30fps flash video, is there a filter or a option for compensate the dropped frames? From cyberwizzard at sportlaan.adsl.utwente.nl Thu Apr 26 00:59:11 2007 From: cyberwizzard at sportlaan.adsl.utwente.nl (Berend Dekens) Date: Thu, 26 Apr 2007 00:59:11 +0200 Subject: [MEncoder-users] question when encoding lossless progressive 60 fps to 30fps flash video In-Reply-To: <273677990704251405j1b4de616u9ac16e96ec7f4b36@mail.gmail.com> References: <273677990704251405j1b4de616u9ac16e96ec7f4b36@mail.gmail.com> Message-ID: <462FDD3F.5040504@sportlaan.adsl.utwente.nl> Alejandro V?lez schreef: > I'm looking for how to compensate the loss of motion done by > frameskipping when encoding a 60fps progressive lossless or high > quality video to a 30fps flash video, is there a filter or a option > for compensate the dropped frames? > _______________________________________________ > MEncoder-users mailing list > MEncoder-users at mplayerhq.hu > http://lists.mplayerhq.hu/mailman/listinfo/mencoder-users > Look at the options -noskip, lavcops hardup and lavc softskip - each function is documented describing exactly what it does and when to use it. Regards, Berend Dekens From rcooley at spamcop.net Thu Apr 26 04:44:23 2007 From: rcooley at spamcop.net (RC) Date: Wed, 25 Apr 2007 19:44:23 -0700 Subject: [MEncoder-users] question when encoding lossless progressive 60 fps to 30fps flash video In-Reply-To: <273677990704251405j1b4de616u9ac16e96ec7f4b36@mail.gmail.com> References: <273677990704251405j1b4de616u9ac16e96ec7f4b36@mail.gmail.com> Message-ID: <20070425194423.1546820e.rcooley@spamcop.net> On Wed, 25 Apr 2007 16:05:41 -0500 "Alejandro V?lez" wrote: > is there a filter or a option for compensate the dropped frames? "Compensate" how? From null274 at gmail.com Thu Apr 26 06:06:39 2007 From: null274 at gmail.com (=?ISO-8859-1?Q?Alejandro_V=E9lez?=) Date: Wed, 25 Apr 2007 23:06:39 -0500 Subject: [MEncoder-users] question when encoding lossless progressive 60 fps to 30fps flash video In-Reply-To: <273677990704251405j1b4de616u9ac16e96ec7f4b36@mail.gmail.com> References: <273677990704251405j1b4de616u9ac16e96ec7f4b36@mail.gmail.com> Message-ID: <273677990704252106p155fb027i152da39d637ece44@mail.gmail.com> On 4/25/07, Alejandro V?lez wrote: > I'm looking for how to compensate the loss of motion done by > frameskipping when encoding a 60fps progressive lossless or high > quality video to a 30fps flash video, is there a filter or a option > for compensate the dropped frames? > I'm trying to compensate the loss of motion done by producing a video with the half of frame rate than the original, I think that this video can be an example: http://www.youtube.com/watch?v=O_AwG5Mu0Tk this video maintain motion smoothness even it was reencoded to a less framerate than the original. It looks like blur motion to me, I'm not sure. I saw another where they used the half of framerate and the reencoded video maintains a motion smoothnes closer to the original but it looked different. From Reimar.Doeffinger at stud.uni-karlsruhe.de Thu Apr 26 10:52:24 2007 From: Reimar.Doeffinger at stud.uni-karlsruhe.de (Reimar Doeffinger) Date: Thu, 26 Apr 2007 10:52:24 +0200 Subject: [MEncoder-users] question when encoding lossless progressive 60 fps to 30fps flash video In-Reply-To: <273677990704252106p155fb027i152da39d637ece44@mail.gmail.com> References: <273677990704251405j1b4de616u9ac16e96ec7f4b36@mail.gmail.com> <273677990704252106p155fb027i152da39d637ece44@mail.gmail.com> Message-ID: <20070426085223.GB31818@rz.uni-karlsruhe.de> Hello, On Wed, Apr 25, 2007 at 11:06:39PM -0500, Alejandro V?lez wrote: [...] > this video maintain motion smoothness even it was reencoded to a less > framerate than the original. It looks like blur motion to me, I'm not > sure. I saw another where they used the half of framerate and the > reencoded video maintains a motion smoothnes closer to the original > but it looked different. It can't really maintain smooth motion, you can at best blur over it, and I'm certain quite a few people will hate you for blurring things (at least I tend to strongly notice bluring but usually don't care about low fps - as long as it is constant). Anyway, have a look at temporal denoising, e.g. -vf hqdn3d, that should provide for some kind of motion blur effect. And check if the result is better if you have softskip before or after it. Greetings, Reimar Doeffinger From jrrandall at gmail.com Thu Apr 26 16:12:05 2007 From: jrrandall at gmail.com (Justin Randall) Date: Thu, 26 Apr 2007 10:12:05 -0400 Subject: [MEncoder-users] Encoding filters Message-ID: <14a0d6050704260712l6f57cf9p44e8f942526ace9d@mail.gmail.com> Hi everyone, I am trying to give up my dependency for the excellent AviSynth (because I want to stop using Windows) for video pre-processing. I need your help. My question to you experts out there is are their any pre-processing filters built into mencoder that are roughly equivalent to Donald Graft's Decomb package? Specifically the Telecide filter for inverse teleclining NTSC video sources 29.97 -> 23.97 FPS. I stumbled across the -vf detc option but I don't know if this is the same or not. The other avisynth filter that I am completely hooked on is RemoveGrain for cleaning up the picture. The same question... is there a mencoder option that does the equivalent of this filter? I have been using these settings for those who are familiar with AviSynth: crop(24,0,704,480) Telecide(guide=1).Decimate() RemoveGrain(mode=1) LanczosResize(640,480) I assume that it makes sense to crop first, then do the filter processing, then resize? I am essentially looking for the mencoder equivalent for these commands. I saw in the documentation that Lanczos scaling is invoked with -sws 9, but I am not sure about the noise filtering and the inverse telecline options. Any help would be appreciated! I've been reading through the documentation at http://www.mplayerhq.hu/DOCS/man/en/mplayer.1.html and there are so many options that I don't know where to begin for this. Thanks, Justin From nsabbi at email.it Thu Apr 26 16:22:53 2007 From: nsabbi at email.it (Nico Sabbi) Date: Thu, 26 Apr 2007 16:22:53 +0200 Subject: [MEncoder-users] Encoding filters In-Reply-To: <14a0d6050704260712l6f57cf9p44e8f942526ace9d@mail.gmail.com> References: <14a0d6050704260712l6f57cf9p44e8f942526ace9d@mail.gmail.com> Message-ID: <4630B5BD.2070203@email.it> Justin Randall wrote: >Hi everyone, > > >The other avisynth filter that I am completely hooked on is >RemoveGrain for cleaning up the picture. The same question... is there >a mencoder option that does the equivalent of this filter? > >I have been using these settings for those who are familiar with AviSynth: > >crop(24,0,704,480) > > crop >Telecide(guide=1).Decimate() > > pullup or filmdint or detc, but there are more >RemoveGrain(mode=1) > > hqdn3d >LanczosResize(640,480) > > scale with -sws 9 >I assume that it makes sense to crop first, then do the filter >processing, then resize? I am essentially looking for the mencoder >equivalent for these commands. I saw in the documentation that Lanczos >scaling is invoked with -sws 9, but I am not sure about the noise >filtering and the inverse telecline options. Any help would be >appreciated! > -vf crop,pullup,hqdn3d,softskip,scale seems a sane chain to me >I've been reading through the documentation at >http://www.mplayerhq.hu/DOCS/man/en/mplayer.1.html and there are so >many options that I don't know where to begin for this. > > > it's all explained in the man page -- Email.it, the professional e-mail, gratis per te: http://www.email.it/f Sponsor: Logos Finanziaria SPA. Societ? di credito ad erogazione diretta. Fino a 30.000 euro in 24 ore! Clicca e scopri come * Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=2909&d=26-4 From jrrandall at gmail.com Thu Apr 26 16:54:46 2007 From: jrrandall at gmail.com (Justin Randall) Date: Thu, 26 Apr 2007 10:54:46 -0400 Subject: [MEncoder-users] Encoding filters In-Reply-To: <4630B5BD.2070203@email.it> References: <14a0d6050704260712l6f57cf9p44e8f942526ace9d@mail.gmail.com> <4630B5BD.2070203@email.it> Message-ID: <14a0d6050704260754r1a300ffdt148edd797c310679@mail.gmail.com> Thanks for the quick response Nico, I will take this approach. Is it typically better to crop,scale,filter or crop,filter,scale as a general rule? On 4/26/07, Nico Sabbi wrote: > Justin Randall wrote: > > >Hi everyone, > > > > > >The other avisynth filter that I am completely hooked on is > >RemoveGrain for cleaning up the picture. The same question... is there > >a mencoder option that does the equivalent of this filter? > > > >I have been using these settings for those who are familiar with AviSynth: > > > >crop(24,0,704,480) > > > > > crop > > >Telecide(guide=1).Decimate() > > > > > pullup or filmdint or detc, but there are more > > >RemoveGrain(mode=1) > > > > > hqdn3d > > >LanczosResize(640,480) > > > > > scale with -sws 9 > > >I assume that it makes sense to crop first, then do the filter > >processing, then resize? I am essentially looking for the mencoder > >equivalent for these commands. I saw in the documentation that Lanczos > >scaling is invoked with -sws 9, but I am not sure about the noise > >filtering and the inverse telecline options. Any help would be > >appreciated! > > > -vf crop,pullup,hqdn3d,softskip,scale seems a sane chain to me > > >I've been reading through the documentation at > >http://www.mplayerhq.hu/DOCS/man/en/mplayer.1.html and there are so > >many options that I don't know where to begin for this. > > > > > > > it's all explained in the man page > > > -- > Email.it, the professional e-mail, gratis per te: http://www.email.it/f > > Sponsor: > Logos Finanziaria SPA. Societ? di credito ad erogazione diretta. Fino a 30.000 euro in 24 ore! Clicca e scopri come > * > Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=2909&d=26-4 > > _______________________________________________ > MEncoder-users mailing list > MEncoder-users at mplayerhq.hu > http://lists.mplayerhq.hu/mailman/listinfo/mencoder-users > -- Justin Randall 617.733.4107 From nsabbi at email.it Thu Apr 26 16:59:56 2007 From: nsabbi at email.it (Nico Sabbi) Date: Thu, 26 Apr 2007 16:59:56 +0200 Subject: [MEncoder-users] Encoding filters In-Reply-To: <14a0d6050704260754r1a300ffdt148edd797c310679@mail.gmail.com> References: <14a0d6050704260712l6f57cf9p44e8f942526ace9d@mail.gmail.com> <4630B5BD.2070203@email.it> <14a0d6050704260754r1a300ffdt148edd797c310679@mail.gmail.com> Message-ID: <4630BE6C.60407@email.it> Justin Randall wrote: >Thanks for the quick response Nico, I will take this approach. Is it >typically better to crop,scale,filter or crop,filter,scale as a >general rule? > > > don't top post, please. Scale should always be the last filter because it's probably the most lossy -- Email.it, the professional e-mail, gratis per te: http://www.email.it/f Sponsor: Vendi l'auto? La moto? La barca? Il Camper? Affitti un appartamento? * Per concludere i tuoi affari pubblica gli annunci con AdBoom.it! Facile. Veloce. Gratuito Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=6419&d=26-4 From jrrandall at gmail.com Thu Apr 26 20:10:28 2007 From: jrrandall at gmail.com (Justin Randall) Date: Thu, 26 Apr 2007 14:10:28 -0400 Subject: [MEncoder-users] Encoding filters In-Reply-To: <4630BE6C.60407@email.it> References: <14a0d6050704260712l6f57cf9p44e8f942526ace9d@mail.gmail.com> <4630B5BD.2070203@email.it> <14a0d6050704260754r1a300ffdt148edd797c310679@mail.gmail.com> <4630BE6C.60407@email.it> Message-ID: <14a0d6050704261110waaa5951rd11ee0a5c56d868e@mail.gmail.com> Sorry Nico I have one more follow up question. I got this section from the manual pages... -vf pullup is designed to inverse-telecine telecined material while leaving progressive data alone. In order to work properly, pullup must be followed by the softskip filter or else MEncoder will crash. pullup is, however, the cleanest and most accurate method available for encoding both telecine and "mixed progressive and telecine". I noticed that you put the hqdn3d cleaner in between the pullup and the softskip. Is there a particular reason for this? Sorry for my ignorance but the man pages say to specifically follow pullup with softskip, and I saw that you have hqdn3d sandwiched between them, which I assume was for a specific reason. Thanks, Justin From rcooley at spamcop.net Thu Apr 26 21:12:22 2007 From: rcooley at spamcop.net (RC) Date: Thu, 26 Apr 2007 12:12:22 -0700 Subject: [MEncoder-users] Encoding filters In-Reply-To: <14a0d6050704261110waaa5951rd11ee0a5c56d868e@mail.gmail.com> References: <14a0d6050704260712l6f57cf9p44e8f942526ace9d@mail.gmail.com> <4630B5BD.2070203@email.it> <14a0d6050704260754r1a300ffdt148edd797c310679@mail.gmail.com> <4630BE6C.60407@email.it> <14a0d6050704261110waaa5951rd11ee0a5c56d868e@mail.gmail.com> Message-ID: <20070426121222.788c34f4.rcooley@spamcop.net> On Thu, 26 Apr 2007 14:10:28 -0400 "Justin Randall" wrote: > the man pages say to specifically follow pullup with softskip, and I > saw that you have hqdn3d sandwiched between them, "follow" doesn't mean "immedately" after. It just means it has to be in the filter chain, and NOT before pullup. hqdn3d also benefits from softskip following it. Also, if you're encoding with any lavc video codecs, you should look at "nr" instead of the hqdn3d filter. From phil at slug.org Thu Apr 26 21:30:02 2007 From: phil at slug.org (Phil Ehrens) Date: Thu, 26 Apr 2007 12:30:02 -0700 Subject: [MEncoder-users] Encoding filters In-Reply-To: <20070426121222.788c34f4.rcooley@spamcop.net> References: <14a0d6050704260712l6f57cf9p44e8f942526ace9d@mail.gmail.com> <4630B5BD.2070203@email.it> <14a0d6050704260754r1a300ffdt148edd797c310679@mail.gmail.com> <4630BE6C.60407@email.it> <14a0d6050704261110waaa5951rd11ee0a5c56d868e@mail.gmail.com> <20070426121222.788c34f4.rcooley@spamcop.net> Message-ID: <20070426193002.GA19931@webserver> RC wrote: > On Thu, 26 Apr 2007 14:10:28 -0400 > "Justin Randall" wrote: > > > the man pages say to specifically follow pullup with softskip, and I > > saw that you have hqdn3d sandwiched between them, > > "follow" doesn't mean "immedately" after. It just means it has to be in > the filter chain, and NOT before pullup. > > hqdn3d also benefits from softskip following it. > > Also, if you're encoding with any lavc video codecs, you should look at > "nr" instead of the hqdn3d filter. Unless you are encoding anime, where hqdn3d can do things that nr cannot. From robert.current at gmail.com Sat Apr 28 03:06:00 2007 From: robert.current at gmail.com (Robert Current) Date: Fri, 27 Apr 2007 18:06:00 -0700 Subject: [MEncoder-users] US OTA-HD scripts or flags? Message-ID: I'm wondering if someone can suggest some scripts, or even flags, to convert/downsample files correctly. I have a MythTV system that records ATSC (American standard) Over the Air High Definition (OTA-HD), and the files are HUGE and to big to play on my computer. Recording is fine, playback is not working. There are basically two down conversions I'm trying to do, convert the captured mpeg2 1920x1080 to an mp4 1280x720 @30fps if it's actually an HD broadcast. The second one is to take the mpeg2 1920x1080 and convert it down to a NTSC SD like 720x480 @30fps. I've borrowed someone elses command line, and it only get's me as far as a smaller mpeg2, and I'm pretty sure I'm using some of the flags wrong... Anyway, here's I'm currently using: mencoder -vf \ kerndeint,softskip,scale=1280:720,harddup \ -ofps 30000/1001 -aspect 1.7777 -ovc lavc -lavcopts \ vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9600:\ vbitrate=4771000:keyint=18:turbo:trell:dc=10:autoaspect=1 \ -oac lavc -lavcopts acodec=ac3:abitrate=192 -of mpeg \ -o "$1" "$2" and mencoder -vf \ kerndeint,softskip,crop=960:720:160:0,scale=720:480,harddup \ -ofps 30000/1001 -aspect 1.7777 -ovc lavc -lavcopts \ vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9600:\ vbitrate=4771000:keyint=18:turbo:trell:dc=10:autoaspect=1 \ -oac lavc -lavcopts acodec=ac3:abitrate=192 -of mpeg \ -o "$1" "$2" Can someone point me to a better way to do this? Thanks, Rob C. From robert.current at gmail.com Sat Apr 28 06:00:19 2007 From: robert.current at gmail.com (Robert Current) Date: Fri, 27 Apr 2007 21:00:19 -0700 Subject: [MEncoder-users] Bonus Round: US OTA-HD scripts or flags? Message-ID: On 4/27/07, Robert Current wrote: > There are basically two down conversions I'm trying to do, convert the > captured mpeg2 1920x1080 to an mp4 1280x720 @30fps if it's actually an > HD broadcast. > > The second one is to take the mpeg2 1920x1080 and convert it down to a > NTSC SD like 720x480 @30fps. The above two would be great, but here's the third "bonus round" one I am also wondering about... I have another video capture card, a Hauppauge PVR-150, working great, capturing and deleting commercials.... thanks to this script: http://www.mythtv.org/wiki/index.php/Removing_Commercials The output is a 4:3 format 480x480 video file that midentify calls: NuppelVideo file format detected. ID_VIDEO_ID=0 ID_AUDIO_ID=0 ID_FILENAME=/myth/tv/1056_20070421090000.mpg ID_DEMUXER=nuv ID_VIDEO_FORMAT=DIVX ID_VIDEO_BITRATE=13200000 ID_VIDEO_WIDTH=480 ID_VIDEO_HEIGHT=480 ID_VIDEO_FPS=29.970 ID_VIDEO_ASPECT=0.0000 ID_AUDIO_FORMAT=85 ID_AUDIO_BITRATE=1024000 ID_AUDIO_RATE=48000 ID_AUDIO_NCH=2 ...ok... So, say that's a letter box movie, recorded on (USA) cable TV, and I'd be happy to transcode/convert it to a 16:9 file croping the upper and lower black parts out. How about that one? Of course, that's not going to save me much file space, and my first to questions are WAY higher in priority. But I'm guessing I'm not the only one who would like to do these three things... scripted maybe, a OTA-HD-to-SD, and OTA-HD-to-1280x720, and SD-480x480-to-720x408 scripts? From spectral_2001 at yahoo.com Sat Apr 28 09:35:53 2007 From: spectral_2001 at yahoo.com (Galen Papkov) Date: Sat, 28 Apr 2007 00:35:53 -0700 (PDT) Subject: [MEncoder-users] Issue creating avi from png's on an intel mac Message-ID: <382963.5075.qm@web43145.mail.sp1.yahoo.com> I have a bunch of png images I want to put together to make an avi movie with. When I use the following line /Applications/Mencoder\ OS\ X.app/Contents/Resources/mencoder mf://*.png -mf fps=75:type=png -ovc lavc -oac copy -o mypngmovie.avi I see the following... Using GNU internationalization Original domain: messages Original dirname: /usr/local/share/locale Current domain: mplayer Current dirname: /usr/local/share/locale MEncoder dev-CVS-030602-20:55-3.1 (C) 2000-2003 Arpad Gereoffy (see DOCS) AltiVec found Reading /Users/gpapkov/.mplayer/codecs.conf: can't open '/Users/gpapkov/.mplayer/codecs.conf': No such file or directory Reading /usr/local/etc/mplayer/codecs.conf: can't open '/usr/local/etc/mplayer/codecs.conf': No such file or directory Using built-in default codecs.conf File not found: 'frameno.avi' Failed to open frameno.avi Reading config file /Users/gpapkov/.mplayer/mencoder: No such file or directory Unknown protocol 'mf' Unable to open URL: mf://*.png success: format: 16 data: 0x0 - 0x0 [demuxer] mf support. [mf] search expr: *.png [mf] number of files: 461 (1844) [V] filefmt:16 fourcc:0x474E504D size:0x0 fps:75.00 ftime:=0.0133 Opening video filter: [expand osd=1] Expand: -1 x -1, -1 ; -1 (-1=autodetect) osd: 1 ========================================================================== Requested video codec family [mpng] (vfm=mpng) not available (enable it at compilation) *** Try to upgrade /Users/gpapkov/.mplayer/codecs.conf from etc/codecs.conf *** If it still does not work, read DOCS/codecs.html! Cannot find codec matching selected -vo and video format 0x474E504D. ========================================================================== ...and then it exits. I am new to bash scripting and using mencoder, so if anyone can help me out, I'd really appreciate it. Thanks. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From Reimar.Doeffinger at stud.uni-karlsruhe.de Sat Apr 28 09:59:27 2007 From: Reimar.Doeffinger at stud.uni-karlsruhe.de (Reimar =?iso-8859-1?Q?D=F6ffinger?=) Date: Sat, 28 Apr 2007 09:59:27 +0200 Subject: [MEncoder-users] Issue creating avi from png's on an intel mac In-Reply-To: <382963.5075.qm@web43145.mail.sp1.yahoo.com> References: <382963.5075.qm@web43145.mail.sp1.yahoo.com> Message-ID: <20070428075927.GA2229@1und1.de> Hello, On Sat, Apr 28, 2007 at 12:35:53AM -0700, Galen Papkov wrote: [...] > MEncoder dev-CVS-030602-20:55-3.1 (C) 2000-2003 Arpad Gereoffy (see DOCS) Your problem is that, unlike red wine, software does not get better by getting older... Your version is 4!!! years old. Alternatively install libpng and make sure MPlayer is built against it. Greetings, Reimar D?ffinger From nicolas.george at ens.fr Mon Apr 30 11:29:31 2007 From: nicolas.george at ens.fr (Nicolas George) Date: Mon, 30 Apr 2007 11:29:31 +0200 Subject: [MEncoder-users] Codecs and fourcc supported out-of-the-box Message-ID: <20070430092931.GA17470@clipper.ens.fr> Hi. When encoding a video that needs to be seen easily by unexperienced users, a lot of compatibility issues are resolved by just changing the fourcc. Therefore, I am wondering: Did someone ever bother to test and sum up on a web page the formats/codecs/fourcc that can be read out-of-the-box by various systems (windows, macos, etc.)? Regards, -- Nicolas George -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 185 bytes Desc: Digital signature URL: From joey.parrish at gmail.com Mon Apr 30 22:34:59 2007 From: joey.parrish at gmail.com (Joey Parrish) Date: Mon, 30 Apr 2007 15:34:59 -0500 Subject: [MEncoder-users] Codecs and fourcc supported out-of-the-box In-Reply-To: <20070430092931.GA17470@clipper.ens.fr> References: <20070430092931.GA17470@clipper.ens.fr> Message-ID: On 4/30/07, Nicolas George wrote: > When encoding a video that needs to be seen easily by unexperienced users, a > lot of compatibility issues are resolved by just changing the fourcc. > Therefore, I am wondering: > > Did someone ever bother to test and sum up on a web page the > formats/codecs/fourcc that can be read out-of-the-box by various systems > (windows, macos, etc.)? Not that I'm aware of, but I've always had good luck with AVI container, cbr mp3 audio, and mpeg4 video with DIVX fourcc. --Joey From DrewB at united-systems.com Mon Apr 30 21:17:48 2007 From: DrewB at united-systems.com (Drew Burchett) Date: Mon, 30 Apr 2007 14:17:48 -0500 Subject: [MEncoder-users] Problems with output file size Message-ID: <1E75E79B854C814784D0E8C5BA55AF76010793EF@uss2k01.united-systems.local> I am using mencoder to convert a group of AVIs into MPG format suitable for burning onto DVD. To accomplish this, I am using the following command line: mencoder -channels 6 -oac lavc -ovc lavc -of mpeg -mpegopts format=dvd -vf scale=720:480,harddup -srate 48000 -af lavcresample=48000 -lavcopts vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=5000:vstri ct=0:keyint=15:acodec=ac3:abitrate=384:aspect=4/3 -ofps 30000/1001 "$inputFile" -o "$outputFile" The problem is that the resulting file is huge. Two one-hour shows will completely fill a normal sized DVD. When I run the same file through AVIDemux, the output is much smaller with no noticeable drop in quality. However, I don't know what parameters AVIDemux is changing. Could anyone tell me what to adjust in the above command line to considerably reduce my output file size? Thanks, Drew Burchett United Systems & Software Ph: (270)527-3293 Fax: (270)527-3132 -- CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. -- This message has been scanned for viruses and dangerous content by MailScanner and is believed to be clean.