-   Linux From Scratch (
-   -   FFmpeg problem: ffplay does not work (

k84834 02-05-2013 06:51 AM

FFmpeg problem: ffplay does not work
Hi every body
I have installed FFmpeg and pulseAudio and Alsa for installing full-option FreeRDP
now I have problems with video redirection in FreeRDP
after verifying FreeRDP sound redirection and Video redirection, Video redirection has some problem: it is just show a blank video and its error is:

root [ /freefiles ]# xfreerdp --no-nla --plugin rdpsnd --plugin drdynvc --data tsmf --

loading plugin rdpsnd
loading plugin drdynvc
connected to
Warning rdpsnd_pulse_connect (82): pa_context_connect failed (6)
Warning FreeRDPRdpsndDeviceEntry (500): rdpsnd_pulse_connect failed
Warning rdpsnd_load_device_plugin(466): pulse entry returns error.
Warning tsmf_pulse_connect (75): pa_context_connect failed (6)
Warning tsmf_pulse_open_stream (251): pa_stream_connect_playback failed (15)
Warning tsmf_ffmpeg_decode_audio (381): error decoding
Warning tsmf_pulse_conn(75):pa_context_connect failed (6)
Warning tsmf_pulse_open_stream (251): pa_stream_connect_playback failed (15)
Warning tsmf_ffmpeg_decode_video (287): data_size 4515, no frame is decoded.
The disconnection was initiated by an administrative tool on the server running in the user's session.

after searching and verifing I found that ffplay does not play any Video file.
I examine .flv .mp4 .wmv and some files dose not play at all and exit with segmentation fault, some others just for seconds is heard their sounds and exit with segmentation error.
for example, in running this file, for seconds just decode audio and exited with error!

root [ /home/blfs/Desktop ]# ffplay /media/flash/Wildlife.wmv
ffplay version 0.9.2, Copyright (c) 2003-2012 the FFmpeg developers
  built on Jan 27 2013 17:35:04 with gcc 4.6.2
  configuration: --prefix=/usr --disable-debug --enable-shared --disable-static --enable-gpl --enable-x11grab --enable-postproc --enable-version3 --enable-nonfree --enable-libfaac --enable-libfreetype --enable-libmp3lame --enable-libopenjpeg --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libxvid --enable-libpulse --enable-openssl
  libavutil    51. 32. 0 / 51. 32. 0
  libavcodec  53. 42. 4 / 53. 42. 4
  libavformat  53. 24. 2 / 53. 24. 2
  libavdevice  53.  4. 0 / 53.  4. 0
  libavfilter  2. 53. 0 /  2. 53. 0
  libswscale    2.  1. 0 /  2.  1. 0
  libpostproc  51.  2. 0 / 51.  2. 0
Input #0, asf, from '/media/flash/Wildlife.wmv':
    SfOriginalFPS  : 299
    WMFSDKVersion  : 11.0.6001.7000
    WMFSDKNeeded    :
    IsVBR          : 0
    title          : Wildlife in HD
    copyright      : 2008 Microsoft Corporation
    comment        : Footage: Small World Productions, Inc; Tourism New Zealand | Producer: Gary F. Spradling | Music: Steve Ball
  Duration: 00:00:30.09, start: 0.000000, bitrate: 6977 kb/s
    Stream #0:0(eng): Audio: wmav2 (a[1][0][0] / 0x0161), 44100 Hz, 2 channels, s16, 192 kb/s
    Stream #0:1(eng): Video: vc1 (Advanced) (WVC1 / 0x31435657), yuv420p, 1280x720, 5942 kb/s, 29.97 tbr, 1k tbn, 1k tbc
Segmentation fault77171.232 fd=  0 aq=  323KB vq=14751KB sq=    0B f=0/0
root [ /home/blfs/Desktop ]#

if is needed addition info please tell me,
I never before this use ffmpeg command , how can I found my ffmpeg package is installed true or not?
in your opinion, this error is caused by FFmpeg or FreeRDP?

k84834 02-05-2013 07:54 AM


root [ /home/blfs/Desktop ]# pulseaudio
W: [pulseaudio] main.c: This program is not intended to be run as root (unless --system is specified).
E: [pulseaudio] module-console-kit.c: GetSessionsForUnixUser() call failed: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.ConsoleKit was not provided by any .service files
E: [pulseaudio] module.c: Failed to load module "module-console-kit" (argument: ""): initialization failed.
E: [pulseaudio] main.c: Module load failed.
E: [pulseaudio] main.c: Failed to initialize daemon.
root [ /home/blfs/Desktop ]# start-pulseaudio-x11
W: [pulseaudio] main.c: This program is not intended to be run as root (unless --system is specified).
E: [pulseaudio] main.c: Daemon startup failed.
root [ /home/blfs/Desktop ]# xfreerdp --no-nla --plugin rdpsnd --data pulse --
loading plugin rdpsnd
connected to
Segmentation fault
root [ /home/blfs/Desktop ]# mount -v /dev/sda /media/flash/
mount: you didn't specify a filesystem type for /dev/sda
      I will try type vfat
/dev/sda on /media/flash type vfat (rw)
root [ /home/blfs/Desktop ]#

sound redirection just work with alsa and as you see, sound redirection has problem with pulse. I run "pulseaudio" and "start-pulseaudio-x11" and above error occurs. I now try to search about these error ...

All times are GMT -5. The time now is 10:30 AM.