Command Line Help: Duplicate (Display and transcode))

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
FamilyGuy
New Cone
New Cone
Posts: 1
Joined: 14 Aug 2010 19:31

Command Line Help: Duplicate (Display and transcode))

Postby FamilyGuy » 14 Aug 2010 20:10

Hi guys, this is my first post on this board, I've searched for the answer to my question in this board and on the internet but found nothing. I also tried to read the freaking manual, but apparently failed at it ... http://www.videolan.org/doc/streaming-h ... /ch03.html

Using VLC 1.0.5 Goldeneye on Win7 and XP

I got some ip security camera running an http stream, what I want to do is to save the stream to a mp4(h264) file on my HDD and also display it.
I can already display the stream:

Code: Select all

vlc -vvv "http://192.168.1.101/videostream.cgi?user=admin&pwd=password&rate=3"
I can also transcode it with no problem:

Code: Select all

vlc -vvv "http://192.168.1.101/videostream.cgi?user=admin&pwd=password&rate=3" --sout=#transcode{vcodec=h264,acodec=mpga,vb=512,ab=0}:standard{acc ess=file,mux=mp4,dst="G:\test.mp4"}
Now I want to do both at the same time without accessing the camera twice (as this would significantly reduce framerate), but my attemp at it doesn't work, it only displays the stream:

Code: Select all

vlc -vvv "http://192.168.1.101/videostream.cgi?user=admin&pwd=password&rate=3" --sout=#duplicate{dst=display,dst=transcode{vcodec=h264,acodec=mpga,vb=512,ab=0}:standard{access=files,mux=mp4,dst=="G:\test.mp4"}}
If you can give me some help it would be greatly appreciated!

Ps: It'd also be useful to be able to transcode only one hour of the stream (so no user intervention to stop it) and add data/time OSD.
Also I'm not a native english speaker, so sorry for the errors I might have left in the post, I tried not to do too much though.


Thank you very much in advance!

FamilyGuy

[EDIT]

Figured a workaround out, using VLC 1.1.2 Luggage:

Code: Select all

vlc -vvv "http://192.168.1.101/videostream.cgi?user=admin&pwd=password" --sout=#transcode{vcodec=h264,vb=512}:duplicate{dst=display,dst=standard{access=file,mux=mp4,dst="G:\test.mp4"}} --no-audio
I still need to overlay data/time and choose the duration of the transcoding ...

BitFish
New Cone
New Cone
Posts: 2
Joined: 22 Dec 2010 20:25

Re: Command Line Help: Duplicate (Display and transcode))

Postby BitFish » 22 Dec 2010 21:18

I'm fairly new to the VLC command line, and am trying to save files from http streams. In the end, I want to be able to stream/encode/save files streamed from my own media server, but for now I'm trying to get things working with a stream from youtube. The file saves properly, the problem is that only the audio is included in the file, not the video.

Here is the command I'm using (notice the striking similarity to your command line, FamilyGuy) =)

Code: Select all

vlc -vvv http://www.youtube.com/watch?v=K-EOo14fCZ0 --sout=#transcode{vcodec=h264,vb=512}:duplicate{dst=display,dst=standard{access=file,mux=mp4,dst="C:\test4.mp4"}}}
Keep in mind, the command below picks up a stream from youtube and plays it back no problem.

Code: Select all

vlc -vvv http://www.youtube.com/watch?v=K-EOo14fCZ0
Any idea's as to why the video might not be coming through?

Thanks guys!

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: Command Line Help: Duplicate (Display and transcode))

Postby VLC_help » 23 Dec 2010 18:05

Have you tried demux-dump?
http://wiki.videolan.org/Demuxdump

BitFish
New Cone
New Cone
Posts: 2
Joined: 22 Dec 2010 20:25

Re: Command Line Help: Duplicate (Display and transcode))

Postby BitFish » 23 Dec 2010 18:35

I had not! Thanks for the tip. Unfortunately, it only dumps out a 150KB file which won't open at all. Here is the command:

Code: Select all

vlc -vvv http://www.youtube.com/watch?v=We7mrMyBFDg :demux=dump :demuxdump-file=C:\test3.flv
Also, just figured this part out...

This command works beautifully-

Code: Select all

vlc -vvv http://www.youtube.com/watch?v=bRkLUQQvVZY --sout=#transcode{vcodec=h264,vb=512}:duplicate{dst=display,dst=standard{access=file,mux=mp4,dst="C:\test4.mp4"}}}
This command fails-

Code: Select all

vlc -vvv http://www.youtube.com/watch?v=We7mrMyBFDg --sout=#transcode{vcodec=h264,vb=512}:duplicate{dst=display,dst=standard{access=file,mux=mp4,dst="C:\test4.mp4"}}}
Notice the only difference is the stream url. The first one (the one that works) is a pretty low quality video on youtube. The second one (the one that doesn't work) is a fairly high quality (around 1080p). Could it be the quality settings in the streaming video, or even a different in codex used by youtube?

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: Command Line Help: Duplicate (Display and transcode))

Postby VLC_help » 24 Dec 2010 17:43

Tools -> Messages (set Verbosity to 2) will complain about the problems.


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: MSN [Bot] and 39 guests