I have a drone which produces squashed videos (720x240). They are intended to be viewed at (720x480). I wrote a Python script that converts all files from the SD card into my Videos folder. The full script is below:
Start of script (python2.7)
import os import subprocess
SRC = "D:/VIDEO/" TRG = "C:/Users/Adam/Videos/drone/"
print "Converting all drone videos from SD card." files = os.listdir(SRC) for f in files: print "File: D:/VIDEO/"+f
print "Target dir: "+TRG for f in files: print "Processing "+f newext = f[:f.find(".")]+".mp4" subprocess.call(["C:/Program Files/VideoLAN/VLC/vlc.exe", "-vvv", f, "--sout=#transcode{vcodec=h264,width=720,height=480,canvas-width=720,canvas-height=480,vb=800,fps=30,acodec=none,deinterlace=true}:standard{access=file,mux-video=mjpeg,dst=\""+TRG+newext+"\"}", "vlc://quit"], cwd=SRC)
end of script
Everything works, and I end up with .mp4 files that play just fine. However, despite being shown as being 720x480, they still display as 720x240, e.g. the actual visible video was not stretched to the desired dimensions.
The equivalent VLC command I am running is: vlc.exe -vvv FILE --sout=#transcode{vcodec=h264,width=720,height=480,canvas-width=720,canvas-height=480,vb=800,fps=30,acodec=none,deinterlace=true}:standard{access=file,mux-video=mjpeg,dst=DEST_FILE} vlc://quit
Am I doing something wrong? This is my first time using the VLC command line. Thanks, Adam
My system: MS Surface Pro 3 (intel i5, 256GB SSD, 8GB RAM) VLC x64 2.1.5