Hello, Could you kindly point me to some instruction, how to encode demuxed files (.m2v and .mp2) to .ogg (Theora + Vorbis)? I was trying to use ffmpeg2theora, but I don't know, how to put two files to ffmpeg2theora (one audio an one video) and did not found, how to mux them into one file? Exist a way, how to do two pass encoding? I'm using Ubuntu Fiesty Linux. Thank you, Jiri Navratil
Ji?? Navr?til a ?crit :> Hello, > > Could you kindly point me to some instruction, how to encode demuxed > files (.m2v and .mp2) to .ogg (Theora + Vorbis)? I was trying to use > ffmpeg2theora, but I don't know, how to put two files to ffmpeg2theora > (one audio an one video) and did not found, how to mux them into one > file? > > Exist a way, how to do two pass encoding? > > I'm using Ubuntu Fiesty Linux. > > Thank you, > Jiri NavratilHi, The common way under GNU/Linux is to use two pipes (one audio and one video) and send them to encoder_example. Here is what I use: #!/bin/sh rm -f stream.* mkfifo -m 660 stream.yuv mkfifo -m 660 stream.wav mplayer -af resample=44100,volume=2,volnorm=2 -ao pcm:fast:file=stream.wav -vc dummy -vo null -quiet AudioInput.mp2 > audio.log & mplayer -vo yuv4mpeg -ao null -nosound -vf scale=704:-11,pp=hb:c/vb:c/dr:c,sab=0.3:2:50,hqdn3d=2:2:2 -ssf lgb=0.4:cgb=1 -quiet VideoInput.m2v > video.log & encoder_example -v 7 -a 2 stream.wav stream.yuv -o Output.ogg So you'll need mplayer and of course the sources of Ogg Theora to use encoder_example (in the exampel folder). Best regards -- ZikZak
Hi, Thank you very much both of you for very fast and helpful answers. Pipes work just fine. With VLC, the point regarding version was important, because only the SVN version have the extra option for sound in a separate file. I did not finished yet transcoding this way, as I'm getting "main input error: demux doesn't like DEMUX_GET_TIME", already for play button. I like the VLC possibilities, but will stay with pipes for now. Thank you again and enjoy unusual hot weather, which we have just now in our Europe. Best regards, Jiri Navratil 2007/7/18, Hannes Hauswedell <noreply@soulrebel.in-berlin.de>:> You could also use VLC. > *Go to Media->Open File > *Select the Video-File and check "Show more Options" > *Check "Play another media synchronously" and select the audio-file > *Hold down on the Play-button and select "Convert" > *Now chose "Output to File" and select "Theora" for video-transcoding > and "Vorbis" for audio-transcoding, and select OGG for container! > > I havent tried, because I dont have Files like yours, but it should work. > > hope that helps! > > Greetings > Hannes > > P.S.: I am using VLC-0.9.0svn so things might be a little different on older > versions (the functionality should be there though) > > PPS: VLC might be able to record directly from your video-device... > > Am Dienstag 17 Juli 2007 18:05:11 schrieb Ji?? Navr?til: > > Hello, > > > > Could you kindly point me to some instruction, how to encode demuxed > > files (.m2v and .mp2) to .ogg (Theora + Vorbis)? I was trying to use > > ffmpeg2theora, but I don't know, how to put two files to ffmpeg2theora > > (one audio an one video) and did not found, how to mux them into one > > file? > > > > Exist a way, how to do two pass encoding? > > > > I'm using Ubuntu Fiesty Linux. > > > > Thank you, > > Jiri Navratil > > _______________________________________________ > > theora mailing list > > theora@xiph.org > > http://lists.xiph.org/mailman/listinfo/theora > > >-- Jiri Navratil, http://www.navratil.cz, +420 777 224 245
On Tue, 2007-07-17 at 20:04 +0159, Ji?? Navr?til wrote:> Hello, > > Could you kindly point me to some instruction, how to encode demuxed > files (.m2v and .mp2) to .ogg (Theora + Vorbis)? I was trying to use > ffmpeg2theora, but I don't know, how to put two files to ffmpeg2theora > (one audio an one video) and did not found, how to mux them into one > file?I do this a lot because I get the de-muxed output from ProjectX (which is great for handling the occasional problems with DVB-T). Given x.mp2 and x.m2v I do the following: mkfifo f mplex -f 8 -o f x.mp2 x.m2v& ffmpeg2theora -o x.ogg f The first line create the FIFO (named pipe) the second uses the mplex program from mjpegtools (I think) to multiple the mp2 and m2v files into an MPEG program stream (MPEG file). Using the FIFO avoids using a lot of disk space. Note the & on the end as it will need to run in the background. Finally the ffmpeg2theora command reads the MPEG stream as it is created and writes out the OGG file. Hope this helps, Jim. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://lists.xiph.org/pipermail/theora/attachments/20070721/2a8a4720/attachment.pgp