[FFmpeg-user] Demux stream with ffmpeg - but decode with HW instead

2016-01-14 Thread Ran Shalit
Hello,

I would please like to ask if it is possible to demux a stream to raw
h.264 , while do the h.264 decoding in HW instead of ffmpeg.

I think maybe the following can achieve this:

ffmpeg -f mpegts udp://192.168.1.10:48550  -vcodec copy -an -f h264
temp_file.h264 &
temp_file > hw_decoder (hw_decoder is executable which can take
raw h.264 and convert it to yuv)

The only thing I will need to take care of is that this file temp_file
will get larger and larger. Is there a way to deal with it ?

Best Regards,
Ran
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] yuv420p format

2016-01-08 Thread Ran Shalit
On Fri, Jan 8, 2016 at 2:23 PM, Ran Shalit <ransha...@gmail.com> wrote:
> On Fri, Jan 8, 2016 at 11:02 AM, Carl Eugen Hoyos <ceho...@ag.or.at> wrote:
>> Ran Shalit  gmail.com> writes:
>>
>>> I have captured video with V4L2_PIX_FMT_YUV420 format
>>
>> How did you capture the video?
>>
>>> But the captured video is not played correctly with
>>
>> What does "not correctly" mean?
>> Please provide a sample.
>>
>>> ffplay -f rawvideo -pixel_format yuv420p
>>> -video_size 1920x1080 -i cap_yuv420p.yuv
>>>
>>> Is V4L2_PIX_FMT_YUV420 (v4l2)  and yuv420p (ffmpeg) the same ?
>>
>> Yes, see:
>> http://git.videolan.org/?p=ffmpeg.git;a=blob;f=libavdevice/v4l2-common.c
>>
>> Carl Eugen
>>
>> ___
>> ffmpeg-user mailing list
>> ffmpeg-user@ffmpeg.org
>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
>
>
> Hi Carl,
>
> Thank you very much for your reply.
>
> The sample are here:
> https://drive.google.com/folderview?id=0B22GsWueReZTTmItd1NFWjFBV2M=sharing
> 1. They were created by compiling the v4l2 API example from:
> http://linuxtv.org/downloads/v4l-dvb-apis/capture-example.html
> 2. modprobe vivi (kernel must contain module vivi)
> 3. runnning the compiled executable:
> 3.1 the example as-is (no changes)
> ./v4l2_example  -o -c 10  > v4l2_default.yuv
>
> 3.2 the example as-is (no changes)  but unning with (-f) - force
> parameter to 640x480 interleaved, yuyv (can be seen in the example
> code)
> ./v4l2_example  -f -o -c 10  >
> v4l2_default_force_640_480_interleaved_yuyv.yuv
>
>3.3 the example with minor modification so that the force section
> in code will use   V4L2_PIX_FMT_YUV422P format, and progressive
> (V4L2_FIELD_NONE   instead of V4L2_FIELD_INTERLEAVED), the
> resolution is the same (640x480).
> ./v4l2_example  -f -o -c 10  >
> v4l2_default_force_640_480_progressive_yuv420.yuv
>
>
> Trying to run the yuv420 sample (and the other two) always gives bad images:
>
> ffplay -f rawvideo -pixel_format yuv420p -video_size 640x480 -i
> v4l2_default_force_640_480_progressive_yuv420.yuv
>
> I've tried many change in ffplay parameters, but can't understand
> what's the problem.
>
> Any hint is most appreciated,
>
> Best Regards,
> Ran


Hi,

One more update:
I did manage to play the video with the example as-is (no code modification)
But It seems that the captured video is always the same:  422 YUYV.
It is v4l2 issue probably,  but for some reason the captured video is
always 422 YUYV.
Trying to make the modification in code for YUV420, although giving no
error, the captured video is always the same.

Regards,
Ran
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] yuv420p format

2016-01-08 Thread Ran Shalit
On Fri, Jan 8, 2016 at 11:02 AM, Carl Eugen Hoyos <ceho...@ag.or.at> wrote:
> Ran Shalit  gmail.com> writes:
>
>> I have captured video with V4L2_PIX_FMT_YUV420 format
>
> How did you capture the video?
>
>> But the captured video is not played correctly with
>
> What does "not correctly" mean?
> Please provide a sample.
>
>> ffplay -f rawvideo -pixel_format yuv420p
>> -video_size 1920x1080 -i cap_yuv420p.yuv
>>
>> Is V4L2_PIX_FMT_YUV420 (v4l2)  and yuv420p (ffmpeg) the same ?
>
> Yes, see:
> http://git.videolan.org/?p=ffmpeg.git;a=blob;f=libavdevice/v4l2-common.c
>
> Carl Eugen
>
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user



Hi Carl,

Thank you very much for your reply.

The sample are here:
https://drive.google.com/folderview?id=0B22GsWueReZTTmItd1NFWjFBV2M=sharing
1. They were created by compiling the v4l2 API example from:
http://linuxtv.org/downloads/v4l-dvb-apis/capture-example.html
2. modprobe vivi (kernel must contain module vivi)
3. runnning the compiled executable:
3.1 the example as-is (no changes)
./v4l2_example  -o -c 10  > v4l2_default.yuv

3.2 the example as-is (no changes)  but unning with (-f) - force
parameter to 640x480 interleaved, yuyv (can be seen in the example
code)
./v4l2_example  -f -o -c 10  >
v4l2_default_force_640_480_interleaved_yuyv.yuv

   3.3 the example with minor modification so that the force section
in code will use   V4L2_PIX_FMT_YUV422P format, and progressive
(V4L2_FIELD_NONE   instead of V4L2_FIELD_INTERLEAVED), the
resolution is the same (640x480).
./v4l2_example  -f -o -c 10  >
v4l2_default_force_640_480_progressive_yuv420.yuv


Trying to run the yuv420 sample (and the other two) always gives bad images:

ffplay -f rawvideo -pixel_format yuv420p -video_size 640x480 -i
v4l2_default_force_640_480_progressive_yuv420.yuv

I've tried many change in ffplay parameters, but can't understand
what's the problem.

Any hint is most appreciated,

Best Regards,
Ran
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


[FFmpeg-user] yuv420p format

2016-01-07 Thread Ran Shalit
Hello,

I would like to ask what is the actual color format of yuv420p as used
with ffmpeg in pixel_format option.

I have captured video with V4L2_PIX_FMT_YUV420  format (described in
https://linuxtv.org/downloads/v4l-dvb-apis/re25.html )
But the captured video is not played correctly with
ffplay -f rawvideo -pixel_format yuv420p -video_size 1920x1080 -i
cap_yuv420p.yuv

Is V4L2_PIX_FMT_YUV420 (v4l2)  and yuv420p (ffmpeg) the same ?

Thank you,
Ran
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


[FFmpeg-user] how to convert yuv420p to nv12 ?

2015-11-15 Thread Ran Shalit
Hi,

I am trying to convert yuv format to nv12 and to play it.
I used carphone qcif sample yuv format (yuv420p):
http://trace.eas.asu.edu/yuv/
The original sampled is played OK with yuv player.
But on trying to play the converted sample
ffmpeg -pix_fmt yuv420p -s 176x144 -i carphone_qcif.yuv -pix_fmt nv12
carphone_qcif_nv12.yuv
the result seems wrong with any yuv player I've used (i remembered to
change the setting for qcif 176x144, and NV12 but it did not help).

Is there something wrong with ffmpeg convert ?
This is the ffmpeg version I'm using:
ubuntu@ubuntu-laptop:~$ ffmpeg
FFmpeg version SVN-r0.5.9-4:0.5.9-0ubuntu0.10.04.3, Copyright (c)
2000-2009 Fabrice Bellard, et al.


Thanks,
Ran
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] ffmpeg - use for mpeg-ts streaming

2015-10-06 Thread Ran Shalit
On Tue, Oct 6, 2015 at 11:11 AM, Carl Eugen Hoyos <ceho...@ag.or.at> wrote:
> Ran Shalit  gmail.com> writes:
>
>> Do you think that it is better to do it with ffmpeg
>> for the streaming purpose, or better do it with
>> live555 library instead ?
>
> You cut the most important part of my original answer:
>
>> > Fortunately, you can use the ffmpeg executable first
>> > to test if what you want to do works or not before
>> > implementing it in your application.
>
> This should also answer your question on libav-user.
>

Hi Carl,

Thank you for the suggestion. I intend to try it.
If I may, one more on this issue please.
Is it possible to use ffmpeg with zero buffering in the streaming ?
I ask becuase we are not sure which streaming package(live555 / ffmpeg
muxing) better fits in terms of latency and implementation simplicity.

Best Regards,
Ran
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


[FFmpeg-user] ffmpeg - use for mpeg-ts streaming

2015-10-05 Thread Ran Shalit
Hello,

I thought to use ffmpeg library to muxing given encoded buffer, and
stream into mpeg-ts using udp (doing it in code , not shell).
I would like to ask if using ffmpeg for streaming this way is
recommended or better using another library for streaming such as
live555. I only would like to ask if there are known issues with
ffmpeg used for mpeg-ts udp streaming.

Thank you,
Ran
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] ffmpeg - use for mpeg-ts streaming

2015-10-05 Thread Ran Shalit
On Mon, Oct 5, 2015 at 11:23 AM, Carl Eugen Hoyos <ceho...@ag.or.at> wrote:
> Ran Shalit  gmail.com> writes:
>
>> I thought to use ffmpeg library to muxing given
>> encoded buffer, and stream into mpeg-ts using udp
>> (doing it in code , not shell).
>
> Fortunately, you can use the ffmpeg executable first
> to test if what you want to do works or not before
> implementing it in your application.
>
>> I would like to ask if using ffmpeg for streaming
>> this way is recommended or better using another
>> library for streaming such as live555.
>
> I wasn't aware that live555 supports mpeg-ts over udp.
> Does it?
>

Hi Carl,

Thanks for the feedback.
Yes, live555 support it according to Q (though the recommendation is
to use rtp instead).
I intend to use mpeg-ts over udp, (with given encoded buffers from HW encoder).
Do you think that it is better to do it with ffmpeg for the streaming
purpose, or better do it with live555 library instead ?
It seems that ffmpeg API is simpler for this but I am not sure if this
should work.

Another thing - Is the latency for the streaming will be minimal with ffmpeg ?

Thank you!
Ran
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


[FFmpeg-user] OpenCaster vs. FFmpeg

2015-08-31 Thread Ran Shalit
Hello,

I would please like to ask what is a good choice for muxing ES to mpeg
transport stream which is transffered in ethernet udp.
It is required to do this in linux application which integrates with
video encoder (ES).

I know that both FFmpeg and OpenCaster can support this.

What do you think will be a good choice for this ? (simplicity to
integrate in code, latency, debug, performance, support in community, etc)

Regards,
Ran
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


[FFmpeg-user] using ffmpeg over ethernet

2015-03-29 Thread Ran Shalit
Hello,

I'm new in using ffmpeg.
Is there an example for using ffmpeg over ethernet ?

Thank you,
Ran
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


[FFmpeg-user] KLV metadata

2014-09-06 Thread Ran Shalit
Hi,

I am new with using ffmpeg, and I check if it can be used for the following:

Does anyone know if ffmpeg supports KLV (SMPTE 336M) metadata set ?
How can I try and see how to use it with some sample of video stream
with metadata ?

Thanks!

Ran
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user