环境:
kernel: 3.10.53
yacto 编译出来的rootfs.
PC中VLC做为udp服务器。
开发板为:imx6q
用下面的命令播放H264和mpeg2的音视频文件都正常,但播放mpeg4的音视频时,屏幕没有任何输出。
请帮忙看一下,非常感谢!
root@imx6qsabresd:~# gplay-1.0 udp://192.168.1.108:1234/
playbin is employed!
Generate VideoSink overlaysink
====== OVERLAYSINK: 4.0.2 build on Jul 6 2015 21:23:18. ======
fsl_player_init(): Successfully initialize!
fsl_player_set_media_location(): filename=udp://192.168.1.255:1234/
[Stopped ][Vol=01][00:00:00/00:00:00]
====== AIUR: 4.0.2 build on Jul 6 2015 21:23:08. ======
Core: BLN_MAD-MMLAYER_MPG2PARSER_04.04.24 build on Jul 4 2014 04:54:05
file: /usr/lib/imx-mm/parser/lib_mpg2_parser_arm11_elinux.so.3.1
[Stopped ][Vol=01][00:00:00/00:00:00]Wait status change from 3 to 4
[Stopped ][Vol=01][00:00:00/00:00:00]Wait status change from 3 to 4
[Stopped ][Vol=01][00:00:00/00:00:00]Wait status change from 3 to 4
[Stopped ][Vol=01][00:00:00/00:00:00]Wait status change from 3 to 4
[Stopped ][Vol=01][00:00:00/00:00:00]Wait status change from 3 to 4
[Stopped ][Vol=01][00:00:00/00:00:00]Mpeg2CreateParser:parser created successfully
------------------------
Track 00 [audio_0] Enabled
Duration: 0:00:00.000000000
Language: und
Mime:
audio/mpeg, mpegversion=(int)4, channels=(int)2, rate=(int)44100, bitrate=(int)124720, framed=(boolean)true
------------------------
====== BEEP: 4.0.2 build on Jul 6 2015 21:23:13. ======
Core: AAC decoder Wrapper build on Apr 22 2014 09:43:50
file: /usr/lib/imx-mm/audio-codec/wrap/lib_aacd_wrap_arm12_elinux.so.3
CODEC: BLN_MAD-MMCODECS_AACD_ARM_03.09.00_CORTEX-A8 build on Jun 19 2014 18:30:32.
[Stopped ][Vol=01][00:00:12/00:00:12]Wait status change from 3 to 4
fsl_player_play()
FSL_PLAYER_01.00_LINUX build on Jul 6 2015 21:23:36
[h]display the operation Help
[p]Play
[s]Stop
[e]Seek
[a]Pause when playing, play when paused
[v]Volume
[m]Switch to mute or not
[>]Play next file
[<]Play previous file
[r]Switch to repeated mode or not
[f]Set full screen or not
[z]resize the width and height
[t]Rotate
[c]Setting play rate
[i]Display the metadata
[x]eXit
[Playing ][Vol=01][00:00:17/00:00:17]i
it's strange, if you use udp, you should use broadcase address, I test on my side, it's ok, my command is:
gst-launch-1.0 udpsrc do-timestamp=false uri=udp://10.193.101.255:10000 caps="video/mpegts" ! aiurdemux streaming-latency=400 name=d d. ! queue ! vpudec ! queue ! overlaysink sync=true d. ! queue ! beepdec ! pulsesink sync=true
then on pc side, you set the correct port and address