View Full Version : Linux Command joining UNC QT
peeco
27th July 2010, 22:26
Is is possible to command line join 2 UNC QT containers together without transcoding them to other formats?
I have done some searching but everything is a transcode (usually demuxing) of the files and I just need to join 2 UNC QT's to one new UNC QT?
Thanks.
Is is possible to command line join 2 UNC QT containers together without transcoding them to other formats?
By "UNC QT" I guess you mean MOV containing uncompressed video?
I have done some searching but everything is a transcode (usually demuxing) of the files and I just need to join 2 UNC QT's to one new UNC QT?
Demuxing is not transcoding. Since MOV files can't be directly concatenated, they need to be remuxed anyway. I'd try something like this:
ffmpeg -i input1.mov -vcodec copy -f rawvideo -an input1.yuv
ffmpeg -i input2.mov -vcodec copy -f rawvideo -an input2.yuv
cat input1.yuv input2.yuv | ffmpeg -pix_fmt yuv420p -s 720×576 -r 25 -i - -vcodec copy output.mov
Named pipes can be used to avoid writing the raw intermediate files on disk. See "How can I join video files?" in FFmpeg FAQ (http://www.ffmpeg.org/faq.html#SEC27).
Audio can be handled in a similar way and muxed in the output MOV at the same time as the final video.
peeco
28th July 2010, 23:07
Thanks for the quick response nm.
Yes I did mean uncompressed quicktime mov, was hoping it was possible to join the together without demuxing but glad too have an answer to this question.
peeco
11th August 2010, 17:22
I tried the cat command suggested using the same naming convention.
The original files are: libquicktime-1.0.2, 720 x 486, Millions, 16-bit Integer (Big Endian), Stereo, 48.000 kHz and the frame rate is 23.98fps.
I can make the yuv files but when I run the cat I get an "Invalid data found when processing input". I have tried different frame rates / frame sizes but have been unsuccessful.
Any thoughts as to where I might be going wrong? Ideally I need to get them back as the original file type, size and frame-rate.
Thanks.
Error below:
[root@toxik1 test_1]# cat input1.yuv input2.yuv input3.yuv | ffmpeg -pix_fmt yuv420p -s 720x486 -r 23.98 -i - -vcodec copy output.mov
FFmpeg version 0.6, Copyright (c) 2000-2010 the FFmpeg developers
built on Jun 28 2010 15:00:32 with gcc 4.4.4 20100503 (Red Hat 4.4.4-2)
configuration:
libavutil 50.15. 1 / 50.15. 1
libavcodec 52.72. 2 / 52.72. 2
libavformat 52.64. 2 / 52.64. 2
libavdevice 52. 2. 0 / 52. 2. 0
libswscale 0.11. 0 / 0.11. 0
pipe:: Invalid data found when processing input
[root@toxik1 test_1]#
danny0085
7th May 2011, 02:30
Here you can check out the most used linux commands (http://commands.tips-linux.net) .
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.