File conversion from command line vs. UI

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
bvds
New Cone
New Cone
Posts: 2
Joined: 23 Feb 2012 04:57

File conversion from command line vs. UI

Postby bvds » 23 Feb 2012 05:12

I am running vlc on Ubuntu 11.10. I have a *.mov file which I am converting to *.mp4. When I do the conversion using the default settings in the UI (choosing Video-H.264+AAC (MP4)), the conversion works fine (it plays fine in IE9). However, when I use the command line to do the conversion, the result won't play in IE9. I spent endless time fiddling with the transcode parameters, to no avail. Any ideas?

Below is the log from the conversion.

Code: Select all

cvlc -v "test-video.mov" --sout="#transcode{vcodec=h264,fps=20,scale=1,acodec=mp4a,channels=2,ab=128}:standard{access=file,mux=ts,dst='test-video.mp4'}" vlc://quit Blocked: call to unsetenv("DBUS_ACTIVATION_ADDRESS") Blocked: call to unsetenv("DBUS_ACTIVATION_BUS_TYPE") [0x24bdf30] dummy interface: using the dummy interface module... [0x30cb5a0] mp4 stream warning: unknown box type tapt (incompletely loaded) [0x30cb5a0] mp4 stream warning: unknown box type alis (incompletely loaded) [0x30cb5a0] mp4 stream warning: unknown box type colr (incompletely loaded) [0x30cb5a0] mp4 stream warning: unknown box type pasp (incompletely loaded) [0x30cb5a0] mp4 stream warning: unknown box type cslg (incompletely loaded) [0x30cb5a0] mp4 stream warning: unknown box type sdtp (incompletely loaded) [0x30cb5a0] mp4 stream warning: unknown box type alis (incompletely loaded) [0x30cb5a0] mp4 stream warning: unknown box type chan (incompletely loaded) [0x30cb5a0] mp4 stream warning: Not enough data [0x30cb5a0] mp4 stream warning: unknown box type (incompletely loaded) [0x30cb5a0] mp4 stream warning: unknown box type (incompletely loaded) [0x30cb5a0] mp4 stream warning: unknown box type (incompletely loaded) [0x30ce3c0] mp4 demux warning: elst box found [0x30ce3c0] mp4 demux warning: CTTS table [0x30ce3c0] mp4 demux warning: elst box found [0x30ce3c0] mp4 demux warning: control query 14 unimplemented x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle Cache64 x264 [info]: profile High, level 2.1 x264 [info]: using SAR=1/1 x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle Cache64 x264 [info]: profile High, level 2.1 [0x2544270] faad generic warning: decoded zero sample x264 [info]: frame I:1 Avg QP:19.77 size: 12755 x264 [info]: frame P:65 Avg QP:22.69 size: 227 x264 [info]: frame B:90 Avg QP:28.83 size: 66 x264 [info]: consecutive B-frames: 23.1% 0.0% 0.0% 76.9% x264 [info]: mb I I16..4: 69.4% 0.8% 29.7% x264 [info]: mb P I16..4: 0.4% 0.0% 0.2% P16..4: 2.2% 0.3% 0.2% 0.0% 0.0% skip:96.8% x264 [info]: mb B I16..4: 0.0% 0.0% 0.0% B16..8: 1.5% 0.0% 0.0% direct: 0.0% skip:98.5% L0:43.1% L1:54.8% BI: 2.1% x264 [info]: 8x8 transform intra:2.5% inter:33.5% x264 [info]: coded y,uvDC,uvAC intra: 23.4% 25.0% 21.8% inter: 0.3% 0.5% 0.1% x264 [info]: i16 v,h,dc,p: 74% 23% 3% 0% x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 8% 14% 70% 0% 1% 0% 0% 1% 6% x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 35% 31% 18% 2% 3% 3% 3% 2% 3% x264 [info]: i8c dc,h,v,p: 68% 13% 19% 0% x264 [info]: Weighted P-Frames: Y:0.0% UV:0.0% x264 [info]: ref P L0: 81.6% 4.1% 10.9% 3.4% x264 [info]: ref B L0: 88.5% 10.3% 1.2% x264 [info]: ref B L1: 93.9% 6.1% x264 [info]: kb/s:34.27 [0x24bfda0] main mux warning: no more input streams for this mux [0x2544e10] dummy demux: command `quit'
Here is the vlc version:

Code: Select all

VLC version 1.1.12 The Luggage (exported) Compiled by buildd on allspice.buildd (Oct 20 2011 06:28:53) Compiler: gcc version 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3) This program comes with NO WARRANTY, to the extent permitted by law. You may redistribute it under the terms of the GNU General Public License; see the file named COPYING for details. Written by the VideoLAN team; see the AUTHORS file.

Rémi Denis-Courmont
Developer
Developer
Posts: 15308
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: File conversion from command line vs. UI

Postby Rémi Denis-Courmont » 02 Mar 2012 17:02

It should be obvious, but how about using the same parameters than the UI generates? You can see them in the dialog at the end.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

bvds
New Cone
New Cone
Posts: 2
Joined: 23 Feb 2012 04:57

Re: File conversion from command line vs. UI

Postby bvds » 03 Mar 2012 06:22

Thanks! I didn't see any "dialog at the end," but your hint led me to open the Messages window. If Verbosity Level is 1, the transcode settings are shown there. I was able to use this to get things working on the command line.

BTW, it looks like the defaults settings are:

Code: Select all

cvlc -v "test-movie.mov" --sout="#transcode{vcodec=h264,vb=0,scale=0,acodec=mp4a,ab=128,channels=2,samplerate=44100}:file{dst='test-movie.mp4'}" vlc://quit
So it looks to me like the biggest difference is using ":file" rather than ":standard".


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 20 guests