Audio/video stream recording forums (http://stream-recorder.com/forum/index.php)
-   rtmpdump (http://stream-recorder.com/forum/forumdisplay.php?f=54)
-   -  

Downloaded mp4 files are corrupt

(http://stream-recorder.com/forum/showthread.php?t=18839)

stringer bell 09-24-2014 12:03 PM

Downloaded mp4 files are corrupt


 
I'm on Ubuntu....

ran:

Code:

rtmpdump -r "rtmp://neulionms.fcod.llnwd.net/a5306/e1/mp4:u/nfl/nfl/coachtapes/2014/56214_all_1600" -o kcmia.mp4
Download completes:
Code:

869823.184 kB / 4772.39 sec (99.9%)
Download complete

But when I try to play the mp4 file in VLC it does not play. When I try to play in browser, it says the file is corrupt.

Any ideas what is happening and what I need to do to fix this?

stringer bell 09-24-2014 01:14 PM

Re: Downloaded mp4 files are corrupt


 
Quote:

Originally Posted by hasomaso (Post 70916)
put original link

This is the only link I have:

rtmp://neulionms.fcod.llnwd.net/a5306/e1/mp4:u/nfl/nfl/coachtapes/2014/56214_all_1600

This has worked for me streaming on Windows with VLC before, but not working with rtmpdump. I know it works for other people as well.

hasomaso 09-24-2014 02:54 PM

Re: Downloaded mp4 files are corrupt


 
you must create extra a playpath -y line
Code:

-y "mp4:u/nfl/nfl/coachtapes/2014/56214_all_1600"

try that

Code:

rtmpdump -r "rtmp://neulionms.fcod.llnwd.net/a5306/e1/" -y "mp4:u/nfl/nfl/coachtapes/2014/56214_all_1600" -o "output.flv"
Code:

RTMPDump v2.4 GIT-2014-07-07 (Compiled by KSV)
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
WARNING: You haven't specified an output file (-o filename), using stdout
Connecting ...
INFO: Connected...
Starting download at: 0.000 kB
INFO: Metadata:
INFO:  duration                4772.42
INFO:  moovPosition            32.00
INFO:  width                  960.00
INFO:  height                  540.00
INFO:  videocodecid            avc1
INFO:  avcprofile              77.00
INFO:  avclevel                31.00
INFO:  videoframerate          29.97
INFO: trackinfo:
INFO:  length                  4772423.00
INFO:  timescale              1000.00
INFO:  language                und
INFO: sampledescription:
INFO:  sampletype              avc1
INFO:  length                  429518070.00
INFO:  timescale              90000.00
INFO:  language                und
INFO: sampledescription:
15847.985 kB / 87.42 sec (1.8%)


troller12 09-24-2014 03:10 PM

Re: Downloaded mp4 files are corrupt


 
So you should also try to use the rtmp parameter -e to resume the download so I see for me it does stop many times...
Code:

INFO: Connected...
Starting download at: 0.000 kB
INFO: Metadata:
INFO:  duration                4772.42
INFO:  moovPosition            32.00
INFO:  width                  960.00
INFO:  height                  540.00
INFO:  videocodecid            avc1
INFO:  avcprofile              77.00
INFO:  avclevel                31.00
INFO:  videoframerate          29.97
INFO: trackinfo:
INFO:  length                  4772423.00
INFO:  timescale              1000.00
INFO:  language                und
INFO: sampledescription:
INFO:  sampletype              avc1
INFO:  length                  429518070.00
INFO:  timescale              90000.00
INFO:  language                und
INFO: sampledescription:
255507.949 kB / 1404.46 sec (29.4%)
ERROR: RTMP_ReadPacket, failed to read RTMP packet header
255656.735 kB / 1405.16 sec (29.4%)
INFO: Connection timed out, trying to resume.


Resuming download at: 255656.735 kB
259489.734 kB / 1428.65 sec (29.9%)
ERROR: RTMP_ReadPacket, failed to read RTMP packet header
259642.604 kB / 1429.15 sec (29.9%)
INFO: Connection timed out, trying to resume.


Resuming download at: 259642.604 kB
263337.683 kB / 1449.84 sec (30.3%)
ERROR: RTMP_ReadPacket, failed to read RTMP packet header
263414.453 kB / 1449.94 sec (30.3%)
INFO: Connection timed out, trying to resume.


Resuming download at: 263414.453 kB
267243.929 kB / 1469.96 sec (30.8%)
ERROR: RTMP_ReadPacket, failed to read RTMP packet header
267447.229 kB / 1470.89 sec (30.8%)
INFO: Connection timed out, trying to resume.


Resuming download at: 267447.229 kB
273088.655 kB / 1503.22 sec (31.4%)
ERROR: RTMP_ReadPacket, failed to read RTMP packet header
273315.418 kB / 1504.73 sec (31.5%)
INFO: Connection timed out, trying to resume.


Resuming download at: 273315.418 kB
296798.662 kB / 1634.32 sec (34.2%)
ERROR: RTMP_ReadPacket, failed to read RTMP packet header
296873.858 kB / 1634.68 sec (34.2%)
INFO: Connection timed out, trying to resume.


Resuming download at: 296873.858 kB
312465.088 kB / 1720.94 sec (36.0%)
ERROR: RTMP_ReadPacket, failed to read RTMP packet header
312705.939 kB / 1721.43 sec (36.0%)
INFO: Connection timed out, trying to resume.


Resuming download at: 312705.939 kB
328212.096 kB / 1808.09 sec (37.8%)
ERROR: RTMP_ReadPacket, failed to read RTMP packet header
328460.891 kB / 1808.72 sec (37.8%)
INFO: Connection timed out, trying to resume.


Resuming download at: 328460.891 kB
346070.156 kB / 1904.38 sec (39.9%)
ERROR: RTMP_ReadPacket, failed to read RTMP packet header
346158.915 kB / 1904.58 sec (39.9%)
INFO: Connection timed out, trying to resume.


Resuming download at: 346158.915 kB
349613.012 kB / 1923.40 sec (40.3%)

...the download will take a while.Will check whether the file after is ok or not.

greetz

stringer bell 09-24-2014 03:13 PM

Re: Downloaded mp4 files are corrupt


 
Thanks for the help. Unfortunately I'm still getting corrupted file.

troller12 09-24-2014 03:19 PM

Re: Downloaded mp4 files are corrupt


 
So what did you tried now?So I am still downloading the file (49% now) but I can play it already in VLC player without problems.

Here my link....
Code:

rtmpdump -r "rtmp://neulionms.fcod.llnwd.net/a5306" -a "a5306/e1/" -y "mp4:u/nfl/nfl/coachtapes/2014/56214_all_1600" -e -o "football.flv"
greetz

stringer bell 09-24-2014 03:28 PM

Re: Downloaded mp4 files are corrupt


 
Quote:

Originally Posted by troller12 (Post 70931)
So what did you tried now?So I am still downloading the file (49% now) but I can play it already in VLC player without problems.

Here my link....
Code:

rtmpdump -r "rtmp://neulionms.fcod.llnwd.net/a5306" -a "a5306/e1/" -y "mp4:u/nfl/nfl/coachtapes/2014/56214_all_1600" -e -o "football.flv"
greetz

I just tried this exact command. I cannot play in VLC.

I suspect this may be an issue with the installation? Is it possible for me to verify configuration to see if I need to re-install?

stringer bell 09-24-2014 03:30 PM

Re: Downloaded mp4 files are corrupt


 
This is what I receive when I try to play the file:

Code:

~$ cvlc output.flv
VLC media player 2.1.4 Rincewind (revision 2.1.4-0-g2a072be)
[0x1937f18] dummy interface: using the dummy interface module...
[flv @ 0x7fc6ccc20b80] Unsupported audio codec (9)
[flv @ 0x7fc6ccc20b80] Could not find codec parameters (Audio: [9][0][0][0] / 0x0009, 5512 Hz, stereo)
[flv @ 0x7fc6bcc01c40] Unsupported audio codec (9)
[flv @ 0x7fc6bcc01c40] Could not find codec parameters (Audio: [9][0][0][0] / 0x0009, 5512 Hz, stereo)
[0x7fc6bcda0f58] main decoder error: no suitable decoder module for fourcc `undf'. VLC probably does not support this sound or video format.
[0x7fc6bcda0f58] main decoder error: No suitable decoder module
[0x7fc6bcda0f58] main decoder error: VLC does not support the audio or video format "undf". Unfortunately there is no way for you to fix this.
Fontconfig warning: FcPattern object size does not accept value "0"
Fontconfig warning: FcPattern object size does not accept value "0"
Fontconfig warning: FcPattern object size does not accept value "0"
Fontconfig warning: FcPattern object size does not accept value "0"
[0x7fc6b4004f08] main vout display error: Failed to resize display


troller12 09-24-2014 04:00 PM

Re: Downloaded mp4 files are corrupt


 
Ok download finished now.All working fine also if the file has no audio stream only video.Just try it again.I also use VLC 2.0.4 Twoflower.Anyway so I can play the file also in other players too.

greetz

stringer bell 09-24-2014 04:04 PM

Re: Downloaded mp4 files are corrupt


 
Quote:

Originally Posted by troller12 (Post 70934)
Ok download finished now.All working fine also if the file has no audio stream only video.Just try it again.I also use VLC 2.0.4 Twoflower.Anyway so I can play the file also in other players too.

greetz

I have tried multiple times and always a corrupted file.

I may try downloading the KLV patched version. Do I just clone the git repository then use make command?


All times are GMT -6. The time now is 09:07 AM.