There is a fair amount of info on the net about using ffmpeg. There are also many movie trailers, but I wanted short clips and found some. The ffmpeg player (in gui-wrapper winFF) can play these. I converted all to avi, but could not make them work with pjsua with --play-avi option. The summary below uses the the shortest clip 'atwork.wmv', found at http://www.funny-games.biz/videos/ in section Office Videos under Bored at Work. Also tried Angry Programmer in same section and Abandoned Briefcase in the Newest Videos section. First converted wmv to avi with: ffmpeg -i /home/ken/pjs201c/pjproject-2.0.1/pjsip-apps/bin/atwork.wmv atwork.avi The avi format generated was video: 320x240, codec ffmpeg mpeg-4? audio mpeg1 layer2, stereo, sampling rate 32000, bitrate 64kb and tried it with: ?./pjs201c/pjproject-2.0.1/pjsip-apps/bin/pjsua-i686-pc-linux-gnu --play-avi=/home/ken/pjs201c/pjproject-2.0.1/pjsip-apps/bin/atwork.avi .... omitted 16:57:29.995??? pjsua_vid.c? ..Initializing video subsystem.. 16:57:30.079 ffmpeg_vid_cod? ...Cannot find H264 encoder in ffmpeg library 16:57:30.189????? sdl_dev.c? ...SDL 2.0 initialized ... 16:57:30.190 sip_endpoint.c? Module "mod-default-handler" registered 16:57:30.207????? avi_dev.c? AVI dev factory created with 1 virtual device(s) 16:57:30.207?? avi_player.c? Unsupported audio stream 16:57:30.207?? avi_player.c? AVI file player '/home/ken/pjs201c/pjproject-2.0.1/pjsip-apps/bin/atwork.avi' created with 1 media ports Got Unsupported audio stream so I converted the audio to pcmmulaw, 8000 sampling rate and mono with: ffmpeg -i /home/ken/pjs201c/pjproject-2.0.1/pjsip-apps/bin/atwork.wmv -ac 1 -acodec pcm_mulaw -ar 8000 atworkpcmmulaw8000.avi but got the same 'Unsupported audio stream' error message when trying it. Finally changed the video too: ffmpeg -i /home/ken/pjs201c/pjproject-2.0.1/pjsip-apps/bin/bored-at-work.wmv -vcodec h263 -s 352x288 -ac 1 -acodec pcm_mulaw -ar 8000 atworkh263pcmmulaw8000.avi and then got 'Unsupported video stream' and 'Unsupported audio stream' messages. I also tried giving video codec names h263-1998 and h263-1996 to ffmpeg but got 'Unknown encoder' error messages. I am not sure if I am using ffmpeg correctly when converting to avi and I don't know if the conversions I was trying are the appropriate ones. I am stuck on this first hurdle and would be grateful for advice. Ken P.S. Here is the full console log when running the last conversion: ~$ ./pjs201c/pjproject-2.0.1/pjsip-apps/bin/pjsua-i686-pc-linux-gnu --play-avi=/home/ken/pjs201c/pjproject-2.0.1/pjsip-apps/bin/atworkh263pcmmulaw8000.avi 17:52:53.401 os_core_unix.c !pjlib 2.0.1 for POSIX initialized 17:52:53.402 sip_endpoint.c? .Creating endpoint instance... 17:52:53.402????????? pjlib? .select() I/O Queue created (0x99bb170) 17:52:53.402 sip_endpoint.c? .Module "mod-msg-print" registered 17:52:53.402 sip_transport.? .Transport manager created. 17:52:53.402?? pjsua_core.c? .PJSUA state changed: NULL --> CREATED 17:52:53.403 sip_endpoint.c? .Module "mod-pjsua-log" registered 17:52:53.403 sip_endpoint.c? .Module "mod-tsx-layer" registered 17:52:53.403 sip_endpoint.c? .Module "mod-stateful-util" registered 17:52:53.403 sip_endpoint.c? .Module "mod-ua" registered 17:52:53.403 sip_endpoint.c? .Module "mod-100rel" registered 17:52:53.403 sip_endpoint.c? .Module "mod-pjsua" registered 17:52:53.403 sip_endpoint.c? .Module "mod-invite" registered bt_audio_service_open: connect() failed: Connection refused (111) bt_audio_service_open: connect() failed: Connection refused (111) bt_audio_service_open: connect() failed: Connection refused (111) bt_audio_service_open: connect() failed: Connection refused (111) 17:52:53.530?????? pa_dev.c? ..PortAudio sound library initialized, status=0 17:52:53.531?????? pa_dev.c? ..PortAudio host api count=2 17:52:53.531?????? pa_dev.c? ..Sound device count=12 17:52:53.531????????? pjlib? ..select() I/O Queue created (0x99e0eb4) 17:52:53.578??? pjsua_vid.c? ..Initializing video subsystem.. 17:52:53.580 ffmpeg_vid_cod? ...Cannot find H264 encoder in ffmpeg library 17:52:53.580 colorbar_dev.c? ...Colorbar video src initialized with 1 device(s): 17:52:53.580 colorbar_dev.c? ... 0: Colorbar generator 17:52:53.654????? sdl_dev.c? ...SDL 2.0 initialized 17:52:53.654 sip_endpoint.c? .Module "mod-evsub" registered 17:52:53.654 sip_endpoint.c? .Module "mod-presence" registered 17:52:53.654 sip_endpoint.c? .Module "mod-mwi" registered 17:52:53.654 sip_endpoint.c? .Module "mod-refer" registered 17:52:53.654 sip_endpoint.c? .Module "mod-pjsua-pres" registered 17:52:53.654 sip_endpoint.c? .Module "mod-pjsua-im" registered 17:52:53.654 sip_endpoint.c? .Module "mod-pjsua-options" registered 17:52:53.654?? pjsua_core.c? .1 SIP worker threads created 17:52:53.654?? pjsua_core.c? .pjsua version 2.0.1 for Linux-2.6.32.41/i686/glibc-2.11 initialized 17:52:53.654?? pjsua_core.c? .PJSUA state changed: CREATED --> INIT 17:52:53.654 sip_endpoint.c? Module "mod-default-handler" registered 17:52:53.654????? avi_dev.c? AVI dev factory created with 1 virtual device(s) 17:52:53.655?? avi_player.c? Unsupported video stream 17:52:53.655?? avi_player.c? Unsupported audio stream 17:52:53.655??? pjsua_app.c? Error creating AVI player for /home/ken/pjs201c/pjproject-2.0.1/pjsip-apps/bin/atworkh263pcmmulaw8000.avi: Unsupported AVI file (PJMEDIA_EAVIUNSUPP) 17:52:53.655?? pjsua_core.c? Shutting down, flags=0... 17:52:53.655?? pjsua_core.c? PJSUA state changed: INIT --> CLOSING 17:52:53.655?? pjsua_call.c? .Hangup all calls.. 17:52:53.655?? pjsua_pres.c? .Shutting down presence.. 17:52:53.655? pjsua_media.c? .Shutting down media.. 17:52:53.655? pjsua_media.c? ..Call 0: deinitializing media.. 17:52:53.655? pjsua_media.c? ..Call 1: deinitializing media.. 17:52:53.655? pjsua_media.c? ..Call 2: deinitializing media.. 17:52:53.655? pjsua_media.c? ..Call 3: deinitializing media.. 17:52:53.655??? pjsua_vid.c? ..Destroying video subsystem.. 17:52:53.655??? pjsua_vid.c? ...Window 0: destroying.. 17:52:53.655??? pjsua_vid.c? ...Window 1: destroying.. 17:52:53.655??? pjsua_vid.c? ...Window 2: destroying.. 17:52:53.655??? pjsua_vid.c? ...Window 3: destroying.. 17:52:53.655??? pjsua_vid.c? ...Window 4: destroying.. 17:52:53.655??? pjsua_vid.c? ...Window 5: destroying.. 17:52:53.655??? pjsua_vid.c? ...Window 6: destroying.. 17:52:53.655??? pjsua_vid.c? ...Window 7: destroying.. 17:52:53.655??? pjsua_vid.c? ...Window 8: destroying.. 17:52:53.655??? pjsua_vid.c? ...Window 9: destroying.. 17:52:53.655??? pjsua_vid.c? ...Window 10: destroying.. 17:52:53.655??? pjsua_vid.c? ...Window 11: destroying.. 17:52:53.655??? pjsua_vid.c? ...Window 12: destroying.. 17:52:53.655??? pjsua_vid.c? ...Window 13: destroying.. 17:52:53.655??? pjsua_vid.c? ...Window 14: destroying.. 17:52:53.655??? pjsua_vid.c? ...Window 15: destroying.. 17:52:54.036?????? pa_dev.c? ..PortAudio sound library shutting down.. 17:52:55.044?? pjsua_core.c? .Destroying... 17:52:55.044 sip_transactio? .Stopping transaction layer module 17:52:55.044 sip_transactio? .Stopped transaction layer module 17:52:55.044 sip_endpoint.c? .Module "mod-default-handler" unregistered 17:52:55.044 sip_endpoint.c? .Module "mod-pjsua-options" unregistered 17:52:55.044 sip_endpoint.c? .Module "mod-pjsua-im" unregistered 17:52:55.044 sip_endpoint.c? .Module "mod-pjsua-pres" unregistered 17:52:55.044 sip_endpoint.c? .Module "mod-pjsua" unregistered 17:52:55.044 sip_endpoint.c? .Module "mod-stateful-util" unregistered 17:52:55.044 sip_endpoint.c? .Module "mod-refer" unregistered 17:52:55.044 sip_endpoint.c? .Module "mod-mwi" unregistered 17:52:55.044 sip_endpoint.c? .Module "mod-presence" unregistered 17:52:55.044 sip_endpoint.c? .Module "mod-evsub" unregistered 17:52:55.044 sip_endpoint.c? .Module "mod-invite" unregistered 17:52:55.044 sip_endpoint.c? .Module "mod-100rel" unregistered 17:52:55.044 sip_endpoint.c? .Module "mod-ua" unregistered 17:52:55.044 sip_transactio? .Transaction layer module destroyed 17:52:55.044 sip_endpoint.c? .Module "mod-tsx-layer" unregistered 17:52:55.044 sip_endpoint.c? .Module "mod-msg-print" unregistered 17:52:55.044 sip_endpoint.c? .Module "mod-pjsua-log" unregistered 17:52:55.044 sip_endpoint.c? .Endpoint 0x99b32c4 destroyed 17:52:55.044?? pjsua_core.c? .PJSUA state changed: CLOSING --> NULL 17:52:55.044?? pjsua_core.c? .PJSUA destroyed... -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20120720/9e747e57/attachment-0001.html>