Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > General > Linux, Mac OS X, & Co

Reply
 
Thread Tools Search this Thread Display Modes
Old 27th July 2010, 22:26   #1  |  Link
peeco
Registered User
 
Join Date: Jul 2010
Posts: 4
Linux Command joining UNC QT

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.
peeco is offline   Reply With Quote
Old 27th July 2010, 23:59   #2  |  Link
nm
Registered User
 
Join Date: Mar 2005
Location: Finland
Posts: 2,643
Quote:
Originally Posted by peeco View Post
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?


Quote:
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:

Code:
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 720576 -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.
Audio can be handled in a similar way and muxed in the output MOV at the same time as the final video.
nm is offline   Reply With Quote
Old 28th July 2010, 23:07   #3  |  Link
peeco
Registered User
 
Join Date: Jul 2010
Posts: 4
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 is offline   Reply With Quote
Old 11th August 2010, 17:22   #4  |  Link
peeco
Registered User
 
Join Date: Jul 2010
Posts: 4
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]#
peeco is offline   Reply With Quote
Old 7th May 2011, 02:30   #5  |  Link
danny0085
Registered User
 
Join Date: Apr 2011
Posts: 1
linux commands

Here you can check out the most used linux commands .
danny0085 is offline   Reply With Quote
Reply

Tags
command, join, linux, mov

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:11.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, vBulletin Solutions Inc.