Page 2 of 4

Re: ffmpeg transcoding on the wdtv - success and failure

PostPosted: Mon Nov 26, 2012 2:58 am
by recliq
Regarding mkv and the dropped frames error message: Have you tried specifing the bitrate in ffmpeg? maybe ffmpeg expects more frames/second by default (25/30?)

Re: ffmpeg transcoding on the wdtv - success and failure

PostPosted: Mon Nov 26, 2012 4:02 am
by mad_ady
No I haven't. I thought that would be taken care of if I said I wanted to copy the video content... I'll give it a try, though - thanks for the tip.

Re: ffmpeg transcoding on the wdtv - success and failure

PostPosted: Mon Nov 26, 2012 5:33 am
by DJArty
It was better if you provide real rtsp link for side testing...
P.S. and need app.bin for ffmpeg with rtsp_transport support.

Re: ffmpeg transcoding on the wdtv - success and failure

PostPosted: Mon Nov 26, 2012 5:56 am
by mad_ady
Sorry, the rtsp server is private and I can't release a link to it. However, the decoding part should be without problem even if you try to use a local file (with h264 video and PCM audio). It's the encoding part - especially the "writing to file versus pipe" part that is giving me the headache...

You can get recliq's build of ffmpeg (with rtsp_transport support) here: http://forum.wdlxtv.com/viewtopic.php?f=40&t=4567#p63111

Re: ffmpeg transcoding on the wdtv - success and failure

PostPosted: Mon Nov 26, 2012 6:22 am
by DJArty
rtsp server is private
:) of course, I understand, I mean any external rtsp for compare results.

Re: ffmpeg transcoding on the wdtv - success and failure

PostPosted: Mon Nov 26, 2012 6:33 am
by mad_ady
Hmm, I don't have any - but it would be nice to find if any...

Re: ffmpeg transcoding on the wdtv - success and failure

PostPosted: Mon Nov 26, 2012 9:22 am
by DJArty
May be in my next iptvv2 ver. (or iptvv3 from repo finally) I'm add rtsp support (like rtmp already)
May be it was work with your private link ...

Re: ffmpeg transcoding on the wdtv - success and failure

PostPosted: Mon Nov 26, 2012 10:37 pm
by mad_ady
Well, I'm trying to add support into my IP Camera plugin - specifically for IP cameras that support RTSP. But I'm sure it could be useful for streaming video over RTSP (although I don't know if there are many broadcasters who chose this format...).

@recliq: I tried with a higher bandwidth and with the -re parameter (for real-time streaming), but it didn't change the output. I will try with other parameters as well, but I think I will concentrate first on transcoding to mpegts (with mpeg2 video), but keeping a high quality and high bitrate. If I can get ~5fps out of it it should be enough for now (better than 0.3fps I get in image slideshow mode). I will push this to the plugin and update the plugin... Then I will concentrate on getting h264 video out of it.

One thing I will look into is a feature my IP Camera has - it can save an avi with the recording, triggered by motion detection. I've looked around inside the camera's firmware and I noticed no ffmpeg and there is a suspicious looking avi_header file that I suspect gets written first, and then it writes the raw capture data in h264 format. I indend to do a small recording, analyse the file (mediainfo, hexdump) and see if I can do something similar - e.g. send a static header to the client and then dump the video with no container (if possible). I just need time to test it out.

Anyway, thanks for the tips and help.

Re: ffmpeg transcoding on the wdtv - success and failure

PostPosted: Mon Nov 26, 2012 11:15 pm
by DJArty
Just try
Code: Select all
-vcodec copy -vbsf h264_mp4toannexb -acodec copy -f mpegts

as I already use in my plugins for f l v sound fix, its fast and work on the fly.

Re: ffmpeg transcoding on the wdtv - success and failure

PostPosted: Mon Nov 26, 2012 11:30 pm
by mad_ady
What a cryptic command you have there :P
I'll give it a try, thanks! I wasn't sure if mpegts could hold h264, or just mpeg2, but as a container it seemed to work fine with the wdtv...

Edit: I get loads of errors like this:
Code: Select all
Failed to open bitstream filter h264_mp4toannexb for stream 0 with codec copy: Invalid argument


I'll wait until I get home to test it if it plays.