Capturing from Canon Vixia HV40 in Ubuntu
I am very pleased to report that capturing from my new camera works like a charm. I hardly had to do any tweaking to get it to work.
Here are some commands that worked for me to begin with:
- grab video
sudo dvgrab –autosplit –frames 0 –size 0 –format hdv –buffers 1000 –showstatus –timestamp /home/video/foo-
- convert to avi format for facebook, etc.
ffmpeg -i foo.m2t video.avi
- convert to dv format for editing
ffmpeg -i /home/video/foo.m2t -target ntsc-dv foo.dv
Canon Vixia HV40 HDV Format Notes
September 3, 2010 - 8:29 pm
Tags: canon HV40, cinelerra, video
Posted in video | 1 comment
So far I have always converted my HDV footage to NTSC before editing. For a small project I’m working on now, I’ve decided to try working directly with the raw HDV footage. This thread explains why my m2t files show up as 1440×1080 even though they can be edited as 1920×1080 (aka 1080i). It has […]
Web Video
April 1, 2010 - 10:13 pm
Tags: command line, ffmpeg, mplayer, video, web
Posted in video | Comments Off
I’ve been experimenting with video codecs and formats for uploading video to the web (Facebook, Youtube, etc.). Encoding for the Web To make a tiny file, you can encode files this way: ffmpeg -i foo.dv foo.mp4 For better quality output, there are a number of variables you can control. I’m starting with two assumptions for […]
Extract Audio Track from a Video File
February 23, 2010 - 10:36 pm
Tags: audio, command line, mplayer, video
Posted in video | Comments Off
I needed to isolate the audio track from an HDV video I captured from my camera. This command worked great: mplayer -dumpaudio video.m2t -dumpfile audio.mp3 as discussed here: http://linux.byexamples.com/archives/229/extract-audio-from-video-or-online-stream/ UPDATE: To extract wav audio data from a dv file, I had to use this command: ffmpeg -i video.dv -vn -acodec copy audio.wav Details here: http://www.tuxradar.com/content/ffmpeg-made-easy
Video Production on Linux Workshop
I’m putting on a workshop/demo this evening to introduce some people to open source software and Linux for video editing. Here are the handouts: linux_video. Thanks to Western Arctic Moving Pictures for hosting the workshop!
Scripts for Monkeying with Cinelerra XML
November 30, 2009 - 2:53 pm
Tags: bash, cinelerra, command line, video, xml
Posted in sysadmin, video | 1 comment
I’ve moved my Cinelerra projects from one directory path to another and scrambled a few things in the process. I’ve written a few bash scripts which helped me sort things out. In the process, I’ve learned a bit about the xml format which Cinelerra uses to store references to files and edits. When you add […]
Remove Unused Assets from a Cinelerra XML Project File
November 30, 2009 - 2:44 pm
Tags: bash, cinelerra, command line, video, xml
Posted in sysadmin, video | 3 comments
This is a bash script to remove all the unwanted assets from a Cinelerra project XML file. I needed it to cut out bloat from a project I was working on which had hundreds of unused resources after I split the project up into ten minute chunks. Doing so stopped Cinelerra from crashing when I […]
List Unused Assets in a Cinelerra XML Project File
November 30, 2009 - 2:39 pm
Tags: bash, cinelerra, command line, video, xml
Posted in sysadmin, video | 2 comments
This is a bash script which contains a function used to figure out which assets in a Cinelerra project are not required for the edit list. I created it because I had pulled in a couple of thousand media resources for a project and wanted to eliminate bloat. I moved the project and found it […]
Test File Paths in a Cinelerra XML File
November 30, 2009 - 2:33 pm
Tags: bash, cinelerra, command line, video, xml
Posted in sysadmin, video | 1 comment
This is a bash script to test all the filenames and paths in a Cinelerra project to make sure they are still valid. #!/bin/bash #kk test_xml_paths.sh #kk #kk check a cinelerra xml file to make sure the file references are all valid #kk provide filename to check as parameter if [ -z “$1″ -o “$1″ […]
Creating Subtitles/Captions for a Video Project
November 25, 2009 - 5:56 pm
Tags: dvdauthor, spumux, subtitle, subtitleeditor, video
Posted in video | Comments Off
I’m working on a quick 20 minute video for a non-profit group (and I do mean quick — less than two weeks from initial contact to the premiere). Everything has come together pretty nicely and I’ve finished the editing to my satisfaction in Cinelerra. Because some of the interviewees in the video have impaired speech, […]
Looking at Video File Metadata
November 16, 2009 - 10:49 pm
Tags: capture, command line, video
Posted in video | Comments Off
Three choices as per the details here: tcprobe -i filename ffmpeg -i filename midentify filename Info on file types here. I’m trying to understand video formats to make it easier to transcode for various purposes. I’ve found some useful links: adamwilt.com > the DV, DVCAM & DVCPRO Formats HDV vs HD: A Primer Digital Video […]
Comments are closed.
October 3, 2009 - 8:35 am
Thanks for sharing some great tips. I am a Ubuntu Studio / HV20 user and trying to come to terms with editing on linux. Can you suggest any resources that will help me come to terms with the basics of treating video (HD in particular). I see Cinelerra can edit .m2t files directly, so then why convert them to avi. As a test I convert using your example, “ffmpeg -i file.m2t -target pal-dv file.dv” which resulted in a slightly larger file than the original oddly? I read terms like demuxing but I don’t understand, any tips and resources would be appreciated.
Thanks
Brendan
October 6, 2009 - 9:37 am
Thanks for the comment. Honestly, I’m just figuring HD out myself. I’ve just purchased a new laptop with an HD display (Dell Studio XPS 16) and am working up to doing some editing on it. I’ll post more as soon as I get to it.
February 1, 2010 - 9:53 am
Cool 4 pro users!!
September 14, 2010 - 3:47 pm
What about live video streaming? I want to use HV40 and HV10 as web cams is this possible?