Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
14th April 2009, 06:37 | #1 | Link |
Registered User
Join Date: Apr 2009
Posts: 9
|
Playback issues with h.264/aac FLV
First of all, I did not encode this file. The source is a streaming website. Also, I am using Ubuntu Linux, with versions of x264 and ffmpeg built from source.
If I try to play the file with mplayer or ffmpeg, I get this error and the player process dies: Code:
[h264 @ 0x8d8bd80]AVC: Consumed only 1 bytes instead of 7714 [h264 @ 0x8d8bd80]no frame! [h264 @ 0x8d8bd80]AVC: Consumed only 1 bytes instead of 7573 [h264 @ 0x8d8bd80]no frame! [h264 @ 0x8d8bd80]AVC: Consumed only 1 bytes instead of 7487 [h264 @ 0x8d8bd80]no frame! [h264 @ 0x8d8bd80]AVC: Consumed only 1 bytes instead of 8533 [h264 @ 0x8d8bd80]no frame! [h264 @ 0x8d8bd80]AVC: Consumed only 1 bytes instead of 8325 [h264 @ 0x8d8bd80]no frame! [h264 @ 0x8d8bd80]AVC: Consumed only 1 bytes instead of 7656 [h264 @ 0x8d8bd80]no frame! [h264 @ 0x8d8bd80]AVC: Consumed only 1 bytes instead of 8213 [h264 @ 0x8d8bd80]no frame! Code:
General Complete name : 720pA.flv Format : Flash Video File size : 413 MiB _width : 800.000 _height : 450.000 _framerate : 29.970 _videocodecid : 7.000 _videodatarate : 2100.000 _audiodatarate : 48.000 Video Format : AVC Format/Info : Advanced Video Codec Format profile : Main@L3.1 Format settings, CABAC : No Format settings, ReFrames : 1 frame Muxing mode : Container profile=Unknown@3.1 Width : 800 pixels Height : 450 pixels Display aspect ratio : 16/9 Frame rate mode : Variable Frame rate : 29.970 fps Standard : Component Resolution : 24 bits Colorimetry : 4:2:0 Scan type : Progressive Audio Format : AAC Format/Info : Advanced Audio Codec Format version : Version 4 Format profile : Main Channel(s) : 1 channel Channel positions : C Sampling rate : 48.0 KHz Resolution : 16 bits Now, if I use the Windows program FLV Extract on the file, I can demux it into .264 and .aac streams. Played individually, these files work perfectly. In addition, FlowPlayer can play the original .flv file without a problem. One thing I notice is the difference in how ffmpeg identifies the video stream of the original .flv as compared to the extracted .264. First, here's the info from the original .flv: Code:
Seems stream 0 codec frame rate differs from container frame rate: 2000.00 (2000/1) -> 29.97 (30000/1001) Input #0, flv, from '720pA.flv': Duration: N/A, start: 71376.321000, bitrate: N/A Stream #0.0: Video: h264, yuv420p, 29.97 tbr, 1k tbn, 2k tbc Stream #0.1: Audio: aac, 48000 Hz, mono, s16 Code:
Seems stream 0 codec frame rate differs from container frame rate: 59.94 (60000/1001) -> 29.97 (60000/2002) Input #0, h264, from '720pA.264': Duration: N/A, bitrate: N/A Stream #0.0: Video: h264, yuv420p, 800x450 [PAR 1:1 DAR 16:9], 29.97 tbr, 1200k tbn, 59.94 tbc I've uploaded a smaller sample file (6.5MB) using the same container and producing the same errors as above. If it makes a difference, the original file extension on the server was .mp4. The file is located here: http://monopedilos.com/testfile.flv Can anyone help me figure out why mplayer, ffmpeg, and vlc all choke on this file? My end goal is to figure out a way to play this file without remuxing it because I would like to be able to play it "live" as it streams. Any assistance much appreciated. Thanks! |
14th April 2009, 07:00 | #2 | Link | |
Registered User
Join Date: Oct 2001
Location: Germany
Posts: 7,277
|
Not sure if it helps, but here are some additional findings about the file:
1. doesn't play under windows to (directshow and mplayer) 2. extracting the streams with FLV Extract and opening the .264 file with DVACDec gives a: Quote:
4. muxing the audio&video without the timecodes creates a valid file (length 1min 11sec) My guess: something went terribly wrong in the creation of this file. (sidenote: personally I prefer to use .mp4 as container instead of .flv for h264/aac content) Cu Selur |
|
14th April 2009, 07:14 | #3 | Link | |
Registered User
Join Date: Apr 2009
Posts: 9
|
A little background, if it helps.
The file source is the MLB.TV service provided by Major League Baseball (mlb.com). They use Swarmcast/Autobahn technology to delivery high resolution content to paying subscribers. By necessity, the source files are created live and on-the-fly so subscribers can watch live baseball games. The local .flv I am trying to play is created by pointing mplayer at the local port opened by the Autobahn program and using the -dumpstream option to save the content locally. I am only saving the content for debugging purposes as the player errors described above also occur while trying to play the data "live." In short, the original .flv was not created from a fixed-duration source file but from a live source. Another person who is working on this project made the following observations about a similar local file he created in the same fashion: Quote:
Last edited by theophile; 14th April 2009 at 07:18. |
|
14th April 2009, 16:35 | #4 | Link |
Registered User
Join Date: Sep 2006
Posts: 18
|
hey theophile why not just remux to something this is playable like say mkv? i have some posts about this from last year here.
http://forum.doom9.org/showthread.ph...24#post1189824 here is another thread about remuxing h264 flvs http://forum.doom9.org/showthread.php?t=139540 |
14th April 2009, 16:49 | #5 | Link |
Registered User
Join Date: Apr 2009
Posts: 9
|
BlueCop,
Thanks for your response. I probably would focus more on remuxing, but the problem is I need to be able to play these files "live." Since the entire purpose is to be able to watch live baseball games, I can't wait until the file is finished writing in order to do a bunch of processing on it. If there were a way to do "realtime" remuxing, that might be a viable option, but I suspect that there would be serious A/V sync issues. I really need to figure out how to play this file without modification. If that's not possible, I'd like to see if I can learn why, so I can file a useful bug report with the ffmpeg guys. |
14th April 2009, 17:43 | #6 | Link | |
Registered User
Join Date: Oct 2001
Location: Germany
Posts: 7,277
|
Quote:
|
|
14th April 2009, 19:23 | #8 | Link |
Registered User
Join Date: Apr 2009
Posts: 9
|
I've created a bug report with ffmpeg. If anyone can supplement the report with more info, I would greatly appreciate it. Thanks!
https://roundup.ffmpeg.org/roundup/ffmpeg/issue987 |
|
|