Code: Select all
/usr/bin/vlc -I dummy --no-repeat --no-loop -vv /home/mike/Videos/ustad_mobile.mp4 --sout='#transcode{vcodec=h264,acodec=mpga,deinterlace,fps=12,vb=170,ab=64,width=320,height=240}:standard{access=file,mux=mp4,dst=/tmp/b3612dac-b9a9-473d-b964-4d1060ca64b713309670644110641593.mp4}' vlc://quit
If I open the video in Chrome it plays as expected. If I open the video using VLC itself or Firefox, it takes about 30 seconds for the video to start (audio plays).
All seems pretty weird. I see some prior discussion regarding buggy output when concatenating video ( https://forum.videolan.org/viewtopic.php?f=14&p=500917 ), but the answers seemed to require using ffmpeg (which sort of defeats the point of transcoding using VLC).
I want to use VLC to transcode video because the (open source) desktop learning app I'm developing is already using VLC (via VLCJ) for play back. Using VLC would enable me to avoid adding an additional requirement when users want to add a new video.