Sailfish OS 용 오디오 플레이어를 개발 중이며 gstreamer를 통해 파일을 재생하려하지만 문제가 있습니다. 소리가 들리지 않습니다.Sailfish OS에서 Gstreamer 출력 소리 없음
나는 콘솔을 통해 gstream을 확인 :
GST-출시 - 0.10 filesrc 위치 =/경로 /로가/file.ogg을! 디코드 빈! autoaudiosink
잘 작동합니다!
int
main (int argc,
char *argv[])
{
GstElement *pipeline;
GstBus *bus;
GstMessage *msg;
gst_init (&argc, &argv);
pipeline = gst_parse_launch ("filesrc location=/home/nemo/Music/Ringtones/Myfile.mp3 ! decodebin ! audioconvert ! vorbisenc ! oggmux ! filesink location=test.ogg", NULL);
gst_element_set_state (pipeline, GST_STATE_PLAYING);
bus = gst_element_get_bus (pipeline);
msg = gst_bus_timed_pop_filtered (bus, GST_CLOCK_TIME_NONE, (GstMessageType)(GST_MESSAGE_ERROR | GST_MESSAGE_EOS));
if (msg != NULL)
gst_message_unref (msg);
gst_object_unref (bus);
gst_element_set_state (pipeline, GST_STATE_NULL);
gst_object_unref (pipeline);
return 0;
}
을 그리고 그것은 잘 작동 :
나는 오디오 파일을 오디오 파일을 변환 테스트!
는 GST :
pipeline = gst_parse_launch ("filesrc location=/home/nemo/Music/Ringtones/Myfile.mp3 ! decodebin ! audioconvert ! autoaudiosink", NULL);
있는 GStreamer 버전 : 자원이 사용되기 전에 획득 필요가 있기 때문에 0.10