Newest 'x264' Questions - Stack Overflow
Les articles publiés sur le site
-
Bitmaps to video in C#
9 septembre 2013, par user2754599DONE SO FAR
I use AForge MJPEGStream to get bitmaps from different IPcams and display them in my app. Now I want to record multiple (like at least 8) of these bitmapstreams to the local HDD. I already used AForge AVIWriter (DLL) to write the file of 1 stream from a List, but because those Bitmaps all go in RAM I had to write it to HDD earlier (so I can record 8 streams at once). So I tried to write a frame every NewFrame-event to HDD. The problem with this is that AVIWriter.Open(string fileName, int width, int height) uses Win32.OpenFileMode.Create instead of Win32.OpenFileMode.ReadWrite and so deleting the videofile instead of opening it to add a frame.
Preferred goal
Record multiple MJPEG streams to disk as video files(could be done from the NewFrame-even described above, which provides Bitmaps). The very best result would be 1 hour long .MKV files encoded with X264. I don't care how to achieve this goal as long as it's done within my existing project in C# (so no need to keep using AForge).
-
x264 on Ubuntu video bad/corrupted
6 septembre 2013, par RyzoneI am trying to use command line
x264
to produce a blu-ray compatible file for use in Adobe Encore. For the source file I've tried both ProRes and mpeg2, both 1080p24. Both files import into Encore fine (no transcoding needed which is great) but the ProRes version is pink and grey "static" and the mpeg2 is just a bunch of green/black lines. The exact same files and the exact same commands on my Win7 PC come out fine. I'm only doing a 10 sec sample of the complete 90min movie. I'd love for it to work on Ubuntu cause it is running a new i7 haswell that encodes much quicker than my PC (many hours difference in encoding time)Ubuntu 13.04 x264 0.135.2 f0c1c53
built on Jul 24 2013, gcc: 4.7.3
configuration: --bit-depth=8 --chroma-format=all
x264 license: GPL version 2 or later command: x264 --bitrate 30000 --preset veryslow --tune film --bluray-compat --fps 24000/1001 --force-cfr --bframes 3 --ref 4 --muxer raw --no-weightb --weightp 0 --b-pyramid none --vbv-maxrate 40000 --vbv-bufsize 30000 --level 4.1 --profile high --keyint 24 --min-keyint 1 --open-gop --slices 4 --colorprim "bt709" --transfer "bt709" --colormatrix "bt709" --sar 1:1 -o output.264 --input-res 1920x1080 sample.mov(if it would work I'd be doing two pass encoding)
I am able to encode the sample file with ffmpeg to h264 (if that helps).
-
Container for a single h264 video stream
29 août 2013, par CantfindnameI have the code of a simple h264 encoder, which outputs a raw 264 file. I want to extend it to directly output the video in a playable container; it doesn't matter which one as long as it is playable by VLC. So, what is the easiest way to include a wrapper around this raw H264 file?
Everywhere I looked on the web, people used ffmpeg and libavformat, but I would prefer to have standalone code. I do not want fancy stuff like audio, subtiltes, chapters etc., just the video stream.
Thanks!
-
ffmpeg for x264 core 136 lib in iOS [closed]
23 août 2013, par 官承翰I want to develop a service (written in php) to provide mobile platforms(iOS/android/..etc) or desktop PCs to stream videos.
I have tried a lot and found.
My iPhone4 didn't support core 136 lib based on x264...it would crash or freeze when I tried playing it.
Here is my question:
Can ffmpeg decode video so that iOS can play? Or is there another way to solve it? I am new to these things...
Thanks in advance
-
Malloc Check Failed when opening video stream
23 août 2013, par donturnerI'm writing a BlackBerry 10 application which decodes an H264 video stream (from a Parrot AR Drone) using ffmpeg and libx264. These libraries have both been compiled for BlackBerry QNX.
Here's my code:
av_register_all(); avcodec_register_all(); avformat_network_init(); printf("AV setup complete\n"); const char* drone_addr = "http://192.168.1.1:5555"; AVFormatContext* pFormatCtx = NULL; AVInputFormat* pInputFormat = av_find_input_format("H264"); printf("Opening video feed from drone\n"); //THIS LINE FAILS int result = avformat_open_input(&pFormatCtx, drone_addr, pInputFormat, NULL);
The last line fails with the error:
Malloc Check Failed: :../../dlist.c:1168
How can I fix this error or debug it further?
Update: The error only occurs when I supply
pInputFormat
toavformat_open_input
. If I supply NULL I don't get an error. But for my app I must supply this parameter since it is not possible for ffmpeg to determine the video format from the feed alone.