Lots of progress - thanks to everyone -

Changing my site.cfg and the portal_properties to point correctly, I now see 
the transcoder fire up when asked to -
FFMPEG is still choking on the MP4 codec, but other than that why is the 
jpg(thumbnail) having an issue?
From Zope:


2010-06-04 14:07:26 INFO Zope Ready to handle requests
plumi running profile jpeg
plumi running profile mp4
plumi running profile ogg
plumi: TranscodeDaemon call pending
plumi: TranscodeDaemon call d0ec627c2dfdb94f8902b6149f06ce5352e188ec
plumi: TranscodeDaemon call f45b7840d79a9100bfc1d4fd0810c08499ddaeb2
plumi: TranscodeDaemon call 43ac9ba1dc8c4c0e7525c15e1f5cc17c78d1992b
2010-06-04 14:12:35 INFO plumi.content.callback callback: 0 SUCCESS jpeg 
transcoded/http/video.healthydirections.com/Members/admin/videos/test-8/download/video_file/advacleanse_demo_h264.mov/jpeg/advacleanse_demo_h264.jpg
2010-06-04 14:12:35 INFO plumi.content.callback jpeg callback <Field 
thumbnailImage(image:rw)>
2010-06-04 14:12:35 INFO plumi.content.callback set transcoding: 
transcoded/http/video.healthydirections.com/Members/admin/videos/test-8/download/video_file/advacleanse_demo_h264.mov/jpeg/advacleanse_demo_h264.jpg
2010-06-04 14:13:16 INFO plumi.content.callback callback: 0 SUCCESS ogg 
transcoded/http/video.healthydirections.com/Members/admin/videos/test-8/download/video_file/advacleanse_demo_h264.mov/ogg/advacleanse_demo_h264.ogv
2010-06-04 14:13:16 INFO plumi.content.callback set transcoding: 
transcoded/http/video.healthydirections.com/Members/admin/videos/test-8/download/video_file/advacleanse_demo_h264.mov/ogg/advacleanse_demo_h264.ogv
/usr/local/Plone/zinstance/parts/zope2/lib/python/OFS/subscribers.py:73: 
DeprecationWarning: plumi.content.content.plumivideo.PlumiVideo.manage_afterAdd 
is discouraged. You should use event subscribers instead.
  DeprecationWarning)
/usr/local/Plone/zinstance/parts/zope2/lib/python/OFS/subscribers.py:73: 
DeprecationWarning: 
plumi.content.content.plumivideo.PlumiVideo.manage_beforeDelete is discouraged. 
You should use event subscribers instead.
  DeprecationWarning)
2010-06-04 14:45:27 INFO plumi.content.subscribers notifyInitPlumiVideo... test 
9 in state (visible) with event 
<Products.Archetypes.event.ObjectInitializedEvent object at 0x7f207c318250>
2010-06-04 14:45:28 ERROR plumi.content stream error! Input size is nul 
(source='file:/usr/local/Plone/zinstance/var/blobstorage/0x00/0x00/0x00/0x00/0x00/0x00/0xa7/0xbe/0x03869c2578162555.blob')!

2010-06-04 14:45:28 ERROR plumi.content Could not get video dimensions
2010-06-04 14:45:28 ERROR plumi.content Could not get video duration
2010-06-04 14:45:45 ERROR plumi.content stream error! Input size is nul 
(source='file:/usr/local/Plone/zinstance/var/blobstorage/0x00/0x00/0x00/0x00/0x00/0x00/0xa7/0xbe/0x03869c2578162555.blob')!

2010-06-04 14:45:45 INFO plumi.content.subscribers notifyModifiedPlumiVideo... 
test 9 in state (visible) with event 
<Products.Archetypes.event.ObjectEditedEvent object at 0x7f208c314350>
2010-06-04 14:47:01 INFO plumi.content.subscribers notifyModifiedPlumiVideo... 
test 9 in state (visible) with event 
<Products.Archetypes.event.ObjectEditedEvent object at 0x7f207c7517d0>
2010-06-04 14:47:01 INFO plumi.content.adapters autoPublishOrHide , im 
<PlumiVideo at test-9>
2010-06-04 14:47:01 INFO plumi.content.subscribers 
notifyActionSuceededPlumiVideo... test 9 in state (pending) with event 
<Products.CMFCore.WorkflowCore.ActionSucceededEvent object at 0x7f207c704b50>
2010-06-04 14:47:01 INFO plumi.content.subscribers pending
2010-06-04 14:47:01 INFO plumi.content.adapters notifyReviewersVideoSubmitted , 
im <PlumiVideo at test-9>
2010-06-04 14:47:01 INFO plumi.content.subscribers notifyModifiedPlumiVideo: 
video replaced; retranscoding
plumi running profile jpeg
plumi running profile mp4
plumi running profile ogg
plumi: TranscodeDaemon call pending
2010-06-04 14:47:02 ERROR plumi.content Could not get video dimensions
plumi: TranscodeDaemon call 33d03bd332cfb88ecae2512d3a98dd2a22d44e35
plumi: TranscodeDaemon call 72352b207764e1811354c9ebe64af8cc08ebf3c7
plumi: TranscodeDaemon call 9aac993b3ed763ae7e148654ae4f2baf5ebcac99
2010-06-04 14:47:02 INFO plumi.content.callback callback: 0 SUCCESS jpeg 
transcoded/http/video.healthydirections.com/Members/admin/videos/test-9/download/video_file/Wildlife.wmv/jpeg/Wildlife.jpg
2010-06-04 14:47:02 INFO plumi.content.callback jpeg callback <Field 
thumbnailImage(image:rw)>
2010-06-04 14:47:02 INFO plumi.content.callback set transcoding: 
transcoded/http/video.healthydirections.com/Members/admin/videos/test-9/download/video_file/Wildlife.wmv/jpeg/Wildlife.jpg
2010-06-04 14:47:21 INFO plumi.content.callback callback: 0 SUCCESS ogg 
transcoded/http/video.healthydirections.com/Members/admin/videos/test-9/download/video_file/Wildlife.wmv/ogg/Wildlife.ogv
2010-06-04 14:47:21 INFO plumi.content.callback set transcoding: 
transcoded/http/video.healthydirections.com/Members/admin/videos/test-9/download/video_file/Wildlife.wmv/ogg/Wildlife.ogv


From Transcoder:


2010/06/04 14:47 -0400 [-] New job
2010/06/04 14:47 -0400 [-] DOWNLOADING 
http://video.healthydirections.com/Members/admin/videos/test-9/download/video_file/Wildlife.wmv
2010/06/04 14:47 -0400 [-] RUNNING: scripts/transcodeMp4 /tmp/tmps7-zGt.wmv 
transcoded/http/video.healthydirections.com/Members/admin/videos/test-9/download/video_file/Wildlife.wmv/mp4/Wildlife.mp4
FFmpeg version SVN-r21500, Copyright (c) 2000-2010 Fabrice Bellard, et al.
  built on Jun  4 2010 13:52:50 with gcc 4.4.4 20100503 (Red Hat 4.4.4-2)
  configuration:
  libavutil     50. 7. 0 / 50. 7. 0
  libavcodec    52.48. 0 / 52.48. 0
  libavformat   52.47. 0 / 52.47. 0
  libavdevice   52. 2. 0 / 52. 2. 0
  libswscale     0. 9. 0 /  0. 9. 0

Seems stream 1 codec frame rate differs from container frame rate: 1000.00 
(1000/1) -> 29.97 (30000/1001)
Input #0, asf, from '/tmp/tmps7-zGt.wmv':
  Metadata:
    SfOriginalFPS   : 299
    WMFSDKVersion   : 11.0.6001.7000
    WMFSDKNeeded    : 0.0.0.0000
    IsVBR           : 0
    title           : Wildlife in HD
    author          :
    copyright       : © 2008 Microsoft Corporation
    comment         : Footage: Small World Productions, Inc; Tourism New 
Zealand | Producer: Gary F. Spradling | Music: Steve Ball
  Duration: 00:00:30.09, start: 8.000000, bitrate: 6977 kb/s
    Stream #0.0(eng): Audio: wmav2, 44100 Hz, 2 channels, s16, 192 kb/s
    Stream #0.1(eng): Video: vc1, yuv420p, 1280x720, 5942 kb/s, 29.97 tbr, 1k 
tbn, 1k tbc
Unknown encoder 'libx264'
transcoded/http/video.healthydirections.com/Members/admin/videos/test-9/download/video_file/Wildlife.wmv/mp4/Wildlife.mp4:
 No such file or directory
mv: cannot stat 
`transcoded/http/video.healthydirections.com/Members/admin/videos/test-9/download/video_file/Wildlife.wmv/mp4/Wildlife.mp4.fst':
 No such file or directory
2010/06/04 14:47 -0400 [-] Transcoder returned 256 {'path': 
'transcoded/http/video.healthydirections.com/Members/admin/videos/test-9/download/video_file/Wildlife.wmv/mp4/Wildlife.mp4',
 'type': 'video/mp4'}
2010/06/04 14:47 -0400 [-] called back plone
2010/06/04 14:47 -0400 [-] callbackURL = 
http://admin:[email protected]/Members/admin/videos/test-9/@@streaming_RPC
2010/06/04 14:47 -0400 [-] callback return for profile mp4 is [Failure 
instance: Traceback (failure with no frames): 
twisted.python.failure.DefaultException: FAIL 256
2010/06/04 14:47 -0400 [-] ]
2010/06/04 14:47 -0400 [-] New job
2010/06/04 14:47 -0400 [-] DOWNLOADING 
http://video.healthydirections.com/Members/admin/videos/test-9/download/video_file/Wildlife.wmv
2010/06/04 14:47 -0400 [-] RUNNING: scripts/transcodeTheora /tmp/tmptv9-0t.wmv 
transcoded/http/video.healthydirections.com/Members/admin/videos/test-9/download/video_file/Wildlife.wmv/ogg/Wildlife.ogv
Input #0, asf, from '/tmp/tmptv9-0t.wmv':
  Metadata:
    SfOriginalFPS   : 299
    WMFSDKVersion   : 11.0.6001.7000
    WMFSDKNeeded    : 0.0.0.0000
    IsVBR           : 0
    title           : Wildlife in HD
    author          :
    copyright       : © 2008 Microsoft Corporation
    comment         : Footage: Small World Productions, Inc; Tourism New 
Zealand | Producer: Gary F. Spradling | Music: Steve Ball
  Duration: 00:00:30.09, start: 8.000000, bitrate: 6977 kb/s
    Stream #0.0(eng): Audio: wmav2, 44100 Hz, 2 channels, s16, 192 kb/s
    Stream #0.1(eng): Video: vc1, yuv420p, 1280x720, 5942 kb/s, 29.97 tbr, 1k 
tbn, 1k tbc
  Resize: 1280x720 => 400x226
  0:00:30.09 audio: 84kbps video: 617kbps, time elapsed: 00:00:15
2010/06/04 14:47 -0400 [-] Transcoder returned 0 {'path': 
'transcoded/http/video.healthydirections.com/Members/admin/videos/test-9/download/video_file/Wildlife.wmv/ogg/Wildlife.ogv',
 'type': 'video/ogg'}
2010/06/04 14:47 -0400 [-] 
transcoded/http/video.healthydirections.com/Members/admin/videos/test-9/download/video_file/Wildlife.wmv/ogg/Wildlife.ogv
2010/06/04 14:47 -0400 [-] called back plone
2010/06/04 14:47 -0400 [-] callbackURL = 
http://admin:[email protected]/Members/admin/videos/test-9/@@streaming_RPC
2010/06/04 14:47 -0400 [-] callback return for profile ogg is SUCCESS 
transcoded/http/video.healthydirections.com/Members/admin/videos/test-9/download/video_file/Wildlife.wmv/ogg/Wildlife.ogv


-----Original Message-----
From: Ross Glover [mailto:[email protected]]
Sent: Friday, June 04, 2010 11:19 AM
To: Edward Brookhouse; Discussion about software development on Plumi
Subject: Re: [plumi-discuss] Plumi 3.0 Transcoding

My understanding is that you need to have a different server acting as
your transcoding server, per this section of
http://en.flossmanuals.net/Plumi/Installation

{{{
Two Domains Required

Plumi 3 requires two domains to operate although they can point to the same 
server:

    * The Plumi Site (eg: example.org)
    * Plumi Transcode Daemon and transcoded files (videos.example.org)

Please ensure that these domains are set up in advance of your site 
installation and have had sufficient time to propagate through  the Internet 
(eg: 24-48 hours).

NOTE: If you server is not going to be accessed from the Internet, you
still need to set up the domains within your private network (eg:
internal DNS server, /etc/hosts files on all workstations, etc).

}}}


My site.cfg looks like this:

[site]
# start with offbeat password, and hint that it should be made unique in-site:
user = admin:admin
effective-user = ussf2010-video
http-address = 127.0.0.1:8080
ftp-address = 127.0.0.1:8021
transcode_host = 127.0.0.1
transcode_port = 8888
videofolder = transcoded

#squid configs
squid_address = 127.0.0.1:4128
squid_backend = ${site:http-address}
squid_hostname = video.debord.mayfirst.org
squid_email = [email protected]

#apache configs
apache_backends = video.debord.mayfirst.org:${site:squid_address}
transcode_backends = 
transcode.debord.mayfirst.org:${site:transcode_host}:${site:transcode_port}
apache_zope2_vhm_map = video.debord.mayfirst.org:/Videoussf



On Fri, 4 Jun 2010 14:23:14 +0000, Edward Brookhouse 
<[email protected]> wrote:
>
> I rebuilt ffmpeg, and it seems to work running from commandline - but a 
> re-transcode request is showing and error that might be because of my 
> site.cfg -
>
> I still don't quite get the relationship between apache and zope - right now 
> I visit my site on the zope address - any attempt to hit apache, and apache 
> responds but with an error..
>
> When attempting to retranscode I see this from the transcode daemon :
>
>
> *ERROR*
>
> [r...@video zinstance]# ./bin/transcodedaemon fg
> 2010/06/04 09:43 -0400 [-] Log opened.
> 2010/06/04 09:43 -0400 [-] twistd 2.5.0 
> (/usr/local/Plone/Python-2.4/bin/python 2.4.6) starting up
> 2010/06/04 09:43 -0400 [-] reactor class: <class 
> 'twisted.internet.selectreactor.SelectReactor'>
> 2010/06/04 09:43 -0400 [-] Loading 
> /usr/local/Plone/zinstance/eggs/collective.transcode.daemon-0.1-py2.4.egg/collective/transcode/daemon
>                                          /common/transcodedaemon.py...
> 2010/06/04 09:43 -0400 [-] Initializing
> 2010/06/04 09:43 -0400 [-] Launched http channel
> 2010/06/04 09:43 -0400 [-] Launched TranscodeDaemon scheduler thread....
> 2010/06/04 09:43 -0400 [-] Loaded.
> 2010/06/04 09:43 -0400 [-] twisted.web2.channel.http.HTTPFactory starting on 
> 8888
> 2010/06/04 09:43 -0400 [-] Starting factory 
> <twisted.web2.channel.http.HTTPFactory instance at 0x7f2a00b5f098>
> 2010/06/04 09:43 -0400 [-] Scheduler thread running
> 2010/06/04 10:18 -0400 [-] ['jpeg', 'mp4', 'ogg']
> 2010/06/04 10:18 -0400 [-] New job
> 2010/06/04 10:18 -0400 [-] DOWNLOADING 
> http://video.healthydirections.com:8080/Video/Members/admin/videos/test-3/download/video_file/Wil
>                                          dlife.wmv
> 2010/06/04 10:18 -0400 [-] EXCEPTION [Errno socket error] (111, 'Connection 
> refused') CAUGHT FOR <Job input={'path': 'http://video.healt                  
>                        
> hydirections.com:8080/Video/Members/admin/videos/test-3/download/video_file/Wildlife.wmv',
>  'type': 'video/x-ms-wmv'} ouput={'path': 'tra                                
>          
> nscoded/http/video.healthydirections.com/8080/Video/Members/admin/videos/test-3/download/video_file/Wildlife.wmv/jpeg/Wildlife.jpg',
>  'ty                                         pe': 'image/jpeg'} options={} 
> {'callbackURL': 
> 'http://admin:[email protected]:8080/Video/Members/admin/videos/test
>                                          -3/@@streaming_RPC'}
> 2010/06/04 10:18 -0400 [-] Transcoder returned [Errno socket error] (111, 
> 'Connection refused') {'path': 'transcoded/http/video.healthyd                
>                          
> irections.com/8080/Video/Members/admin/videos/test-3/download/video_file/Wildlife.wmv/jpeg/Wildlife.jpg',
>  'type': 'image/jpeg'}
> 2010/06/04 10:18 -0400 [-] Unhandled Error
>         Traceback (most recent call last):
>           File "/usr/local/Plone/Python-2.4/lib/python2.4/threading.py", line 
> 442, in __bootstrap
>             self.run()
>           File "/usr/local/Plone/Python-2.4/lib/python2.4/threading.py", line 
> 422, in run
>             self.__target(*self.__args, **self.__kwargs)
>         --- <exception caught here> ---
>           File 
> "/usr/local/Plone/zinstance/eggs/zope.app.twisted-3.5.0-py2.4.egg/twisted/python/threadpool.py",
>  line 148, in _worker
>             context.call(ctx, function, *args, **kwargs)
>           File 
> "/usr/local/Plone/zinstance/eggs/zope.app.twisted-3.5.0-py2.4.egg/twisted/python/context.py",
>  line 59, in callWithContext
>             return self.currentContext().callWithContext(ctx, func, *args, 
> **kw)
>           File 
> "/usr/local/Plone/zinstance/eggs/zope.app.twisted-3.5.0-py2.4.egg/twisted/python/context.py",
>  line 37, in callWithContext
>             return func(*args,**kw)
>           File 
> "/usr/local/Plone/zinstance/eggs/collective.transcode.daemon-0.1-py2.4.egg/collective/transcode/daemon/common/scheduler.p
>                                          y", line 121, in run
>             reactor.callFromThread(job.defer.errback, 'FAIL %d' % ret)
>         exceptions.TypeError: int argument required
>
>
>
>
>
> My site.cfg
>
> Video and videos. All resolve to the same IP
>
>
> # site-specific settings for a Plumi based site
>
> [site]
> # start with offbeat password, and hint that it should be made unique in-site:
> user = admin:admin
> effective-user = zope
> http-address = 172.17.81.164:8080
> ftp-address = 127.0.0.1:8021
> transcode_host = 127.0.0.1
> transcode_port = 8888
> videofolder = transcoded
>
> #squid configs
> squid_address = 127.0.0.1:4128
> squid_backend = ${site:http-address}
> squid_hostname = video.healthydirections.com
> squid_email = [email protected]
>
> #apache configs
> apache_backends = video.healthydirections.com:${site:squid_address}
> transcode_backends = 
> videos.healthydirections.com:${site:transcode_host}:${site:
> transcode_port}
> apache_zope2_vhm_map = video.healthydirections.com:/Video
>
>
>
>
> -----Original Message-----
> From: [email protected] 
> [mailto:[email protected]] On Behalf Of Edward Brookhouse
> Sent: Friday, June 04, 2010 8:07 AM
> To: [email protected]; Discussion about software development on Plumi
> Subject: Re: [plumi-discuss] Plumi 3.0 Transcoding
>
> Thanks Grant,
>
> This is running on Fedora 13 - I did the install of ffmpeg, ffmpeg2theora 
> etc, and assumed I would get an error if they were not right - I'll 
> re-compile them and see what happens -
>
> The issue seems to be that the file is not being uploaded to be transcoded 
> though, based on your below info - so I am going to dig through permissions 
> as well -
>
> Thanks everyone!
>
> -----Original Message-----
> From: [email protected] 
> [mailto:[email protected]] On Behalf Of Grant McHerron
> Sent: Thursday, June 03, 2010 9:07 PM
> To: Discussion about software development on Plumi
> Subject: Re: [plumi-discuss] Plumi 3.0 Transcoding
>
>
> Hey there,
>
> On Thu, 2010-06-03 at 14:06 +0000, Edward Brookhouse wrote:
> > I’ve the latest plumi/plone (using Jim Brown’s guide here
> > http://lists.plumi.org/pipermail/discuss/2010-March/002255.html)
>
> Did you also check the installation instructions in the Plumi manual?
>
> http://en.flossmanuals.net/bin/view/Plumi/Installation
>
> Did you get all the ffmpeg libraries & codevs installed?
>
> I'm assuming you have but want to check to be sure :)
>
>
> > It took a little shoe horning to get Python and PIL setup correctly(at
> > least I think it is) but overall, I am up and running.  I am looking
> > for advice on how to troubleshoot transcoding?
>
> What system are you running on? Debian? Ubuntu? Mac?
>
>
> > The transcode daemon is running, and when I publish a movie, I see:
>
> As per my previous email, the "is nul" is not really an issue, but I'll
> see if I can get the Unweb guys to have a look at the log entries you've
> posted. There may be a clue in there that I'm missing.
>
> > and the transcoder shows only:
>
> > 2010/06/03 10:03 -0400 [-] ['jpeg', 'mp4', 'ogg']
>
> Is that the only entry? No other lines at all?
>
> > I was under the assumption that if nothing shows up under your
> > transcode dir, there is a problem…(and there is not anything showing
> > up so )
>
> Yeah - that's not really a good thing :)
>
>
> can you post the contents of your site.cfg file from the buildout?
>
>
> > Is there anyway to verify if transcoding is in progress ?
>
> Run top on another window and look for ffmpeg running. It'll be running
> for a while as it encodes your video so it should show up easily :)
>
> Cheers,
>
> Grant
>
>
> >
>
>
> --
> --
> Grant McHerron
>
> EngageMedia Collective Inc.
>
> [email protected]
> +61 422 914 949
> http://engagemedia.org/
>
>
> _______________________________________________
> Discuss mailing list
> [email protected]
> http://lists.plumi.org/listinfo/discuss
> _______________________________________________
> Discuss mailing list
> [email protected]
> http://lists.plumi.org/listinfo/discuss
> _______________________________________________
> Discuss mailing list
> [email protected]
> http://lists.plumi.org/listinfo/discuss

--


Sent from an Emacs buffer.
_______________________________________________
Discuss mailing list
[email protected]
http://lists.plumi.org/listinfo/discuss

Reply via email to