[plumi-discuss] (no subject)
andy nicholson
andy at engagemedia.org
Sun Aug 31 21:18:10 EST 2008
Hi
Currently, indytube uses mencoder for the conversion to FLV, which is
referenced by the HTML .inc file , ie by the inclusing of Flowplayer to
playback the FLV in the browser.
ffmpeg2theora is used to make OGGs , but 'out of the box' they are not
used.
We have had nutted out this mencoder options line,
MENCODER_OPTIONS=-really-quiet -of lavf -oac mp3lame -lameopts abr:br=64
-ovc lavc -lavcopts
vcodec=flv:keyint=25:vbitrate=260:mbd=2:mv0:trell:v4mv:cbp:last_pred=3
-vf harddup,expand=:::::4/3,scale=320:240 -srate 22050 -ofps 25 -mc
0/10
which seems to give better sync results, and better conversion of WMVs
to FLV, which were totally problematic.
As to why you dont get any output from MEncoder doing it on the cmd line
- you need to get rid of any "-quiet" / "-really-quiet" options.
let us know what happens.
andy
On Thu, 2008-08-28 at 17:08 -0400, sienasoft1 at hotmail.com wrote:
> Andy and Datakid,
>
>
>
> Datakid, I have mencoder installed if that is what you mean. The
> documentation indytube readme says that
> "Mencoder, the Mplayer video encoder/decoder swiss army knife.
> This is better than ffmpeg because it is designed to handle
> any proprietary cruft that your users throw at it."
>
> Andy, I am not converting to .flv at all. My log file tells me
> 2008-08-22 08:51:21,861 INFO Starting indytube...
> in /opt/Plone-2.5.5/zeocluster/client1/var/files/Members/jagaworktest/videos
> 2008-08-22 08:51:21,861 DEBUG Checking
> file /opt/Plone-2.5.5/zeocluster/client1/var/files/Members/jagaworktest/videos/8pounder.mpg, using extension .mpg
> 2008-08-22 08:51:21,878 INFO OK to try
> encoding: /opt/Plone-2.5.5/zeocluster/client1/var/files/Members/jagaworktest/videos/8pounder.mpg
> 2008-08-22 08:51:22,507 INFO
> Encoded /opt/Plone-2.5.5/zeocluster/client1/var/files/Members/jagaworktest/videos/8pounder.mpg in 0.63 seconds, using cmd -- /usr/bin/mencoder -quiet /opt/Plone-2.5.5/zeocluster/client1/var/files/Members/jagaworktest/videos/8pounder.mpg -o /var/www/plumi-flv-files/8pounder.flv -really-quiet -of lavf -lavfopts i_certify_that_my_video_stream_does_not_use_b_frames -oac mp3lame -lameopts abr:br=56 -ovc lavc -lavcopts vcodec=flv:keyint=50:vbitrate=150:mbd=2:mv0:trell:v4mv:cbp:last_pred=3 -vf scale=320:240 -srate 22050
> 2008-08-22 08:51:22,645 INFO
> Encoded /opt/Plone-2.5.5/zeocluster/client1/var/files/Members/jagaworktest/videos/8pounder.mpg in 0.00 seconds, using cmd -- ffmpeg2theora /opt/Plone-2.5.5/zeocluster/client1/var/files/Members/jagaworktest/videos/8pounder.mpg -o /var/www/plumi-flv-files/8pounder.ogg
> 2008-08-22 08:51:22,645 INFO FLV file size is zero - assuming encoding
> failed! Permanently skipping file!
>
>
> I also have /usr/bin/ffmpeg2theora installed ,because it was in the
> original indytube.conf file so I figured I needed it also. I tried
> taking it out of the conf file and recieved errors looking for it
> when I started indytube.
> If this section is only for generating .ogg and I shouldnt be
> using .ogg only .flv why cant I remove it from the .conf?
>
> As I said stated in the last mail, when running the mencoder command
> that is generated by indytube.py I get no output at all on the command
> line when I run it manually.I got the command line from the logfile
> below. the "using cmd" section.
>
> 2008-08-22 08:51:21,861 INFO Starting indytube...
> in /opt/Plone-2.5.5/zeocluster/client1/var/files/Members/jagaworktest/videos
> 2008-08-22 08:51:21,861 DEBUG Checking
> file /opt/Plone-2.5.5/zeocluster/client1/var/files/Members/jagaworktest/videos/8pounder.mpg, using extension .mpg
> 2008-08-22 08:51:21,878 INFO OK to try
> encoding: /opt/Plone-2.5.5/zeocluster/client1/var/files/Members/jagaworktest/videos/8pounder.mpg
> 2008-08-22 08:51:22,507 INFO
> Encoded /opt/Plone-2.5.5/zeocluster/client1/var/files/Members/jagaworktest/videos/8pounder.mpg in 0.63 seconds, using cmd -- /usr/bin/mencoder -quiet /opt/Plone-2.5.5/zeocluster/client1/var/files/Members/jagaworktest/videos/8pounder.mpg -o /var/www/plumi-flv-files/8pounder.flv -really-quiet -of lavf -lavfopts i_certify_that_my_video_stream_does_not_use_b_frames -oac mp3lame -lameopts abr:br=56 -ovc lavc -lavcopts vcodec=flv:keyint=50:vbitrate=150:mbd=2:mv0:trell:v4mv:cbp:last_pred=3 -vf scale=320:240 -srate 22050
>
> I decided to try to run it manually without some of the flags to see
> if I could get any output at all from mencoder.
>
> The command I got to run manually was:
>
> sudo /usr/bin/mencoder /opt/Plone-2.5.5/zeocluster/client1/var/files/Members/jagaworktest/videos/ginnietop.wmv -o /var/www/plumi-flv-files/jagaworktest/videos/ginnietop.flv -of lavf -oac mp3lame -lameopts abr:br=56 -ovc lavc -lavcopts vcodec=flv:keyint=50:vbitrate=150:mbd=2:mv0:trell:v4mv:cbp:last_pred=3 -vf scale=320:240 -srate 22050
>
> So to sum up:
> 1) Do I need ffmpeg ?
>
> 2) Why is the default indytube.conf and indytube.py creating a .ogg if
> I am not using them and how can I stopp this.
>
> 3) Why do I get no output at all using the mencoder command generated
> by indytube.py
>
>
> Below is my indytube.conf, does anything look out of wack in it?
>
> [encoder]
> BE_HOW_NICE=18
> CONVERT_THESE=['.avi','.qt','.mov','.mpeg','.mp4','.mpg','.asf','.wmv','.3gp']
> DO_ENCODING=True
> NUMBER_OF_PARALLEL_ENCODERS=3
> ENCODER_LOCKFILE_BASE=/opt/plumi-0.2-final/indytube/plumidemo-encoder.lock
> POLLTIME=60
>
>
> [mencoder]
> MENCODER_LOCATION=/usr/bin/mencoder
> MENCODER_OPTIONS=-really-quiet -of lavf -lavfopts
> i_certify_that_my_video_stream_does_not_use_b_frames -oac mp3lame
> -lameopts abr:br=56 -ovc lavc -lavcopts v
> codec=flv:keyint=50:vbitrate=150:mbd=2:mv0:trell:v4mv:cbp:last_pred=3
> -vf scale=320:240 -srate 22050
>
> [ffmpeg2theora]
> CORTADO_LOCATION=http://localhost/flowplayer/cortado-ovt-debug-0.2.2.jar
> FFMPEG2THEORA_COMMAND=ffmpeg2theora
>
> [flvtool2]
> FLVTOOL_LOCATION=/usr/bin/flvtool2
>
> [paths]
> VIDEO_FILE_DIRECTORY=/opt/Plone-2.5.5/zeocluster/client1/var/files/Members
> FLV_FILE_DIRECTORY=/var/www/plumi-flv-files/
> INCLUDE_FILE_DIRECTORY=/opt/Plone-2.5.5/zeocluster/client1/var/files/Members
> INCLUDE_FILE_SUFFIX=.flv.inc
> INCLUDE_TEMPLATE=/opt/plumi-0.2-final/indytube/plumi.template
>
> [urls]
> FLOWPLAYER_LOCATION=http://localhost/flowplayer/FlowPlayerClassic.swf
> VIDEO_SERVER_URL=http://localhost/
> SPLASH_IMAGE_BASE=http://localhost/flowplayer/
> SPLASH_IMAGE_FILE=indytube.jpg
>
> [logging]
> LOG_FILE=/opt/plumi-0.2-final/indytube/plumi-wetube.log
> LOG_LEVEL=logging.DEBUG
>
> Thanks again,
> James
>
> > Date: Thu, 28 Aug 2008 11:08:53 +1000
> > From: datakid at gmail.com
> > To: discuss at lists.plumi.org
> > Subject: Re: [plumi-discuss] (no subject)
> >
> > Hi James,
> >
> > Unfortunately I don't know the software well enough to answer your
> > question fully regards the transcoding.
> >
> > In regards the embedded video, I'm pretty sure all the plumi
> > installations I've done have automatically put the video in the
> > correct page.
> >
> > Do you have ffmpeg installed? This is required for indytube to
> work...
> >
> >
> > L.
> >
> > On Wed, Aug 27, 2008 at 7:27 AM, James Gabe <sienasoft1 at hotmail.com>
> wrote:
> > > Well I am still stuck on this one, I have done some poking around
> but have
> > > not made any progress. Maybe I am confused about the process. It
> was my
> > > thinking that Indytube would be converting the uploaded file to
> a .ogg and
> > > creating a .flv "wrapper" for displaying the .off in the flow
> player. I was
> > > able to do in as an admin and publish the video that was uploaded,
> but that
> > > didnt do anything , it still does not show up as an embedded video
> on the
> > > page, just a link to download the video in its original .mpg
> format. And I
> > > still have the Transcode Status:The transcoding failed.
> > >
> > > Thanks in advance,
> > > James
> > >
> > > ________________________________
> > > From: sienasoft1 at hotmail.com
> > > To: discuss at lists.plumi.org
> > > Date: Fri, 22 Aug 2008 14:30:12 -0400
> > > Subject: Re: [plumi-discuss] (no subject)
> > >
> > > Thanks Andy and Datakid/Musicman/L
> > >
> > > That worked perfectly. I deleted the lockfile and also bumped the
> > > NUMBER_OF_PARALLEL_ENCODERS and I am now converting my files
> to .ogg but the
> > > flv file are ending up as 0 bytes. I took the command that it is
> executing
> > > from the log file and ran it at the command line. It doesn't spit
> anytyhing
> > > back out at me and just goes back to a command prompt, I was
> hoping to see
> > > some kind of error message there. It is not a permisions problem
> because it
> > > does create the file, its just empty. The command I tried at
> command line
> > > that returned nothing was:
> > >
> > > /usr/bin/mencoder -quiet
> >
> > /opt/Plone-2.5.5/zeocluster/client1/var/files/Members/jagaworktest/videos/8pounder.mpg
> > > -o /var/www/plumi-flv-files/8pounder.flv -really-quiet -of lavf
> -lavfopts
> > > i_certify_that_my_video_stream_does_not_use_b_frames -oac mp3lame
> -lameopts
> > > abr:br=56 -ovc lavc -lavcopts
> > >
> vcodec=flv:keyint=50:vbitrate=150:mbd=2:mv0:trell:v4mv:cbp:last_pred=3
> -vf
> > > scale=320:240 -srate 22050
> > >
> > >
> > > ######################################
> > > Here is a little excerpt from the log.
> > >
> > > 2008-08-22 09:24:46,948 INFO Ending indytube... We checked 2
> eligble files,
> > > converted 0 files
> > > 2008-08-22 09:25:46,951 DEBUG started looperInvoker function at
> 08/22/08
> > > 09:25:46, calling loop every 60 seconds
> > > 2008-08-22 09:25:46,951 INFO Starting indytube... in
> >
> > /opt/Plone-2.5.5/zeocluster/client1/var/files/Members/jagaworktest/videos
> > > 2008-08-22 09:25:46,951 DEBUG Checking file
> >
> > /opt/Plone-2.5.5/zeocluster/client1/var/files/Members/jagaworktest/videos/8pounder.mpg,
> > > using extension .mpg
> > > 2008-08-22 09:25:46,952 INFO OK to try encoding:
> >
> > /opt/Plone-2.5.5/zeocluster/client1/var/files/Members/jagaworktest/videos/8pounder.mpg
> > > 2008-08-22 09:25:46,970 INFO Encoded
> >
> > /opt/Plone-2.5.5/zeocluster/client1/var/files/Members/jagaworktest/videos/8pounder.mpg
> > > in 0.02 seconds, using cmd -- /usr/bin/mencoder -quiet
> >
> > /opt/Plone-2.5.5/zeocluster/client1/var/files/Members/jagaworktest/videos/8pounder.mpg
> > > -o /var/www/plumi-flv-files/8pounder.flv -really-quiet -of lavf
> -lavfopts
> > > i_certify_that_my_video_stream_does_not_use_b_frames -oac mp3lame
> -lameopts
> > > abr:br=56 -ovc lavc -lavcopts
> > >
> vcodec=flv:keyint=50:vbitrate=150:mbd=2:mv0:trell:v4mv:cbp:last_pred=3
> -vf
> > > scale=320:240 -srate 22050
> > > 2008-08-22 09:25:49,278 INFO Encoded
> >
> > /opt/Plone-2.5.5/zeocluster/client1/var/files/Members/jagaworktest/videos/8pounder.mpg
> > > in 2.28 seconds, using cmd -- ffmpeg2theora
> >
> > /opt/Plone-2.5.5/zeocluster/client1/var/files/Members/jagaworktest/videos/8pounder.mpg
> > > -o /var/www/plumi-flv-files/8pounder.ogg
> > > 2008-08-22 09:25:49,279 INFO FLV file size is zero - assuming
> encoding
> > > failed! Permanently skipping file!
> > > 2008-08-22 09:25:49,279 DEBUG Checking file
> >
> > /opt/Plone-2.5.5/zeocluster/client1/var/files/Members/jagaworktest/videos/ginnietop.wmv,
> > > using extension .wmv
> > > 2008-08-22 09:25:49,279 INFO OK to try encoding:
> >
> > /opt/Plone-2.5.5/zeocluster/client1/var/files/Members/jagaworktest/videos/ginnietop.wmv
> > > 2008-08-22 09:25:49,298 INFO Encoded
> >
> > /opt/Plone-2.5.5/zeocluster/client1/var/files/Members/jagaworktest/videos/ginnietop.wmv
> > > in 0.02 seconds, using cmd -- /usr/bin/mencoder -quiet
> >
> > /opt/Plone-2.5.5/zeocluster/client1/var/files/Members/jagaworktest/videos/ginnietop.wmv
> > > -o /var/www/plumi-flv-files/ginnietop.flv -really-quiet -of lavf
> -lavfopts
> > > i_certify_that_my_video_stream_does_not_use_b_frames -oac mp3lame
> -lameopts
> > > abr:br=56 -ovc lavc -lavcopts
> > >
> vcodec=flv:keyint=50:vbitrate=150:mbd=2:mv0:trell:v4mv:cbp:last_pred=3
> -vf
> > > scale=320:240 -srate 22050
> > > 2008-08-22 09:25:49,878 INFO Encoded
> >
> > /opt/Plone-2.5.5/zeocluster/client1/var/files/Members/jagaworktest/videos/ginnietop.wmv
> > > in 0.56 seconds, using cmd -- ffmpeg2theora
> >
> > /opt/Plone-2.5.5/zeocluster/client1/var/files/Members/jagaworktest/videos/ginnietop.wmv
> > > -o /var/www/plumi-flv-files/ginnietop.ogg
> > > 2008-08-22 09:25:49,878 INFO FLV file size is zero - assuming
> encoding
> > > failed! Permanently skipping file!
> > >
> > > Thanks again for all of the help,
> > > --James
> > >
> > >
> > >> From: andy at engagemedia.org
> > >> To: discuss at lists.plumi.org
> > >> Date: Fri, 22 Aug 2008 11:11:22 +0700
> > >> Subject: Re: [plumi-discuss] (no subject)
> > >>
> > >> Hi James
> > >>
> > >> stop indytube, delete the file 'plumidemo-encoder.lock' and
> restart
> > >> indytube - your log file pasted below is telling you it isnt
> encoding
> > >> since the max number of encoders you have set in the conf file to
> > >> running in parallel (1) is already running. indytube only can
> tell how
> > >> many others are running by looking for the existence of this lock
> file,
> > >> and hence can get it wrong (if indytube dies, it doesnt clean up
> the
> > >> file properly)
> > >>
> > >>
> > >> andy
> > >>
> > >> On Thu, 2008-08-21 at 17:33 -0400, James Gabe wrote:
> > >> > I have made it past the error with cheetah and everything seems
> to be
> > >> > working now ....except the encoding. I upload files and nothing
> > >> > happens to them. I installed all of the pieces needed for this
> and
> > >> > modified the indytube.conf . I see the files at the OS level
> and
> > >> > indytube.py is running but it doesnt seem to see the files.
> > >> >
> > >> > Here is my conf file
> > >> >
> > >> > [encoder]
> > >> > BE_HOW_NICE=18
> > >> >
> > >> >
> CONVERT_THESE=['.avi','.qt','.mov','.mpeg','.mp4','.mpg','.asf','.wmv','.3gp']
> > >> > DO_ENCODING=True
> > >> > NUMBER_OF_PARALLEL_ENCODERS=1
> > >> >
> > >> >
> ENCODER_LOCKFILE_BASE=/opt/plumi-0.2-final/indytube/plumidemo-encoder.lock
> > >> > POLLTIME=60
> > >> >
> > >> >
> > >> > [mencoder]
> > >> > MENCODER_LOCATION=/usr/bin/mencoder
> > >> > MENCODER_OPTIONS=-really-quiet -of lavf -lavfopts
> > >> > i_certify_that_my_video_stream_does_not_use_b_frames -oac
> mp3lame
> > >> > -lameopts abr:br=56 -ovc lavc -lavcopts v
> > >> >
> codec=flv:keyint=50:vbitrate=150:mbd=2:mv0:trell:v4mv:cbp:last_pred=3
> > >> > -vf scale=320:240 -srate 22050
> > >> >
> > >> > [ffmpeg2theora]
> > >> >
> > >> >
> CORTADO_LOCATION=http://demo.plumi.org/flowplayer/cortado-ovt-debug-0.2.2.jar
> > >> > FFMPEG2THEORA_COMMAND=ffmpeg2theora
> > >> >
> > >> > [flvtool2]
> > >> > FLVTOOL_LOCATION=/usr/bin/flvtool2
> > >> >
> > >> > [paths]
> > >> >
> > >> >
> VIDEO_FILE_DIRECTORY=/opt/Plone-2.5.5/zeocluster/client1/var/files/Members/jagaworktest/videos
> > >> > FLV_FILE_DIRECTORY=/var/www/plumi-flv-files/
> > >> >
> INCLUDE_FILE_DIRECTORY=/opt/instances/PlumiDemoLive/var/files/Members
> > >> > INCLUDE_FILE_SUFFIX=.flv.inc
> > >> > INCLUDE_TEMPLATE=/opt/plumi-0.2-final/indytube/plumi.template
> > >> >
> > >> > [urls]
> > >> >
> FLOWPLAYER_LOCATION=http://localhost/flowplayer/FlowPlayerClassic.swf
> > >> > VIDEO_SERVER_URL=http://localhost/
> > >> > SPLASH_IMAGE_BASE=http://localhost/flowplayer/
> > >> > SPLASH_IMAGE_FILE=indytube.jpg
> > >> >
> > >> > [logging]
> > >> > LOG_FILE=/opt/plumi-0.2-final/indytube/plumi-wetube.log
> > >> > LOG_LEVEL=logging.INFO
> > >> >
> > >> >
> > >> > And here is an ls of the dir where tthe files to be converted
> are, IE:
> > >> > VIDEO_FILE_DIRECTORY
> > >> >
> > >> > $ pwd
> > >> >
> > >>
> > /opt/Plone-2.5.5/zeocluster/client1/var/files/Members/jagaworktest/videos
> > >> > $ ls -lrt
> > >> > total 1108
> > >> > drwxr-xr-x 3 plone plone 4096 2008-08-20 12:02 portal_factory
> > >> > -rw-r--r-- 1 plone plone 744006 2008-08-20 12:04 8pounder.mpg
> > >> > -rw-r--r-- 1 plone plone 372772 2008-08-21 06:51 ginnietop.wmv
> > >> >
> > >> > and a sample of my log file
> > >> >
> > >> > 2008-08-21 17:28:30,648 INFO Max encoders reached(1), exiting.
> > >> > 2008-08-21 17:29:30,652 DEBUG started looperInvoker function at
> > >> > 08/21/08 17:29:30, calling loop every 60 seconds
> > >> > 2008-08-21 17:29:30,652 INFO Max encoders reached(1), exiting.
> > >> > 2008-08-21 17:30:30,656 DEBUG started looperInvoker function at
> > >> > 08/21/08 17:30:30, calling loop every 60 seconds
> > >> > 2008-08-21 17:30:30,656 INFO Max encoders reached(1), exiting.
> > >> > 2008-08-21 17:31:30,660 DEBUG started looperInvoker function at
> > >> > 08/21/08 17:31:30, calling loop every 60 seconds
> > >> > 2008-08-21 17:31:30,660 INFO Max encoders reached(1), exiting.
> > >> >
> > >> > Thanks in advance,
> > >> > James
> > >> >
> > >> >
> > >> >
> ______________________________________________________________________
> > >> > Get ideas on sharing photos from people like you. Find new ways
> to
> > >> > share. Get Ideas Here!
> > >> > _______________________________________________
> > >> > Discuss mailing list
> > >> > Discuss at lists.plumi.org
> > >> > http://lists.plumi.org/listinfo/discuss
> > >> --
> > >> Andy Nicholson
> > >>
> > >> http://wiki.infiniterecursion.com.au/wiki/ContactDetails
> > >
> > > ________________________________
> > > Be the filmmaker you always wanted to be—learn how to burn a DVD
> with
> > > Windows(R). Make your smash hit
> > > ________________________________
> > > Get ideas on sharing photos from people like you. Find new ways to
> share.
> > > Get Ideas Here!
> > > _______________________________________________
> > > Discuss mailing list
> > > Discuss at lists.plumi.org
> > > http://lists.plumi.org/listinfo/discuss
> > >
> > >
> >
> >
> >
> > --
> > I am a rock, I am an "archipelago of the informal"
> > _______________________________________________
> > Discuss mailing list
> > Discuss at lists.plumi.org
> > http://lists.plumi.org/listinfo/discuss
>
>
> ______________________________________________________________________
> Get thousands of games on your PC, your mobile phone, and the web with
> Windows®. Game with Windows
> _______________________________________________
> Discuss mailing list
> Discuss at lists.plumi.org
> http://lists.plumi.org/listinfo/discuss
--
Andy Nicholson
http://wiki.infiniterecursion.com.au/wiki/ContactDetails
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
URL: <http://lists.plumi.org/pipermail/discuss/attachments/20080831/60b200b1/attachment-0001.pgp>
More information about the Discuss
mailing list