Riddle me this Batman ...
Posted: 23 Sep 2014 16:27
OS Description: Ubuntu 14.04.1 LTS
VLC media player 2.1.4 Rincewind (revision 2.1.4-0-g2a072be)
I am trying to write a bash script to transcribe videos. More specifically a stream from my HDHomeRun Tuner. Problem is I need to scale the video stream down and I would like to do it as it is recording.
This works ---
vlc http://192.168.0.201:5004/auto/v8.1?dlna --run-time=30 --play-and-exit --sout=#transcode{vcodec=mp2v}:std{access=file,mux=ts,dst='/home/user/Videos/test.ts'
Note the missing terminating delimiter "}"
This does not ---
vlc http://192.168.0.201:5004/auto/v8.1?dlna --run-time=30 --play-and-exit --sout=#transcode{vcodec=mp2v}:std{access=file,mux=ts,dst='/home/user/Videos/test.ts'}
Or this
vlc http://192.168.0.201:5004/auto/v8.1?dlna --run-time=30 --play-and-exit --sout=#transcode{vcodec=mp2v}:std{access=file,mux=ts,dst='/home/user/Videos/test.ts'}
This line DOES work in the Windows version (with dst='c:\tempwork\test.ts')
Or this
vlc http://192.168.0.201:5004/auto/v8.1?dlna --run-time=30 --play-and-exit --sout=#transcode{vcodec=mp2v}:std{access=file,mux=ts,dst='/home/user/Videos/test.ts'
I have tried nearly ever variation that I can image. The error is always the same:
# VLC media player 2.1.4 Rincewind (revision 2.1.4-0-g2a072be)
# [0x1002118] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
# [0x7f71d8000bd8] main stream output error: stream chain failed for `transcodescodec=dvbs:stddst=/home/user/Videos/test.ts'
# [0x7f71e8008db8] main input error: cannot start stream output instance, aborting
# [0x1016378] main playlist: end of playlist, exiting
OK lets see it it works through the interactive. JOY, JOY, JOY !!! So I captured the sout parameter from the message window.
sout=#transcode{vcodec=mp2v,vb=800,scale=0.5,scodec=dvbs}:std{access=file{no-overwrite},mux=ts,dst='/home/user/Videos/test.ts'}
So I stuffed that into the command line ---- repeat of the above referenced error.
FLAME ON: Next I tried to upgrade to the latest version of VLC (2.1.5) to see if the problem was resolved. Sadly it seems that conical does not maintain updates for VLC and there is no way short of changing the OS to upgrade or downgrade. You are stuck with whatever version of VLC (stable or otherwise) was available when that version of UBuntu was packaged. FLAME OFF
So I then tried the same script on another Ubuntu install (Version 12.0.1). Same problem.
At this point I am guessing there is a serious unknown problem with VLC's command line parsing under Ubuntu --- but it could just be ignorance and inexperience on my part.
Questions:
1) Has anyone tried using the VLC CLI on Ubuntu and gotten it to work with --sout parameters ?
2) Is there any version of Linux that allows a choice of the version of VLC (short of recompiling it from the sources)?
3) Any suggestions other than dumping Linux and going back to Windows ?
VLC media player 2.1.4 Rincewind (revision 2.1.4-0-g2a072be)
I am trying to write a bash script to transcribe videos. More specifically a stream from my HDHomeRun Tuner. Problem is I need to scale the video stream down and I would like to do it as it is recording.
This works ---
vlc http://192.168.0.201:5004/auto/v8.1?dlna --run-time=30 --play-and-exit --sout=#transcode{vcodec=mp2v}:std{access=file,mux=ts,dst='/home/user/Videos/test.ts'
Note the missing terminating delimiter "}"
This does not ---
vlc http://192.168.0.201:5004/auto/v8.1?dlna --run-time=30 --play-and-exit --sout=#transcode{vcodec=mp2v}:std{access=file,mux=ts,dst='/home/user/Videos/test.ts'}
Or this
vlc http://192.168.0.201:5004/auto/v8.1?dlna --run-time=30 --play-and-exit --sout=#transcode{vcodec=mp2v}:std{access=file,mux=ts,dst='/home/user/Videos/test.ts'}
This line DOES work in the Windows version (with dst='c:\tempwork\test.ts')
Or this
vlc http://192.168.0.201:5004/auto/v8.1?dlna --run-time=30 --play-and-exit --sout=#transcode{vcodec=mp2v}:std{access=file,mux=ts,dst='/home/user/Videos/test.ts'
I have tried nearly ever variation that I can image. The error is always the same:
# VLC media player 2.1.4 Rincewind (revision 2.1.4-0-g2a072be)
# [0x1002118] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
# [0x7f71d8000bd8] main stream output error: stream chain failed for `transcodescodec=dvbs:stddst=/home/user/Videos/test.ts'
# [0x7f71e8008db8] main input error: cannot start stream output instance, aborting
# [0x1016378] main playlist: end of playlist, exiting
OK lets see it it works through the interactive. JOY, JOY, JOY !!! So I captured the sout parameter from the message window.
sout=#transcode{vcodec=mp2v,vb=800,scale=0.5,scodec=dvbs}:std{access=file{no-overwrite},mux=ts,dst='/home/user/Videos/test.ts'}
So I stuffed that into the command line ---- repeat of the above referenced error.
FLAME ON: Next I tried to upgrade to the latest version of VLC (2.1.5) to see if the problem was resolved. Sadly it seems that conical does not maintain updates for VLC and there is no way short of changing the OS to upgrade or downgrade. You are stuck with whatever version of VLC (stable or otherwise) was available when that version of UBuntu was packaged. FLAME OFF
So I then tried the same script on another Ubuntu install (Version 12.0.1). Same problem.
At this point I am guessing there is a serious unknown problem with VLC's command line parsing under Ubuntu --- but it could just be ignorance and inexperience on my part.
Questions:
1) Has anyone tried using the VLC CLI on Ubuntu and gotten it to work with --sout parameters ?
2) Is there any version of Linux that allows a choice of the version of VLC (short of recompiling it from the sources)?
3) Any suggestions other than dumping Linux and going back to Windows ?