mencoder

How to join webcam FLVs

I want my website to join some webcam recordings in FLV files (like this one). This needs to be done on Linux without user input. How do I do this? For simplicity's sake, I'll use the same flv as both inputs in hope of getting a flv that plays the same thing twice in a row. That should be easy enough, right? There's even a full code exa...

How to split flv file by size using FFmpeg or mencoder or smth else?

I need to split an flv file into chunks of the known size on linux server. For example my original file is 9Mb and the chunk size is 4Mb. So I should get 3 parts - 4Mb, 4Mb and 1 Mb. Seems that FFmpeg can split only by time. Mencoder can start by time (-ss TIME) and finish by size ( -endpos SIZE MB). But if start second of the first ch...

Using Python to call Mencoder with some arguments

Hello, I'll start by saying that I am very, very new to Python. I used to have a Windows/Dos batch file in order to launch Mencoder with the right set of parameters, without having to type them each time. Things got messy when I tried to improve my script, and I decided that it would be a good opportunity to try coding something in pyt...

How to route the exe exception back to VB6 app?

hi guys, i have a vb6 apps which will call the mencoder.exe which is part of the mplayer to convert some files into flv format. i'm getting this weird unhandled exception problem from mencoder whenever i try to convert this one opendivx file. At the moment, i'm unclear of whether is this codec is the culprit behind this. Either way i h...

Using Python to execute a command on every file in a folder

Hello everyone, I'm trying to create a Python script that would : Look into the folder "/input" For each video in that folder, run a mencoder command (to transcode them to something playable on my phone) Once mencoder has finished his run, delete the original video. That doesn't seem too hard, but I suck at python :) Any ideas on wh...

How to convert to mp4 on the fly?

glc-play [stream file] -o - -y NUM | mencoder -demuxer y4m - -nosound -ovc x264 -x264encopts qp=18:pass=1 -of avi -o video.avi from http://nullkey.ath.cx/projects/glc/wiki/HowtoEncode takes a glc file, dumps it, and encodes it into an avi on the fly. Is there a way that I can modify mencoder to dump out *.mp4 instead of *.avi? Thanks...

How to capture screenshots from a video clip 50 minutes into the clip and do it fast?

Ok it seems that whenever I tell ffmpeg to take a screen cap half way though the clip (clip can be as long as 10 hours) it uses 100% of 1 cpu core and takes ages… whereas if I let it do a frame at the start it goes real quick, as if it scans though the video to get to the middle instead of just jumping to it! Here is the code im current...

Writing .Ts file 'on demand' (inotify ?...)

Hello, I have a mediaplayer that can only read samba shared files. I would like to play http stream (from my dreambox for instance). My idea is to share a folder on my linux. In this share, I will put a (fake?) file for each tv channel I want to be able to watch (ex : channel1.ts, channel2.ts ...). The mediaplayer can only read these ...

How to install ffmpeg, ffmpeg-PHP, Mplayer, Mencoder, LAME MP3 encoder for Winxp. php version 5.3.0

Hello All Members I am newbie in php.Can any body tell me how i install ffmpeg, ffmpeg-PHP, Mplayer, Mencoder in Windows XP and php version should be 5.3.0 or Wamp server release July 11 2009/Xamp Server release 2009/12/23. I make search on google and i find tutorial but that tutorial work with previous version of php 5.2.8 . So if so...

FFmpeg bitrate issue.

I'm dealing with a very big issue about bit rate , ffmpeg provide the -b option for the bit rate and for adjustment it provide -minrate and -maxrate, -bufsize but it don't work proper. If i'm giving 256kbps at -b option , when the trans-coding finishes , it provide the 380kbps. How can we achieve the constant bit rate using ffmpeg. If ...

continously add picture to video

Every x minutes I grab an image from a network-cam. Now i want to add this picture to an existing video file - on the fly. I don't want to keep numerous image files and then encode them once in a while with e.g. mencoder mf://@${LIST} -mf type=jpg:fps=${FPS} ... The video format/codec doesn't really matter, as long as standard tools ...

How to convert 3GP video for Android to view?

Hi, I'm creating 3GP videos with the Android - however, when the 3GP files are posted on a site, the same Android phone cannot view it back. (The file works on the iPhone). What is right way to encode/resize the 3GP video so that the video player on Android can play it back? Thanks ...

Can't correctly stream x264 video to mobile via RTSP

Hello! I'm creating mobile version of YouTube-like website. And i'm going to use Darwin Streaming Server for streaming low-res clips compressed with x264 and NeroAAC and hinted with MP4Box. When i'm playing it with VLC player streaming works fine, as expected. When i'm trying to open URL with my HTC Hero, it switches to player mode, the...

split video (avi/h264) on keyframe

Hallo. I have a big video file. ffmpeg, tcprobe and other tool say, it is an h264-stream in an AVI-container. Now i'd like to cut out small chunks form the video. Problem: The index of the video seam corrupted/destroyed. I kind of fixed this via mplayer -forceidx -saveidx <IndexFile> <BigVideoFile>. The Problem here is, that I'm now ...

Python subprocess + mencoder not working, same command works in terminal

I am having a problem using mencoder (SVN-r30531-4.2.1) through a python (2.6.1) subprocess. I am trying to join two mp4 files which are exactly the same size, codec, etc. Both have no audio. The code I am using to test is: import subprocess mp4merge = [ "mencoder", "in1.mp4", "in2.mp4", "-ovc", "copy", "-oac", "copy", "-of", "lavf", "...

How to convert various video file formats into FLV (for FlowPlayer)?

Hi, We need to allow our users to upload video files (which will be in various different formats naturally), and convert them all into FLV so it can be streamed using FlowPlayer (http://flowplayer.org/). What would be better FFmpeg or mencoder? And what should be the appropriate commands / arguments for the various steps. I've had a l...