named pipes - > x264
Hi, I was following these instructions to do a named pipe to x264 http://ffmpeg.x264.googlepages.com/piping mkfifo fifo.y4m ffmpeg -i test.mp4 -an -f yuv4mpegpipe - > fifo.y4m & x264 --quiet --crf 18 -o video.264 fifo.y4m For some reason, ffmpeg just sits here Stream mapping: Stream #0.1 -> #0.0 Press [q] to stop encoding It doesn't do any processing of test.mp4 and basically sits as a blank console. If I do something like ffmpeg -i test.mp4 -an -f yuv4mpegpipe - > test.y4m & Where test.y4m is not a named pipe, then test.y4m will end up being the yuv4 data... So I guess my question is, is there some extra option I need to compile ffmpeg or x264 with? Or is there another option I need to pass in? I tested this on Ubuntu 8.04 and centos 5.2 Thanks, Josh
On 18 Aug 2008, at 06:42, Josh Joy wrote:
mkfifo fifo.y4m ffmpeg -i test.mp4 -an -f yuv4mpegpipe - > fifo.y4m & x264 --quiet --crf 18 -o video.264 fifo.y4m
For some reason, ffmpeg just sits here
try -f yuv4mpegpipe -y fifo.y4m
On Mon, Aug 18, 2008 at 4:37 AM, vmrsss <vmrsss at gmail.com> wrote:
On 18 Aug 2008, at 06:42, Josh Joy wrote:
mkfifo fifo.y4m ffmpeg -i test.mp4 -an -f yuv4mpegpipe - > fifo.y4m & x264 --quiet --crf 18 -o video.264 fifo.y4m
For some reason, ffmpeg just sits here
try -f yuv4mpegpipe -y fifo.y4m <https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user>
It still sits there, doesnt process. Do I have to compile ffmpeg or x264 in a special way to allow named pipes to work? I ran some other tests on my system and it seems named pipes work with other scripts/executables
On 18 Aug 2008, at 15:50, Josh Joy wrote:
On 18 Aug 2008, at 06:42, Josh Joy wrote:
mkfifo fifo.y4m ffmpeg -i test.mp4 -an -f yuv4mpegpipe - > fifo.y4m & x264 --quiet --crf 18 -o video.264 fifo.y4m
For some reason, ffmpeg just sits here
try -f yuv4mpegpipe -y fifo.y4m <https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user>
It still sits there, doesnt process. Do I have to compile ffmpeg or x264 in a special way to allow named pipes to work? I ran some other tests on my system and it seems named pipes work with other scripts/executables
It must work, have you removed the - and > ? Try to run the commands from different shells, to avoid silly problems.
On Mon, Aug 18, 2008 at 11:06 AM, vmrsss <vmrsss at gmail.com> wrote:
On 18 Aug 2008, at 15:50, Josh Joy wrote:
On 18 Aug 2008, at 06:42, Josh Joy wrote:
mkfifo fifo.y4m ffmpeg -i test.mp4 -an -f yuv4mpegpipe - > fifo.y4m & x264 --quiet --crf 18 -o video.264 fifo.y4m
For some reason, ffmpeg just sits here
try -f yuv4mpegpipe -y fifo.y4m <https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user>
It still sits there, doesnt process. Do I have to compile ffmpeg or x264 in a special way to allow named pipes to work? I ran some other tests on my system and it seems named pipes work with other scripts/executables
It must work, have you removed the - and > ? Try to run the commands from different shells, to avoid silly problems.
I ran the following in bash and ksh, though nothing happens or process....too strange.. mkfifo input.y4m ffmpeg -i test.mp4 -an -f yuv4mpegpipe -y input.y4m & x264 --progress --output video.264 input.y4m All I see is Output #0, yuv4mpegpipe, to 'input.y4m': Stream #0.0(eng): Video: rawvideo, yuv420p, 768x576, q=2-31, 200 kb/s, 25.00 tb(c) Stream mapping: Stream #0.1 -> #0.0 Press [q] to stop encoding Though there is no encoding happening...no progress, cpu usage is at 0%....I'm not sure what it's waiting for or why it's not starting.. Thanks, Josh
Hi, Josh Joy said:
On Mon, Aug 18, 2008 at 11:06 AM, vmrsss <vmrsss at gmail.com> wrote:
On 18 Aug 2008, at 15:50, Josh Joy wrote:
On 18 Aug 2008, at 06:42, Josh Joy wrote:
mkfifo fifo.y4m ffmpeg -i test.mp4 -an -f yuv4mpegpipe - > fifo.y4m & x264 --quiet --crf 18 -o video.264 fifo.y4m
For some reason, ffmpeg just sits here
try -f yuv4mpegpipe -y fifo.y4m <https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user>
It still sits there, doesnt process. Do I have to compile ffmpeg or x264 in a special way to allow named pipes to work? I ran some other tests on my system and it seems named pipes work with other scripts/executables
It must work, have you removed the - and > ? Try to run the commands from different shells, to avoid silly problems.
I ran the following in bash and ksh, though nothing happens or process....too strange..
mkfifo input.y4m ffmpeg -i test.mp4 -an -f yuv4mpegpipe -y input.y4m & x264 --progress --output video.264 input.y4m
All I see is Output #0, yuv4mpegpipe, to 'input.y4m': Stream #0.0(eng): Video: rawvideo, yuv420p, 768x576, q=2-31, 200 kb/s, 25.00 tb(c) Stream mapping: Stream #0.1 -> #0.0 Press [q] to stop encoding
Though there is no encoding happening...no progress, cpu usage is at 0%....I'm not sure what it's waiting for or why it's not starting..
Look for "mkfifo" in FFmpeg's FAQ. Notice that stdin is redirected to /dev/null whenever ffmpeg is to be a background task. Regards, V?ctor
Look for "mkfifo" in FFmpeg's FAQ. Notice that stdin is redirected to /dev/null whenever ffmpeg is to be a background task.
Regards, V?ctor
Yes, thanks so much! That solved it
HI, i try encode(x264) with ffmpeg an stream of my webcam ->mkfifo ->gpac for mpeg-Dash: mkfifo -m 660 temp1.mp4 ffmpeg -threads 4 -f v4l2 -i /dev/video0 -acodec libfaac -ar 44100 -ab 128k -ac 2 -vcodec libx264 -r 30 -s 1280x720 -b 2496k -bt 1024k -f mp4 -y "$movie" - > temp1.mp4 & MP4Box -dash 10000 -frag 1000 -rap "$movie" but he don't make correctly beacause he finish immediatly ....and don't less me stop stream of webcam.. do you have any idea or advice best regards Josué Ps: sorry for my bad english i learn... -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/named-pipes-x264-tp937407p4650518.h... Sent from the FFmpeg-users mailing list archive at Nabble.com.
participants (4)
-
joshjdevl@gmail.com -
josue -
vmrsss@gmail.com -
wzrlpy@arsystel.com