Skip to content

Instantly share code, notes, and snippets.

@snoby
Created February 12, 2017 17:40
Show Gist options
  • Save snoby/eeeb21f62a622ccc038c8a33664a4ec3 to your computer and use it in GitHub Desktop.
Save snoby/eeeb21f62a622ccc038c8a33664a4ec3 to your computer and use it in GitHub Desktop.
Parsing error sending to ffmpeg
~/work/myprojects/godevelopment/src/github.com/snoby/mkv2Appletv$ ./mkv2Appletv convert -d -t -i ~/Downloads/Man\ of\ Steel.mkv -o ~/Downloads/deleteme.mp4
Input filename: /Users/snoby/Downloads/Man of Steel.mkv
Information about file: /Users/snoby/Downloads/Man of Steel.mkv
Number of Streams: 13
File has duration: 8583.593000 (s)
Master Video codec: hevc
Master Audio codec: aac numChannels:8
***
Primary Video Stream (hevc)
Primary Audio Stream (aac)
----------Planned Output-----------------
Video Stream (h264) operation [convert]
Primary Audio Stream (aac) operation [convert]
Second Audio Stream (ac3) operation [convert]
[-v trace -hide_banner -y -i /Users/snoby/Downloads/Man of Steel.mkv -map_metadata 0:g -t 00:00:10 -map 0:0 -c:v libx264 -preset slow -crf 20 -profile:v high -level 4.0 -filter_complex [0:1]asplit[2ch][6ch];[2ch]pan=stereo|FL=FC+0.6FL+0.2BL|FR=FC+0.6FR+0.2BR[aac] -map [aac] -map [6ch] -c:a:0 aac -c:a:1 ac3 /Users/snoby/Downloads/deleteme.mp4]
Type: []string
[]string{"-v trace", "-hide_banner", "-y", " -i /Users/snoby/Downloads/Man of Steel.mkv", "-map_metadata 0:g", "-t 00:00:10", " -map 0:0 -c:v", "libx264 -preset slow -crf 20 -profile:v high -level 4.0 ", "-filter_complex [0:1]asplit[2ch][6ch];[2ch]pan=stereo|FL=FC+0.6FL+0.2BL|FR=FC+0.6FR+0.2BR[aac]", "-map [aac]", "-map", "[6ch]", "-c:a:0", "aac", "-c:a:1", "ac3", "/Users/snoby/Downloads/deleteme.mp4"}
-v trace
-hide_banner
-y
-i /Users/snoby/Downloads/Man of Steel.mkv
-map_metadata 0:g
-t 00:00:10
-map 0:0 -c:v
libx264 -preset slow -crf 20 -profile:v high -level 4.0
-filter_complex [0:1]asplit[2ch][6ch];[2ch]pan=stereo|FL=FC+0.6FL+0.2BL|FR=FC+0.6FR+0.2BR[aac]
-map [aac]
-map
[6ch]
-c:a:0
aac
-c:a:1
ac3
/Users/snoby/Downloads/deleteme.mp4
About to start
&exec.Cmd{Path:"/opt/local/bin/ffmpeg", Args:[]string{"ffmpeg", "-v trace", "-hide_banner", "-y", " -i /Users/snoby/Downloads/Man of Steel.mkv", "-map_metadata 0:g", "-t 00:00:10", " -map 0:0 -c:v", "libx264 -preset slow -crf 20 -profile:v high -level 4.0 ", "-filter_complex [0:1]asplit[2ch][6ch];[2ch]pan=stereo|FL=FC+0.6FL+0.2BL|FR=FC+0.6FR+0.2BR[aac]", "-map [aac]", "-map", "[6ch]", "-c:a:0", "aac", "-c:a:1", "ac3", "/Users/snoby/Downloads/deleteme.mp4"}, Env:[]string(nil), Dir:"", Stdin:io.Reader(nil), Stdout:io.Writer(nil), Stderr:io.Writer(nil), ExtraFiles:[]*os.File(nil), SysProcAttr:(*syscall.SysProcAttr)(nil), Process:(*os.Process)(nil), ProcessState:(*os.ProcessState)(nil), ctx:context.Context(nil), lookPathErr:error(nil), finished:false, childFiles:[]*os.File(nil), closeAfterStart:[]io.Closer(nil), closeAfterWait:[]io.Closer(nil), goroutine:[]func() error(nil), errch:(chan error)(nil), waitDone:(chan struct {})(nil)}
ffmpeg version 3.2.3 Copyright (c) 2000-2017 the FFmpeg developers
built with llvm-gcc 4.2.1 (LLVM build 2336.11.00)
configuration: --prefix=/Volumes/Ramdisk/sw --enable-gpl --enable-pthreads --enable-version3 --enable-libspeex --enable-libvpx --disable-decoder=libvpx --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-avfilter --enable-libopencore_amrwb --enable-libopencore_amrnb --enable-filters --enable-libgsm --enable-libvidstab --enable-libx265 --disable-doc --arch=x86_64 --enable-runtime-cpudetect
libavutil 55. 34.101 / 55. 34.101
libavcodec 57. 64.101 / 57. 64.101
libavformat 57. 56.101 / 57. 56.101
libavdevice 57. 1.100 / 57. 1.100
libavfilter 6. 65.100 / 6. 65.100
libswscale 4. 2.100 / 4. 2.100
libswresample 2. 3.100 / 2. 3.100
libpostproc 54. 1.100 / 54. 1.100
Unrecognized option 'v trace'.
Error splitting the argument list: Option not found
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment