Transcoding

This forum is about all development around libVLC.
nusrat1990
Blank Cone
Blank Cone
Posts: 12
Joined: 09 Jan 2011 13:20

Transcoding

Postby nusrat1990 » 15 Jan 2011 00:19

Hello.
I have a client that plays network stream.

Code: Select all

const char * const vlc_argv[] = { "-I", "dummy", "--ignore-config", "--plugin-path=C:\\Program Files\\VideoLAN\\VLC\\plugins\\"}; libvlc_instance_t * inst; libvlc_media_player_t *mp; libvlc_media_t *m; inst = libvlc_new (sizeof(vlc_argv)/sizeof(vlc_argv[0]),vlc_argv); m = libvlc_media_new_path (inst, "udp://127.0.0.1@127.0.0.1:1234"); mp = libvlc_media_player_new_from_media (m); libvlc_media_player_play (mp); Sleep (10000); /* Let it play a bit */ libvlc_media_player_stop (mp); libvlc_media_player_release (mp); libvlc_media_release (m); libvlc_release (inst);
It plays MPEG2-TS (Mpeg2/Ac3). I want to transcode it to MPEG2-TS(wmv3/wma).
Libvlc doesn't support wmv3.
How can i get raw bytes from libvlc_media_t pointer 188 bytes packets for further processing?

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Transcoding

Postby Jean-Baptiste Kempf » 15 Jan 2011 11:48

MPEG2-TS(wmv3/wma) You cannot do wmv in mpeg2-ts! You must use asf!
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

nusrat1990
Blank Cone
Blank Cone
Posts: 12
Joined: 09 Jan 2011 13:20

Re: Transcoding

Postby nusrat1990 » 18 Mar 2011 21:17

Thank you for reply.
Ok,I should write vc1 advanced profile, but not wmv. http://www.microsoft.com/windows/window ... rview.aspx
I have already finished transcoding from mpeg2 ES -> vc1 bitstream.

Now I need to:
1)mux vc1/wma into:
1.1)ASF and output should be as http
1.2)mpeg2-ts and output should be as udp&http.
2)transcode from mpeg2audio&ac3 -> wma?

Can I do all these things using libvlc?

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Transcoding

Postby Jean-Baptiste Kempf » 18 Mar 2011 22:43

1.1 is possible.
2) yes
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

nusrat1990
Blank Cone
Blank Cone
Posts: 12
Joined: 09 Jan 2011 13:20

Re: Transcoding

Postby nusrat1990 » 19 Mar 2011 18:48

Ok

nusrat1990
Blank Cone
Blank Cone
Posts: 12
Joined: 09 Jan 2011 13:20

Re: Transcoding

Postby nusrat1990 » 31 Mar 2011 21:17

Hi Jean-Baptiste Kempf.
In the final, I need to do 1.1 using memory, without using files. I have a live stream (wvc1 encoded bitstream).
Is there any way to do that? If yes, what mechanism is used, how client and VLC share memory and what command line params needed for VLC?
There is other way: I can send wvc1 bitstream as udp output (from my app), and VLC will catch this stream and transcode, output will be as http. But, I don't want to do it in such manner at all.
Many thanks.

Rémi Denis-Courmont
Developer
Developer
Posts: 15263
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Transcoding

Postby Rémi Denis-Courmont » 31 Mar 2011 22:45

Have you ever heard of pipes/FIFOs?
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

nusrat1990
Blank Cone
Blank Cone
Posts: 12
Joined: 09 Jan 2011 13:20

Re: Transcoding

Postby nusrat1990 » 01 Apr 2011 07:49

Yes, I worked with named pipes (WinAPI).

nusrat1990
Blank Cone
Blank Cone
Posts: 12
Joined: 09 Jan 2011 13:20

Re: Transcoding

Postby nusrat1990 » 03 Apr 2011 21:14

Could you provide more info/link about interprocess communication?
I need to mux raw wvc1(VC-1 AP) elementary stream to ASF container. I try this:
vlc k:\samples\test.vc1 --sout #std{access=file,mux=asf,dst=k:\samples\test.asf}
It creates file and writes < 1kb. What do I wrong?
For example, if the input is test.m2v (mpeg2 Elementary stream) everything works great.
J-B said that VLC can mux wvc1 to ASF.
Thanks to all, who helps me.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 1 guest