Sign up here and you can log into the forum!

ffmpeg transcoding on the wdtv - success and failure

Discussion, features, plugins--everything about zoster's UMSP UPnP Media Server software

Re: ffmpeg transcoding on the wdtv - success and failure   

Postby recliq » Mon Nov 26, 2012 2:58 am

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?)
­WDLXTV Project Maintainer
-:] If you like my contributions feel free to donate for a beer or a new flash drive. ...and always remember: RTFM! (README, FAQ, WIKI) [:-
User avatar
recliq
WDLXTV Team
 
Posts: 5513
Joined: Thu Apr 15, 2010 8:09 am
Location: Kiel, Germany

Re: ffmpeg transcoding on the wdtv - success and failure   

Postby mad_ady » Mon Nov 26, 2012 4:02 am

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.
User avatar
mad_ady
Developer
 
Posts: 4561
Joined: Fri Nov 05, 2010 9:08 am
Location: Bucharest, Romania

Re: ffmpeg transcoding on the wdtv - success and failure   

Postby DJArty » Mon Nov 26, 2012 5:33 am

It was better if you provide real rtsp link for side testing...
P.S. and need app.bin for ffmpeg with rtsp_transport support.
WD TV Live (1.02.21-WDLXTV-0.4.7.3);
Please Donate PayPal to email: djartyua ( a t ) gmail (d o t) com
WebMoney: WMZ114867333413
User avatar
DJArty
Developer
 
Posts: 547
Joined: Wed Jul 21, 2010 2:30 am
Location: Ukraine

Re: ffmpeg transcoding on the wdtv - success and failure   

Postby mad_ady » Mon Nov 26, 2012 5:56 am

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
User avatar
mad_ady
Developer
 
Posts: 4561
Joined: Fri Nov 05, 2010 9:08 am
Location: Bucharest, Romania

Re: ffmpeg transcoding on the wdtv - success and failure   

Postby DJArty » Mon Nov 26, 2012 6:22 am

rtsp server is private
:) of course, I understand, I mean any external rtsp for compare results.
WD TV Live (1.02.21-WDLXTV-0.4.7.3);
Please Donate PayPal to email: djartyua ( a t ) gmail (d o t) com
WebMoney: WMZ114867333413
User avatar
DJArty
Developer
 
Posts: 547
Joined: Wed Jul 21, 2010 2:30 am
Location: Ukraine

Re: ffmpeg transcoding on the wdtv - success and failure   

Postby mad_ady » Mon Nov 26, 2012 6:33 am

Hmm, I don't have any - but it would be nice to find if any...
User avatar
mad_ady
Developer
 
Posts: 4561
Joined: Fri Nov 05, 2010 9:08 am
Location: Bucharest, Romania

Re: ffmpeg transcoding on the wdtv - success and failure   

Postby DJArty » Mon Nov 26, 2012 9:22 am

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 ...
WD TV Live (1.02.21-WDLXTV-0.4.7.3);
Please Donate PayPal to email: djartyua ( a t ) gmail (d o t) com
WebMoney: WMZ114867333413
User avatar
DJArty
Developer
 
Posts: 547
Joined: Wed Jul 21, 2010 2:30 am
Location: Ukraine

Re: ffmpeg transcoding on the wdtv - success and failure   

Postby mad_ady » Mon Nov 26, 2012 10:37 pm

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.
User avatar
mad_ady
Developer
 
Posts: 4561
Joined: Fri Nov 05, 2010 9:08 am
Location: Bucharest, Romania

Re: ffmpeg transcoding on the wdtv - success and failure   

Postby DJArty » Mon Nov 26, 2012 11:15 pm

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.
WD TV Live (1.02.21-WDLXTV-0.4.7.3);
Please Donate PayPal to email: djartyua ( a t ) gmail (d o t) com
WebMoney: WMZ114867333413
User avatar
DJArty
Developer
 
Posts: 547
Joined: Wed Jul 21, 2010 2:30 am
Location: Ukraine

Re: ffmpeg transcoding on the wdtv - success and failure   

Postby mad_ady » Mon Nov 26, 2012 11:30 pm

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.
User avatar
mad_ady
Developer
 
Posts: 4561
Joined: Fri Nov 05, 2010 9:08 am
Location: Bucharest, Romania

PreviousNext

Return to UMSP Media Server

Who is online

Users browsing this forum: No registered users and 1 guest