transcode to file

This forum is about all development around libVLC.
alfoto
New Cone
New Cone
Posts: 3
Joined: 08 Jun 2018 18:58

transcode to file

Postby alfoto » 08 Jun 2018 19:08

I'm trying to transcode a video to a file using version 3.0.3 and the media options to add sout, I understand this is not the preferable method but haven't found any other option. With version 2 I did it using the instance arguments but had issues with green artifacts and similar.

The problem is, and it happens both in version 2 and version 3.0.3 that the destination file path is changed erraticaly. It doesn't happens always, may be half of times but it makes it unreliable. Please find enclosed a copy of the log:

VLC media player - 3.0.3 Vetinari
Copyright © 1996-2018 the VideoLAN team
revision 3.0.3-1-0-gc2bb759264
configured with /Users/d-fu/vlc-3.0/extras/package/macosx/../../../configure '--prefix=/Users/d-fu/vlc-3.0/build/vlc_install_dir' '--enable-macosx' '--enable-merge-ffmpeg' '--enable-osx-notifications' '--enable-faad' '--enable-flac' '--enable-theora' '--enable-shout' '--enable-ncurses' '--enable-twolame' '--enable-realrtsp' '--enable-libass' '--enable-macosx-qtkit' '--enable-macosx-avfoundation' '--disable-skins2' '--disable-xcb' '--disable-caca' '--disable-pulse' '--disable-sdl-image' '--disable-vnc' '--build=x86_64-apple-darwin17' '--host=x86_64-apple-darwin17' '--with-macosx-version-min=10.7' '--with-macosx-sdk=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk' '--with-breakpad=https://mac.crashes.videolan.org' 'build_alias=x86_64-apple-darwin17' 'host_alias=x86_64-apple-darwin17' 'CC=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang' 'CFLAGS=-g' 'LDFLAGS=' 'CXX=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++' 'CXXFLAGS=-g' 'OBJC=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang' 'OBJCFLAGS=-g'
creating audio output
looking for audio output module matching "dummy": 4 candidates
using audio output module "adummy"
keeping audio output
Creating an input for 'test_bars.mp4'
using sout chain=`transcode{vcodec=h264,fps=15,width=854,height=480,vfilter=croppadd,acodec=mp4a}:standard{access=file,mux=mp4,dst=/Users/myusername/Desktop/testingACC/test_bars.mp4}'
stream=`standard'
looking for sout stream module matching "standard": 23 candidates
set config option: sout-standard-access to file
set config option: sout-standard-mux to mp4
set config option: sout-standard-dst to /Users/myusername/Desksop/testingACC/test_bars.mp4
looking for sout access module matching "file": 10 candidates
cannot create /Users/myusername/Desksop/testingACC/test_bars.mp4: No such file or directory
no sout access modules matched
no suitable sout access module for `file/mp4:///Users/myusername/Desksop/testingACC/test_bars.mp4'
no sout stream modules matched
destroying chain... (name=(null))
destroying chain done
stream chain failed for `transcode{vcodec=h264,fps=15,width=854,height=480,vfilter=croppadd,acodec=mp4a}:standard{access=file,mux=mp4,dst=/Users/myusername/Desktop/testingACC/test_bars.mp4}'
cannot start stream output instance, aborting



Please notice the change from Desktop to Desksop in the path chain. Using different path chains another character is changed, it seems erratic; and it doesn't matter if I provide the path as a variable or hard coded.

Any help would be appreciated, also for an alternative method to transcode (if possible include a sample, any programming language will be fine).

Thanks.

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: transcode to file

Postby Jean-Baptiste Kempf » 17 Jun 2018 22:27

I don't see what would change Desktop to Desksop
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.

alfoto
New Cone
New Cone
Posts: 3
Joined: 08 Jun 2018 18:58

Re: transcode to file

Postby alfoto » 03 Jul 2018 09:27

Thanks for your answer.

Please notice that in other cases the character replacement is at a different position in the path, not only Desktop vs. Desksop.

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: transcode to file

Postby Jean-Baptiste Kempf » 05 Jul 2018 09:50

Is your username not ascii?
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.

alfoto
New Cone
New Cone
Posts: 3
Joined: 08 Jun 2018 18:58

Re: transcode to file

Postby alfoto » 05 Jul 2018 10:02

It is ascii, no accents, latin characters etc.

Btw, I'm having a hard time to get my code working in Windows with 3.0.3 (crashes, no logging file, etc) but it works with 2.2.8. Is version 2.2.8 also LPGL to allow me to use it in a commercial app as a linked library? I know 3.0.3 is but it seems to work only in Mac for me.
I have discarded to transcode but need to get scene and crop working.

Thanks so much for your great work and your help.

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: transcode to file

Postby Jean-Baptiste Kempf » 05 Jul 2018 11:13

It is ascii, no accents, latin characters etc.

Btw, I'm having a hard time to get my code working in Windows with 3.0.3 (crashes, no logging file, etc) but it works with 2.2.8. Is version 2.2.8 also LPGL to allow me to use it in a commercial app as a linked library? I know 3.0.3 is but it seems to work only in Mac for me.
I have discarded to transcode but need to get scene and crop working.

Thanks so much for your great work and your help.

2.2.x is insecure and will not be fixed. But it is mostly LGPL/.
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.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 18 guests