Re: [Libav-user] Need to understand where demuxer for mp4 is hooked with h264 decoder ?

2016-08-13 Thread ssshukla26
Yup, extradata has the header data, I was able to decode mp4 data correctly
by passing extradata to my decoder.



--
View this message in context: 
http://libav-users.943685.n4.nabble.com/Libav-user-Need-to-understand-where-demuxer-for-mp4-is-hooked-with-h264-decoder-tp4662406p4662416.html
Sent from the libav-users mailing list archive at Nabble.com.
___
Libav-user mailing list
Libav-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/libav-user


Re: [Libav-user] Need to understand where demuxer for mp4 is hooked with h264 decoder ?

2016-08-13 Thread Carl Eugen Hoyos
2016-08-10 14:01 GMT+02:00 ssshukla26 :
> Hi, It seems *demuxer for mp4* is sending data to decoder but without
> *headers* (i.e. sps and pps) and the packets received is having only *size*
> (first 4 bytes) at the beginning.

Did you check extradata / test with mpegts?

Carl Eugen
___
Libav-user mailing list
Libav-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/libav-user


Re: [Libav-user] Need to understand where demuxer for mp4 is hooked with h264 decoder ?

2016-08-10 Thread ssshukla26
Hi, It seems *demuxer for mp4* is sending data to decoder but without
*headers* (i.e. sps and pps) and the packets received is having only *size*
(first 4 bytes) at the beginning.

My decoder need sps and pps else its giving error that "No proper header"
while decoding. Can you please suggest what to be done ?



--
View this message in context: 
http://libav-users.943685.n4.nabble.com/Libav-user-Need-to-understand-where-demuxer-for-mp4-is-hooked-with-h264-decoder-tp4662406p4662410.html
Sent from the libav-users mailing list archive at Nabble.com.
___
Libav-user mailing list
Libav-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/libav-user


Re: [Libav-user] Need to understand where demuxer for mp4 is hooked with h264 decoder ?

2016-08-09 Thread ssshukla26
Ok, will provide you the patch soon. Till then can you tell me that where
*demuxer for mp4* is hooked with the *default h264 decoder* in the source Or
its hooked via *isom.c* ? Can you please clear that doubt of mine !

P.S. :- My decoder is able to decode H264 files and it is using
"*AV_CODEC_ID_H264*" as *id*. 



--
View this message in context: 
http://libav-users.943685.n4.nabble.com/Libav-user-Need-to-understand-where-demuxer-for-mp4-is-hooked-with-h264-decoder-tp4662406p4662408.html
Sent from the libav-users mailing list archive at Nabble.com.
___
Libav-user mailing list
Libav-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/libav-user


Re: [Libav-user] Need to understand where demuxer for mp4 is hooked with h264 decoder ?

2016-08-08 Thread Carl Eugen Hoyos
2016-08-09 2:48 GMT+02:00 ssshukla26 :
> I am decoding a *mp4 file* using *h264 decoder* (as follows), so where does
> this demuxer for mp4 is hooked with h264 decoder in the source ? Please help
> I want to hook the demuxer for mp4 with my own decoder.

It is probably much easier to answer this question if you provide
your decoder patch.
Did you look into isom.c? This is used to map codecs to the mp4
format.

Carl Eugen
___
Libav-user mailing list
Libav-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/libav-user


[Libav-user] Need to understand where demuxer for mp4 is hooked with h264 decoder ?

2016-08-08 Thread ssshukla26
Hi,

I am decoding a *mp4 file* using *h264 decoder* (as follows), so where does
this demuxer for mp4 is hooked with h264 decoder in the source ? Please help
I want to hook the demuxer for mp4 with my own decoder.

# *ffmpeg -f mp4 -i no_mans_sky.mp4 out.yuv*

ffmpeg version N-80954-g58dc8bb Copyright (c) 2000-2016 the FFmpeg
developers
  built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04.3)
  configuration: --prefix=ffmpeg_4_this_pc/ --enable-shared --enable-nonfree
--enable-pic --enable-gpl
--extra-cflags=-I/home/sunny/ffmpeg/sdl/source/SDL-1.2.15/sdl_4_this_pc/include/SDL/
--extra-ldflags='-L/home/sunny/ffmpeg/sdl/source/SDL-1.2.15/sdl_4_this_pc/lib/
-lSDL'
  libavutil  55. 28.100 / 55. 28.100
  libavcodec 57. 50.100 / 57. 50.100
  libavformat57. 41.100 / 57. 41.100
  libavdevice57.  0.102 / 57.  0.102
  libavfilter 6. 47.100 /  6. 47.100
  libswscale  4.  1.100 /  4.  1.100
  libswresample   2.  1.100 /  2.  1.100
  libpostproc54.  0.100 / 54.  0.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'no_mans_sky.mp4':
  Metadata:
major_brand : dash
minor_version   : 0
compatible_brands: iso6avc1mp41
creation_time   : 2015-10-28 11:49:29
  Duration: 00:01:54.11, start: 0.00, bitrate: 2810 kb/s
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p,
1920x1080 [SAR 1:1 DAR 16:9], 41 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 59.94
tbc (default)
Metadata:
  creation_time   : 2015-10-28 11:49:29
  handler_name: VideoHandler
[rawvideo @ 0x793720] Using AVStream.codec to pass codec parameters to
muxers is deprecated, use AVStream.codecpar instead.
Output #0, rawvideo, to 'out.yuv':
  Metadata:
major_brand : dash
minor_version   : 0
compatible_brands: iso6avc1mp41
encoder : Lavf57.41.100
Stream #0:0(und): Video: rawvideo (I420 / 0x30323449), yuv420p,
1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 29.97 fps, 29.97 tbn, 29.97
tbc (default)
Metadata:
  creation_time   : 2015-10-28 11:49:29
  handler_name: VideoHandler
  encoder : Lavc57.50.100 rawvideo
Stream mapping:
  Stream #0:0 -> #0:0 (*h264 (native)* -> rawvideo (native))
Press [q] to stop, [?] for help
frame= 1833 fps= 40 q=-0.0 Lsize= 5567738kB time=00:01:01.16
bitrate=745750.2kbits/s speed=1.35x



--
View this message in context: 
http://libav-users.943685.n4.nabble.com/Libav-user-Need-to-understand-where-demuxer-for-mp4-is-hooked-with-h264-decoder-tp4662406.html
Sent from the libav-users mailing list archive at Nabble.com.
___
Libav-user mailing list
Libav-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/libav-user