Log in

View Full Version : vlc stuck on the first frame when recording and displaying


Sandie C
30th April 2015, 14:21
Hi everybody, It's nice to survive to my 5 waiting days and hopefully get some help from you.

I hope that's the right place to post because I imagine that's a VLC problem (or most probably me using VLC ) fits with software player...

So let's started !

My goal is to record and display an IP caméra using a .bat script using VLC.

I'm working with VLC 2.1.5 Rincewind under windows 7.

Here is my script :
____________________________________________________________
cd C:\Program Files (x86)\VideoLAN\VLC\

IF EXIST C:\Users\neonat\Desktop\Sandie_C\Enregistrements set folder=C:\Users\neonat\Desktop\Sandie_C\Enregistrements
:FILE
set /p nom=Entrer le nom du patient
set /p prenom=Entrer le prenom du patient
set /p date=Entrer la date de l'enregistrement (sous la forme JJMMAA)
set /p heure=Entrer l'heure de l'enregistrement (sous la forme HHMM)
set file=%nom%_%prenom%_%date%_%heure%
set /p extension=Enter extension fichier video
set fullPath=%folder%\%file%.%extension%

echo %file%
echo %fullPath%
if exist %folder%\%file%.%extension% (echo "file already exists") else GOTO RECORDING
GOTO FILE

:RECORDING
REM ENREGISTREMENT CONTENEUR .TS CODECS : H264 / AAC
REM display bloqué sur la premiere image (diffusion du son ok)
REM enregistrement log + visionnage possible par vlc à la suite
vlc --extraintf=logger --verbose=2 --logfile=%folder%\vlc_%file%_%extension%.log --logmode=text --file-logging --save-config --network-caching=500 rtsp://root:root@192.168.1.114/axis-media/media.amp --sout "#transcode{vcodec=h264,qmin=10,qmax=10, fps=25,deinterlace}:duplicate{dst=display,dst=standard{access=file, mux=ts,dst=%fullPath%}}"

set "folder="
set "file="
set "extension="
set "nom="
set "prenom="
set "date="
set "heure="

pause
@echo finish


There is no problem with recording, but when it's going, displaying is stuck on the first frame.

I found some answers over forum but none worked ( something about a problem with default demux, update VLC wich is worst because nothing works after that...)

Any help would be apreciated. I hope my post is well located on this forum and that my approximative english didn't burn your eyes.

Early thanks for your answers.

pirlouy
1st May 2015, 13:55
VLC is not really popular here. You should ask on VLC official forum, I guess.

Sandie C
4th May 2015, 14:16
VLC is not really popular here. You should ask on VLC official forum, I guess.

Sorry for my late answer I thought I will receive an email in case of answer. Thank you, I'll try somewhere else... ( on videoLan forum nobody gives me an answer... ) Why is VLC not popular here ? Should I use something else ?

huhn
4th May 2015, 15:22
if i don't interpret your script wrong you are using an transcode.

if transcoding is needed you my can't use player like MPC-HC. but why should it be needed in the first place.

and yeah nearly everything should be better than VLC.