Ubuntu Multimedia :: Merge Two Files With Ffmpeg?
Mar 31, 2010
how can i merge two files with ffmpeg?
one is : /home/pt/t/pa1.flv
the other is : /home/pt/t/pa2.flv
1 o merge with ffmpeg
ffmpeg -i /home/pt/t/pa1.flv -i /home/pt/t/pa2.flv -vcodec copy -acodec copy /home/pt/t/dd.flv
the problem is: the merged file ( /home/pt/t/dd.flv ) just contain one file--the first one
/home/pt/t/pa1.flv,there is no the second file--/home/pt/t/pa2.flv in the /home/pt/t/dd.flv
[Code].....
View 4 Replies
ADVERTISEMENT
Feb 22, 2011
I am using ffmpeg for merge wav files to a mov video. My doing is below
1. First extract audio (wav file) from video
2. Create wav file from mp3 track 1
3. Create wav file from mp3 track 2
4 Merge extract audio from video with track 1 and track2.
Now finally create a new video with original video's video stream and merged audio stream.
Process is working. However final video is 3-4 times greater than original one. I want that final video should be near about size of original video. As I understand, all three wav files (created from ) make video larger.
Example commands i using is as below:
View 6 Replies
View Related
Aug 11, 2010
I'm running ClipBucket on my Ubuntu 10.04 LTS server x64.Conversion of AVI to FLV works just fine, however when I try to upload an MPG file, it fails. Apparently I should recompile ffmpeg to allow for MPG > FLV conversions.
View 3 Replies
View Related
Jul 20, 2010
how to increase the volume of ogg and mp3 files using ffmpeg. Some of the podcasts that I listen to are not loud enough, and I have my media player set to the highest volume.
View 1 Replies
View Related
Jul 20, 2010
Since ffmpeg 6 is out for some time, when will Ubuntu Lucid afford such a new ffmpeg package from its repository?
View 2 Replies
View Related
Jun 16, 2010
Iam aware of the way on how almost every file can be converted to .pdf within Ubuntu 10.04 using "Print to File" function. But is there a way to merge multiple files to create one .pdf? OR Is there a way to merge multiple .pdf files to create a single .pdf?
View 5 Replies
View Related
Jul 6, 2011
So I found PDftk which seems promising Im also looking at the commands which are also very powerful..but I think its kinda of laborious to type all my 50+ pdf files in the command prompt I have the front end of pdftk I was wondering is there a program (I have Pdf sam and Pdf Shuffler) that will allow me to import unlim. number of files and then just jam it into one big PDF file?
View 4 Replies
View Related
Sep 18, 2010
I have several image files accumulated as a result of taking screenshots. I want to merge all of them into a single pdf file. How can I do that? I save webpages in .mht format using UnMHT addon in firefox. Is there any way to merge several mht files into a single pdf?
View 7 Replies
View Related
Jul 28, 2011
Is there any bash script to merge pdf files in a directory and sub-directory and rename it as the directory/sub-directory name?Like for example using GhostScript/PDFTK/PyPDF etc?I'm kinda new where it comes to bash scripting.I found this script on a blog that seems to do what I want, however, the bookmark functionality is not of importance to me (and requires jPDFBookmark - which I can't manage to install)
Code:
#!/bin/bash
#
[code]...
View 2 Replies
View Related
Apr 14, 2010
I have a bunch of RTF files that I need to merge into just one RTF.
I'm sure there is an easy way to do this, but I just can't find out how
View 1 Replies
View Related
Nov 20, 2010
I have a movie split into 3 iso image files, say, movie-1.iso,movie-2.iso, and movie-3.iso I did the following:
[ewn]# cd /mnt
[mnt]# mkdir disk1 disk2 disk3
[mnt]# mount -t iso9660 -o ro,loop=/dev/loop0 /media/Hitachi_SATA_2TB/iso_files/Movies/movie-1.iso /mnt/disk1
[mnt]# mount -t iso9660 -o ro,loop=/dev/loop1 /media/Hitachi_SATA_2TB/iso_files/Movies/movie-2.iso /mnt/disk2
[Code]....
the files for disk2, disk3 are exactly the same except disk2 has 2 .vob files instead of 3. Can I make this work by changing the names of some of these files before merging them into one directory and then running the mkisofs command to create a new single iso image? If so, what names do I give so that the movie plays correctly? If not, just how do you do this?
View 8 Replies
View Related
Jul 23, 2011
Searching Google on how to join/merge many mp3 files, it suggests that I should just cat them together.That might "work", but clearly it is not the correct way to do it, as each header and set of IDv3 tags will also be concatenated.Does a Linux program exist that can be scripted to join/merge many mp3?Can mplayer/mencoder/ffmpeg do it?
View 2 Replies
View Related
Jun 1, 2010
i have 2 file and want to merge them in the first one. the first file is like this:
2 word1
1 word2
6 word3
2 word4
......
the second:
word1 :file1 :file2
word2 :file6
word3 :file1 :file2 :file2 :..up to file6
word4 :file7 :file1
.......
So i want to ADD all those File fiels Wich have different FN for every record.
View 8 Replies
View Related
Jul 25, 2010
I am trying to install centos 5.5 via virtualbox. Is it necessary to merge these parts of the iso image before installing (say by virtualbox)?
View 2 Replies
View Related
Jan 18, 2010
this is not the right place to ask this question, but I found no other.I have an AAC audio file and a video file. Is there any way to merge them? I tried Avidemux but it won't let me open my AAC file.
View 2 Replies
View Related
Nov 27, 2010
I have to merge two different pdf files and I don't know how to do this. ..(I use opensuse 11.3 with gnome).
View 9 Replies
View Related
Dec 20, 2010
I want to merge columns (selectively) from several files and create a new file with the merge output. I saw some suggestions to use pr/paste to join the columns and then awk to pick-up the columns.
Code:
pr -m -t -s file1 file2 | gawk '{print $4,$5,$6,$1}'
But I have hundreds of files and I cannot manually pick up columns using awk as given in
[code]....
View 14 Replies
View Related
Apr 13, 2011
1. Is there an easy way to combine pdf files not only one "after" the other, but also one "next to" the other? For example, If I have one-page files called a1.pdf, a2.pdf, a3.pdf, a4.pdf, b1.pdf, b2.pdf, b3.pdf, b4.pdf, c1.pdf, c2.pdf, c3.pdf, c4.pdf, I want to combined them so that I can scroll down from a to c and scroll right from 1 to 4. That is, I want to merge them in "matrix form". If I zoom out the final file should look like:
a1 a2 a3 a4
b1 b2 b3 b4
c1 c2 c3 c4
(TWELVE pages in total)
Is this possible? I tried Google but found no information.
2. Also, is it possible to just put all of them together in a single page. If I zoom out the page should look like:
a1a2a3a4
b1b2b3b4
c1c2c3c4
(ONE page in total)
Note: I would like to do this for many one-page files
View 1 Replies
View Related
Jan 11, 2011
How can I join the two parts of a stereoscopic movie to get a side-by-side one?
I can expand the left file, that way all I'll need is to paste the second one on top of it, with something like this:
mencoder left-file.mkv -o side-by-side.avi -oac copy -ovc lavc -of avi -vf scale=1280:720,expand=-1280:0:0:0 -sws 3 -lavcopts vbitrate=16000
Any idea which tool should I use on a Linux system?
View 1 Replies
View Related
Oct 4, 2010
I have a folder with hundreds of .txt files (logs of some java application) that I have to merge in to one single .txt file. This application produces a new log file everyday:
day1: logFriday10September2010.txt
day2: logSaturday11September2010.txt
...
day8: logFriday17September2010.txt
...
and so on...
I could merge the files easily with "cat" and ">>" however, the problem is that I have to do it by taking into account the date (creation or modification) of the file.
If I simple use the cat command the output file will receive for example, all Fridays in a row, then all Saturdays, etc. and in that way I'm not considering the date.
I've searched for the options of the find command, since the files after creation are not modified...I try to use this for example:
$ find . -newer <some old file>
but that lists me all files after that <old file> and not by correct date.
View 5 Replies
View Related
Apr 13, 2011
I have 2 very long files which are quite similar:
file1.csv:
Code:
file2.csv:
Code:
I need this output:
Code:
explanation:
If the fields 3 (serie) and 4 (modello) are identical, the lines of the 2 files should be "added":
Code:
If the fields 3 (serie) and 4 (modello) are different, just print the line of both files:
Code:
Is there a way to do this without reading the (huge) files with a "while read line" loop?
View 14 Replies
View Related
Apr 20, 2010
I'm trying to transcode and merge sub with mencoder in order to watch a video on my nokia cellphone.
I'm using this command :
Code:
without success. The transcoding works, but no subtitle is merged.
The transcoding log is here
I'm using Karmic.
View 4 Replies
View Related
Jun 7, 2011
I have a video which I've edited to my satisfaction but when I click play it seems to only play the first clip of video. How can I merge all my clips so it will continue to play through the whole thing?
View 7 Replies
View Related
Apr 6, 2009
You want to cut lets say a 15 minute video into 10 minute video, removing the first 5 minutes of it using ffmpeg?s?
View 8 Replies
View Related
Sep 27, 2010
I use this command line to transcode media file
Code:
ffmpeg -i in.ts -y -threads 2 -vcodec libxvid -b 300000 -bufsize 8192 -g 300 -s 320x240 -aspect 4:3 -f mp4 -pass 1 out.mp4
[code]....
View 1 Replies
View Related
Feb 4, 2011
I've created some time-lapse videos from photos, using this command: ffmpeg -i IMG_%03d.JPG -s 1440x1080 -sameq video.MP4
And it worked great. Now I want to join several of these time-lapse videos to make a single, longer video (all the input videos have the exactly same format). I already tried using: cat video1.MP4 video2.MP4 > stitch.MP4
but the output ends up being equal to video1.MP4, I don't want to transcode nor changing any parameter of the video, I just want a end-to-end stitching, as if those videos were on a playlist.
View 1 Replies
View Related
Mar 3, 2011
I have so many flac files. I want to have 1 minute samples of the files in mp3 and a bitrate of 64. (First 1 minute of all files) How can I do that with ffmpeg command?
View 5 Replies
View Related
May 19, 2011
I use ffmpeg to convert my files, but when I do so, I lose the keyframes metadata from my flv files. The command I use right now is: $/usr/local/bin/ffmpeg -i %s -ab 96k -ar 44100 -b 500k -r 25 -f flv %sHow can I avoid ffmpeg to delete the keyframes info?
View 2 Replies
View Related
Jan 13, 2010
I've got a bunch of HD files in .mkv format that I want to convert to a format that the 360 will read (currently just trying .avi files) so I can stream the media to my xbox360. I'd rather avoid transcoding the entire file, so I tried unpacking the .mkv file into audio and video (and subtitle if necessary) and repacking said file into avi using ffmpeg. The repacking is where I am having the problem. Here's the commands I tried at first (it might look familiar):
Code:
mkvextract tracks file.mkv 1:temp_video.avi 2:temp_audio.ogg 3:temp_sub.srt
ffmpeg -i temp_video.avi -i temp_audio.ogg -vcodec copy file.avi
However, I keep getting this annoying error:
Code:
Error while opening codec for output stream #0.1 - maybe incorrect parameters such as bit_rate, rate, width or height Where stream #0.1 is the output audio stream to the .avi file. I think I have narrowed it down to the fact that the input streams are all 6 channel (5.1 surround sound) which mp2 doesn't support (the ffmpeg audio default) so I did this instead:
Code:
ffmpeg -i temp_video.avi -i temp_audio.ogg -vcodec copy -acodec libmp3lame file.avi
I'm still getting the same error, but when I use
Code:
ffmpeg -i temp_video.avi -i temp_audio.ogg -vcodec copy -acodec libmp3lame -ac 2 file.avi
to change the sound to stereo it works. Problem is I'd like to keep my media in surround sound. Any thoughts on how to get all 6 channels in the new mp3 file? I'm fairly certain that mp3s support 5.1. And after some messing around, I haven't found that my ffmpeg can transcode audio format from 5.1 back to 5.1. So since (I think) the 360 can play .ac3 files I decided to just copy both the video and audio file to the .avi file sans transcoding using
Code:
ffmpeg -i temp_video.avi -i temp_audio.ogg -vcodec copy -acodec copy file.avi
however now about halfway through, I run into this error:
Code:
NULL @ 0x22f3a00]error, non monotone timestamps 62562 >= 62562
av_interleaved_write_frame(): Error while opening file I can't seem to find any solution to this problem anywhere online, does anyone know how to get around this? I'd prefer to use ffmpeg for this if possible. (so I can write a script and just attack an entire directory at once) For what it's worth, I'm using the latest ffmpeg in the ubuntu (karmic) default repositories.
View 1 Replies
View Related
Apr 26, 2010
i want to convert a song from ogg format to mp3 using ffmpeg the command i use to do this is
ffmpeg -i /home/john/Music/input.ogg to mp3 output.mp3
i then get then get a message back saying
"unknown format"
how do i correct this ?
View 1 Replies
View Related