[streaming] Re: RES: Selecting certain ES while streaming
Fleming Lampi
lampi at informatik.uni-mannheim.de
Wed Feb 7 18:47:42 CET 2007
Hello Isidro,
it is really simple to produce such a mp4 file. I used ffmpeg for it and
called it with the following parameters:
ffmpeg -i "myInputVideoDV.avi" -sameq -ab 224 -acodec mp3 -vcodec h264
-s 176x144 "myOutputVideo.mp4" -vcodec h264 -s 352x288 -newvideo -vcodec
h264 -s 720x576 -newvideo
So myInputVideoDV.avi is just a AVI-Container using MicrosoftDV codec.
This is what you get ouf a standard DV video camera through firewire.
-sameq is only used for triggering the VBR, maybe I should use it for
every video stream. (not yet tested)
-ab 224 is the bitrate of the mp3 audio
-acodec mp3 sets audio codec to mp3
-vcodec h264 sets video codec to h264 (implemented by using x264)
-s widthXheight
To add the multiple elementary streams I just encode the same input file
(there is only one given) at another size using again h264 codec. The
option -newvideo adds a new elementary stream to the file and has to be
the last switch after defining the parameters of the videostream to add.
You can do it similarly with -newaudio and -newsubtitle.
Hope this helps.
Regards,
Fleming.
Isidro Lopes da Silva Neto schrieb:
> Hello Mr. Fleming,
>
> I'm interested on how you have made such a composed mp4 file.
> Could you help me?
>
> Regards,
>
> Isidro. (You may write me a private e-mail via videolan forum if you prefer)
>
> -----Mensagem original-----
> De: streaming-bounce at videolan.org
> [mailto:streaming-bounce at videolan.org]Em nome de Fleming Lampi
> Enviada em: Wednesday, February 07, 2007 8:57 AM
> Para: streaming at videolan.org
> Assunto: [streaming] Selecting certain ES while streaming
>
>
> Hello everyone,
>
> I have made a mp4-file containing several x264 video elementary streams
> (ES) and a single mp3 audio ES. In fact the video streams differ only in
> the coded resolution.
> I am already able to stream the file using VLC even by using the
> commandline interface, but always at the receiving VLC all video streams
> are visible simultaneously.
>
> How can I select one single video ES and the audio ES to be streamed
> through the network in order to reduce network load?
>
> At the moment I use VLC 0.8.5 (self compiled) for sending and VLC 0.8.6a
> (windows binary) both on WinXPpro SP2.
> The command I use for streaming is: vlc -vvv "c:\myvideo.mp4" --sout
> "#standard{access=udp,mux=ts,dst=224.39.38.37:1234}"
> The result is the same (with all video ES) when I use "#es{...." in the
> commandline.
>
> Best regards,
> Fleming
>
>
--
M.Sc. Fleming Lampi
Universität Mannheim
Praktische Informatik IV (Computer science IV)
A5,6 Raum B227
D-68159 Mannheim
Tel: +49 621 181 2411
Fax: +49 621 181 2601
E-Mail: lampi at uni-mannheim.de
web: http://www.informatik.uni-mannheim.de/pi4/index.html
--
This is the streaming mailing-list, see http://www.videolan.org/streaming/
To unsubscribe, please read http://www.videolan.org/support/lists.html
More information about the streaming
mailing list