Apple Trailers: VLC and MEncoder commandline tests

For help and support with PS3 Media Server in general
Forum rules
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply.

Apple Trailers: VLC and MEncoder commandline tests

Postby whome » Sat Apr 04, 2009 1:39 pm

Here is someone who asked for Apple Trailers streaming support. I took the bite and added Apple Trailers support to my Areenafeed conversion system (updated version not uploaded to my home page yet).

Not so fast my friends, here are findings I discovered and a test case.
webpage: ... eforterra/
streaming url: ...
internal video url: ...
(see a small difference in file names)

Apple uses fladh rtmp(?) streaming protocol, its a simple binary file where internal video link can be read.

VLC: can read streaming url which is good, produced 75MB file
MEncoder: cannot read streaming url, we must give it the internal video file url. Very unfortunate issue, produced 25MB file, a bit faster to transcode

But none of the streaming engines work properly for Apple trailers and after few commandline testings I think found the reason. Apple .mov files use 2997/125 fps (23.976) setting. MPEG1/2 encoder does not support it, a fraction 24000/1001 (23.97603...) is a perfect match and supported one.

I had to use fps=24 VLC option then was able to transcode. Default PS3MS vlc command is unable to identify the original non-mpeg2 supported fps. This is not an exact fps match but I don't know how to give a full match to VLC program.
Code: Select all
set source=
set VLC=C:\Program Files\VideoLAN\VLC\vlc.exe
"%VLC%" -I dummy %source% :sout=#transcode{vcodec=mp2v,vb=4096,fps=24,acodec=mp3,ab=128,channels=2}:duplicate{dst=std{access=file,mux=ts,dst="output.mpeg"}}

Here is Mencoder command line it supports 24000/1001 fps setting so its a perfect match. But as you can see we must give it the internal video file url, I had to take it from the streaming binary reply. Original PS3MS command puts -nocache, -format dvd, ac3 audio, -of lavf argument but it failed on my testings. I modified a command line and changed audio to mp3. I think its -nocache parameter alone failed.
Code: Select all
set source=
set MENCODER=C:\projects\PS3MediaServer\ps3mediaserver\win32\mencoder.exe
%MENCODER%  %source%  -prefer-ipv4 -of lavf -ovc lavc -oac lavc -lavcopts vcodec=mpeg2video:vbitrate=4096:threads=2:acodec=libmp3lame:abitrate=128 -ofps 24000/1001 -o output.mpeg

* VLC command line should force fps=XX command line argument if source video uses mpeg1/2 non-supported fps
* VLC breaks the pixel aspect ratio field, video is played distorted, should force aspect ratio in a command line
* MENCODER command line must not have -nocache parameter
* MENCODER can only use the internal video file url

We cannot parameterize streaming settings per videofeed source, so as for now Apple Trailers don't work with PS3MS default command lines.

edit: similar issue here
Posts: 113
Joined: Tue Jan 20, 2009 12:26 am

Return to General Help and Support

Who is online

Users browsing this forum: Google [Bot] and 6 guests