0.10 で gst-launch パイプラインが動作しています:
gst-launch-0.10 \
filesrc location=c:/prog4.mpg \
! tsdemux name=dem \
! queue \
! ac3parse \
! a52dec \
! audioconvert \
! audioresample \
! autoaudiosink \
dem. \
! queue \
! mpegvideoparse \
! mpeg2dec \
! autovideosink
しかし、バージョン 1.0 の同じパイプラインはエラーを吐き出します:
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
Redistribute latency...
ERROR: from element /GstPipeline:pipeline0/GstTSDemux:dem: Internal data stream error.
Additional debug info:
mpegtsbase.c(1639): mpegts_base_loop (): /GstPipeline:pipeline0/GstTSDemux:dem:
stream stopped, reason not-negotiated
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Freeing pipeline ...
また、奇妙なことに、同じエラーが発生するplaybinを使用してみました。これを修正するにはどうすればよいですか?
編集:さて、問題を引き起こしているのはビデオ部分であることがわかりました。オーディオ部分とビデオ部分を分離すると、オーディオは正常に機能します。問題を引き起こしているのはこのビットです。
gst-launch-1.0 filesrc location=/home/rubndsouza/prog4.mpg \
! tsdemux ! queue ! mpegvideoparse ! mpeg2dec ! autovideosink
どんな助けでも大歓迎です。ありがとう!