Split and join video and audio in command-line
Posted: 17 Jun 2013 17:13
Well, the first mistake was that I have bought idiotic action camera recorder Tachyon XC HD. This buggy and very low-quality camera makes .MOV files with some strange streams, that almost no software is able to edit. I have lost maybe 30 hours of research how to convert the .MOV files from the camera to something editable.
I am able to convert the .MOV file video track to .MP4 file via VLC player ("keep-original-video-track" option in "video codec" window). I am able to get the audio track from the .MOV file. But I am not able to join video and audio file together. I have maybe 40 of recording so I would like to use command-line.
Can someone advise me how to split original .MOV file to separate video and audio stream, transcode audio (leave video as is) and join it again to different container (MP4). I thing it should be possible to do it in one command line.
The following command is able to change a container to .MP4, but the resulting file kills VLC player and other software is not able to play it:
The following command takes only video track and works fine, but the resulting file is without audio ofcourse:
The original file properties in MediaInfo are following:\
I am able to convert the .MOV file video track to .MP4 file via VLC player ("keep-original-video-track" option in "video codec" window). I am able to get the audio track from the .MOV file. But I am not able to join video and audio file together. I have maybe 40 of recording so I would like to use command-line.
Can someone advise me how to split original .MOV file to separate video and audio stream, transcode audio (leave video as is) and join it again to different container (MP4). I thing it should be possible to do it in one command line.
The following command is able to change a container to .MP4, but the resulting file kills VLC player and other software is not able to play it:
Code: Select all
"c:\Program Files\VLC\vlc.exe" f:\DCIM\100XCVID\VID_0024.MOV --sout="#standard{access=file,mux=mp4,dst="e:\scratch\vid24.mp4"}"
Code: Select all
"c:\Program Files\VLC\vlc.exe" f:\DCIM\100XCVID\VID_0024.MOV --no-sout-audio --sout="#standard{access=file,mux=mp4,dst="e:\scratch\vid24.mp4"}"
I am using Windows XP with all patches to the date of this submission with VLC player 2.0.7.General
Complete name : F:\DCIM\100XCVID\VID_0024.MOV
Format : QuickTime
Format/Info : Original Apple specifications
File size : 80.5 MiB
Duration : 1mn 19s
Overall bit rate : 8 475 Kbps
Encoded date : UTC 2013-06-13 12:23:31
Tagged date : UTC 2013-06-13 12:23:31
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : Main@L4.0
Format settings, CABAC : Yes
Format settings, ReFrames : 1 frame
Format settings, GOP : M=1, N=5
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 1mn 19s
Bit rate : 8 295 Kbps
Width : 1 280 pixels
Height : 720 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 30.000 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.300
Stream size : 78.7 MiB (98%)
Language : Japanese
Encoded date : UTC 2013-06-13 12:23:31
Tagged date : UTC 2013-06-13 12:23:31
Audio
ID : 2
Format : ADPCM
Codec ID : 2
Duration : 1mn 19s
Source duration : 1mn 20s
Bit rate mode : Constant
Bit rate : 352.8 Kbps
Nominal bit rate : 176 Kbps
Channel(s) : 1 channel
Sampling rate : 44.1 KHz
Stream size : 3.35 MiB (4%)
Source stream size : 3.37 MiB (4%)
Language : Japanese
Encoded date : UTC 2013-06-13 12:23:31
Tagged date : UTC 2013-06-13 12:23:31
mdhd_Duration : 79633