[Libav-user] 回复: (no subject)
sea
2509044372 at qq.com
Thu Dec 22 09:53:16 EET 2016
Source code can be seen here: http://blog.csdn.net/leixiaohua1020/article/details/26838535/
Project can be download here: http://download.csdn.net/detail/leixiaohua1020/7394649
I did not modify the code, only changed the input parameters.
------------------ 原始邮件 ------------------
发件人: "Steven Liu";<lingjiujianke at gmail.com>;
发送时间: 2016年12月22日(星期四) 上午10:00
收件人: "This list is about using libavcodec, libavformat, libavutil,libavdevice and libavfilter."<libav-user at ffmpeg.org>;
主题: Re: [Libav-user] (no subject)
2016-12-22 9:40 GMT+08:00 Blake Senftner <bsenftner at earthlink.net>:
Below is my code I posted earlier this week. The code earlier in this email thread replaces the "opening of a stream" portion of that logic.
http://ffmpeg.org/pipermail/libav-user/2016-December/009927.html
No, I said to sea sea <2509044372 at qq.com> .
Sincerely,
-Blake Senftner
辣计算机思想
> On Dec 21, 2016, at 5:17 PM, Steven Liu <lingjiujianke at gmail.com> wrote:
>
>
>
> 2016-12-22 0:32 GMT+08:00 sea <2509044372 at qq.com>:
> Thank you very much. I download a .mov file from http://www.hd-trailers.net/movie/rogue-one-a-star-wars-story/, but get the same result, avcodec_open2 returns -1.
>
> Function av_dump_format gives .mov file information as :
> Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '1.mov':
> Metadata:
> major_brand : qt
> minor_version : 537199360
> compatible_brands: qt
> creation_time : 2016-12-15 23:51:52
> timecode : 01:00:49:17
> Duration: 00:00:43.00, start: 0.000000, bitrate: 1080 kb/s
> Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709), 848x360, 997 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 48k tbc (default)
> Metadata:
> creation_time : 2016-12-15 23:51:52
> handler_name : Apple Video Media Handler
> encoder : H.264
> Stream #0:1(eng): Data: none (tmcd / 0x64636D74), 0 kb/s (default)
> Metadata:
> creation_time : 2016-12-15 23:51:52
> handler_name : Time Code Media Handler
> timecode : 01:00:49:17
> Stream #0:2(eng): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 76 kb/s (default)
> Metadata:
> creation_time : 2016-12-15 23:51:52
> handler_name : Apple Sound Media Handler
>
>
> I tried the stream address rtmp://live.hkstv.hk.lxdns.com/live/hks, the video stream has the type of h264. avcodec_open2 returns -1.
> av_dump_format print as:
> Input #0, flv, from 'rtmp://live.hkstv.hk.lxdns.com/live/hks':
> Metadata:
> author : PowerSmart
> copyright :
> description :
> datarate : 500
> livetime : 1470020146
> timeshift : 0
> Duration: 01:00:00.00, start: 0.000000, bitrate: N/A
> Stream #0:0: Video: h264 (Constrained Baseline), yuv420p, 640x480, 15.17 fps, 15 tbr, 1k tbn, 30 tbc
> Stream #0:1: Audio: aac, 32000 Hz, stereo, fltp
>
>
>
>
>
>
>
> ------------------ 原始邮件 ------------------
> 发件人: "Blake Senftner";<bsenftner at earthlink.net>;
> 发送时间: 2016年12月21日(星期三) 晚上11:46
> 收件人: "This list is about using libavcodec, libavformat, libavutil,libavdevice and libavfilter."<libav-user at ffmpeg.org>;
> 主题: Re: [Libav-user] (no subject)
>
> Is the h264 file you are using available online to test against?
>
> I have been using the h264 film trailers from here http://www.hd-trailers.net/movie/rogue-one-a-star-wars-story/
>
> And they open and play without issue. Do you get the same issue with your software using one of these clips?
>
> You may need to post your function that opens a stream up to the point where you call avcodec_open2()...
>
> Sincerely,
> -Blake Senftner
> Computer Stuff
>
>> On Dec 21, 2016, at 7:24 AM, sea <2509044372 at qq.com> wrote:
>>
>> In transcoding project of LeiXiaoHua(demo of usage of filters), if I use media file with h264 video stream as input file, the function avcodec_open2 will return -1. Media file with video stream in other format, such as mpeg4, mjpeg return 0 (OK). Why ? Someone meets the same problem?
>> _______________________________________________
>> Libav-user mailing list
>> Libav-user at ffmpeg.org
>> http://ffmpeg.org/mailman/listinfo/libav-user
>
>
> _______________________________________________
> Libav-user mailing list
> Libav-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/libav-user
>
>
> Code or code link here please!
> _______________________________________________
> Libav-user mailing list
> Libav-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/libav-user
_______________________________________________
Libav-user mailing list
Libav-user at ffmpeg.org
http://ffmpeg.org/mailman/listinfo/libav-user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20161222/1229b43d/attachment.html>
More information about the Libav-user
mailing list