convert wmv to ogv

classic Classic list List threaded Threaded
13 messages Options
Reply | Threaded
Open this post in threaded view
|

convert wmv to ogv

Jerry Geis
I am trying this pipeline to convert wmv to ogv.

gst-launch filesrc location=../trailer_videos/Amazon_1080.wmv !
                decodebin ! name=demux ! queue ! ffmpegcolorspace ! theoraenc ! 
                oggmux name=mux ! filesink location=../Amazon.ogv  demux. ! queue ! progressreport !
                audioconvert ! audioresample ! vorbisenc ! mux.

and getting this error:
0:00:00.025897773 25225      0x107d200 ERROR           GST_PIPELINE ./grammar.y:735:priv_gst_parse_yyparse: link without source element
0:00:00.025926967 25225      0x107d200 ERROR           GST_PIPELINE ./grammar.y:741:priv_gst_parse_yyparse: link without sink element
0:00:00.037466004 25225      0x107d200 ERROR           GST_PIPELINE ./grammar.y:983:priv_gst_parse_launch: No element named "demux" - omitting link
WARNING: erroneous pipeline: link without source element



I'm stuck... What do I have wrong.

Thanks,

jerry

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: convert wmv to ogv

Mark Howell
On 06/18/2015 10:59 AM, Jerry Geis wrote:
> I am trying this pipeline to convert wmv to ogv.
>
> gst-launch filesrc location=../trailer_videos/Amazon_1080.wmv !
>                 decodebin ! name=demux ! queue ! ffmpegcolorspace !
> theoraenc !
>                 oggmux name=mux ! filesink location=../Amazon.ogv
>  demux. ! queue ! progressreport !
>                 audioconvert ! audioresample ! vorbisenc ! mux.
> [snip]

If you are trying to name the decodebin "demux", remove the "!" in
"...decodebin ! name=demux..." ?

Mark.

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: convert wmv to ogv

Jerry Geis
In reply to this post by Jerry Geis
Mark - thanks that gets me closer, one too many "!" ...
>If you are trying to name the decodebin "demux", remove the "!" in 
>"...decodebin ! name=demux..." ?
now I get:

gst-launch filesrc location=../trailer_videos/Amazon_1080.wmv '!' decodebin name=demux '!' queue '!' ffmpegcolorspace '!' theoraenc '!' oggmux name=mux '!' filesink location=../Amazon.ogv demux. '!' queue '!' progressreport '!' audioconvert '!' audioresample '!' vorbisenc '!' mux.
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
Missing element: video/x-fluendo-va decoder
Redistribute latency...
^CCaught interrupt -- handling interrupt.
Interrupt: Stopping pipeline ...
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Freeing pipeline ...

Thoughts? thanks again.

Jerry


_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: convert wmv to ogv

Mark Howell
On 06/18/2015 01:19 PM, Jerry Geis wrote:
Mark - thanks that gets me closer, one too many "!" ...
>If you are trying to name the decodebin "demux", remove the "!" in 
>"...decodebin ! name=demux..." ?
now I get:

gst-launch filesrc location=../trailer_videos/Amazon_1080.wmv '!' decodebin name=demux '!' queue '!' ffmpegcolorspace '!' theoraenc '!' oggmux name=mux '!' filesink location=../Amazon.ogv demux. '!' queue '!' progressreport '!' audioconvert '!' audioresample '!' vorbisenc '!' mux.
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
Missing element: video/x-fluendo-va decoder
Redistribute latency...
^CCaught interrupt -- handling interrupt.
Interrupt: Stopping pipeline ...
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Freeing pipeline ...

Thoughts? thanks again.

Jerry

[snip]

Just thoughts on how to proceed, I don't have a ready answer. I rarely use decodebin, but it looks like it is trying to find a decoder for video cap video/x-fluendo-va, that it can't load for some reason, or doesn't exist on your system.

Try using GST_DEBUG=<blah>:<x> (see http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gst-running.html) in front of gst-launch to watch the file format discovery and caps negotiation. Be prepared for an avalanche of output.

Also to see what you have installed that handles video/x-fluendo-va, try:

$ gst-inspect -a | grep x-fluendo-va

Perhaps that file can be decoded with filesrc ! avidemux ! ffdec_wmv<n> ?

Last, obligatory suggestion to use gstreamer 1.x if you can (gst-launch-1.0; gst-launch on your system might link to gstreamer 0.10 stuff).

Cheers,

Mark.

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: convert wmv to ogv

Jerry Geis
In reply to this post by Jerry Geis
Ok so I dropped decodebin and added fluwmvdec, I get a new error.

GST_DEBUG=*flu*:5 sh gst-launch filesrc location=../trailer_videos/Amazon_1080.wmv '!' fluwmvdec name=demux '!' queue '!' ffmpegcolorspace '!' theoraenc '!' oggmux name=mux '!' filesink location=../Amazon.ogv demux. '!' queue '!' progressreport '!' audioconvert '!' audioresample '!' vorbisenc '!' mux.
0:00:00.014364115  6051      0x1032b90 DEBUG              fluwmvdec fluwmvdec.c:1554:plugin_init: IPP merged init reported cpu 3
0:00:00.014386185  6051      0x1032b90 INFO               fluwmvdec fluwmvdec.c:1567:plugin_init: GStreamer version: GStreamer 0.10.36 (GIT)
0:00:00.014391074  6051      0x1032b90 INFO               fluwmvdec fluwmvdec.c:1568:plugin_init: Plugin version: 0.10.53
0:00:00.014507500  6051      0x1032b90 DEBUG              fluwmvdec fluwmvdec.c:274:_cleanup:<GstFluWMVDec@0x10821a0> cleaning up WMV decoder
0:00:00.029545026  6051      0x1032b90 ERROR           GST_PIPELINE ./grammar.y:614:gst_parse_perform_link: could not link demux to queue1
WARNING: erroneous pipeline: could not link demux to queue1

Another machine and gst-launch-1.0 gave same error.


avidemux didnt work either:
gst-launch filesrc location=../trailer_videos/Amazon_1080.wmv '!' avidemux name=demux '!' queue '!' ffmpegcolorspace '!' theoraenc '!' oggmux name=mux '!' filesink location=../Amazon.ogv demux. '!' queue '!' progressreport '!' audioconvert '!' audioresample '!' vorbisenc '!' mux.
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...

(gst-launch-0.10:6919): GStreamer-WARNING **: Trying to set string on structure field 'debug', but string is not valid UTF-8. Please file a bug.

(gst-launch-0.10:6919): GLib-GObject-CRITICAL **: g_value_dup_string: assertion `G_VALUE_HOLDS_STRING (value)' failed
ERROR: from element /GstPipeline:pipeline0/GstAviDemux:demux: The stream is of a different type than handled by this element.
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Freeing pipeline ...


Any thoughts?

Jerry

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: convert wmv to ogv

Nicolas Dufresne-3
Le jeudi 18 juin 2015 à 19:11 -0400, Jerry Geis a écrit :
> ERROR: from element /GstPipeline:pipeline0/GstAviDemux:demux: The
> stream is of a different type than handled by this element.
>
> Any thoughts?

Not sure how more straightforward this error could be. But let me
explain. You have asked AVI demuxer to demux an ASF (often show as
.wmv). In the previous pipeline, you are asking a fluwmbdec to decoded
something that have not yet been demuxed.

Nicolas
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (188 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: convert wmv to ogv

Jerry Geis
In reply to this post by Jerry Geis
>>Le jeudi 18 juin 2015 à 19:11 -0400, Jerry Geis a écrit :
>> ERROR: from element /GstPipeline:pipeline0/GstAviDemux:demux: The 
>> stream is of a different type than handled by this element.
>> 
>> Any thoughts?

>Not sure how more straightforward this error could be. But let me
>explain. You have asked AVI demuxer to demux an ASF (often show as
>.wmv). In the previous pipeline, you are asking a fluwmbdec to decoded
>something that have not yet been demuxed.

>Nicolas


Hi Nicolas,
Thanks for responding... I only tried the avidemux as it was suggested in the previous post.
I do realize the difference between AVI and wmv. :)

However, I wish to use the fluwmvdec and decode/convert this file. I am trying to learn how all this pipe stuff works,
thought I had a good example that I found, tried it and its not working. 
Would greatly appreciated the correct pipeline to convert the wmv to ogv.
Thanks,

Jerry


On Thu, Jun 18, 2015 at 7:11 PM, Jerry Geis <[hidden email]> wrote:
Ok so I dropped decodebin and added fluwmvdec, I get a new error.

GST_DEBUG=*flu*:5 sh gst-launch filesrc location=../trailer_videos/Amazon_1080.wmv '!' fluwmvdec name=demux '!' queue '!' ffmpegcolorspace '!' theoraenc '!' oggmux name=mux '!' filesink location=../Amazon.ogv demux. '!' queue '!' progressreport '!' audioconvert '!' audioresample '!' vorbisenc '!' mux.
0:00:00.014364115  6051      0x1032b90 DEBUG              fluwmvdec fluwmvdec.c:1554:plugin_init: IPP merged init reported cpu 3
0:00:00.014386185  6051      0x1032b90 INFO               fluwmvdec fluwmvdec.c:1567:plugin_init: GStreamer version: GStreamer 0.10.36 (GIT)
0:00:00.014391074  6051      0x1032b90 INFO               fluwmvdec fluwmvdec.c:1568:plugin_init: Plugin version: 0.10.53
0:00:00.014507500  6051      0x1032b90 DEBUG              fluwmvdec fluwmvdec.c:274:_cleanup:<GstFluWMVDec@0x10821a0> cleaning up WMV decoder
0:00:00.029545026  6051      0x1032b90 ERROR           GST_PIPELINE ./grammar.y:614:gst_parse_perform_link: could not link demux to queue1
WARNING: erroneous pipeline: could not link demux to queue1

Another machine and gst-launch-1.0 gave same error.


avidemux didnt work either:
gst-launch filesrc location=../trailer_videos/Amazon_1080.wmv '!' avidemux name=demux '!' queue '!' ffmpegcolorspace '!' theoraenc '!' oggmux name=mux '!' filesink location=../Amazon.ogv demux. '!' queue '!' progressreport '!' audioconvert '!' audioresample '!' vorbisenc '!' mux.
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...

(gst-launch-0.10:6919): GStreamer-WARNING **: Trying to set string on structure field 'debug', but string is not valid UTF-8. Please file a bug.

(gst-launch-0.10:6919): GLib-GObject-CRITICAL **: g_value_dup_string: assertion `G_VALUE_HOLDS_STRING (value)' failed
ERROR: from element /GstPipeline:pipeline0/GstAviDemux:demux: The stream is of a different type than handled by this element.
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Freeing pipeline ...


Any thoughts?

Jerry


_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: convert wmv to ogv

Nicolas Dufresne-3
Le jeudi 18 juin 2015 à 21:53 -0400, Jerry Geis a écrit :
> However, I wish to use the fluwmvdec and decode/convert this file. I
> am trying to learn how all this pipe stuff works,
> thought I had a good example that I found, tried it and its not
> working.
> Would greatly appreciated the correct pipeline to convert the wmv to
> ogv.

I'm not sure why you wanted to do this manually, but anyway. Here's a
pipeline that fits the media you have chosen. I have no idea about
fluvmcdec, so I have used avdec_wmv3, you may try and replace it.

gst-launch-1.0  \
  filesrc location=Amazon_1080.wmv ! asfdemux name=demux \
  demux. ! queue ! avdec_wmv3 ! theoraenc ! mux. \
  demux. ! queue ! avdec_wmapro ! vorbisenc ! mux. \
  oggmux name=mux ! filesink location=test.ogg

Obviously you will have to rewrite this pipeline for each media. A more
generic pipeline would be:

gst-launch-1.0  \
  filesrc location=Amazon_1080.wmv ! decodebin name=dec \
  dec. ! video/x-raw ! queue ! theoraenc ! mux. \
  dec. ! audio/x-raw ! queue ! vorbisenc ! mux. \
  oggmux name=mux ! filesink location=test.ogg

If fluwmvdec is a fit for the task and is ranked high enough, decodebin
bin will pick it automatically. All you have to care is to make sure it
is installed.

Nicolas
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (188 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: convert wmv to ogv

Jerry Geis
In reply to this post by Jerry Geis
Hi Nicolas

I see the difference in your command - thanks - however. I still get an error. (see below)
I tried this with both 0.10 and 1.0 and got the same error.

gst-launch filesrc location=../trailer_videos/Amazon_1080.wmv '!' decodebin name=dec dec. '!' video/x-raw '!' queue '!' theoraenc '!' mux. dec. '!' audio/x-raw '!' queue '!' vorbisenc '!' mux. oggmux name=mux '!' filesink location=../test.ogg
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
Missing element: video/x-fluendo-va decoder

Thougths?

Jerry


_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: convert wmv to ogv

Tim-Philipp Müller-2
On Thu, 2015-06-18 at 22:54 -0400, Jerry Geis wrote:

Hi Jerry,

For support with Fluendo's elements you should probably contact Fluendo.

I would recommend you remove all the Fluendo plugins, you can achieve
the same thing using open source components, namely using asfdemux from
gst-plugins-ugly and ffdec_* (avdec_* in 1.0) from gst-ffmpeg (gst-libav
in 1.0).

Perhaps try the explicit non-decodebin pipeline Nicolas gave you.

 Cheers
  -Tim



_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: convert wmv to ogv

Mark Howell
In reply to this post by Jerry Geis
On 06/18/2015 10:59 AM, Jerry Geis wrote:

> I am trying this pipeline to convert wmv to ogv.
>
> gst-launch filesrc location=../trailer_videos/Amazon_1080.wmv !
>                 decodebin ! name=demux ! queue ! ffmpegcolorspace !
> theoraenc !
>                 oggmux name=mux ! filesink location=../Amazon.ogv
>  demux. ! queue ! progressreport !
>                 audioconvert ! audioresample ! vorbisenc ! mux.
>
>
[snip]

FWIW your original pipeline above worked fine for me with gstreamer
0.10, and with slight mods (videoconvert instead of ffmpegcolorspace)
also in gstreamer-1.0, using packages provided by Ubuntu Trusty. So I
suspect there's something going on with your particular install and
collection of elements.

I tested with a source wmv file by the same name that I found online,
with md5sum e326c01834fd88a71763d6a961b9237c.

Cheers,

Mark.
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: convert wmv to ogv

Dianahemes
In reply to this post by Jerry Geis
How to convert WMV files to OGV?
Setup WMV to OGV converter
Download WMV to OGV Converter, install, and launch it on your Windows PC.

Import WMV file(s)
Import WMV file(s) into TalkHelper Video Converter by clicking on the "Add Media"->" Add Files" menu.

Choose OGV format
Select OGV under the "Output Format" drop-down menu.

Convert WMV to OGV
Click the "Start Convert" button to turn WMV file(s) into OGV with lossless quality.

Regards,
Diana
Reply | Threaded
Open this post in threaded view
|

Re: convert wmv to ogv

Jameswalter
In reply to this post by Jerry Geis
How to Convert WMV to OGV?
Click the “Choose Files” button to select your WMV files.
Click the “Convert to OGV” button to start the conversion.
When the status change to “Done” click the “Download OGV” button.