cocoa ffmpeg streaming created improper file - objective-c

I am trying to capture video stream and upload it to RTMP server using FFMPEG in my cocoa app. I am able to play that file via FFPLAY but when i stop streaming file is not created properly.
It shows file size as 1kb even when streaming is done for 5 mins.
However if i try to save on my local system it works fine. A proper file is created and i am able to view it.
RTMP server is also fine coz from windows files are being created and saved on that server.
Thanks in advance. :)

Updating FFMPEG to version 3.1.4 solved my problem of streaming via terminal.

Related

I cannot play Ant Media Server recorded mp4 file in iOS. How to fix?

I am using Ant Media Server as a WebRTC media server. I publish my webcam with WebRTC from browser. I have also enabled mp4 recording.
I can play recorded files on Linux and Windows. But I can't play some of them on iOS. How can I solve this?
This can be fixed by encoding file. But learning why it happens is better.
Since Ant Media Server records WebRTC streams, WebRTC changes internal resolution dynamically which means mp4 files resolution is also changed on-the-fly. This is handled well in other platforms but not on the IOS yet.
So, encoding the file again would likely fix it.

How do I test customized stream playback paths in Red5

I have a Red5 application that I inherited from a previouse developer and I am trying to get it running correctly. I am able to start the Red5 server and stream video files from my /webapps/myapp/streams/ directory. I am able to test this by going to http://localhost:8080/myApps/streams/testVid.mp4 and the video plays normally.
However, I need to be able to stream my videos from any directory in my file explorer. The application already has a Application.java, a CustomFilenameGenerator.java, the needed bean for CustomFilenameGenerator in red5-web.xml and a playbackPath and recordPath in my red5-web.properties file.
From my research it seems like the previous developer that worked on this project was probably able to get the streaming working from a custom path, but I am not sure how to get it running.
Assuming that everything with the application/configurations is correct how do I actually test it, if the files I want to stream are in C:\Users\myUser\Desktop\StreamRecordings?
I have tried going to http://localhost:8080/myApp/StreamRecordings/testVid.mp4 but I get 404 error (probably since StreamRecordings is not in a myApp subdirectory.
Thanks!

how to upload .flv to remote red5 server LIVE in real time?

I want to do live webcast of some ceremonies. I can record .flv files using my webcam and ffmpeg software. Now, if I hire a red5 media server from some hosting company so that visitors can download from that website. Now my problem is how can I upload .flv files LIVE ( when video shooting is still in progress )
Please help how to achieve this
I assume by recording them you mean you are saving them to disk and are not streaming the video? If this is the case you simply need to use an upload form or have ftp / scp access to the hosted server. Pick one of the apps installed and place your flv files in the applications "streams" directory. Once the files are in-place you'll need a way to play them back, which will require a player (plenty of free ones out there like jwplayer). Hopefully this is what you were looking for.

connect to rtmp server from objective C

How do i use rtmp protocol for continously watch the server for any changes and when i upload a file to server from my cocoa desktop application?
its already there in lcds.
I need to notify the user of the app when some new file is uploaded to the ftp. I need to connected to rtmp so that when i upload a file other need to get notification about the file i uploaded. it should a real time.
is there any suggestions or alternatives? it would be a great help.
Thanks a lot in advance :)

Red5 cutting streams

I have a flex app that was developed using wowza as media server. The purpose of the app is to record the microphone of the client. I have to switch over to red5 now, and so I set up a VM with red5. I had success in creating streams, but only a small part of the audio is saved correctly on the flv files under the stream/ folders. Why is that happening? Could anybody point me out some suggestions, as I am aware only of the possibility to rewrite extending RTMPClient instead of using NetStream and NetConnection.
You should check the version of Red5.
Are/were you using Red5 version 1.0 ? There is a bug in that which truncates a lot from both ends in the final .flv.
You could downgrade to a lower version or use 1.0.2. It works fine in these.