I used: .ogg audio file *.png images for video ran: mencoder mf://*.png -delay 20 -mf w=320:h=240:fps=5:type=png -ovc copy -audiofile Open_Studios_theme.ogg -oac copy -o test.avi Now, what do I change in command to convert to new.mp4? $ mencoder test.avi -o new.mpg -ofps 25 -vf scale=352:288,harddup -of lavf -lavfopts format=mpg:i_certify_that_my_video_stream_does_not_use_b_frames -oac lavc -lavcopts acodec=mp2:abitrate=224 -ovc lavc -lavcopts vcodec=mpeg1video:vrc_buf_size=327:keyint=15:vrc_maxrate=1152:vbitrate=1152:vmax_b_frames=0 The above command created a .mpg movie. I want to make the .avi file compatible with as many players as possible. I am computer-challenged, and my efforts to add mp4creator have thus far been futile. Can I use mencoder, or not? :) Thanks, Tom
--- Tom Poe <tompoe@fngi.net> wrote:
I used: .ogg audio file *.png images for video ran: mencoder mf://*.png -delay 20 -mf w=320:h=240:fps=5:type=png -ovc copy -audiofile Open_Studios_theme.ogg -oac copy -o test.avi
AFAIR, you generated file here test.avi is already broken because there is not standard way to store ogg in avi.
Now, what do I change in command to convert to new.mp4? $ mencoder test.avi -o new.mpg -ofps 25 -vf scale=352:288,harddup -of lavf -lavfopts format=mpg:i_certify_that_my_video_stream_does_not_us>e_b_frames -oac lavc -lavcopts acodec=mp2:abitrate=224 -ovc lavc -lavcopts
vcodec=mpeg1video:vrc_buf_size=327:keyint=15:vrc_maxrate=1152:vbitrate=1152:vmax_b_frames=0
The above command created a .mpg movie. I want to make the .avi file compatible with as many players as possible. I am computer-challenged, and my efforts to add mp4creator have thus far been futile. Can I use mencoder, or not? :) Thanks, Tom
I do not really understand you here. Do you want you final file to be .avi, .mpg or .mp4?. And is *compatibility with many players* your *only* objective or you do have others? DEF ____________________________________________________________________________________ Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail beta. http://new.mail.yahoo.com
DEF wrote:
--- Tom Poe <tompoe@fngi.net> wrote:
I used: .ogg audio file *.png images for video ran: mencoder mf://*.png -delay 20 -mf w=320:h=240:fps=5:type=png -ovc copy -audiofile Open_Studios_theme.ogg -oac copy -o test.avi
AFAIR, you generated file here test.avi is already broken because there is not standard way to store ogg in avi.
Now, what do I change in command to convert to new.mp4? $ mencoder test.avi -o new.mpg -ofps 25 -vf scale=352:288,harddup -of lavf -lavfopts format=mpg:i_certify_that_my_video_stream_does_not_us>e_b_frames -oac lavc -lavcopts acodec=mp2:abitrate=224 -ovc lavc -lavcopts
vcodec=mpeg1video:vrc_buf_size=327:keyint=15:vrc_maxrate=1152:vbitrate=1152:vmax_b_frames=0
The above command created a .mpg movie. I want to make the .avi file compatible with as many players as possible. I am computer-challenged, and my efforts to add mp4creator have thus far been futile. Can I use mencoder, or not? :) Thanks, Tom
I do not really understand you here. Do you want you final file to be .avi, .mpg or .mp4?. And is *compatibility with many players* your *only* objective or you do have others?
DEF
____________________________________________________________________________________ Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail beta. http://new.mail.yahoo.com _______________________________________________ MEncoder-users mailing list MEncoder-users@mplayerhq.hu http://lists.mplayerhq.hu/mailman/listinfo/mencoder-users
DEF: Thanks. I've got the song on a CD, so I should be able to extract and save it in whatever format. What do you recommend I use? wav? I have .png images, but can change that to .jpg if that is better. I want to put video podcasts on my site, so I want the best format to have the widest range of players be able to play it. What do you recommend? Tom
--- Tom Poe <tompoe@fngi.net> wrote:
DEF wrote:
--- Tom Poe <tompoe@fngi.net> wrote:
I used: .ogg audio file *.png images for video ran: mencoder mf://*.png -delay 20 -mf w=320:h=240:fps=5:type=png -ovc copy -audiofile Open_Studios_theme.ogg -oac copy -o test.avi
DEF: Thanks. I've got the song on a CD, so I should be able to extract and save it in whatever format. What do you recommend I use? wav?
mencoder can already generate the compatible mp2 file or mp3 file from the ogg file. so it does not really matter the format from which you want to read it with mencoder.
I have .png images, but can change that to .jpg if that is better. I have always done that from .jpg files but some times on the mplayer list, the group had thought that .png was better. in some circumstances I think so too, because I get better results with .png at times. I want to put video podcasts on my site, so I want the best format to have the widest range of players be able to play it. What do you recommend?
In that case, vcd compatible mpeg1 files like you had generated with your lavf command will be ok. From my personal experience, I think you will get more players to play an mpeg1 file when you use the mencoder native muxer. I do something like this, (which is not however documented, and better still vcdimager will not complain if you ever use it with the generated files) "mencoder -of mpeg -mpegopts *format=vcd* -oac lavc -ovc lavc -lavcopts ...................etc " DEF ____________________________________________________________________________________ Any questions? Get answers on any topic at www.Answers.yahoo.com. Try it now.
DEF wrote:
In that case, vcd compatible mpeg1 files like you had generated with your lavf command will be ok. From my personal experience, I think you will get more players to play an mpeg1 file when you use the mencoder native muxer.
so you have changed your mind over time, eh? ;)
I do something like this, (which is not however documented, and better still vcdimager will not complain if you ever use it with the generated files) "mencoder -of mpeg -mpegopts *format=vcd* -oac lavc -ovc lavc -lavcopts ...................etc "
DEF
xvcd, not vcd -- Email.it, the professional e-mail, gratis per te: http://www.email.it/f Sponsor: Corso base ASP Gratis - Video con trucchi e segreti per imparare a creare il tuo Sito Web Dinamico con la tecnologia ASP Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=5146&d=21-2
--- Nico Sabbi <nsabbi@email.it> wrote:
so you have changed your mind over time, eh? ;)
Indeed. It is working but only when you stick to what I have said. *NOTE* format=vcd. This is when and only when you intend to play it on a computer. *If* you want to play it with a *stand-alone vcd player* then you better remux it with mplex.
I do something like this, (which is not however documented, and better still vcdimager will not complain if you ever use it with the generated files) "mencoder -of mpeg -mpegopts *format=vcd* -oac lavc
-ovc lavc -lavcopts ...................etc "
If you use -lavfopts format=mpeg1 like he has stated it is ok too. only that some versions of winamp too will not play it and vcdimager or vcdxbuild will reject it if you feed them with such a file.
xvcd, not vcd
As long as his objective is to get many players to play it. then "format=xvcd" will *not* be played by some players ( eg WMP except version 11 and winamp). OTOH for "format=vcd" like I have stated...... I am still to get the media player that will reject it. In conclusion, the favorite player for linux users according to linuxtag is mplayer and vlc. since they both decode with lavc, most linux users will not get any problem with such media files. The problem has always been windows users.. But then, not every one got all the time it takes to hack...... DEF ____________________________________________________________________________________ Need a quick answer? Get one in minutes from people who know. Ask your question on www.Answers.yahoo.com
DEF wrote:
--- Nico Sabbi <nsabbi@email.it> wrote:
xvcd, not vcd
As long as his objective is to get many players to play it. then "format=xvcd" will *not* be played by some players ( eg WMP except version 11 and winamp). OTOH for "format=vcd" like I have stated...... I am still to get the media player that will reject it.
format=vcd is not recognized, thus it falls back to format=mpeg2 (that is the default)
DEF wrote:
--- Tom Poe <tompoe@fngi.net> wrote:
DEF wrote:
--- Tom Poe <tompoe@fngi.net> wrote:
I used: .ogg audio file *.png images for video ran: mencoder mf://*.png -delay 20 -mf w=320:h=240:fps=5:type=png -ovc copy -audiofile Open_Studios_theme.ogg -oac copy -o test.avi
DEF: Thanks. I've got the song on a CD, so I should be able to extract and save it in whatever format. What do you recommend I use? wav?
mencoder can already generate the compatible mp2 file or mp3 file from the ogg file. so it does not really matter the format from which you want to read it with mencoder.
I have .png images, but can change that to .jpg if that is better.
I have always done that from .jpg files but some times on the mplayer list, the group had thought that .png was better. in some circumstances I think so too, because I get better results with .png at times.
I want to put video podcasts on my site, so I want the best format to have the widest range of players be able to play it. What do you recommend?
In that case, vcd compatible mpeg1 files like you had generated with your lavf command will be ok. From my personal experience, I think you will get more players to play an mpeg1 file when you use the mencoder native muxer. I do something like this, (which is not however documented, and better still vcdimager will not complain if you ever use it with the generated files) "mencoder -of mpeg -mpegopts *format=vcd* -oac lavc -ovc lavc -lavcopts ...................etc "
DEF
____________________________________________________________________________________ Any questions? Get answers on any topic at www.Answers.yahoo.com. Try it now. _______________________________________________ MEncoder-users mailing list MEncoder-users@mplayerhq.hu http://lists.mplayerhq.hu/mailman/listinfo/mencoder-users
DEF: Wow! A lot of struggle here, trying to get something that seems to work. Your suggestion did the trick. I was able to compile a bunch of images, and ran: $ mencoder mf://*.png -mf w=320:h=240:fps=1:type=png -ovc copy -audiofile Open_Studios_theme.ogg -oac copy -o test.avi then $ mencoder test.avi -o new5.mpg -ofps 25 -vf scale=352:288,harddup -of mpeg -mpegopts format=vcd -oac lavc -lavcopts acodec=mp2:abitrate=224 -ovc lavc -lavcopts vcodec=mpeg1video:vrc_buf_size=327:keyint=15:vrc_maxrate=1152:vbitrate=1152:vmax_b_frames=0 then, opened Cinelerra, brought up a terminal, ran: $ midentify new5.mpg ID_VIDEO_ID=0 ID_AUDIO_ID=0 ID_FILENAME=new5.mpg ID_DEMUXER=mpegps ID_VIDEO_FORMAT=0x10000001 ID_VIDEO_BITRATE=1152000 ID_VIDEO_WIDTH=352 ID_VIDEO_HEIGHT=288 ID_VIDEO_FPS=25.000 ID_VIDEO_ASPECT=0.0000 ID_AUDIO_CODEC=mp3 ID_AUDIO_FORMAT=80 ID_AUDIO_BITRATE=224000 ID_AUDIO_RATE=44100 ID_AUDIO_NCH=2 ID_LENGTH=83.64 ID_VIDEO_CODEC=mpegpes and set format options in Cinelerra, and VOILA! Ready to discover the wide, wide world of video editing. What is so extraordinary for me, as a computer-challenged user, is the frame rate concept. I created 91 .png images, in order to have the screens display for the length of the audio file. When I created the test.avi file, that seemed to work, using 1fps. When I ran the next command, to create new5.mpg file, it automagically set the fps setting to 25fps, but displayed each frame for 1 second. Can you point me to info on how that works? Tom
On Wed, 21 Feb 2007 12:46:09 -0600 Tom Poe <tompoe@fngi.net> wrote:
When I ran the next command, to create new5.mpg file, it automagically set the fps setting to 25fps, but displayed each frame for 1 second.
-ofps skips or duplicates frames as needed to get the framerate you want. So it's essentially making 25 copies of each frame.
RC wrote:
On Wed, 21 Feb 2007 12:46:09 -0600 Tom Poe <tompoe@fngi.net> wrote:
When I ran the next command, to create new5.mpg file, it automagically set the fps setting to 25fps, but displayed each frame for 1 second.
-ofps skips or duplicates frames as needed to get the framerate you want. So it's essentially making 25 copies of each frame.
_______________________________________________ MEncoder-users mailing list MEncoder-users@mplayerhq.hu http://lists.mplayerhq.hu/mailman/listinfo/mencoder-users
RC: Holy Cow! That's really exciting. I had four images, originally. I wanted to create a movie, using a soundtrack that ran for 1:15. So, I duplicated manually, each image for 22 seconds,using a fps of 1 second, creating a total of 90 images. Is there something in the command: $ mencoder mf://*.png -mf w=320:h=240:fps=1:type=png -ovc copy -audiofile Open_Studios_theme.ogg -oac copy -o done1.avi that could be added to do that step? Mencoder seems to just do it automagically with the next command: $ mencoder test.avi -o new5.mpg -ofps 25 -vf scale=352:288,harddup -of mpeg -mpegopts format=vcd -oac lavc -lavcopts acodec=mp2:abitrate=224 -ovc lavc -lavcopts vcodec=mpeg1video:vrc_buf_size=327:keyint=15:vrc_maxrate=1152:vbitrate=1152:vmax_b_frames=0 but, seems like I would want to set 25fps in the first command, and just rely on mencoder to duplicate automagically. Tom
On Wed, 21 Feb 2007 14:17:37 -0600 Tom Poe <tompoe@fngi.net> wrote:
So, I duplicated manually, each image for 22 seconds,using a fps of 1 second, creating a total of 90 images. Is there something in the command: $ mencoder mf://*.png -mf w=320:h=240:fps=1:type=png -ovc copy -audiofile Open_Studios_theme.ogg -oac copy -o done1.avi
that could be added to do that step?
1/22nd of a second is about 0.045, so use -mf fps=0.045 and -ofps 25. You'll also want to use the -oac/-ovc/-lavcopts/-mpegopts/-of/-vf options from your second command-line, to encode the final video in a single step.
--- Tom Poe <tompoe@fngi.net> wrote:
$ mencoder mf://*.png -mf w=320:h=240:fps=1:type=png -ovc copy -audiofile Open_Studios_theme.ogg -oac copy -o test.avi then $ mencoder test.avi -o new5.mpg -ofps 25 -vf scale=352:288,harddup -of mpeg -mpegopts format=vcd -oac lavc -lavcopts acodec=mp2:abitrate=224 -ovc lavc -lavcopts
vcodec=mpeg1video:vrc_buf_size=327:keyint=15:vrc_maxrate=1152:vbitrate=1152:vmax_b_frames=0
then, opened Cinelerra, brought up a terminal, ran: $ midentify new5.mpg ID_VIDEO_ID=0 ID_AUDIO_ID=0 ID_FILENAME=new5.mpg ID_DEMUXER=mpegps ID_VIDEO_FORMAT=0x10000001 ID_VIDEO_BITRATE=1152000 ID_VIDEO_WIDTH=352 ID_VIDEO_HEIGHT=288 ID_VIDEO_FPS=25.000 ID_VIDEO_ASPECT=0.0000 ID_AUDIO_CODEC=mp3 ID_AUDIO_FORMAT=80 ID_AUDIO_BITRATE=224000 ID_AUDIO_RATE=44100 ID_AUDIO_NCH=2 ID_LENGTH=83.64 ID_VIDEO_CODEC=mpegpes and set format options in Cinelerra, and VOILA! Ready to discover the wide, wide world of video editing.
What is so extraordinary for me, as a computer-challenged user, is the frame rate concept. I created 91 .png images, in order to have the screens display for the length of the audio file. When I created the test.avi file, that seemed to work, using 1fps. When I ran the next command, to create new5.mpg file, it automagically set the fps setting to 25fps, but displayed each frame for 1 second. Can you point me to info on how that works? Tom
Just assume that you want each image to show on the screen for x seconds, then you would do something like, $mencoder mf://*.png -mf -mf w=320:h=240:fps=1/x: type=png ...etc ... -ofps 25 ........ etc. DEF ____________________________________________________________________________________ Expecting? Get great news right away with email Auto-Check. Try the Yahoo! Mail Beta. http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html
participants (5)
-
DEF -
Nico Sabbi -
Nico Sabbi -
RC -
Tom Poe