2013-06-30 5 views
2

AC3 스트림을 생성하는 예제가 있습니까? 내가 발견을 유지하는 유일한 예는 다음과 같습니다 그러나GStreamer를 사용하여 AC3으로 인코딩

gst-launch-1.0 -v audiotestsrc ! avenc_ac3 

, 나는 바로 아래에 다음과 같이, "내부 데이터 흐름 오류"때마다 얻을 :

gstbasesrc.c(2809): gst_base_src_loop(): /GstPipeline:pipeline0/GstAudioTestSrc:audiotestsrc0: 
streaming task paused, reason not-negotiated (-4) 

나는 버전 1.0.6이있다.

답변

2

그것은 비트율 파라미터가 선택적임을 밝혀 있지만 디폴트 값 (0)은 적어도 audiotestsrc 소스 유효하지 않다.

이 작동 :

gst-launch-1.0 audiotestsrc ! audio/x-raw,channels=2 ! avenc_ac3 bitrate=192000 ! filesink location=/tmp/ac3test_20130630-0245 
관련 문제