Streaming MPEG-4 with Linux Lee Keun O RT-LAB
Content ■ Reference ■ Darwin streaming server ■ MPEG4IP (mp4live) ■ Problems
Streaming MPEG-4 with Linux ■ Made by Donald Szeto in ■ ffmpeg : video encoder ■ faac : audio encoder ■ MPEG4IP (mp4creator) :make mpeg4 file using audio and video file ■ Darwin Streaming server : access management playlist -> sdp file
Darwin Streaming Server ■ Darwin streaming server vsersion : 5.5 ■ Download : developer.apple.com/darwin/projects/streaming ■ License : APSL (Apple Public Source License) ■ Encoder : Broadcaster -> mp4live
Darwin Streaming Server
Important files /usr/local/sbin/DarwinStreamingServer : streaming server application /usr/local/sbin/streamingadminserver.pl : QTSS Web Admin server /usr/local/sbin/StreamingServermodules: QTSS plug-in /usr/local/bin/playlisterBroadcaster : The playlistBroadcaster /usr/local/bin/MP3Broadcaster : The MP3 Broadcaster /usr/local/bin/qtpasswd : generates password fiel for access control /etc/streaming/ : QTSS config file /var/streaming : readme.html, user manual.pdf /var/streaming/log : log /var/streaming/playlists : web admin playlist file
MPEG4IP Project ■ MPEG4IP project : To provide an open-source standards-based system for encoding, streaming, playing and even broadcasting MPEG-4 encoded audio and video ■ MPEG4IP integrates numerous open source applications along with new made code to complete the bundle.
MPEG4IP(server side tools) ■ mp4live : Integrated, live encoding to file or network ■ avi2raw : Extracts raw audio/video tracks from an AVI file ■ lboxcrop : Vertically crops raw video to a new aspect ratio ■ mp4venc : Encodes raw video into MPEG-4 encoded video using ISO codec ■ mp4creator : Create and hints audio/video track to an mp4file. ■ xvidenc : Encodes raw video into MPEG-4 encoded video using the Xvid codec
MPEG4IP(utility) ■ gmp4player : simple graphical interface player ■ mp4dump : Utility to dump MP4 file meta-information in text form ■ mp4trackdump : Utility to dump MP4 file track information in text form ■ mp4info : Utility to display MP4 file summary ■ mp4videoinfo : Utility to dump information about MP4 file video tracks ■ avidump : Utility to display AVI file summary ■ yuvdump : Utility to display a raw video file on the screen ■ mpeg_ps_info : Utility to display streams in an mpeg program stream or vob file ■ mpeg_ps_extract : Utility to extract elementary streams in an mpeg program stream or vob file
MPEG4IP SofewareRequired version Installed version Gcc Libtool Autoconf Automake SDL development Libraries ※ gcc 4.0 needs installation options
MP4LIVE
MP4LIVE Requirement ■ Hardware requirement - CPU : Pentium III 500MHz - RAM : Not typically an issue Recommend : 256Mb - Sound card : OSS (open sound system) compatible driver and Capture ability - Video device : video4linux(V4L) compatible driver memory mapped capture ability Recommend : support the video4linux2 ■ Software requirement - Linux with a 2.4 or later kernel Recommend : kernel 2.6 with V4L2 bulit in - Drivers for sound and video device
MP4LIVE Requirment ■ faac or later (faad2 is required) : audio encoding ※ MPEG4IP 1.3 has own audio encoder(G.711) ■ lame : mp3 encoding ■ ffmpeg : H.263, mpeg-4, mpeg-2 video, mpeg-2 audio prel is recommended ■ xvid : mpeg-4 encoding ■ x264 : H.264 video encoding ■ V4L2 (Video for Linux) interface
Environment ■ Fedora core 2 (kernel 2.6.5) ■ Webcam : mpc-c10(Samsung) □ using Philips chip □ module version: (pwc.ko) under version don’t have v4l □ download : □ fix problem pwc_if.c file : pwc_isoc_cleanup() usb_kill_urb(urb) -> usb_unlink_urb(urb)
Test Webcam ■ Using camorama download : camora.fixedgear.org/index.php
PWC module
Problems ■ Mp4live can not detecte video device ■ Streamed media can not view.
Q & A