by default, will output the whole line on which 'word' has been found
the 'aunpack' command is part of atool
The "map" may be different depending on the .wmv file.
run `ffprobe` to see which is the video-track in the .wmv file
usually this is "0.0".
Stream #0.0: Video:...
Stream #0.1: Audio: ..
and "1.0" corresponds to the 2nd input file - your new audio.
You may want to add "-acodec wmav2" and "-ar 128k" options for 128kbit/s
Windows Media Audio 2 or whatever audio-codec/quality your want. `ffmpeg
-codecs | grep "EA"` gives you a list of available codecs for Encoding
Audio.
Try using '-sameq' instead of '-vcodec copy' (re-encode the video with
same quality rather than a bit-exact copy - this often solves muxing
issues but will cause a small loss of either video quality or increased
bandwidth).
and also try a different output format eg. 'new_video.avi' or '..mov' instead of 'new_video.wmv'.
you may need both, this should work:
ffmpeg -i vid.wmv -i aud.wav -sameq -map 0.0 -map 1.0 output.avi
This is equivalent to $chmod 754 /path/to/file The 3 first symbol represent permissions for the file's owner (read/write/execute). Symbols 4-5-6 represent permissions for the file's group (read/write) Symboles 7-8-9 represent permissions for other users (read-only) Owner permissions can be altered with $chmod u+rw (give r/w permissions) Group permissions can be altered with $chmod g-w (remove write permission) Other users' permissions can be altered with $chmod o-rwx (remove r/w/execute permissions) Permissions for ALL can be altered with $chmod a+rwx (give everyone full permissions)
Permission modes are noted as following: 7 read, write and execute rwx 6 read and write rw- 5 read and execute r-x 4 read only r-- 3 write and execute -wx 2 write only -w- 1 execute only --x 0 none --- The 'execute' permission when set on a directory means 'allow entering directory' https://en.wikipedia.org/wiki/Modes_%28Unix%29 https://en.wikipedia.org/wiki/Chmod http://www.tutorialspoint.com/unix/unix-file-permission.htm
can be pointed at specific files using:
du -ahc /path/to/file
counting only directories is faster:
du -hc .
Force computer "idle" state when lid is closed, regardless of inhibitors (power manager) in place, and runs logind preset action (sleep, suspend...). See http://www.freedesktop.org/software/systemd/man/logind.conf.html
When run on an existing file, alters it's creation date.
commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.
Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.
» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10
Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):
Subscribe to the feed for: