Re: [Dorset] Encoding Video for streaming

2010-01-20 Thread Robert Bronsdon
On Tue, 19 Jan 2010 18:04:17 -, Terry Coles d-...@hadrian-way.co.uk  
wrote:

 It's not that the file wouldn't play on the PS3; I couldn't even add it  
 to
 the list of videos for streaming in MediaTomb.  Is there a way to do  
 this in the shell instead of through a browser so I can see the error  
 codes?

that is odd.

Can I presume MediaTomb is adding 'some' files?

I think I was using the .avi extension with that script - sorry my email  
at the time was lacking in information.

I've not yet found a way to control MT from the CLI. That would be pretty  
useful though.

-- 
Using Opera M2: http://www.opera.com/mail/

-- 
Next meeting: Bournemouth, Wed 2010-02-03 20:00
http://dorset.lug.org.uk/ http://www.linkedin.com/groups?gid=2645413
   Chat: http://www.mibbit.com/?server=irc.blitzed.orgchannel=%23dorset
   List info: https://mailman.lug.org.uk/mailman/listinfo/dorset


Re: [Dorset] Encoding Video for streaming

2010-01-20 Thread Terry Coles
On Wednesday 20 Jan 2010, Robert Bronsdon wrote:
 On Tue, 19 Jan 2010 18:04:17 -, Terry Coles d-...@hadrian-way.co.uk
 wrote:
  It's not that the file wouldn't play on the PS3; I couldn't even add it
  to
  the list of videos for streaming in MediaTomb.  Is there a way to do
  this in the shell instead of through a browser so I can see the error
  codes?
 
 that is odd.
 
 Can I presume MediaTomb is adding 'some' files?

Yes.  Files that already play without conversion and files I converted with 
Handbrake work fine.

 I think I was using the .avi extension with that script - sorry my email
 at the time was lacking in information.

The resultant file played fine on this computer.  It just wouldn't stream to 
the PS3.

 I've not yet found a way to control MT from the CLI. That would be pretty
 useful though.

Although I'm not a big CLI user, I always find that trying to invoke 
misbehaving code in the shell generally reveals more errors than running the 
same code in a GUI.

-- 
Terry Coles
64 bit computing with Kubuntu Linux


-- 
Next meeting: Bournemouth, Wed 2010-02-03 20:00
http://dorset.lug.org.uk/ http://www.linkedin.com/groups?gid=2645413
   Chat: http://www.mibbit.com/?server=irc.blitzed.orgchannel=%23dorset
   List info: https://mailman.lug.org.uk/mailman/listinfo/dorset


Re: [Dorset] Encoding Video for streaming

2010-01-19 Thread Terry Coles
On Tuesday 19 Jan 2010, Robert Bronsdon wrote:
 The main script I use is included below. It produces some large files but
 it does work on the PS3. I've had this working up to 720p content just
 fine so I know its OK.

 #!/bin/sh
 
 mencoder -oac lavc -ovc lavc -channels 6 -of mpeg -mpegopts
 format=dvd:tsaf -vf softskip,scale=720:-2,hqdn3d,harddup -srate 48000 -af
 lavcresample=48000:volnorm=2 -ofps 25 -lavcopts
 vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=5120:vstrict=0:keyint=15:vb
 itrate=5120:acodec=ac3:abitrate=192:autoaspect $1 -o $2

Interesting.  That's yet another incantation of mencoder that I've seen, which 
produced good quality video that I could watch using MPlayer on the Linux box, 
but wouldn't stream in MediaTomb.

It's not that the file wouldn't play on the PS3; I couldn't even add it to the 
list of videos for streaming in MediaTomb.  Is there a way to do this in the 
shell instead of through a browser so I can see the error codes?

-- 
Terry Coles
64 bit computing with Kubuntu Linux


-- 
Next meeting: Bournemouth, Wed 2010-02-03 20:00
http://dorset.lug.org.uk/ http://www.linkedin.com/groups?gid=2645413
   Chat: http://www.mibbit.com/?server=irc.blitzed.orgchannel=%23dorset
   List info: https://mailman.lug.org.uk/mailman/listinfo/dorset


Re: [Dorset] Encoding Video for streaming

2010-01-19 Thread Terry Coles
On Tuesday 19 Jan 2010, Ralph Corderoy wrote:
 In case it's not obvious, I think you run the script with two
 parameters, the input file and the desired output file.  And the above
 is all on one line, or else append a space and a backslash,  \, to all
 lines from mencoder onwards but the last.

I got that far and the script worked fine.  I just couldn't stream the O/P.

-- 
Terry Coles
64 bit computing with Kubuntu Linux


-- 
Next meeting: Bournemouth, Wed 2010-02-03 20:00
http://dorset.lug.org.uk/ http://www.linkedin.com/groups?gid=2645413
   Chat: http://www.mibbit.com/?server=irc.blitzed.orgchannel=%23dorset
   List info: https://mailman.lug.org.uk/mailman/listinfo/dorset


Re: [Dorset] Encoding Video for streaming

2010-01-18 Thread Andrew Montgomery-Hurrell
2010/1/18 Terry Coles d-...@hadrian-way.co.uk

 On Monday 18 Jan 2010, Dan Dart wrote:
  The audio may be in an unrecognised format. Have you tried -ao mp3lame
  in mencoder?

 But unrecognised by what?  Will that encoding provide an audio stream that
 is
 recognised by the PS3; remember the original encoding worked fine on the
 Linux
 box.

 --
Terry Coles
64 bit computing with Kubuntu Linux



Have you looked at HandBrake ( http://handbrake.fr )? I believe it has an
encoding preset specifically for the PS3.



-- 
Andrew Montgomery-Hurrell
Professional Geek
Blog: http://darkliquid.co.uk
Twitter: http://twitter.com/darkliquid
Fiction: http://www.protagonize.com/author/darkliquid
-- 
Next meeting: Bournemouth, Wed 2010-02-03 20:00
http://dorset.lug.org.uk/ http://www.linkedin.com/groups?gid=2645413
   Chat: http://www.mibbit.com/?server=irc.blitzed.orgchannel=%23dorset
   List info: https://mailman.lug.org.uk/mailman/listinfo/dorset


Re: [Dorset] Encoding Video for streaming

2010-01-18 Thread Terry Coles
On Monday 18 Jan 2010, Andrew Montgomery-Hurrell wrote:
 Have you looked at HandBrake ( http://handbrake.fr )? I believe it has an
 encoding preset specifically for the PS3.
 
Bingo!

That is a seriously easy to use piece of software.  I didn't see any specific 
settings for PS3, but I simply used the defaults to convert AVI to MP4, put it 
on a USB stick, put the stick into the PS3 and it worked!

Even if it won't stream, we can still copy files to the PS3 manually and watch 
them that way.

Thanks.

-- 
Terry Coles
64 bit computing with Kubuntu Linux


-- 
Next meeting: Bournemouth, Wed 2010-02-03 20:00
http://dorset.lug.org.uk/ http://www.linkedin.com/groups?gid=2645413
   Chat: http://www.mibbit.com/?server=irc.blitzed.orgchannel=%23dorset
   List info: https://mailman.lug.org.uk/mailman/listinfo/dorset


Re: [Dorset] Encoding Video for streaming

2010-01-18 Thread Robert Bronsdon
Hello Terry,

Sorry for posting twice in a row but I didn't realise exactly the  
question. As before I've got a PS3 working quite nicely.

The main script I use is included below. It produces some large files but  
it does work on the PS3. I've had this working up to 720p content just  
fine so I know its OK.

I know precisely the battle your facing trying to work your way through  
the myriad of mencoder options, this seems to be working OK for me. Like I  
say its pretty much optimised for 720p video but will work for most things.

Its at least a starting point.

#!/bin/sh

mencoder -oac lavc -ovc lavc -channels 6 -of mpeg -mpegopts  
format=dvd:tsaf -vf softskip,scale=720:-2,hqdn3d,harddup -srate 48000 -af  
lavcresample=48000:volnorm=2 -ofps 25 -lavcopts  
vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=5120:vstrict=0:keyint=15:vbitrate=5120:acodec=ac3:abitrate=192:autoaspect
  
$1 -o $2


-- 
Using Opera M2: http://www.opera.com/mail/

-- 
Next meeting: Bournemouth, Wed 2010-02-03 20:00
http://dorset.lug.org.uk/ http://www.linkedin.com/groups?gid=2645413
   Chat: http://www.mibbit.com/?server=irc.blitzed.orgchannel=%23dorset
   List info: https://mailman.lug.org.uk/mailman/listinfo/dorset


Re: [Dorset] Encoding Video for streaming

2010-01-18 Thread Ralph Corderoy

Hi Terry,

Robert Bronsdon wrote:
 #!/bin/sh
 
 mencoder -oac lavc -ovc lavc -channels 6 -of mpeg -mpegopts  
 format=dvd:tsaf -vf softskip,scale=720:-2,hqdn3d,harddup -srate 48000 -af  
 lavcresample=48000:volnorm=2 -ofps 25 -lavcopts  
 vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=5120:vstrict=0:keyint=15:vbit
 rate=5120:acodec=ac3:abitrate=192:autoaspect  
 $1 -o $2

In case it's not obvious, I think you run the script with two
parameters, the input file and the desired output file.  And the above
is all on one line, or else append a space and a backslash,  \, to all
lines from mencoder onwards but the last.

Cheers,
Ralph.


-- 
Next meeting: Bournemouth, Wed 2010-02-03 20:00
http://dorset.lug.org.uk/ http://www.linkedin.com/groups?gid=2645413
   Chat: http://www.mibbit.com/?server=irc.blitzed.orgchannel=%23dorset
   List info: https://mailman.lug.org.uk/mailman/listinfo/dorset


Re: [Dorset] Encoding Video for streaming

2010-01-16 Thread Ralph Corderoy

Hi Terry,

 MPEG1/2 does not support 2997/100 fps

Try adding

-ofps 3/1001

to the command line.

Cheers,
Ralph.


-- 
Next meeting: Dorchester, Tuesday 2010-01-12 20:00 ** New date **
Dorset LUG: http://dorset.lug.org.uk/
Chat: http://www.mibbit.com/?server=irc.blitzed.orgchannel=%23dorset
List info: https://mailman.lug.org.uk/mailman/listinfo/dorset


Re: [Dorset] Encoding Video for streaming

2010-01-16 Thread Terry Coles
On Saturday 16 Jan 2010, Ralph Corderoy wrote:

  MPEG1/2 does not support 2997/100 fps
 
 Try adding
 
 -ofps 3/1001
 
 to the command line.

Well that's converting, but I've 17 minutes to wait to see if it's worked!

Thanks!

-- 
Terry Coles
64 bit computing with Kubuntu Linux


-- 
Next meeting: Dorchester, Tuesday 2010-01-12 20:00 ** New date **
Dorset LUG: http://dorset.lug.org.uk/
Chat: http://www.mibbit.com/?server=irc.blitzed.orgchannel=%23dorset
List info: https://mailman.lug.org.uk/mailman/listinfo/dorset